@redotech/redo-api-schema 2.2.101 → 2.2.110
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/lib/openapi.d.ts +236 -3
- package/lib/openapi.yaml +336 -0
- package/package.json +1 -1
package/lib/openapi.d.ts
CHANGED
|
@@ -70,6 +70,20 @@ export interface paths {
|
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
|
+
"/shipments/buy": {
|
|
74
|
+
/**
|
|
75
|
+
* Purchase shipping label
|
|
76
|
+
* @description Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
|
|
77
|
+
*/
|
|
78
|
+
post: operations["Shipment buy"];
|
|
79
|
+
};
|
|
80
|
+
"/shipments/rates": {
|
|
81
|
+
/**
|
|
82
|
+
* Get shipping rates
|
|
83
|
+
* @description Get available shipping rates based on origin, destination, and parcel information.
|
|
84
|
+
*/
|
|
85
|
+
post: operations["Shipment rates"];
|
|
86
|
+
};
|
|
73
87
|
"/stores/{storeId}/admin": {
|
|
74
88
|
/**
|
|
75
89
|
* Navigate to merchant admin
|
|
@@ -365,6 +379,23 @@ export interface components {
|
|
|
365
379
|
* @example 1
|
|
366
380
|
*/
|
|
367
381
|
"item-quantity.schema": number;
|
|
382
|
+
/**
|
|
383
|
+
* Length
|
|
384
|
+
* @description Length measurement with unit.
|
|
385
|
+
*/
|
|
386
|
+
"length.schema": {
|
|
387
|
+
/**
|
|
388
|
+
* Unit
|
|
389
|
+
* @description Length unit
|
|
390
|
+
* @enum {string}
|
|
391
|
+
*/
|
|
392
|
+
unit: "in" | "cm";
|
|
393
|
+
/**
|
|
394
|
+
* Value
|
|
395
|
+
* @description Numeric length value
|
|
396
|
+
*/
|
|
397
|
+
value: number;
|
|
398
|
+
};
|
|
368
399
|
/**
|
|
369
400
|
* Money
|
|
370
401
|
* @description Currency amount
|
|
@@ -438,6 +469,23 @@ export interface components {
|
|
|
438
469
|
*/
|
|
439
470
|
name: string;
|
|
440
471
|
};
|
|
472
|
+
/**
|
|
473
|
+
* Parcel Type
|
|
474
|
+
* @description Parcel type enum.
|
|
475
|
+
* @enum {string}
|
|
476
|
+
*/
|
|
477
|
+
"parcel-type.schema": "box" | "envelope" | "soft_pack";
|
|
478
|
+
/**
|
|
479
|
+
* Parcel
|
|
480
|
+
* @description Parcel information for shipping.
|
|
481
|
+
*/
|
|
482
|
+
"parcel.schema": {
|
|
483
|
+
height: components["schemas"]["length.schema"];
|
|
484
|
+
length: components["schemas"]["length.schema"];
|
|
485
|
+
type: components["schemas"]["parcel-type.schema"];
|
|
486
|
+
weight: components["schemas"]["shipping-weight.schema"];
|
|
487
|
+
width: components["schemas"]["length.schema"];
|
|
488
|
+
};
|
|
441
489
|
/**
|
|
442
490
|
* Person name
|
|
443
491
|
* @description Person name.
|
|
@@ -690,6 +738,113 @@ export interface components {
|
|
|
690
738
|
* @enum {string}
|
|
691
739
|
*/
|
|
692
740
|
"return-status.schema": "manual_review" | "open" | "transit" | "delivered" | "flagged" | "cancelled" | "closed";
|
|
741
|
+
/**
|
|
742
|
+
* Shipment Document Type
|
|
743
|
+
* @description Type of shipping document.
|
|
744
|
+
* @enum {string}
|
|
745
|
+
*/
|
|
746
|
+
"shipment-document-type.schema": "label" | "commercialInvoice";
|
|
747
|
+
/**
|
|
748
|
+
* Shipment Document
|
|
749
|
+
* @description Shipping document information.
|
|
750
|
+
*/
|
|
751
|
+
"shipment-document.schema": {
|
|
752
|
+
type: components["schemas"]["shipment-document-type.schema"];
|
|
753
|
+
/**
|
|
754
|
+
* URL
|
|
755
|
+
* Format: uri
|
|
756
|
+
* @description URL to download the document
|
|
757
|
+
*/
|
|
758
|
+
url: string;
|
|
759
|
+
};
|
|
760
|
+
/**
|
|
761
|
+
* Shipment Rate
|
|
762
|
+
* @description Shipping rate information.
|
|
763
|
+
*/
|
|
764
|
+
"shipment-rate.schema": {
|
|
765
|
+
carrier: {
|
|
766
|
+
/**
|
|
767
|
+
* Carrier Account ID
|
|
768
|
+
* @description ID for the carrier account that provides the shipping rate.
|
|
769
|
+
*/
|
|
770
|
+
id: string;
|
|
771
|
+
/**
|
|
772
|
+
* Carrier Name
|
|
773
|
+
* @description Carrier display name
|
|
774
|
+
*/
|
|
775
|
+
name: string;
|
|
776
|
+
};
|
|
777
|
+
price: components["schemas"]["money.schema"];
|
|
778
|
+
service: {
|
|
779
|
+
/**
|
|
780
|
+
* Service Name
|
|
781
|
+
* @description Service level name
|
|
782
|
+
*/
|
|
783
|
+
name: string;
|
|
784
|
+
};
|
|
785
|
+
};
|
|
786
|
+
/**
|
|
787
|
+
* Shipment Tracker
|
|
788
|
+
* @description Shipment tracking information.
|
|
789
|
+
*/
|
|
790
|
+
"shipment-tracker.schema": {
|
|
791
|
+
/**
|
|
792
|
+
* Tracking Code
|
|
793
|
+
* @description Carrier tracking code
|
|
794
|
+
*/
|
|
795
|
+
code: string;
|
|
796
|
+
};
|
|
797
|
+
/**
|
|
798
|
+
* Shipment
|
|
799
|
+
* @description Shipment information.
|
|
800
|
+
*/
|
|
801
|
+
"shipment.schema": {
|
|
802
|
+
/**
|
|
803
|
+
* Documents
|
|
804
|
+
* @description Shipping documents
|
|
805
|
+
*/
|
|
806
|
+
documents: components["schemas"]["shipment-document.schema"][];
|
|
807
|
+
/**
|
|
808
|
+
* Shipment ID
|
|
809
|
+
* @description Shipment identifier
|
|
810
|
+
*/
|
|
811
|
+
id: string;
|
|
812
|
+
tracker: components["schemas"]["shipment-tracker.schema"];
|
|
813
|
+
};
|
|
814
|
+
/**
|
|
815
|
+
* Shipping Contact
|
|
816
|
+
* @description Contact information for shipping.
|
|
817
|
+
*/
|
|
818
|
+
"shipping-contact.schema": {
|
|
819
|
+
address: components["schemas"]["address.schema"];
|
|
820
|
+
/**
|
|
821
|
+
* Name
|
|
822
|
+
* @description Contact name
|
|
823
|
+
*/
|
|
824
|
+
name: string;
|
|
825
|
+
/**
|
|
826
|
+
* Phone Number
|
|
827
|
+
* @description Contact phone number
|
|
828
|
+
*/
|
|
829
|
+
phoneNumber: string;
|
|
830
|
+
};
|
|
831
|
+
/**
|
|
832
|
+
* Shipping Weight
|
|
833
|
+
* @description Weight measurement with unit for shipping.
|
|
834
|
+
*/
|
|
835
|
+
"shipping-weight.schema": {
|
|
836
|
+
/**
|
|
837
|
+
* Unit
|
|
838
|
+
* @description Weight unit
|
|
839
|
+
* @enum {string}
|
|
840
|
+
*/
|
|
841
|
+
unit: "g" | "kg" | "oz" | "lb";
|
|
842
|
+
/**
|
|
843
|
+
* Value
|
|
844
|
+
* @description Numeric weight value
|
|
845
|
+
*/
|
|
846
|
+
value: number;
|
|
847
|
+
};
|
|
693
848
|
/**
|
|
694
849
|
* Storefront Cart
|
|
695
850
|
* @description Storefront cart.
|
|
@@ -720,11 +875,11 @@ export interface components {
|
|
|
720
875
|
* Price
|
|
721
876
|
* @description Total price.
|
|
722
877
|
*/
|
|
723
|
-
priceTotal
|
|
878
|
+
priceTotal: components["schemas"]["money.schema"];
|
|
724
879
|
/** @description Product. */
|
|
725
880
|
product: {
|
|
726
881
|
/** ID */
|
|
727
|
-
id
|
|
882
|
+
id: string;
|
|
728
883
|
};
|
|
729
884
|
/**
|
|
730
885
|
* Quantity
|
|
@@ -734,7 +889,7 @@ export interface components {
|
|
|
734
889
|
/** @description Variant. */
|
|
735
890
|
variant: {
|
|
736
891
|
/** ID */
|
|
737
|
-
id
|
|
892
|
+
id: string;
|
|
738
893
|
};
|
|
739
894
|
}[];
|
|
740
895
|
/**
|
|
@@ -1090,6 +1245,84 @@ export interface operations {
|
|
|
1090
1245
|
};
|
|
1091
1246
|
};
|
|
1092
1247
|
};
|
|
1248
|
+
/**
|
|
1249
|
+
* Purchase shipping label
|
|
1250
|
+
* @description Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
|
|
1251
|
+
*/
|
|
1252
|
+
"Shipment buy": {
|
|
1253
|
+
requestBody: {
|
|
1254
|
+
content: {
|
|
1255
|
+
"application/json": {
|
|
1256
|
+
carrier: {
|
|
1257
|
+
/**
|
|
1258
|
+
* Carrier Account ID
|
|
1259
|
+
* @description ID for the carrier account that provides the shipping rate.
|
|
1260
|
+
*/
|
|
1261
|
+
id: string;
|
|
1262
|
+
};
|
|
1263
|
+
destination: components["schemas"]["shipping-contact.schema"];
|
|
1264
|
+
origin: components["schemas"]["shipping-contact.schema"];
|
|
1265
|
+
parcel: components["schemas"]["parcel.schema"];
|
|
1266
|
+
service: {
|
|
1267
|
+
/** @description Service level name */
|
|
1268
|
+
name: string;
|
|
1269
|
+
};
|
|
1270
|
+
};
|
|
1271
|
+
};
|
|
1272
|
+
};
|
|
1273
|
+
responses: {
|
|
1274
|
+
/** @description Success */
|
|
1275
|
+
200: {
|
|
1276
|
+
content: {
|
|
1277
|
+
"application/json": {
|
|
1278
|
+
shipment: components["schemas"]["shipment.schema"];
|
|
1279
|
+
};
|
|
1280
|
+
};
|
|
1281
|
+
};
|
|
1282
|
+
/** @description Error */
|
|
1283
|
+
default: {
|
|
1284
|
+
content: {
|
|
1285
|
+
"application/problem+json": components["schemas"]["error.schema"];
|
|
1286
|
+
};
|
|
1287
|
+
};
|
|
1288
|
+
};
|
|
1289
|
+
};
|
|
1290
|
+
/**
|
|
1291
|
+
* Get shipping rates
|
|
1292
|
+
* @description Get available shipping rates based on origin, destination, and parcel information.
|
|
1293
|
+
*/
|
|
1294
|
+
"Shipment rates": {
|
|
1295
|
+
requestBody: {
|
|
1296
|
+
content: {
|
|
1297
|
+
"application/json": {
|
|
1298
|
+
destination: {
|
|
1299
|
+
address: components["schemas"]["address.schema"];
|
|
1300
|
+
};
|
|
1301
|
+
origin: {
|
|
1302
|
+
address: components["schemas"]["address.schema"];
|
|
1303
|
+
};
|
|
1304
|
+
parcel: components["schemas"]["parcel.schema"];
|
|
1305
|
+
};
|
|
1306
|
+
};
|
|
1307
|
+
};
|
|
1308
|
+
responses: {
|
|
1309
|
+
/** @description Success */
|
|
1310
|
+
200: {
|
|
1311
|
+
content: {
|
|
1312
|
+
"application/json": {
|
|
1313
|
+
/** @description Available shipping rates */
|
|
1314
|
+
rates: components["schemas"]["shipment-rate.schema"][];
|
|
1315
|
+
};
|
|
1316
|
+
};
|
|
1317
|
+
};
|
|
1318
|
+
/** @description Error */
|
|
1319
|
+
default: {
|
|
1320
|
+
content: {
|
|
1321
|
+
"application/problem+json": components["schemas"]["error.schema"];
|
|
1322
|
+
};
|
|
1323
|
+
};
|
|
1324
|
+
};
|
|
1325
|
+
};
|
|
1093
1326
|
/**
|
|
1094
1327
|
* Navigate to merchant admin
|
|
1095
1328
|
* @description Navigate to the merchant admin page.
|
package/lib/openapi.yaml
CHANGED
|
@@ -283,6 +283,32 @@ components:
|
|
|
283
283
|
exclusiveMinimum: 0
|
|
284
284
|
title: Item quantity
|
|
285
285
|
type: number
|
|
286
|
+
length.schema:
|
|
287
|
+
description: Length measurement with unit.
|
|
288
|
+
properties:
|
|
289
|
+
unit:
|
|
290
|
+
description: Length unit
|
|
291
|
+
enum:
|
|
292
|
+
- in
|
|
293
|
+
- cm
|
|
294
|
+
examples:
|
|
295
|
+
- in
|
|
296
|
+
- cm
|
|
297
|
+
title: Unit
|
|
298
|
+
type: string
|
|
299
|
+
value:
|
|
300
|
+
description: Numeric length value
|
|
301
|
+
examples:
|
|
302
|
+
- 10.5
|
|
303
|
+
- 30
|
|
304
|
+
minimum: 0
|
|
305
|
+
title: Value
|
|
306
|
+
type: number
|
|
307
|
+
required:
|
|
308
|
+
- value
|
|
309
|
+
- unit
|
|
310
|
+
title: Length
|
|
311
|
+
type: object
|
|
286
312
|
money.schema:
|
|
287
313
|
description: Currency amount
|
|
288
314
|
properties:
|
|
@@ -383,6 +409,35 @@ components:
|
|
|
383
409
|
- name
|
|
384
410
|
title: Order
|
|
385
411
|
type: object
|
|
412
|
+
parcel-type.schema:
|
|
413
|
+
description: Parcel type enum.
|
|
414
|
+
enum:
|
|
415
|
+
- box
|
|
416
|
+
- envelope
|
|
417
|
+
- soft_pack
|
|
418
|
+
title: Parcel Type
|
|
419
|
+
type: string
|
|
420
|
+
parcel.schema:
|
|
421
|
+
description: Parcel information for shipping.
|
|
422
|
+
properties:
|
|
423
|
+
height:
|
|
424
|
+
$ref: '#/components/schemas/length.schema'
|
|
425
|
+
length:
|
|
426
|
+
$ref: '#/components/schemas/length.schema'
|
|
427
|
+
type:
|
|
428
|
+
$ref: '#/components/schemas/parcel-type.schema'
|
|
429
|
+
weight:
|
|
430
|
+
$ref: '#/components/schemas/shipping-weight.schema'
|
|
431
|
+
width:
|
|
432
|
+
$ref: '#/components/schemas/length.schema'
|
|
433
|
+
required:
|
|
434
|
+
- height
|
|
435
|
+
- length
|
|
436
|
+
- width
|
|
437
|
+
- weight
|
|
438
|
+
- type
|
|
439
|
+
title: Parcel
|
|
440
|
+
type: object
|
|
386
441
|
person-name.schema:
|
|
387
442
|
description: Person name.
|
|
388
443
|
properties:
|
|
@@ -707,6 +762,155 @@ components:
|
|
|
707
762
|
example: open
|
|
708
763
|
title: Return status
|
|
709
764
|
type: string
|
|
765
|
+
shipment-document-type.schema:
|
|
766
|
+
description: Type of shipping document.
|
|
767
|
+
enum:
|
|
768
|
+
- label
|
|
769
|
+
- commercialInvoice
|
|
770
|
+
title: Shipment Document Type
|
|
771
|
+
type: string
|
|
772
|
+
shipment-document.schema:
|
|
773
|
+
description: Shipping document information.
|
|
774
|
+
properties:
|
|
775
|
+
type:
|
|
776
|
+
$ref: '#/components/schemas/shipment-document-type.schema'
|
|
777
|
+
url:
|
|
778
|
+
description: URL to download the document
|
|
779
|
+
examples:
|
|
780
|
+
- https://example.com/labels/123.pdf
|
|
781
|
+
format: uri
|
|
782
|
+
title: URL
|
|
783
|
+
type: string
|
|
784
|
+
required:
|
|
785
|
+
- type
|
|
786
|
+
- url
|
|
787
|
+
title: Shipment Document
|
|
788
|
+
type: object
|
|
789
|
+
shipment-rate.schema:
|
|
790
|
+
description: Shipping rate information.
|
|
791
|
+
properties:
|
|
792
|
+
carrier:
|
|
793
|
+
properties:
|
|
794
|
+
id:
|
|
795
|
+
description: ID for the carrier account that provides the shipping rate.
|
|
796
|
+
title: Carrier Account ID
|
|
797
|
+
type: string
|
|
798
|
+
name:
|
|
799
|
+
description: Carrier display name
|
|
800
|
+
examples:
|
|
801
|
+
- USPS
|
|
802
|
+
- FedEx
|
|
803
|
+
title: Carrier Name
|
|
804
|
+
type: string
|
|
805
|
+
required:
|
|
806
|
+
- id
|
|
807
|
+
- name
|
|
808
|
+
type: object
|
|
809
|
+
price:
|
|
810
|
+
$ref: '#/components/schemas/money.schema'
|
|
811
|
+
service:
|
|
812
|
+
properties:
|
|
813
|
+
name:
|
|
814
|
+
description: Service level name
|
|
815
|
+
examples:
|
|
816
|
+
- Priority
|
|
817
|
+
- Ground
|
|
818
|
+
title: Service Name
|
|
819
|
+
type: string
|
|
820
|
+
required:
|
|
821
|
+
- name
|
|
822
|
+
type: object
|
|
823
|
+
required:
|
|
824
|
+
- carrier
|
|
825
|
+
- price
|
|
826
|
+
- service
|
|
827
|
+
title: Shipment Rate
|
|
828
|
+
type: object
|
|
829
|
+
shipment-tracker.schema:
|
|
830
|
+
description: Shipment tracking information.
|
|
831
|
+
properties:
|
|
832
|
+
code:
|
|
833
|
+
description: Carrier tracking code
|
|
834
|
+
examples:
|
|
835
|
+
- '9400100000000000000000'
|
|
836
|
+
title: Tracking Code
|
|
837
|
+
type: string
|
|
838
|
+
required:
|
|
839
|
+
- code
|
|
840
|
+
title: Shipment Tracker
|
|
841
|
+
type: object
|
|
842
|
+
shipment.schema:
|
|
843
|
+
description: Shipment information.
|
|
844
|
+
properties:
|
|
845
|
+
documents:
|
|
846
|
+
description: Shipping documents
|
|
847
|
+
items:
|
|
848
|
+
$ref: '#/components/schemas/shipment-document.schema'
|
|
849
|
+
title: Documents
|
|
850
|
+
type: array
|
|
851
|
+
id:
|
|
852
|
+
description: Shipment identifier
|
|
853
|
+
title: Shipment ID
|
|
854
|
+
type: string
|
|
855
|
+
tracker:
|
|
856
|
+
$ref: '#/components/schemas/shipment-tracker.schema'
|
|
857
|
+
required:
|
|
858
|
+
- id
|
|
859
|
+
- documents
|
|
860
|
+
- tracker
|
|
861
|
+
title: Shipment
|
|
862
|
+
type: object
|
|
863
|
+
shipping-contact.schema:
|
|
864
|
+
description: Contact information for shipping.
|
|
865
|
+
properties:
|
|
866
|
+
address:
|
|
867
|
+
$ref: '#/components/schemas/address.schema'
|
|
868
|
+
name:
|
|
869
|
+
description: Contact name
|
|
870
|
+
examples:
|
|
871
|
+
- John Doe
|
|
872
|
+
title: Name
|
|
873
|
+
type: string
|
|
874
|
+
phoneNumber:
|
|
875
|
+
description: Contact phone number
|
|
876
|
+
examples:
|
|
877
|
+
- '+12025550123'
|
|
878
|
+
title: Phone Number
|
|
879
|
+
type: string
|
|
880
|
+
required:
|
|
881
|
+
- name
|
|
882
|
+
- phoneNumber
|
|
883
|
+
- address
|
|
884
|
+
title: Shipping Contact
|
|
885
|
+
type: object
|
|
886
|
+
shipping-weight.schema:
|
|
887
|
+
description: Weight measurement with unit for shipping.
|
|
888
|
+
properties:
|
|
889
|
+
unit:
|
|
890
|
+
description: Weight unit
|
|
891
|
+
enum:
|
|
892
|
+
- g
|
|
893
|
+
- kg
|
|
894
|
+
- oz
|
|
895
|
+
- lb
|
|
896
|
+
examples:
|
|
897
|
+
- lb
|
|
898
|
+
- kg
|
|
899
|
+
title: Unit
|
|
900
|
+
type: string
|
|
901
|
+
value:
|
|
902
|
+
description: Numeric weight value
|
|
903
|
+
examples:
|
|
904
|
+
- 1.5
|
|
905
|
+
- 10
|
|
906
|
+
minimum: 0
|
|
907
|
+
title: Value
|
|
908
|
+
type: number
|
|
909
|
+
required:
|
|
910
|
+
- value
|
|
911
|
+
- unit
|
|
912
|
+
title: Shipping Weight
|
|
913
|
+
type: object
|
|
710
914
|
storefront-cart.schema:
|
|
711
915
|
description: Storefront cart.
|
|
712
916
|
properties:
|
|
@@ -748,6 +952,8 @@ components:
|
|
|
748
952
|
id:
|
|
749
953
|
title: ID
|
|
750
954
|
type: string
|
|
955
|
+
required:
|
|
956
|
+
- id
|
|
751
957
|
type: object
|
|
752
958
|
quantity:
|
|
753
959
|
description: Quantity.
|
|
@@ -759,12 +965,15 @@ components:
|
|
|
759
965
|
id:
|
|
760
966
|
title: ID
|
|
761
967
|
type: string
|
|
968
|
+
required:
|
|
969
|
+
- id
|
|
762
970
|
type: object
|
|
763
971
|
required:
|
|
764
972
|
- id
|
|
765
973
|
- quantity
|
|
766
974
|
- product
|
|
767
975
|
- variant
|
|
976
|
+
- priceTotal
|
|
768
977
|
type: object
|
|
769
978
|
title: Line items
|
|
770
979
|
type: array
|
|
@@ -1145,6 +1354,133 @@ paths:
|
|
|
1145
1354
|
tags:
|
|
1146
1355
|
- Returns
|
|
1147
1356
|
summary: Return status
|
|
1357
|
+
/shipments/buy:
|
|
1358
|
+
description: Purchase a shipping label.
|
|
1359
|
+
post:
|
|
1360
|
+
description: Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
|
|
1361
|
+
operationId: Shipment buy
|
|
1362
|
+
requestBody:
|
|
1363
|
+
content:
|
|
1364
|
+
application/json:
|
|
1365
|
+
schema:
|
|
1366
|
+
properties:
|
|
1367
|
+
carrier:
|
|
1368
|
+
properties:
|
|
1369
|
+
id:
|
|
1370
|
+
description: ID for the carrier account that provides the shipping rate.
|
|
1371
|
+
title: Carrier Account ID
|
|
1372
|
+
type: string
|
|
1373
|
+
required:
|
|
1374
|
+
- id
|
|
1375
|
+
type: object
|
|
1376
|
+
destination:
|
|
1377
|
+
$ref: '#/components/schemas/shipping-contact.schema'
|
|
1378
|
+
origin:
|
|
1379
|
+
$ref: '#/components/schemas/shipping-contact.schema'
|
|
1380
|
+
parcel:
|
|
1381
|
+
$ref: '#/components/schemas/parcel.schema'
|
|
1382
|
+
service:
|
|
1383
|
+
properties:
|
|
1384
|
+
name:
|
|
1385
|
+
description: Service level name
|
|
1386
|
+
examples:
|
|
1387
|
+
- Priority
|
|
1388
|
+
- Ground
|
|
1389
|
+
type: string
|
|
1390
|
+
required:
|
|
1391
|
+
- name
|
|
1392
|
+
type: object
|
|
1393
|
+
required:
|
|
1394
|
+
- origin
|
|
1395
|
+
- destination
|
|
1396
|
+
- carrier
|
|
1397
|
+
- service
|
|
1398
|
+
- parcel
|
|
1399
|
+
type: object
|
|
1400
|
+
required: true
|
|
1401
|
+
responses:
|
|
1402
|
+
'200':
|
|
1403
|
+
content:
|
|
1404
|
+
application/json:
|
|
1405
|
+
schema:
|
|
1406
|
+
properties:
|
|
1407
|
+
shipment:
|
|
1408
|
+
$ref: '#/components/schemas/shipment.schema'
|
|
1409
|
+
required:
|
|
1410
|
+
- shipment
|
|
1411
|
+
type: object
|
|
1412
|
+
description: Success
|
|
1413
|
+
default:
|
|
1414
|
+
content:
|
|
1415
|
+
application/problem+json:
|
|
1416
|
+
schema:
|
|
1417
|
+
$ref: '#/components/schemas/error.schema'
|
|
1418
|
+
description: Error
|
|
1419
|
+
security:
|
|
1420
|
+
- Bearer: []
|
|
1421
|
+
summary: Purchase shipping label
|
|
1422
|
+
tags:
|
|
1423
|
+
- Shipping
|
|
1424
|
+
summary: Shipment Buy
|
|
1425
|
+
/shipments/rates:
|
|
1426
|
+
description: Fetch available shipping label rates.
|
|
1427
|
+
post:
|
|
1428
|
+
description: Get available shipping rates based on origin, destination, and parcel information.
|
|
1429
|
+
operationId: Shipment rates
|
|
1430
|
+
requestBody:
|
|
1431
|
+
content:
|
|
1432
|
+
application/json:
|
|
1433
|
+
schema:
|
|
1434
|
+
properties:
|
|
1435
|
+
destination:
|
|
1436
|
+
properties:
|
|
1437
|
+
address:
|
|
1438
|
+
$ref: '#/components/schemas/address.schema'
|
|
1439
|
+
required:
|
|
1440
|
+
- address
|
|
1441
|
+
type: object
|
|
1442
|
+
origin:
|
|
1443
|
+
properties:
|
|
1444
|
+
address:
|
|
1445
|
+
$ref: '#/components/schemas/address.schema'
|
|
1446
|
+
required:
|
|
1447
|
+
- address
|
|
1448
|
+
type: object
|
|
1449
|
+
parcel:
|
|
1450
|
+
$ref: '#/components/schemas/parcel.schema'
|
|
1451
|
+
required:
|
|
1452
|
+
- origin
|
|
1453
|
+
- destination
|
|
1454
|
+
- parcel
|
|
1455
|
+
type: object
|
|
1456
|
+
required: true
|
|
1457
|
+
responses:
|
|
1458
|
+
'200':
|
|
1459
|
+
content:
|
|
1460
|
+
application/json:
|
|
1461
|
+
schema:
|
|
1462
|
+
properties:
|
|
1463
|
+
rates:
|
|
1464
|
+
description: Available shipping rates
|
|
1465
|
+
items:
|
|
1466
|
+
$ref: '#/components/schemas/shipment-rate.schema'
|
|
1467
|
+
type: array
|
|
1468
|
+
required:
|
|
1469
|
+
- rates
|
|
1470
|
+
type: object
|
|
1471
|
+
description: Success
|
|
1472
|
+
default:
|
|
1473
|
+
content:
|
|
1474
|
+
application/problem+json:
|
|
1475
|
+
schema:
|
|
1476
|
+
$ref: '#/components/schemas/error.schema'
|
|
1477
|
+
description: Error
|
|
1478
|
+
security:
|
|
1479
|
+
- Bearer: []
|
|
1480
|
+
summary: Get shipping rates
|
|
1481
|
+
tags:
|
|
1482
|
+
- Shipping
|
|
1483
|
+
summary: Shipment Rates
|
|
1148
1484
|
/stores/{storeId}/admin:
|
|
1149
1485
|
description: Navigate to the merchant admin page.
|
|
1150
1486
|
get:
|
package/package.json
CHANGED