@redotech/redo-api-schema 2.2.112 → 2.2.116
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 +156 -92
- package/lib/openapi.yaml +180 -127
- package/package.json +1 -1
package/lib/openapi.d.ts
CHANGED
|
@@ -70,20 +70,6 @@ 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
|
-
};
|
|
87
73
|
"/stores/{storeId}/admin": {
|
|
88
74
|
/**
|
|
89
75
|
* Navigate to merchant admin
|
|
@@ -138,6 +124,42 @@ export interface paths {
|
|
|
138
124
|
};
|
|
139
125
|
};
|
|
140
126
|
};
|
|
127
|
+
"/stores/{storeId}/shipments/{shipmentId}/documents/{documentType}": {
|
|
128
|
+
/**
|
|
129
|
+
* Download shipment document
|
|
130
|
+
* @description Get a shipment document (label, commercial invoice, etc).
|
|
131
|
+
*/
|
|
132
|
+
get: operations["Shipment document download"];
|
|
133
|
+
parameters: {
|
|
134
|
+
path: {
|
|
135
|
+
storeId: components["parameters"]["store-id.param"];
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
"/stores/{storeId}/shipments/buy": {
|
|
140
|
+
/**
|
|
141
|
+
* Purchase shipping label
|
|
142
|
+
* @description Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
|
|
143
|
+
*/
|
|
144
|
+
post: operations["Shipment buy"];
|
|
145
|
+
parameters: {
|
|
146
|
+
path: {
|
|
147
|
+
storeId: components["parameters"]["store-id.param"];
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
"/stores/{storeId}/shipments/rates": {
|
|
152
|
+
/**
|
|
153
|
+
* Get shipping rates
|
|
154
|
+
* @description Get available shipping rates based on origin, destination, and parcel information.
|
|
155
|
+
*/
|
|
156
|
+
post: operations["Shipment rates"];
|
|
157
|
+
parameters: {
|
|
158
|
+
path: {
|
|
159
|
+
storeId: components["parameters"]["store-id.param"];
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
};
|
|
141
163
|
"/stores/{storeId}/webhooks": {
|
|
142
164
|
/**
|
|
143
165
|
* List webhooks
|
|
@@ -1014,6 +1036,8 @@ export interface components {
|
|
|
1014
1036
|
};
|
|
1015
1037
|
responses: never;
|
|
1016
1038
|
parameters: {
|
|
1039
|
+
/** @description Type of document to download */
|
|
1040
|
+
"document-type.param": components["schemas"]["shipment-document-type.schema"];
|
|
1017
1041
|
/** @description Invoice ID */
|
|
1018
1042
|
"invoice-id.param": string;
|
|
1019
1043
|
/**
|
|
@@ -1028,6 +1052,8 @@ export interface components {
|
|
|
1028
1052
|
"page-size.param"?: number;
|
|
1029
1053
|
/** @description Return ID */
|
|
1030
1054
|
"return-id.param": string;
|
|
1055
|
+
/** @description Shipment ID */
|
|
1056
|
+
"shipment-id.param": string;
|
|
1031
1057
|
/** @description Store ID */
|
|
1032
1058
|
"store-id.param": string;
|
|
1033
1059
|
/**
|
|
@@ -1246,84 +1272,6 @@ export interface operations {
|
|
|
1246
1272
|
};
|
|
1247
1273
|
};
|
|
1248
1274
|
};
|
|
1249
|
-
/**
|
|
1250
|
-
* Purchase shipping label
|
|
1251
|
-
* @description Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
|
|
1252
|
-
*/
|
|
1253
|
-
"Shipment buy": {
|
|
1254
|
-
requestBody: {
|
|
1255
|
-
content: {
|
|
1256
|
-
"application/json": {
|
|
1257
|
-
carrier: {
|
|
1258
|
-
/**
|
|
1259
|
-
* Carrier Account ID
|
|
1260
|
-
* @description ID for the carrier account that provides the shipping rate.
|
|
1261
|
-
*/
|
|
1262
|
-
id: string;
|
|
1263
|
-
};
|
|
1264
|
-
destination: components["schemas"]["shipping-contact.schema"];
|
|
1265
|
-
origin: components["schemas"]["shipping-contact.schema"];
|
|
1266
|
-
parcel: components["schemas"]["parcel.schema"];
|
|
1267
|
-
service: {
|
|
1268
|
-
/** @description Service level name */
|
|
1269
|
-
name: string;
|
|
1270
|
-
};
|
|
1271
|
-
};
|
|
1272
|
-
};
|
|
1273
|
-
};
|
|
1274
|
-
responses: {
|
|
1275
|
-
/** @description Success */
|
|
1276
|
-
200: {
|
|
1277
|
-
content: {
|
|
1278
|
-
"application/json": {
|
|
1279
|
-
shipment: components["schemas"]["shipment.schema"];
|
|
1280
|
-
};
|
|
1281
|
-
};
|
|
1282
|
-
};
|
|
1283
|
-
/** @description Error */
|
|
1284
|
-
default: {
|
|
1285
|
-
content: {
|
|
1286
|
-
"application/problem+json": components["schemas"]["error.schema"];
|
|
1287
|
-
};
|
|
1288
|
-
};
|
|
1289
|
-
};
|
|
1290
|
-
};
|
|
1291
|
-
/**
|
|
1292
|
-
* Get shipping rates
|
|
1293
|
-
* @description Get available shipping rates based on origin, destination, and parcel information.
|
|
1294
|
-
*/
|
|
1295
|
-
"Shipment rates": {
|
|
1296
|
-
requestBody: {
|
|
1297
|
-
content: {
|
|
1298
|
-
"application/json": {
|
|
1299
|
-
destination: {
|
|
1300
|
-
address: components["schemas"]["address.schema"];
|
|
1301
|
-
};
|
|
1302
|
-
origin: {
|
|
1303
|
-
address: components["schemas"]["address.schema"];
|
|
1304
|
-
};
|
|
1305
|
-
parcel: components["schemas"]["parcel.schema"];
|
|
1306
|
-
};
|
|
1307
|
-
};
|
|
1308
|
-
};
|
|
1309
|
-
responses: {
|
|
1310
|
-
/** @description Success */
|
|
1311
|
-
200: {
|
|
1312
|
-
content: {
|
|
1313
|
-
"application/json": {
|
|
1314
|
-
/** @description Available shipping rates */
|
|
1315
|
-
rates: components["schemas"]["shipment-rate.schema"][];
|
|
1316
|
-
};
|
|
1317
|
-
};
|
|
1318
|
-
};
|
|
1319
|
-
/** @description Error */
|
|
1320
|
-
default: {
|
|
1321
|
-
content: {
|
|
1322
|
-
"application/problem+json": components["schemas"]["error.schema"];
|
|
1323
|
-
};
|
|
1324
|
-
};
|
|
1325
|
-
};
|
|
1326
|
-
};
|
|
1327
1275
|
/**
|
|
1328
1276
|
* Navigate to merchant admin
|
|
1329
1277
|
* @description Navigate to the merchant admin page.
|
|
@@ -1515,6 +1463,122 @@ export interface operations {
|
|
|
1515
1463
|
};
|
|
1516
1464
|
};
|
|
1517
1465
|
};
|
|
1466
|
+
/**
|
|
1467
|
+
* Download shipment document
|
|
1468
|
+
* @description Get a shipment document (label, commercial invoice, etc).
|
|
1469
|
+
*/
|
|
1470
|
+
"Shipment document download": {
|
|
1471
|
+
parameters: {
|
|
1472
|
+
path: {
|
|
1473
|
+
storeId: components["parameters"]["store-id.param"];
|
|
1474
|
+
shipmentId: components["parameters"]["shipment-id.param"];
|
|
1475
|
+
documentType: components["parameters"]["document-type.param"];
|
|
1476
|
+
};
|
|
1477
|
+
};
|
|
1478
|
+
responses: {
|
|
1479
|
+
/** @description Success */
|
|
1480
|
+
200: {
|
|
1481
|
+
content: {
|
|
1482
|
+
"application/pdf": string;
|
|
1483
|
+
"image/png": string;
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
/** @description Error */
|
|
1487
|
+
default: {
|
|
1488
|
+
content: {
|
|
1489
|
+
"application/problem+json": components["schemas"]["error.schema"];
|
|
1490
|
+
};
|
|
1491
|
+
};
|
|
1492
|
+
};
|
|
1493
|
+
};
|
|
1494
|
+
/**
|
|
1495
|
+
* Purchase shipping label
|
|
1496
|
+
* @description Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
|
|
1497
|
+
*/
|
|
1498
|
+
"Shipment buy": {
|
|
1499
|
+
parameters: {
|
|
1500
|
+
path: {
|
|
1501
|
+
storeId: components["parameters"]["store-id.param"];
|
|
1502
|
+
};
|
|
1503
|
+
};
|
|
1504
|
+
requestBody: {
|
|
1505
|
+
content: {
|
|
1506
|
+
"application/json": {
|
|
1507
|
+
carrier: {
|
|
1508
|
+
/**
|
|
1509
|
+
* Carrier Account ID
|
|
1510
|
+
* @description ID for the carrier account that provides the shipping rate.
|
|
1511
|
+
*/
|
|
1512
|
+
id: string;
|
|
1513
|
+
};
|
|
1514
|
+
destination: components["schemas"]["shipping-contact.schema"];
|
|
1515
|
+
origin: components["schemas"]["shipping-contact.schema"];
|
|
1516
|
+
parcel: components["schemas"]["parcel.schema"];
|
|
1517
|
+
service: {
|
|
1518
|
+
/** @description Service level name */
|
|
1519
|
+
name: string;
|
|
1520
|
+
};
|
|
1521
|
+
};
|
|
1522
|
+
};
|
|
1523
|
+
};
|
|
1524
|
+
responses: {
|
|
1525
|
+
/** @description Success */
|
|
1526
|
+
200: {
|
|
1527
|
+
content: {
|
|
1528
|
+
"application/json": {
|
|
1529
|
+
shipment: components["schemas"]["shipment.schema"];
|
|
1530
|
+
};
|
|
1531
|
+
};
|
|
1532
|
+
};
|
|
1533
|
+
/** @description Error */
|
|
1534
|
+
default: {
|
|
1535
|
+
content: {
|
|
1536
|
+
"application/problem+json": components["schemas"]["error.schema"];
|
|
1537
|
+
};
|
|
1538
|
+
};
|
|
1539
|
+
};
|
|
1540
|
+
};
|
|
1541
|
+
/**
|
|
1542
|
+
* Get shipping rates
|
|
1543
|
+
* @description Get available shipping rates based on origin, destination, and parcel information.
|
|
1544
|
+
*/
|
|
1545
|
+
"Shipment rates": {
|
|
1546
|
+
parameters: {
|
|
1547
|
+
path: {
|
|
1548
|
+
storeId: components["parameters"]["store-id.param"];
|
|
1549
|
+
};
|
|
1550
|
+
};
|
|
1551
|
+
requestBody: {
|
|
1552
|
+
content: {
|
|
1553
|
+
"application/json": {
|
|
1554
|
+
destination: {
|
|
1555
|
+
address: components["schemas"]["address.schema"];
|
|
1556
|
+
};
|
|
1557
|
+
origin: {
|
|
1558
|
+
address: components["schemas"]["address.schema"];
|
|
1559
|
+
};
|
|
1560
|
+
parcel: components["schemas"]["parcel.schema"];
|
|
1561
|
+
};
|
|
1562
|
+
};
|
|
1563
|
+
};
|
|
1564
|
+
responses: {
|
|
1565
|
+
/** @description Success */
|
|
1566
|
+
200: {
|
|
1567
|
+
content: {
|
|
1568
|
+
"application/json": {
|
|
1569
|
+
/** @description Available shipping rates */
|
|
1570
|
+
rates: components["schemas"]["shipment-rate.schema"][];
|
|
1571
|
+
};
|
|
1572
|
+
};
|
|
1573
|
+
};
|
|
1574
|
+
/** @description Error */
|
|
1575
|
+
default: {
|
|
1576
|
+
content: {
|
|
1577
|
+
"application/problem+json": components["schemas"]["error.schema"];
|
|
1578
|
+
};
|
|
1579
|
+
};
|
|
1580
|
+
};
|
|
1581
|
+
};
|
|
1518
1582
|
/**
|
|
1519
1583
|
* List webhooks
|
|
1520
1584
|
* @description List webhooks for store.
|
package/lib/openapi.yaml
CHANGED
|
@@ -5,6 +5,13 @@ components:
|
|
|
5
5
|
schema:
|
|
6
6
|
type: string
|
|
7
7
|
parameters:
|
|
8
|
+
document-type.param:
|
|
9
|
+
description: Type of document to download
|
|
10
|
+
in: path
|
|
11
|
+
name: documentType
|
|
12
|
+
required: true
|
|
13
|
+
schema:
|
|
14
|
+
$ref: '#/components/schemas/shipment-document-type.schema'
|
|
8
15
|
invoice-id.param:
|
|
9
16
|
description: Invoice ID
|
|
10
17
|
in: path
|
|
@@ -35,6 +42,14 @@ components:
|
|
|
35
42
|
schema:
|
|
36
43
|
example: 64e4d5e837572a4813b73e40
|
|
37
44
|
type: string
|
|
45
|
+
shipment-id.param:
|
|
46
|
+
description: Shipment ID
|
|
47
|
+
in: path
|
|
48
|
+
name: shipmentId
|
|
49
|
+
required: true
|
|
50
|
+
schema:
|
|
51
|
+
example: 67c7e87a2c8c262c0ddc9861
|
|
52
|
+
type: string
|
|
38
53
|
store-id.param:
|
|
39
54
|
description: Store ID
|
|
40
55
|
in: path
|
|
@@ -1357,133 +1372,6 @@ paths:
|
|
|
1357
1372
|
tags:
|
|
1358
1373
|
- Returns
|
|
1359
1374
|
summary: Return status
|
|
1360
|
-
/shipments/buy:
|
|
1361
|
-
description: Purchase a shipping label.
|
|
1362
|
-
post:
|
|
1363
|
-
description: Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
|
|
1364
|
-
operationId: Shipment buy
|
|
1365
|
-
requestBody:
|
|
1366
|
-
content:
|
|
1367
|
-
application/json:
|
|
1368
|
-
schema:
|
|
1369
|
-
properties:
|
|
1370
|
-
carrier:
|
|
1371
|
-
properties:
|
|
1372
|
-
id:
|
|
1373
|
-
description: ID for the carrier account that provides the shipping rate.
|
|
1374
|
-
title: Carrier Account ID
|
|
1375
|
-
type: string
|
|
1376
|
-
required:
|
|
1377
|
-
- id
|
|
1378
|
-
type: object
|
|
1379
|
-
destination:
|
|
1380
|
-
$ref: '#/components/schemas/shipping-contact.schema'
|
|
1381
|
-
origin:
|
|
1382
|
-
$ref: '#/components/schemas/shipping-contact.schema'
|
|
1383
|
-
parcel:
|
|
1384
|
-
$ref: '#/components/schemas/parcel.schema'
|
|
1385
|
-
service:
|
|
1386
|
-
properties:
|
|
1387
|
-
name:
|
|
1388
|
-
description: Service level name
|
|
1389
|
-
examples:
|
|
1390
|
-
- Priority
|
|
1391
|
-
- Ground
|
|
1392
|
-
type: string
|
|
1393
|
-
required:
|
|
1394
|
-
- name
|
|
1395
|
-
type: object
|
|
1396
|
-
required:
|
|
1397
|
-
- origin
|
|
1398
|
-
- destination
|
|
1399
|
-
- carrier
|
|
1400
|
-
- service
|
|
1401
|
-
- parcel
|
|
1402
|
-
type: object
|
|
1403
|
-
required: true
|
|
1404
|
-
responses:
|
|
1405
|
-
'200':
|
|
1406
|
-
content:
|
|
1407
|
-
application/json:
|
|
1408
|
-
schema:
|
|
1409
|
-
properties:
|
|
1410
|
-
shipment:
|
|
1411
|
-
$ref: '#/components/schemas/shipment.schema'
|
|
1412
|
-
required:
|
|
1413
|
-
- shipment
|
|
1414
|
-
type: object
|
|
1415
|
-
description: Success
|
|
1416
|
-
default:
|
|
1417
|
-
content:
|
|
1418
|
-
application/problem+json:
|
|
1419
|
-
schema:
|
|
1420
|
-
$ref: '#/components/schemas/error.schema'
|
|
1421
|
-
description: Error
|
|
1422
|
-
security:
|
|
1423
|
-
- Bearer: []
|
|
1424
|
-
summary: Purchase shipping label
|
|
1425
|
-
tags:
|
|
1426
|
-
- Shipping
|
|
1427
|
-
summary: Shipment Buy
|
|
1428
|
-
/shipments/rates:
|
|
1429
|
-
description: Fetch available shipping label rates.
|
|
1430
|
-
post:
|
|
1431
|
-
description: Get available shipping rates based on origin, destination, and parcel information.
|
|
1432
|
-
operationId: Shipment rates
|
|
1433
|
-
requestBody:
|
|
1434
|
-
content:
|
|
1435
|
-
application/json:
|
|
1436
|
-
schema:
|
|
1437
|
-
properties:
|
|
1438
|
-
destination:
|
|
1439
|
-
properties:
|
|
1440
|
-
address:
|
|
1441
|
-
$ref: '#/components/schemas/address.schema'
|
|
1442
|
-
required:
|
|
1443
|
-
- address
|
|
1444
|
-
type: object
|
|
1445
|
-
origin:
|
|
1446
|
-
properties:
|
|
1447
|
-
address:
|
|
1448
|
-
$ref: '#/components/schemas/address.schema'
|
|
1449
|
-
required:
|
|
1450
|
-
- address
|
|
1451
|
-
type: object
|
|
1452
|
-
parcel:
|
|
1453
|
-
$ref: '#/components/schemas/parcel.schema'
|
|
1454
|
-
required:
|
|
1455
|
-
- origin
|
|
1456
|
-
- destination
|
|
1457
|
-
- parcel
|
|
1458
|
-
type: object
|
|
1459
|
-
required: true
|
|
1460
|
-
responses:
|
|
1461
|
-
'200':
|
|
1462
|
-
content:
|
|
1463
|
-
application/json:
|
|
1464
|
-
schema:
|
|
1465
|
-
properties:
|
|
1466
|
-
rates:
|
|
1467
|
-
description: Available shipping rates
|
|
1468
|
-
items:
|
|
1469
|
-
$ref: '#/components/schemas/shipment-rate.schema'
|
|
1470
|
-
type: array
|
|
1471
|
-
required:
|
|
1472
|
-
- rates
|
|
1473
|
-
type: object
|
|
1474
|
-
description: Success
|
|
1475
|
-
default:
|
|
1476
|
-
content:
|
|
1477
|
-
application/problem+json:
|
|
1478
|
-
schema:
|
|
1479
|
-
$ref: '#/components/schemas/error.schema'
|
|
1480
|
-
description: Error
|
|
1481
|
-
security:
|
|
1482
|
-
- Bearer: []
|
|
1483
|
-
summary: Get shipping rates
|
|
1484
|
-
tags:
|
|
1485
|
-
- Shipping
|
|
1486
|
-
summary: Shipment Rates
|
|
1487
1375
|
/stores/{storeId}/admin:
|
|
1488
1376
|
description: Navigate to the merchant admin page.
|
|
1489
1377
|
get:
|
|
@@ -1687,6 +1575,171 @@ paths:
|
|
|
1687
1575
|
parameters:
|
|
1688
1576
|
- $ref: '#/components/parameters/store-id.param'
|
|
1689
1577
|
summary: Returns
|
|
1578
|
+
/stores/{storeId}/shipments/buy:
|
|
1579
|
+
description: Purchase a shipping label.
|
|
1580
|
+
parameters:
|
|
1581
|
+
- $ref: '#/components/parameters/store-id.param'
|
|
1582
|
+
post:
|
|
1583
|
+
description: Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
|
|
1584
|
+
operationId: Shipment buy
|
|
1585
|
+
requestBody:
|
|
1586
|
+
content:
|
|
1587
|
+
application/json:
|
|
1588
|
+
schema:
|
|
1589
|
+
properties:
|
|
1590
|
+
carrier:
|
|
1591
|
+
properties:
|
|
1592
|
+
id:
|
|
1593
|
+
description: ID for the carrier account that provides the shipping rate.
|
|
1594
|
+
title: Carrier Account ID
|
|
1595
|
+
type: string
|
|
1596
|
+
required:
|
|
1597
|
+
- id
|
|
1598
|
+
type: object
|
|
1599
|
+
destination:
|
|
1600
|
+
$ref: '#/components/schemas/shipping-contact.schema'
|
|
1601
|
+
origin:
|
|
1602
|
+
$ref: '#/components/schemas/shipping-contact.schema'
|
|
1603
|
+
parcel:
|
|
1604
|
+
$ref: '#/components/schemas/parcel.schema'
|
|
1605
|
+
service:
|
|
1606
|
+
properties:
|
|
1607
|
+
name:
|
|
1608
|
+
description: Service level name
|
|
1609
|
+
examples:
|
|
1610
|
+
- Priority
|
|
1611
|
+
- Ground
|
|
1612
|
+
type: string
|
|
1613
|
+
required:
|
|
1614
|
+
- name
|
|
1615
|
+
type: object
|
|
1616
|
+
required:
|
|
1617
|
+
- origin
|
|
1618
|
+
- destination
|
|
1619
|
+
- carrier
|
|
1620
|
+
- service
|
|
1621
|
+
- parcel
|
|
1622
|
+
type: object
|
|
1623
|
+
required: true
|
|
1624
|
+
responses:
|
|
1625
|
+
'200':
|
|
1626
|
+
content:
|
|
1627
|
+
application/json:
|
|
1628
|
+
schema:
|
|
1629
|
+
properties:
|
|
1630
|
+
shipment:
|
|
1631
|
+
$ref: '#/components/schemas/shipment.schema'
|
|
1632
|
+
required:
|
|
1633
|
+
- shipment
|
|
1634
|
+
type: object
|
|
1635
|
+
description: Success
|
|
1636
|
+
default:
|
|
1637
|
+
content:
|
|
1638
|
+
application/problem+json:
|
|
1639
|
+
schema:
|
|
1640
|
+
$ref: '#/components/schemas/error.schema'
|
|
1641
|
+
description: Error
|
|
1642
|
+
security:
|
|
1643
|
+
- Bearer: []
|
|
1644
|
+
summary: Purchase shipping label
|
|
1645
|
+
tags:
|
|
1646
|
+
- Shipping
|
|
1647
|
+
summary: Shipment Buy
|
|
1648
|
+
/stores/{storeId}/shipments/rates:
|
|
1649
|
+
description: Fetch available shipping label rates.
|
|
1650
|
+
parameters:
|
|
1651
|
+
- $ref: '#/components/parameters/store-id.param'
|
|
1652
|
+
post:
|
|
1653
|
+
description: Get available shipping rates based on origin, destination, and parcel information.
|
|
1654
|
+
operationId: Shipment rates
|
|
1655
|
+
requestBody:
|
|
1656
|
+
content:
|
|
1657
|
+
application/json:
|
|
1658
|
+
schema:
|
|
1659
|
+
properties:
|
|
1660
|
+
destination:
|
|
1661
|
+
properties:
|
|
1662
|
+
address:
|
|
1663
|
+
$ref: '#/components/schemas/address.schema'
|
|
1664
|
+
required:
|
|
1665
|
+
- address
|
|
1666
|
+
type: object
|
|
1667
|
+
origin:
|
|
1668
|
+
properties:
|
|
1669
|
+
address:
|
|
1670
|
+
$ref: '#/components/schemas/address.schema'
|
|
1671
|
+
required:
|
|
1672
|
+
- address
|
|
1673
|
+
type: object
|
|
1674
|
+
parcel:
|
|
1675
|
+
$ref: '#/components/schemas/parcel.schema'
|
|
1676
|
+
required:
|
|
1677
|
+
- origin
|
|
1678
|
+
- destination
|
|
1679
|
+
- parcel
|
|
1680
|
+
type: object
|
|
1681
|
+
required: true
|
|
1682
|
+
responses:
|
|
1683
|
+
'200':
|
|
1684
|
+
content:
|
|
1685
|
+
application/json:
|
|
1686
|
+
schema:
|
|
1687
|
+
properties:
|
|
1688
|
+
rates:
|
|
1689
|
+
description: Available shipping rates
|
|
1690
|
+
items:
|
|
1691
|
+
$ref: '#/components/schemas/shipment-rate.schema'
|
|
1692
|
+
type: array
|
|
1693
|
+
required:
|
|
1694
|
+
- rates
|
|
1695
|
+
type: object
|
|
1696
|
+
description: Success
|
|
1697
|
+
default:
|
|
1698
|
+
content:
|
|
1699
|
+
application/problem+json:
|
|
1700
|
+
schema:
|
|
1701
|
+
$ref: '#/components/schemas/error.schema'
|
|
1702
|
+
description: Error
|
|
1703
|
+
security:
|
|
1704
|
+
- Bearer: []
|
|
1705
|
+
summary: Get shipping rates
|
|
1706
|
+
tags:
|
|
1707
|
+
- Shipping
|
|
1708
|
+
summary: Shipment Rates
|
|
1709
|
+
/stores/{storeId}/shipments/{shipmentId}/documents/{documentType}:
|
|
1710
|
+
description: Download shipment document.
|
|
1711
|
+
get:
|
|
1712
|
+
description: Get a shipment document (label, commercial invoice, etc).
|
|
1713
|
+
operationId: Shipment document download
|
|
1714
|
+
parameters:
|
|
1715
|
+
- $ref: '#/components/parameters/shipment-id.param'
|
|
1716
|
+
- $ref: '#/components/parameters/document-type.param'
|
|
1717
|
+
responses:
|
|
1718
|
+
'200':
|
|
1719
|
+
content:
|
|
1720
|
+
application/pdf:
|
|
1721
|
+
schema:
|
|
1722
|
+
format: binary
|
|
1723
|
+
type: string
|
|
1724
|
+
image/png:
|
|
1725
|
+
schema:
|
|
1726
|
+
format: binary
|
|
1727
|
+
type: string
|
|
1728
|
+
description: Success
|
|
1729
|
+
default:
|
|
1730
|
+
content:
|
|
1731
|
+
application/problem+json:
|
|
1732
|
+
schema:
|
|
1733
|
+
$ref: '#/components/schemas/error.schema'
|
|
1734
|
+
description: Error
|
|
1735
|
+
security:
|
|
1736
|
+
- Bearer: []
|
|
1737
|
+
summary: Download shipment document
|
|
1738
|
+
tags:
|
|
1739
|
+
- Shipping
|
|
1740
|
+
parameters:
|
|
1741
|
+
- $ref: '#/components/parameters/store-id.param'
|
|
1742
|
+
summary: Shipment Document
|
|
1690
1743
|
/stores/{storeId}/webhooks:
|
|
1691
1744
|
description: Webhooks.
|
|
1692
1745
|
get:
|
package/package.json
CHANGED