@things-factory/operato-hub 4.3.189 → 4.3.191
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/pages/api/home.js +2 -4
- package/dist-server/routers/api/restful-apis/v1/company/index.js +0 -6
- package/dist-server/routers/api/restful-apis/v1/company/index.js.map +1 -1
- package/dist-server/routers/api/restful-apis/v1/index.js +1 -0
- package/dist-server/routers/api/restful-apis/v1/index.js.map +1 -1
- package/dist-server/routers/api/restful-apis/v1/{company → marketplace}/add-marketplace-order.js +31 -23
- package/dist-server/routers/api/restful-apis/v1/marketplace/add-marketplace-order.js.map +1 -0
- package/dist-server/routers/api/restful-apis/v1/marketplace/add-marketplace-products.js +78 -0
- package/dist-server/routers/api/restful-apis/v1/marketplace/add-marketplace-products.js.map +1 -0
- package/dist-server/routers/api/restful-apis/v1/{company → marketplace}/cancel-marketplace-order.js +5 -5
- package/dist-server/routers/api/restful-apis/v1/marketplace/cancel-marketplace-order.js.map +1 -0
- package/dist-server/routers/api/restful-apis/v1/{company → marketplace}/get-marketplace-order-shipping-list.js +3 -3
- package/dist-server/routers/api/restful-apis/v1/marketplace/get-marketplace-order-shipping-list.js.map +1 -0
- package/dist-server/routers/api/restful-apis/v1/{company → marketplace}/get-marketplace-store-list.js +2 -2
- package/dist-server/routers/api/restful-apis/v1/marketplace/get-marketplace-store-list.js.map +1 -0
- package/dist-server/routers/api/restful-apis/v1/marketplace/index.js +11 -0
- package/dist-server/routers/api/restful-apis/v1/marketplace/index.js.map +1 -0
- package/dist-server/routers/api/restful-apis/v1/{company → marketplace}/update-marketplace-order-delivered.js +3 -3
- package/dist-server/routers/api/restful-apis/v1/marketplace/update-marketplace-order-delivered.js.map +1 -0
- package/dist-server/routers/api/restful-apis/v1/marketplace/update-marketplace-product.js +76 -0
- package/dist-server/routers/api/restful-apis/v1/marketplace/update-marketplace-product.js.map +1 -0
- package/dist-server/routers/api/restful-apis/v1/{company → marketplace}/update-marketplace-shipping-order.js +2 -2
- package/dist-server/routers/api/restful-apis/v1/marketplace/update-marketplace-shipping-order.js.map +1 -0
- package/dist-server/routers/api/restful-apis/v1/utils/params.js +193 -35
- package/dist-server/routers/api/restful-apis/v1/utils/params.js.map +1 -1
- package/openapi/v1/marketplace.yaml +525 -79
- package/package.json +14 -13
- package/server/routers/api/restful-apis/v1/company/index.ts +0 -6
- package/server/routers/api/restful-apis/v1/index.ts +1 -0
- package/server/routers/api/restful-apis/v1/{company → marketplace}/add-marketplace-order.ts +34 -25
- package/server/routers/api/restful-apis/v1/marketplace/add-marketplace-products.ts +106 -0
- package/server/routers/api/restful-apis/v1/marketplace/cancel-marketplace-order.ts +100 -0
- package/server/routers/api/restful-apis/v1/{company → marketplace}/get-marketplace-order-shipping-list.ts +4 -4
- package/server/routers/api/restful-apis/v1/{company → marketplace}/get-marketplace-store-list.ts +2 -2
- package/server/routers/api/restful-apis/v1/marketplace/index.ts +8 -0
- package/server/routers/api/restful-apis/v1/{company → marketplace}/update-marketplace-order-delivered.ts +4 -4
- package/server/routers/api/restful-apis/v1/marketplace/update-marketplace-product.ts +109 -0
- package/server/routers/api/restful-apis/v1/{company → marketplace}/update-marketplace-shipping-order.ts +6 -4
- package/server/routers/api/restful-apis/v1/utils/params.ts +193 -35
- package/dist-server/routers/api/restful-apis/v1/company/add-marketplace-order.js.map +0 -1
- package/dist-server/routers/api/restful-apis/v1/company/cancel-marketplace-order.js.map +0 -1
- package/dist-server/routers/api/restful-apis/v1/company/get-marketplace-order-shipping-list.js.map +0 -1
- package/dist-server/routers/api/restful-apis/v1/company/get-marketplace-store-list.js.map +0 -1
- package/dist-server/routers/api/restful-apis/v1/company/update-marketplace-order-delivered.js.map +0 -1
- package/dist-server/routers/api/restful-apis/v1/company/update-marketplace-shipping-order.js.map +0 -1
- package/server/routers/api/restful-apis/v1/company/cancel-marketplace-order.ts +0 -94
|
@@ -446,6 +446,32 @@ paths:
|
|
|
446
446
|
paymentMethod:
|
|
447
447
|
type: 'string'
|
|
448
448
|
example: 'string'
|
|
449
|
+
paymentStatus:
|
|
450
|
+
type: 'string'
|
|
451
|
+
example: 'string'
|
|
452
|
+
payTime:
|
|
453
|
+
type: 'datetime'
|
|
454
|
+
example: '2021-01-14T14:32:15Z'
|
|
455
|
+
totalAmount:
|
|
456
|
+
type: 'integer'
|
|
457
|
+
format: 'double'
|
|
458
|
+
example: 0.00
|
|
459
|
+
commissionFee:
|
|
460
|
+
type: 'integer'
|
|
461
|
+
format: 'double'
|
|
462
|
+
example: 0.00
|
|
463
|
+
serviceFee:
|
|
464
|
+
type: 'integer'
|
|
465
|
+
format: 'double'
|
|
466
|
+
example: 0.00
|
|
467
|
+
transactionFee:
|
|
468
|
+
type: 'integer'
|
|
469
|
+
format: 'double'
|
|
470
|
+
example: 0.00
|
|
471
|
+
platformFee:
|
|
472
|
+
type: 'integer'
|
|
473
|
+
format: 'double'
|
|
474
|
+
example: 0.00
|
|
449
475
|
remark:
|
|
450
476
|
type: 'string'
|
|
451
477
|
example: 'string'
|
|
@@ -479,6 +505,42 @@ paths:
|
|
|
479
505
|
cancelBy:
|
|
480
506
|
type: 'string'
|
|
481
507
|
example: 'string'
|
|
508
|
+
paidPrice:
|
|
509
|
+
type: 'integer'
|
|
510
|
+
format: 'double'
|
|
511
|
+
example: 0.00
|
|
512
|
+
originalPrice:
|
|
513
|
+
type: 'integer'
|
|
514
|
+
format: 'double'
|
|
515
|
+
example: 0.00
|
|
516
|
+
paymentFee:
|
|
517
|
+
type: 'integer'
|
|
518
|
+
format: 'double'
|
|
519
|
+
example: 0.00
|
|
520
|
+
commissionFee:
|
|
521
|
+
type: 'integer'
|
|
522
|
+
format: 'double'
|
|
523
|
+
example: 0.00
|
|
524
|
+
platformFee:
|
|
525
|
+
type: 'integer'
|
|
526
|
+
format: 'double'
|
|
527
|
+
example: 0.00
|
|
528
|
+
shippingFeePaidByCustomer:
|
|
529
|
+
type: 'integer'
|
|
530
|
+
format: 'double'
|
|
531
|
+
example: 0.00
|
|
532
|
+
promotionalCharges:
|
|
533
|
+
type: 'integer'
|
|
534
|
+
format: 'double'
|
|
535
|
+
example: 0.00
|
|
536
|
+
originalShippingFee:
|
|
537
|
+
type: 'integer'
|
|
538
|
+
format: 'double'
|
|
539
|
+
example: 0.00
|
|
540
|
+
taxAmount:
|
|
541
|
+
type: 'integer'
|
|
542
|
+
format: 'double'
|
|
543
|
+
example: 0.00
|
|
482
544
|
returnStatus:
|
|
483
545
|
type: 'string'
|
|
484
546
|
example: 'string'
|
|
@@ -510,85 +572,91 @@ paths:
|
|
|
510
572
|
type: 'string'
|
|
511
573
|
required: true
|
|
512
574
|
example: 'string'
|
|
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
|
-
|
|
575
|
+
marketplaceOrderShipping:
|
|
576
|
+
type: 'object'
|
|
577
|
+
required:
|
|
578
|
+
- 'attentionTo'
|
|
579
|
+
- 'address1'
|
|
580
|
+
- 'state'
|
|
581
|
+
- 'city'
|
|
582
|
+
- 'postCode'
|
|
583
|
+
- 'country'
|
|
584
|
+
- 'phone1'
|
|
585
|
+
- 'email'
|
|
586
|
+
properties:
|
|
587
|
+
attentionTo:
|
|
588
|
+
type: 'string'
|
|
589
|
+
required: true
|
|
590
|
+
example: 'string'
|
|
591
|
+
address1:
|
|
592
|
+
type: 'string'
|
|
593
|
+
required: true
|
|
594
|
+
example: 'string'
|
|
595
|
+
address2:
|
|
596
|
+
type: 'string'
|
|
597
|
+
example: 'string'
|
|
598
|
+
address3:
|
|
599
|
+
type: 'string'
|
|
600
|
+
example: 'string'
|
|
601
|
+
address4:
|
|
602
|
+
type: 'string'
|
|
603
|
+
example: 'string'
|
|
604
|
+
address5:
|
|
605
|
+
type: 'string'
|
|
606
|
+
example: 'string'
|
|
607
|
+
billingAddress:
|
|
608
|
+
type: 'string'
|
|
609
|
+
example: 'string'
|
|
610
|
+
state:
|
|
611
|
+
type: 'string'
|
|
612
|
+
required: true
|
|
613
|
+
example: 'string'
|
|
614
|
+
city:
|
|
615
|
+
type: 'string'
|
|
616
|
+
required: true
|
|
617
|
+
example: 'string'
|
|
618
|
+
postCode:
|
|
619
|
+
type: 'string'
|
|
620
|
+
required: true
|
|
621
|
+
example: 'string'
|
|
622
|
+
country:
|
|
623
|
+
type: 'string'
|
|
624
|
+
required: true
|
|
625
|
+
example: 'string'
|
|
626
|
+
phone1:
|
|
627
|
+
type: 'string'
|
|
628
|
+
required: true
|
|
629
|
+
example: 'string'
|
|
630
|
+
phone2:
|
|
631
|
+
type:
|
|
632
|
+
example: 'string'
|
|
633
|
+
email:
|
|
634
|
+
type: 'string'
|
|
635
|
+
required: true
|
|
636
|
+
example: 'string'
|
|
637
|
+
freightType:
|
|
638
|
+
type: 'integer'
|
|
639
|
+
example: 0
|
|
640
|
+
parcelType:
|
|
641
|
+
type: 'integer'
|
|
642
|
+
example: 0
|
|
643
|
+
deliveryMethod:
|
|
644
|
+
type: 'integer'
|
|
645
|
+
example: 0
|
|
646
|
+
totalWeight:
|
|
647
|
+
type: 'integer'
|
|
648
|
+
format: 'double'
|
|
649
|
+
example: 1
|
|
650
|
+
totalVolume:
|
|
651
|
+
type: 'integer'
|
|
652
|
+
format: 'double'
|
|
653
|
+
example: 1
|
|
654
|
+
transporter:
|
|
655
|
+
type: 'string'
|
|
656
|
+
example: 'string'
|
|
657
|
+
trackingNo:
|
|
658
|
+
type: 'string'
|
|
659
|
+
example: 'string'
|
|
592
660
|
responses:
|
|
593
661
|
'200':
|
|
594
662
|
description: 'successful operation'
|
|
@@ -841,3 +909,381 @@ paths:
|
|
|
841
909
|
type: 'array'
|
|
842
910
|
items:
|
|
843
911
|
$ref: '#/definitions/UpdateMarketplaceShippingOrder'
|
|
912
|
+
|
|
913
|
+
# add-marketplace-products
|
|
914
|
+
api/v1/marketplace/add-marketplace-products:
|
|
915
|
+
post:
|
|
916
|
+
tags:
|
|
917
|
+
- 'Marketplace'
|
|
918
|
+
summary: 'Add marketplace product(s).'
|
|
919
|
+
description: 'Add Marketplace Products.'
|
|
920
|
+
operationId: 'addMarketplaceProducts'
|
|
921
|
+
produces:
|
|
922
|
+
- 'application/json'
|
|
923
|
+
parameters:
|
|
924
|
+
- in: 'body'
|
|
925
|
+
name: 'body'
|
|
926
|
+
schema:
|
|
927
|
+
type: 'object'
|
|
928
|
+
properties:
|
|
929
|
+
data:
|
|
930
|
+
type: 'object'
|
|
931
|
+
required:
|
|
932
|
+
- 'storeId'
|
|
933
|
+
- 'itemId'
|
|
934
|
+
- 'marketplaceProducts'
|
|
935
|
+
properties:
|
|
936
|
+
storeId:
|
|
937
|
+
type: 'string'
|
|
938
|
+
required: true
|
|
939
|
+
example: 'BL76D28F'
|
|
940
|
+
marketplaceProducts:
|
|
941
|
+
type: 'array'
|
|
942
|
+
items:
|
|
943
|
+
type: 'object'
|
|
944
|
+
required:
|
|
945
|
+
- 'itemId'
|
|
946
|
+
- 'isku'
|
|
947
|
+
- 'name'
|
|
948
|
+
- 'marketplaceProductVariations'
|
|
949
|
+
properties:
|
|
950
|
+
itemId:
|
|
951
|
+
type: 'string'
|
|
952
|
+
required: true
|
|
953
|
+
example: '0001'
|
|
954
|
+
isku:
|
|
955
|
+
type: 'string'
|
|
956
|
+
required: true
|
|
957
|
+
example: 'SKU0001'
|
|
958
|
+
name:
|
|
959
|
+
type: 'string'
|
|
960
|
+
required: true
|
|
961
|
+
example: 'Product Name'
|
|
962
|
+
marketplaceStatus:
|
|
963
|
+
type: 'string'
|
|
964
|
+
required: false
|
|
965
|
+
example: 'ACTIVE'
|
|
966
|
+
description:
|
|
967
|
+
type: 'string'
|
|
968
|
+
required: false
|
|
969
|
+
example: 'Product Description'
|
|
970
|
+
brand:
|
|
971
|
+
type: 'string'
|
|
972
|
+
requried: false
|
|
973
|
+
example: 'Product Brand'
|
|
974
|
+
type:
|
|
975
|
+
type: 'string'
|
|
976
|
+
required: false
|
|
977
|
+
example: 'Product Type'
|
|
978
|
+
currency:
|
|
979
|
+
type: 'string'
|
|
980
|
+
required: false
|
|
981
|
+
example: 'MYR'
|
|
982
|
+
categoryId:
|
|
983
|
+
type: 'string'
|
|
984
|
+
required: false
|
|
985
|
+
example: 'Product Category'
|
|
986
|
+
condition:
|
|
987
|
+
type: 'string'
|
|
988
|
+
required: false
|
|
989
|
+
example: 'GOOD'
|
|
990
|
+
daysToShip:
|
|
991
|
+
type: 'integer'
|
|
992
|
+
required: false
|
|
993
|
+
example: 1
|
|
994
|
+
discountId:
|
|
995
|
+
type: 'string'
|
|
996
|
+
required: false
|
|
997
|
+
example: ''
|
|
998
|
+
isPreOrder:
|
|
999
|
+
type: 'boolean'
|
|
1000
|
+
required: false
|
|
1001
|
+
example: false
|
|
1002
|
+
marketplaceProductVariations:
|
|
1003
|
+
type: 'array'
|
|
1004
|
+
items:
|
|
1005
|
+
type: 'object'
|
|
1006
|
+
required:
|
|
1007
|
+
- 'variationId'
|
|
1008
|
+
- 'variationSku'
|
|
1009
|
+
- 'name'
|
|
1010
|
+
properties:
|
|
1011
|
+
variationId:
|
|
1012
|
+
type: 'string'
|
|
1013
|
+
required: true
|
|
1014
|
+
example: '0001'
|
|
1015
|
+
variationSku:
|
|
1016
|
+
type: 'string'
|
|
1017
|
+
required: true
|
|
1018
|
+
example: 'Variation SKU'
|
|
1019
|
+
channelSku:
|
|
1020
|
+
type: 'string'
|
|
1021
|
+
required: false
|
|
1022
|
+
example: 'Channel Display SKU'
|
|
1023
|
+
name:
|
|
1024
|
+
type: 'string'
|
|
1025
|
+
required: true
|
|
1026
|
+
example: 'Variation Name'
|
|
1027
|
+
description:
|
|
1028
|
+
type: 'string'
|
|
1029
|
+
required: false
|
|
1030
|
+
example: 'Variation Description'
|
|
1031
|
+
qty:
|
|
1032
|
+
type: 'integer'
|
|
1033
|
+
required: false
|
|
1034
|
+
example: 2
|
|
1035
|
+
type:
|
|
1036
|
+
type: 'string'
|
|
1037
|
+
required: false
|
|
1038
|
+
example: 'Variation Type'
|
|
1039
|
+
mrpPrice:
|
|
1040
|
+
type: 'integer'
|
|
1041
|
+
format: 'double'
|
|
1042
|
+
required: false
|
|
1043
|
+
example: 0.00
|
|
1044
|
+
costPrice:
|
|
1045
|
+
type: 'integer'
|
|
1046
|
+
format: 'double'
|
|
1047
|
+
required: false
|
|
1048
|
+
example: 0.00
|
|
1049
|
+
afterTaxCostPrice:
|
|
1050
|
+
type: 'integer'
|
|
1051
|
+
format: 'double'
|
|
1052
|
+
required: false
|
|
1053
|
+
example: 0.00
|
|
1054
|
+
sellPrice:
|
|
1055
|
+
type: 'integer'
|
|
1056
|
+
format: 'double'
|
|
1057
|
+
required: false
|
|
1058
|
+
example: 0.00
|
|
1059
|
+
afterTaxSalesPrice:
|
|
1060
|
+
type: 'integer'
|
|
1061
|
+
format: 'double'
|
|
1062
|
+
required: false
|
|
1063
|
+
example: 0.00
|
|
1064
|
+
discountId:
|
|
1065
|
+
type: 'string'
|
|
1066
|
+
required: false
|
|
1067
|
+
example: ''
|
|
1068
|
+
status:
|
|
1069
|
+
type: 'string'
|
|
1070
|
+
required: false
|
|
1071
|
+
example: 'ACTIVE'
|
|
1072
|
+
marketplaceStatus:
|
|
1073
|
+
type: 'string'
|
|
1074
|
+
required: false
|
|
1075
|
+
example: 'ACTIVE'
|
|
1076
|
+
primaryUnit:
|
|
1077
|
+
type: 'string'
|
|
1078
|
+
required: false
|
|
1079
|
+
example: 'kg'
|
|
1080
|
+
primaryUnitValue:
|
|
1081
|
+
type: 'integer'
|
|
1082
|
+
format: 'double'
|
|
1083
|
+
required: false
|
|
1084
|
+
example: 0.00
|
|
1085
|
+
inventoryPolicy:
|
|
1086
|
+
type: 'string'
|
|
1087
|
+
required: false
|
|
1088
|
+
example: ''
|
|
1089
|
+
inventoryItemId:
|
|
1090
|
+
type: 'string'
|
|
1091
|
+
required: false
|
|
1092
|
+
example: ''
|
|
1093
|
+
locationId:
|
|
1094
|
+
type: 'string'
|
|
1095
|
+
required: false
|
|
1096
|
+
example: ''
|
|
1097
|
+
responses:
|
|
1098
|
+
'200':
|
|
1099
|
+
description: 'successful operation'
|
|
1100
|
+
content:
|
|
1101
|
+
application/json:
|
|
1102
|
+
schema:
|
|
1103
|
+
type: 'array'
|
|
1104
|
+
items:
|
|
1105
|
+
$ref: '#/definitions/AddMarketplaceProducts'
|
|
1106
|
+
|
|
1107
|
+
# update-marketplace-product
|
|
1108
|
+
api/v1/marketplace/update-marketplace-product:
|
|
1109
|
+
post:
|
|
1110
|
+
tags:
|
|
1111
|
+
- 'Marketplace'
|
|
1112
|
+
summary: 'Update marketplace product.'
|
|
1113
|
+
description: 'Update Marketplace Product.'
|
|
1114
|
+
operationId: 'updateMarketplaceProduct'
|
|
1115
|
+
produces:
|
|
1116
|
+
- 'application/json'
|
|
1117
|
+
parameters:
|
|
1118
|
+
- in: 'body'
|
|
1119
|
+
name: 'body'
|
|
1120
|
+
schema:
|
|
1121
|
+
type: 'object'
|
|
1122
|
+
properties:
|
|
1123
|
+
data:
|
|
1124
|
+
type: 'object'
|
|
1125
|
+
required:
|
|
1126
|
+
- 'storeId'
|
|
1127
|
+
- 'itemId'
|
|
1128
|
+
properties:
|
|
1129
|
+
storeId:
|
|
1130
|
+
type: 'string'
|
|
1131
|
+
required: true
|
|
1132
|
+
example: 'BL76D28F'
|
|
1133
|
+
itemId:
|
|
1134
|
+
type: 'string'
|
|
1135
|
+
required: true
|
|
1136
|
+
example: '0001'
|
|
1137
|
+
isku:
|
|
1138
|
+
type: 'string'
|
|
1139
|
+
required: true
|
|
1140
|
+
example: 'SKU0001'
|
|
1141
|
+
name:
|
|
1142
|
+
type: 'string'
|
|
1143
|
+
required: true
|
|
1144
|
+
example: 'Product Name'
|
|
1145
|
+
marketplaceStatus:
|
|
1146
|
+
type: 'string'
|
|
1147
|
+
required: false
|
|
1148
|
+
example: 'ACTIVE'
|
|
1149
|
+
description:
|
|
1150
|
+
type: 'string'
|
|
1151
|
+
required: false
|
|
1152
|
+
example: 'Product Description'
|
|
1153
|
+
brand:
|
|
1154
|
+
type: 'string'
|
|
1155
|
+
requried: false
|
|
1156
|
+
example: 'Product Brand'
|
|
1157
|
+
type:
|
|
1158
|
+
type: 'string'
|
|
1159
|
+
required: false
|
|
1160
|
+
example: 'Product Type'
|
|
1161
|
+
currency:
|
|
1162
|
+
type: 'string'
|
|
1163
|
+
required: false
|
|
1164
|
+
example: 'MYR'
|
|
1165
|
+
categoryId:
|
|
1166
|
+
type: 'string'
|
|
1167
|
+
required: false
|
|
1168
|
+
example: 'Product Category'
|
|
1169
|
+
condition:
|
|
1170
|
+
type: 'string'
|
|
1171
|
+
required: false
|
|
1172
|
+
example: 'GOOD'
|
|
1173
|
+
daysToShip:
|
|
1174
|
+
type: 'integer'
|
|
1175
|
+
required: false
|
|
1176
|
+
example: 1
|
|
1177
|
+
discountId:
|
|
1178
|
+
type: 'string'
|
|
1179
|
+
required: false
|
|
1180
|
+
example: ''
|
|
1181
|
+
isPreOrder:
|
|
1182
|
+
type: 'boolean'
|
|
1183
|
+
required: false
|
|
1184
|
+
example: false
|
|
1185
|
+
marketplaceProductVariations:
|
|
1186
|
+
type: 'array'
|
|
1187
|
+
items:
|
|
1188
|
+
type: 'object'
|
|
1189
|
+
required:
|
|
1190
|
+
- 'variationId'
|
|
1191
|
+
- 'variationSku'
|
|
1192
|
+
- 'name'
|
|
1193
|
+
properties:
|
|
1194
|
+
variationId:
|
|
1195
|
+
type: 'string'
|
|
1196
|
+
required: true
|
|
1197
|
+
example: '0001'
|
|
1198
|
+
variationSku:
|
|
1199
|
+
type: 'string'
|
|
1200
|
+
required: true
|
|
1201
|
+
example: 'Variation SKU'
|
|
1202
|
+
channelSku:
|
|
1203
|
+
type: 'string'
|
|
1204
|
+
required: false
|
|
1205
|
+
example: 'Channel Display SKU'
|
|
1206
|
+
name:
|
|
1207
|
+
type: 'string'
|
|
1208
|
+
required: true
|
|
1209
|
+
example: 'Variation Name'
|
|
1210
|
+
description:
|
|
1211
|
+
type: 'string'
|
|
1212
|
+
required: false
|
|
1213
|
+
example: 'Variation Description'
|
|
1214
|
+
qty:
|
|
1215
|
+
type: 'integer'
|
|
1216
|
+
required: false
|
|
1217
|
+
example: 2
|
|
1218
|
+
type:
|
|
1219
|
+
type: 'string'
|
|
1220
|
+
required: false
|
|
1221
|
+
example: 'Variation Type'
|
|
1222
|
+
mrpPrice:
|
|
1223
|
+
type: 'integer'
|
|
1224
|
+
format: 'double'
|
|
1225
|
+
required: false
|
|
1226
|
+
example: 0.00
|
|
1227
|
+
costPrice:
|
|
1228
|
+
type: 'integer'
|
|
1229
|
+
format: 'double'
|
|
1230
|
+
required: false
|
|
1231
|
+
example: 0.00
|
|
1232
|
+
afterTaxCostPrice:
|
|
1233
|
+
type: 'integer'
|
|
1234
|
+
format: 'double'
|
|
1235
|
+
required: false
|
|
1236
|
+
example: 0.00
|
|
1237
|
+
sellPrice:
|
|
1238
|
+
type: 'integer'
|
|
1239
|
+
format: 'double'
|
|
1240
|
+
required: false
|
|
1241
|
+
example: 0.00
|
|
1242
|
+
afterTaxSalesPrice:
|
|
1243
|
+
type: 'integer'
|
|
1244
|
+
format: 'double'
|
|
1245
|
+
required: false
|
|
1246
|
+
example: 0.00
|
|
1247
|
+
discountId:
|
|
1248
|
+
type: 'string'
|
|
1249
|
+
required: false
|
|
1250
|
+
example: ''
|
|
1251
|
+
status:
|
|
1252
|
+
type: 'string'
|
|
1253
|
+
required: false
|
|
1254
|
+
example: 'ACTIVE'
|
|
1255
|
+
marketplaceStatus:
|
|
1256
|
+
type: 'string'
|
|
1257
|
+
required: false
|
|
1258
|
+
example: 'ACTIVE'
|
|
1259
|
+
primaryUnit:
|
|
1260
|
+
type: 'string'
|
|
1261
|
+
required: false
|
|
1262
|
+
example: 'kg'
|
|
1263
|
+
primaryUnitValue:
|
|
1264
|
+
type: 'integer'
|
|
1265
|
+
format: 'double'
|
|
1266
|
+
required: false
|
|
1267
|
+
example: 0.00
|
|
1268
|
+
inventoryPolicy:
|
|
1269
|
+
type: 'string'
|
|
1270
|
+
required: false
|
|
1271
|
+
example: ''
|
|
1272
|
+
inventoryItemId:
|
|
1273
|
+
type: 'string'
|
|
1274
|
+
required: false
|
|
1275
|
+
example: ''
|
|
1276
|
+
locationId:
|
|
1277
|
+
type: 'string'
|
|
1278
|
+
required: false
|
|
1279
|
+
example: ''
|
|
1280
|
+
|
|
1281
|
+
responses:
|
|
1282
|
+
'200':
|
|
1283
|
+
description: 'successful operation'
|
|
1284
|
+
content:
|
|
1285
|
+
application/json:
|
|
1286
|
+
schema:
|
|
1287
|
+
type: 'array'
|
|
1288
|
+
items:
|
|
1289
|
+
$ref: '#/definitions/UpdateMarketplaceProduct'
|