forked from vtex/openapi-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
VTEX - SKU Bindings API.json
1180 lines (1180 loc) · 61.1 KB
/
VTEX - SKU Bindings API.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"openapi": "3.0.0",
"info": {
"title": "SKU Bindings API",
"contact": {},
"version": "1.0"
},
"servers": [
{
"url": "https://{accountName}.{environment}.com.br/api",
"description": "VTEX server URL.",
"variables": {
"accountName": {
"description": "Name of the VTEX account. Used as part of the URL.",
"default": "{accountName}"
},
"environment": {
"description": "Environment to use. Used as part of the URL.",
"default": "{environment}"
}
}
}
],
"paths": {
"/catalog/pvt/skusellers/{skuId}": {
"get": {
"tags": [
"SKU Bindings"
],
"summary": "Get SKU Bindings by SKU ID",
"description": "Retrieves SKU Bindings details by SKU ID.\r\n\r\n## Response body example\r\n\r\n```json\r\n[\r\n {\r\n \"Id\": 48,\r\n \"SellerId\": \"cosmetics1\",\r\n \"StockKeepingUnitId\": 1,\r\n \"SellerSkuId\": \"42\",\r\n \"IsActive\": true,\r\n \"LastUpdateDate\": \"2020-10-21T19:13:00.657\",\r\n \"SalesPolicy\": 0\r\n }\r\n]\r\n```",
"operationId": "GetbySkuId",
"parameters": [
{
"name": "Content-Type",
"in": "header",
"description": "Describes the type of the content being sent.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
},
{
"name": "Accept",
"in": "header",
"description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
},
{
"name": "skuId",
"in": "path",
"description": "SKU's unique identifier in the marketplace.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"example": "1"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"description": "Array containing objects with information about each SKU Binding.",
"items": {
"type": "object",
"description": "Object with information about an SKU Binding.",
"properties": {
"Id": {
"type": "integer",
"format": "int32",
"description": "SKU Binding ID."
},
"SellerId": {
"type": "string",
"description": "ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID."
},
"StockKeepingUnitId": {
"type": "integer",
"format": "int32",
"description": "SKU ID in the VTEX marketplace."
},
"SellerSkuId": {
"type": "string",
"description": "SKU seller ID."
},
"IsActive": {
"type": "boolean",
"description": "Defines if the SKU binding is active."
},
"LastUpdateDate": {
"type": "string",
"description": "Date when the SKU binding was updated for the last time, in UTC format."
},
"SalesPolicy": {
"type": "integer",
"format": "int32",
"description": "Sales policy ID."
}
},
"example": [
{
"Id": 48,
"SellerId": "cosmetics1",
"StockKeepingUnitId": 1,
"SellerSkuId": "42",
"IsActive": true,
"LastUpdateDate": "2020-10-21T19:13:00.657",
"SalesPolicy": 0
}
]
}
}
}
}
}
},
"deprecated": false
}
},
"/sku-binding/pvt/skuseller/admin": {
"get": {
"tags": [
"SKU Bindings"
],
"summary": "Get SKU Bindings information",
"description": "Retrieves SKU Bindings administrative information using optional query params `sellerId`, `skuId`, `sellerSkuId` and `IsActive` to filter results and `size` to restrict the amount of results. \r\n\r\n > ℹ This path is an updated version of `/api/catalog_system/pvt/skuseller/admin`.\r\n\r\n## Response body example\r\n\r\n```json\r\n[\r\n {\r\n \"IsPersisted\": true,\r\n \"IsRemoved\": false,\r\n \"SkuSellerId\": 1,\r\n \"UpdateDate\": \"2019-12-04T01:56:00.673Z\",\r\n \"RequestedUpdateDate\": null,\r\n \"SellerStockKeepingUnitId\": \"12\",\r\n \"SellerId\": \"cosmetics1\",\r\n \"StockKeepingUnitId\": 25,\r\n \"IsActive\": true\r\n }\r\n]\r\n```",
"operationId": "Getpagedadmin",
"parameters": [
{
"name": "sellerId",
"in": "query",
"description": "ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID.",
"required": false,
"style": "form",
"explode": true,
"schema": {
"type": "string",
"example": "vtxkfj7352"
}
},
{
"name": "skuId",
"in": "query",
"description": "SKU's unique identifier in the marketplace.",
"required": false,
"style": "form",
"explode": true,
"schema": {
"type": "string",
"example": "1"
}
},
{
"name": "sellerSkuId",
"in": "query",
"description": "SKU ID in the seller's store.",
"required": false,
"style": "form",
"explode": true,
"schema": {
"type": "string",
"example": "71"
}
},
{
"name": "isActive",
"in": "query",
"description": "Defines if the SKU binding is active.",
"required": false,
"style": "form",
"explode": true,
"schema": {
"type": "boolean",
"example": true
}
},
{
"name": "size",
"in": "query",
"description": "Amount of results.",
"required": false,
"style": "form",
"explode": true,
"schema": {
"type": "string",
"example": "1"
}
},
{
"name": "Content-Type",
"in": "header",
"description": "Describes the type of the content being sent.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
},
{
"name": "Accept",
"in": "header",
"description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"IsPersisted": {
"type": "boolean",
"description": "Defines if the seller is persisted."
},
"IsRemoved": {
"type": "boolean",
"description": "Defines if the seller is removed."
},
"SkuSellerId": {
"type": "integer",
"format": "int32",
"description": "SKU Binding ID."
},
"UpdateDate": {
"type": "string",
"description": "Date when the SKU binding was updated for the last time, in UTC format."
},
"RequestedUpdateDate": {
"type": "string",
"description": "Date when an SKU binding update was requested for the last time, in UTC format.",
"nullable": true
},
"SellerStockKeepingUnitId": {
"type": "string",
"description": "SKU ID in the seller's store."
},
"SellerId": {
"type": "string",
"description": "ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID."
},
"StockKeepingUnitId": {
"type": "integer",
"format": "int32",
"description": "SKU ID in the VTEX marketplace."
},
"IsActive": {
"type": "boolean",
"description": "Defines if the SKU binding is active."
}
},
"example": [
{
"IsPersisted": true,
"IsRemoved": false,
"SkuSellerId": 102,
"UpdateDate": "2021-04-12T20:06:59.413Z",
"RequestedUpdateDate": null,
"SellerStockKeepingUnitId": "71",
"SellerId": "vtxkfj7352",
"StockKeepingUnitId": 1,
"IsActive": true
}
]
}
}
}
}
},
"deprecated": false
}
},
"/sku-binding/pvt/skuseller/{sellerId}/{sellerSkuId}": {
"get": {
"tags": [
"SKU Bindings"
],
"summary": "Get details of a seller's SKU",
"description": "Retrieves the details of a seller's SKU given a seller ID and the SKU ID in the seller's store. \r\n\r\n > ℹ This path is an updated version of `/api/catalog_system/pvt/skuseller/{sellerId}/{sellerSkuId}`.\r\n\r\n## Response body example\r\n\r\n```json\r\n{\r\n \"IsPersisted\": true,\r\n \"IsRemoved\": false,\r\n \"SkuSellerId\": 102,\r\n \"UpdateDate\": \"2021-04-12T20:06:59.413Z\",\r\n \"RequestedUpdateDate\": null,\r\n \"SellerStockKeepingUnitId\": \"71\",\r\n \"SellerId\": \"vtxkfj7352\",\r\n \"StockKeepingUnitId\": 1,\r\n \"IsActive\": true\r\n}\r\n```",
"operationId": "GetSKUseller",
"parameters": [
{
"name": "Content-Type",
"in": "header",
"description": "Describes the type of the content being sent.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
},
{
"name": "Accept",
"in": "header",
"description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
},
{
"name": "sellerId",
"in": "path",
"description": "ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"example": "101"
}
},
{
"name": "sellerSkuId",
"in": "path",
"description": "SKU ID in the seller's store.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"example": "1"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"IsPersisted",
"IsRemoved",
"SkuSellerId",
"SellerId",
"StockKeepingUnitId",
"SellerStockKeepingUnitId",
"IsActive",
"UpdateDate",
"RequestedUpdateDate"
],
"properties": {
"IsPersisted": {
"type": "boolean",
"description": "Defines if the seller is persisted."
},
"IsRemoved": {
"type": "boolean",
"description": "Defines if the seller is removed."
},
"SkuSellerId": {
"type": "integer",
"format": "int32",
"description": "SKU ID in the seller's store."
},
"UpdateDate": {
"type": "string",
"description": "Date when the SKU binding was updated for the last time, in UTC format."
},
"RequestedUpdateDate": {
"type": "string",
"description": "Date when an SKU binding update was requested for the last time, in UTC format.",
"nullable": true
},
"SellerStockKeepingUnitId": {
"type": "string",
"description": "SKU seller ID."
},
"SellerId": {
"type": "string",
"description": "ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID."
},
"StockKeepingUnitId": {
"type": "integer",
"format": "int32",
"description": "SKU ID in the VTEX marketplace."
},
"IsActive": {
"type": "boolean",
"description": "Defines if the SKU binding is active."
}
},
"example": {
"IsPersisted": true,
"IsRemoved": false,
"SkuSellerId": 799,
"UpdateDate": "2018-10-11T04:52:42.1",
"RequestedUpdateDate": null,
"SellerStockKeepingUnitId": "502",
"SellerId": "myseller",
"StockKeepingUnitId": 50,
"IsActive": true
}
}
}
}
}
},
"deprecated": false
},
"put": {
"tags": [
"SKU Bindings"
],
"summary": "Bind a seller's SKU to another SKU",
"description": "Associates a seller's SKU to another marketplace SKU.\r\n\r\n > ℹ This path is an updated version of `/api/catalog_system/pvt/skuseller/{sellerId}/{sellerSkuId}`.\r\n\r\n## Request body example\r\n\r\n```json\r\n{\r\n \"StockKeepingUnitId\": 1\r\n}\r\n```",
"operationId": "Bindtoanothersku",
"parameters": [
{
"name": "Content-Type",
"in": "header",
"description": "Describes the type of the content being sent.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
},
{
"name": "Accept",
"in": "header",
"description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
},
{
"name": "sellerId",
"in": "path",
"description": "ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"example": "101"
}
},
{
"name": "sellerSkuId",
"in": "path",
"description": "SKU ID in the seller's store.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"example": "1"
}
}
],
"requestBody": {
"description": "Request body",
"content": {
"application/json": {
"schema": {
"required": [
"StockKeepingUnitId"
],
"type": "object",
"properties": {
"StockKeepingUnitId": {
"type": "integer",
"format": "int32",
"description": "SKU ID in the marketplace.",
"example": 1
}
}
}
}
}
},
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
}
},
"/sku-binding/pvt/skuseller/list/bysellerId/{sellerId}": {
"get": {
"tags": [
"SKU Bindings"
],
"summary": "Get all SKU Bindings by Seller ID",
"description": "Retrieves a list of SKU Bindings given a specific Seller ID. \r\n\r\n > ℹ This path is an updated version of `/api/catalog_system/pvt/skuseller/list/bysellerId/{sellerId}`.\r\n\r\n## Response body example\r\n\r\n```json\r\n[\r\n {\r\n \"SellerStockKeepingUnitId\": \"24\",\r\n \"FreightCommissionPercentage\": null,\r\n \"ProductCommissionPercentage\": null,\r\n \"SellerId\": \"vtxkfj7352\",\r\n \"StockKeepingUnitId\": 121,\r\n \"IsActive\": true\r\n }\r\n]\r\n```",
"operationId": "GetallbySellerId",
"parameters": [
{
"name": "Content-Type",
"in": "header",
"description": "Describes the type of the content being sent.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
},
{
"name": "Accept",
"in": "header",
"description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
},
{
"name": "sellerId",
"in": "path",
"description": "ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"example": "vtxkfj7352"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"SellerStockKeepingUnitId": {
"type": "string",
"description": "SKU ID in the seller's store."
},
"FreightCommissionPercentage": {
"type": "number",
"description": "The percentage that must be filled in as agreed between the marketplace and the seller.",
"nullable": true
},
"ProductCommissionPercentage": {
"type": "number",
"description": "The percentage that must be filled in as agreed between the marketplace and the seller. If there is no such commission, please fill in the field with the value: `0.00`.",
"nullable": true
},
"SellerId": {
"type": "string",
"description": "ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID."
},
"StockKeepingUnitId": {
"type": "integer",
"format": "int32",
"description": "SKU ID in the marketplace."
},
"IsActive": {
"type": "boolean",
"description": "Defines if the SKU binding is active."
}
},
"example": {
"SellerStockKeepingUnitId": "24",
"FreightCommissionPercentage": null,
"ProductCommissionPercentage": null,
"SellerId": "vtxkfj7352",
"StockKeepingUnitId": 121,
"IsActive": true
}
}
}
}
}
}
},
"deprecated": false
}
},
"/sku-binding/pvt/skuseller/paged/sellerid/{sellerId}": {
"get": {
"tags": [
"SKU Bindings"
],
"summary": "Get paged SKU Bindings by Seller ID",
"description": "Retrieves a paged list of SKU Bindings given a specific Seller ID. \r\n\r\n > ℹ This path is an updated version of `/api/catalog_system/pvt/skuseller/paged/sellerid/{sellerId}`.\r\n\r\n## Response body example\r\n\r\n```json\r\n[\r\n {\r\n \"SellerId\": \"vtxkfj7352\",\r\n \"StockKeepingUnitId\": 121,\r\n \"SellerStockKeepingUnitId\": \"24\",\r\n \"IsActive\": true,\r\n \"FreightCommissionPercentage\": null,\r\n \"ProductCommissionPercentage\": null\r\n },\r\n {\r\n \"SellerId\": \"vtxkfj7352\",\r\n \"StockKeepingUnitId\": 14,\r\n \"SellerStockKeepingUnitId\": \"60\",\r\n \"IsActive\": true,\r\n \"FreightCommissionPercentage\": null,\r\n \"ProductCommissionPercentage\": null\r\n }\r\n]\r\n```",
"operationId": "GetpagedbySellerId",
"parameters": [
{
"name": "page",
"in": "query",
"description": "Page number.",
"required": true,
"style": "form",
"explode": true,
"schema": {
"type": "string",
"example": "1"
}
},
{
"name": "size",
"in": "query",
"description": "Amount of results per page.",
"required": true,
"style": "form",
"explode": true,
"schema": {
"type": "string",
"example": "2"
}
},
{
"name": "Content-Type",
"in": "header",
"description": "Describes the type of the content being sent.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
},
{
"name": "Accept",
"in": "header",
"description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
},
{
"name": "sellerId",
"in": "path",
"description": "ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"example": "vtxkfj7352"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"SellerId": {
"type": "string",
"description": "ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID."
},
"StockKeepingUnitId": {
"type": "integer",
"format": "int32",
"description": "SKU ID in the marketplace."
},
"SellerStockKeepingUnitId": {
"type": "string",
"description": "SKU ID in the seller's store."
},
"IsActive": {
"type": "boolean",
"description": "Defines if the SKU binding is active."
},
"FreightCommissionPercentage": {
"type": "number",
"description": "The percentage that must be filled in as agreed between the marketplace and the seller.",
"nullable": true
},
"ProductCommissionPercentage": {
"type": "number",
"description": "The percentage that must be filled in as agreed between the marketplace and the seller. If there is no such commission, please fill in the field with the value: `0.00`.",
"nullable": true
}
},
"example": {
"SellerId": "vtxkfj7352",
"StockKeepingUnitId": 121,
"SellerStockKeepingUnitId": "24",
"IsActive": true,
"FreightCommissionPercentage": null,
"ProductCommissionPercentage": null
}
}
},
"example": [
{
"SellerId": "vtxkfj7352",
"StockKeepingUnitId": 121,
"SellerStockKeepingUnitId": "24",
"IsActive": true,
"FreightCommissionPercentage": null,
"ProductCommissionPercentage": null
},
{
"SellerId": "vtxkfj7352",
"StockKeepingUnitId": 14,
"SellerStockKeepingUnitId": "60",
"IsActive": true,
"FreightCommissionPercentage": null,
"ProductCommissionPercentage": null
}
]
}
}
}
},
"deprecated": false
}
},
"/sku-binding/pvt/skuseller/changenotification/{skuId}": {
"post": {
"tags": [
"SKU Bindings"
],
"summary": "Change Notification with SKU ID",
"description": "The seller is responsible for suggesting new SKUs to be sold in the VTEX marketplace and also for informing the marketplace about changes in their SKUs that already exist in the marketplace. Both actions start with a catalog notification, which is made by this request.\n\nWith this notification, the seller is telling the marketplace that something has changed about a specific SKU, like price or inventory, or that this is a new SKU that the seller would like to offer to the marketplace.\n\nThe body of the request should be empty.\r\n\r\n > ℹ This path is an updated version of `/api/catalog_system/pvt/skuseller/changenotification/{skuId}`.",
"operationId": "ChangeNotification",
"parameters": [
{
"name": "Content-Type",
"in": "header",
"description": "Describes the type of the content being sent.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
},
{
"name": "Accept",
"in": "header",
"description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
},
{
"name": "skuId",
"in": "path",
"description": "A string that identifies the SKU in the marketplace. This is the ID that the marketplace will use to look for the SKU whose change the seller wants to inform. If the marketplace finds this ID, it responds with status code `200`. Otherwise, it responds with status code `404`.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"example": "10"
}
}
],
"responses": {
"200": {
"description": "OK"
},
"400": {
"description": "Bad Request"
},
"403": {
"description": "Forbidden"
},
"404": {
"description": "Not found"
},
"429": {
"description": "Too many requests"
}
},
"deprecated": false
}
},
"/sku-binding/pvt/skuseller/changenotification/{sellerId}/{sellerSkuId}": {
"post": {
"tags": [
"SKU Bindings"
],
"summary": "Change Notification with Seller ID and Seller SKU ID",
"description": "The seller is responsible for suggesting new SKUs to be sold in the VTEX marketplace and also for informing the marketplace about changes in their SKUs that already exist in the marketplace. Both actions start with a catalog notification, which is made by this request.\n\nWith this notification, the seller is telling the marketplace that something has changed about a specific SKU, like price or inventory, or that this is a new SKU that the seller would like to offer to the marketplace.\n\nThere are two information expected by the marketplace in this request: the `sellerId`, which identifies the seller, and the `sellerSkuId`, which identifies the binding of the seller with the SKU.\n\nBoth information are passed through the request URL. The body of the request should be empty.\r\n > ℹ This path is an updated version of `/api/catalog_system/pvt/skuseller/changenotification/{sellerId}/{sellerSkuId}`.\r\n\r\n## Example\r\n\r\nLet's say your seller has the ID `123` in the marketplace and you want to inform the marketplace that has been a change in the SKU with ID `700`.\r\n\r\nIn this case, you would have to replace the `sellerId` parameter with the value `123` and the `skuId` parameter with the value `700`. The URL of the request would be the following.\r\n\r\n```\r\nhttps:\/\/{{accountName}}.vtexcommercestable.com.br\/api\/sku-binding\/pvt\/skuseller\/changenotification\/123\/700\r\n```\r\n\r\n## Response codes\r\n\r\nThe following response codes are possible for this request.\r\n* 200: the SKU whose ID was informed in the URL already exists in the marketplace and was found. The marketplace can now proceed with a fulfillment simulation in order to get updated information about this SKU's inventory and price.\r\n* 403: Failure in the authentication.\r\n* 404: the SKU was not found in the marketplace. The body of the response, in this case, should follow this format: \"Seller StockKeepingUnit `{{skuId}}` not found for this seller id `{{sellerId}}`. This means that the seller can now proceed with sending an offer to the marketplace in order to suggest that this SKU is sold there.\r\n* 429: Failure due to too many requests.",
"parameters": [
{
"name": "Content-Type",
"in": "header",
"description": "Describes the type of the content being sent.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
},
{
"name": "Accept",
"in": "header",
"description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
},
{
"name": "sellerId",
"in": "path",
"description": "ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"example": "101"
}
},
{
"name": "sellerSkuId",
"in": "path",
"description": "ID of the binding of the seller with the SKU.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"example": "1"
}
}
],
"responses": {
"200": {
"description": "OK"
},
"400": {
"description": "Bad Request"
},
"403": {
"description": "Forbidden"
},
"404": {
"description": "Not found"
},
"429": {
"description": "Too many requests"
}
},
"deprecated": false
}
},
"/sku-binding/pvt/skuseller/insertion": {
"post": {
"tags": [
"SKU Bindings"
],
"summary": "Insert SKU Binding",
"description": "Creates an SKU Binding, associating a seller's SKU with a marketplace's SKU.\r\n\r\n > ℹ This path is an updated version of `/api/catalog_system/pvt/skuseller/insertion`.",
"operationId": "InsertSKUBinding",
"parameters": [
{
"name": "Content-Type",
"in": "header",
"description": "Describes the type of the content being sent.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
},
{
"name": "Accept",
"in": "header",
"description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
}
],
"requestBody": {
"description": "Request body",
"content": {
"application/json": {
"schema": {
"required": [
"StockKeepingUnitId",
"IsActive",
"SellerId",
"SellerStockKeepingUnitId"
],
"type": "object",
"properties": {
"StockKeepingUnitId": {
"type": "integer",
"format": "int32",
"description": "SKU ID in the marketplace."
},
"IsActive": {
"type": "boolean",
"description": "Defines if the SKU binding is active."
},
"SellerId": {
"type": "string",
"description": "ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID."
},
"SellerStockKeepingUnitId": {
"type": "string",
"description": "SKU seller ID."
}
}
},
"example": {
"StockKeepingUnitId": 1,
"IsActive": true,
"SellerId": "vtxkfj7352",
"SellerStockKeepingUnitId": "71"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK"
},
"400": {
"description": "Bad Request"
},
"409": {
"description": "Conflict"
}
},
"deprecated": false
}
},
"/sku-binding/pvt/skuseller/activate/{sellerId}/{skuSellerId}": {
"post": {
"tags": [
"SKU Bindings"
],
"summary": "Activate SKU Binding",
"description": "Changes the status of an SKU Binding to active, setting `isActive` to `true`.\r\n\r\n > ℹ This path is an updated version of `/api/catalog_system/pvt/skuseller/activate/{sellerId}/{skuSellerId}`.",
"operationId": "ActivateSKUBinding",
"parameters": [
{
"name": "Content-Type",
"in": "header",
"description": "Describes the type of the content being sent.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
},
{
"name": "Accept",
"in": "header",
"description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "application/json"
}
},
{
"name": "sellerId",