@redotech/redo-api-schema 2.2.435 → 2.2.449
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 +578 -0
- package/lib/openapi.yaml +786 -0
- package/package.json +1 -1
package/lib/openapi.d.ts
CHANGED
|
@@ -184,6 +184,71 @@ export interface paths {
|
|
|
184
184
|
*/
|
|
185
185
|
get: operations["Invoice list"];
|
|
186
186
|
};
|
|
187
|
+
"/stores/{storeId}/orders": {
|
|
188
|
+
/**
|
|
189
|
+
* Create Order
|
|
190
|
+
* @description Create a new order in the system with line items, customer information, and shipping details.
|
|
191
|
+
*/
|
|
192
|
+
post: operations["Order create"];
|
|
193
|
+
parameters: {
|
|
194
|
+
path: {
|
|
195
|
+
storeId: components["parameters"]["store-id.param"];
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
"/stores/{storeId}/orders/{orderId}": {
|
|
200
|
+
/**
|
|
201
|
+
* Get Order
|
|
202
|
+
* @description Retrieve an existing order from the system, including all fulfillments. The orderId parameter can be either the external order ID you provided when creating the order, or the internal Redo order ID returned from the create order response.
|
|
203
|
+
*/
|
|
204
|
+
get: operations["Order get"];
|
|
205
|
+
/**
|
|
206
|
+
* Delete Order
|
|
207
|
+
* @description Delete an order from the system. The orderId parameter can be either the external order ID you provided when creating the order, or the internal Redo order ID returned from the create order response.
|
|
208
|
+
*/
|
|
209
|
+
delete: operations["Order delete"];
|
|
210
|
+
parameters: {
|
|
211
|
+
path: {
|
|
212
|
+
storeId: components["parameters"]["store-id.param"];
|
|
213
|
+
orderId: components["parameters"]["order-id.param"];
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
"/stores/{storeId}/orders/{orderId}/fulfillments": {
|
|
218
|
+
/**
|
|
219
|
+
* Create Fulfillment
|
|
220
|
+
* @description Create a fulfillment for specific line items within an order, including tracking information. The orderId parameter can be either the external order ID you provided when creating the order, or the internal Redo order ID returned from the create order response.
|
|
221
|
+
*/
|
|
222
|
+
post: operations["Fulfillment create"];
|
|
223
|
+
parameters: {
|
|
224
|
+
path: {
|
|
225
|
+
storeId: components["parameters"]["store-id.param"];
|
|
226
|
+
orderId: components["parameters"]["order-id.param"];
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
"/stores/{storeId}/orders/{orderId}/fulfillments/{fulfillmentId}/shipment-status": {
|
|
231
|
+
/**
|
|
232
|
+
* Update Fulfillment Status
|
|
233
|
+
* @description Post a shipment status update or trigger an automation event for a fulfillment.
|
|
234
|
+
*
|
|
235
|
+
* The status field accepts two types of values:
|
|
236
|
+
*
|
|
237
|
+
* **Statuses** (e.g., `in_transit`, `delivered`): Real carrier tracking statuses that update the shipment's current status. When you send these, the fulfillment's current status is updated to reflect the new state. Triggers any configured automations for that status.
|
|
238
|
+
*
|
|
239
|
+
* **Events** (e.g., `stalled_in_transit`, `delayed`, `arriving_early`): Special event types that trigger automations without changing the current shipment status. The status field remains unchanged, but you can still update estimated delivery date and add tracking history entries. Use these to trigger event-based automations.
|
|
240
|
+
*
|
|
241
|
+
* Both statuses and events can update other fields like estimated delivery date and tracking history.
|
|
242
|
+
*/
|
|
243
|
+
post: operations["Fulfillment status update"];
|
|
244
|
+
parameters: {
|
|
245
|
+
path: {
|
|
246
|
+
storeId: components["parameters"]["store-id.param"];
|
|
247
|
+
orderId: components["parameters"]["order-id.param"];
|
|
248
|
+
fulfillmentId: components["parameters"]["fulfillment-id.param"];
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
};
|
|
187
252
|
"/stores/{storeId}/products/bulk-upload": {
|
|
188
253
|
/**
|
|
189
254
|
* Bulk upload products (Beta)
|
|
@@ -1136,6 +1201,253 @@ export interface components {
|
|
|
1136
1201
|
*/
|
|
1137
1202
|
total: components["schemas"]["money.schema"];
|
|
1138
1203
|
};
|
|
1204
|
+
/** @description Request body for creating a fulfillment. */
|
|
1205
|
+
"orders-api-create-fulfillment-request.schema": {
|
|
1206
|
+
/** @description Unique identifier for the fulfillment. If not provided, will be auto-generated. */
|
|
1207
|
+
fulfillmentId?: string;
|
|
1208
|
+
/** @description Initial tracking information for the dummy tracker. Only used when useDummyTracking is true. If not specified, defaults to status "pre_transit". */
|
|
1209
|
+
initialTracking?: {
|
|
1210
|
+
/**
|
|
1211
|
+
* Format: date-time
|
|
1212
|
+
* @description Timestamp of the tracking event in ISO 8601 format.
|
|
1213
|
+
*/
|
|
1214
|
+
datetime?: string | null;
|
|
1215
|
+
/**
|
|
1216
|
+
* Format: date-time
|
|
1217
|
+
* @description Estimated delivery date in ISO 8601 format.
|
|
1218
|
+
*/
|
|
1219
|
+
estimatedDeliveryDate?: string | null;
|
|
1220
|
+
location?: components["schemas"]["orders-api-tracking-location.schema"];
|
|
1221
|
+
/** @description Tracking event message. */
|
|
1222
|
+
message?: string | null;
|
|
1223
|
+
/**
|
|
1224
|
+
* @description Initial shipment status for the dummy tracker. Only actual statuses are allowed (not automation events).
|
|
1225
|
+
* @enum {string}
|
|
1226
|
+
*/
|
|
1227
|
+
status: "pre_transit" | "unknown" | "in_transit" | "out_for_delivery" | "available_for_pickup" | "delivered" | "return_to_sender" | "failure" | "cancelled" | "error";
|
|
1228
|
+
};
|
|
1229
|
+
/** @description List of line items to fulfill. */
|
|
1230
|
+
lineItems: {
|
|
1231
|
+
/** @description Line item ID to fulfill. */
|
|
1232
|
+
id: string;
|
|
1233
|
+
/** @description Quantity to fulfill for this line item. */
|
|
1234
|
+
quantity: number;
|
|
1235
|
+
}[];
|
|
1236
|
+
/** @description Optional tracking information for the shipment. */
|
|
1237
|
+
tracking?: {
|
|
1238
|
+
/** @description Name of the shipping carrier (e.g., FedEx, UPS, USPS). */
|
|
1239
|
+
carrier: string;
|
|
1240
|
+
/** @description Tracking number/code for the shipment. */
|
|
1241
|
+
code: string;
|
|
1242
|
+
} | null;
|
|
1243
|
+
/** @description If true, creates a dummy tracker for testing without calling external tracking APIs. Useful for development and testing the fulfillment status update endpoint. */
|
|
1244
|
+
useDummyTracking?: boolean;
|
|
1245
|
+
};
|
|
1246
|
+
/** @description Request body for creating an order. */
|
|
1247
|
+
"orders-api-create-order-request.schema": {
|
|
1248
|
+
/**
|
|
1249
|
+
* Format: date-time
|
|
1250
|
+
* @description ISO 8601 date string for when the order was created.
|
|
1251
|
+
*/
|
|
1252
|
+
createdAt: string;
|
|
1253
|
+
/** @description Currency code from the ISO 4217 standard (e.g., USD, EUR, GBP). */
|
|
1254
|
+
currencyCode?: string | null;
|
|
1255
|
+
customer?: components["schemas"]["orders-api-customer.schema"];
|
|
1256
|
+
/** @description List of line items in the order. */
|
|
1257
|
+
lineItems: components["schemas"]["orders-api-line-item.schema"][];
|
|
1258
|
+
/** @description Unique identifier for the order. */
|
|
1259
|
+
orderId: string;
|
|
1260
|
+
shipping?: components["schemas"]["orders-api-shipping.schema"];
|
|
1261
|
+
/** @description Subtotal price excluding tax and shipping. */
|
|
1262
|
+
subtotalPrice?: number | null;
|
|
1263
|
+
/** @description Optional tags associated with the order. */
|
|
1264
|
+
tags?: string[] | null;
|
|
1265
|
+
/** @description Total order price including tax and shipping. */
|
|
1266
|
+
totalPrice?: number | null;
|
|
1267
|
+
/** @description Total tax amount. */
|
|
1268
|
+
totalTax?: number | null;
|
|
1269
|
+
};
|
|
1270
|
+
/** @description Successful order creation response. */
|
|
1271
|
+
"orders-api-create-order-response.schema": {
|
|
1272
|
+
/** @description Original external order ID provided in the request. */
|
|
1273
|
+
externalOrderId: string;
|
|
1274
|
+
/** @description Internal Redo order ID. */
|
|
1275
|
+
orderId: string;
|
|
1276
|
+
};
|
|
1277
|
+
/** @description Customer information. */
|
|
1278
|
+
"orders-api-customer.schema": {
|
|
1279
|
+
/** @description Customer email address. */
|
|
1280
|
+
email?: string | null;
|
|
1281
|
+
/** @description Customer first name. */
|
|
1282
|
+
firstName?: string | null;
|
|
1283
|
+
/** @description Customer ID from the external system. */
|
|
1284
|
+
id?: string | null;
|
|
1285
|
+
/** @description Customer last name. */
|
|
1286
|
+
lastName?: string | null;
|
|
1287
|
+
/** @description Customer full name. */
|
|
1288
|
+
name?: string | null;
|
|
1289
|
+
/** @description Customer phone number. */
|
|
1290
|
+
phoneNumber?: string | null;
|
|
1291
|
+
};
|
|
1292
|
+
/** @description Successful order deletion response. */
|
|
1293
|
+
"orders-api-delete-order-response.schema": {
|
|
1294
|
+
/** @description External order ID that was deleted. */
|
|
1295
|
+
externalOrderId: string;
|
|
1296
|
+
/** @description Internal Redo order ID. */
|
|
1297
|
+
orderId: string;
|
|
1298
|
+
/** @description Indicates successful deletion. */
|
|
1299
|
+
success: boolean;
|
|
1300
|
+
};
|
|
1301
|
+
/** @description Orders API error response. */
|
|
1302
|
+
"orders-api-error.schema": {
|
|
1303
|
+
/** @description Error message describing what went wrong. */
|
|
1304
|
+
error: string;
|
|
1305
|
+
};
|
|
1306
|
+
/** @description Fulfilled line item details. */
|
|
1307
|
+
"orders-api-fulfillment-line-item.schema": {
|
|
1308
|
+
/** @description Line item ID that was fulfilled. */
|
|
1309
|
+
id: string;
|
|
1310
|
+
/** @description Product ID. */
|
|
1311
|
+
productId: string;
|
|
1312
|
+
/** @description Quantity fulfilled for this line item. */
|
|
1313
|
+
quantity: number;
|
|
1314
|
+
/** @description SKU of the product. */
|
|
1315
|
+
sku?: string | null;
|
|
1316
|
+
/** @description Title/name of the product. */
|
|
1317
|
+
title: string;
|
|
1318
|
+
/** @description Product variant ID. */
|
|
1319
|
+
variantId?: string | null;
|
|
1320
|
+
};
|
|
1321
|
+
/** @description Successful fulfillment operation response. */
|
|
1322
|
+
"orders-api-fulfillment-response.schema": {
|
|
1323
|
+
fulfillment: components["schemas"]["orders-api-fulfillment.schema"];
|
|
1324
|
+
/** @constant */
|
|
1325
|
+
success: true;
|
|
1326
|
+
};
|
|
1327
|
+
/** @description Fulfillment information. */
|
|
1328
|
+
"orders-api-fulfillment.schema": {
|
|
1329
|
+
/**
|
|
1330
|
+
* Format: date-time
|
|
1331
|
+
* @description ISO 8601 date string for when the fulfillment was created.
|
|
1332
|
+
*/
|
|
1333
|
+
createdAt: string;
|
|
1334
|
+
/** @description Unique fulfillment ID. */
|
|
1335
|
+
id: string;
|
|
1336
|
+
/** @description List of line items in this fulfillment. */
|
|
1337
|
+
lineItems: components["schemas"]["orders-api-fulfillment-line-item.schema"][];
|
|
1338
|
+
/**
|
|
1339
|
+
* @description Current shipment status.
|
|
1340
|
+
* @enum {string}
|
|
1341
|
+
*/
|
|
1342
|
+
status: "pre_transit" | "unknown" | "in_transit" | "out_for_delivery" | "available_for_pickup" | "delivered" | "return_to_sender" | "failure" | "cancelled" | "error";
|
|
1343
|
+
/** @description Shipping carrier name (e.g., FedEx, UPS). */
|
|
1344
|
+
trackingCompany?: string | null;
|
|
1345
|
+
/** @description List of tracking events in chronological order. */
|
|
1346
|
+
trackingHistory: components["schemas"]["orders-api-tracking-event.schema"][];
|
|
1347
|
+
/** @description Tracking number for the shipment. */
|
|
1348
|
+
trackingNumber?: string | null;
|
|
1349
|
+
};
|
|
1350
|
+
/** @description Response for getting an order, including fulfillments. */
|
|
1351
|
+
"orders-api-get-order-response.schema": components["schemas"]["orders-api-create-order-request.schema"] & {
|
|
1352
|
+
/** @description List of fulfillments for this order. */
|
|
1353
|
+
fulfillments: components["schemas"]["orders-api-fulfillment.schema"][];
|
|
1354
|
+
};
|
|
1355
|
+
/** @description Line item in the order. */
|
|
1356
|
+
"orders-api-line-item.schema": {
|
|
1357
|
+
/** @description Unique identifier for the line item. */
|
|
1358
|
+
id: string;
|
|
1359
|
+
/** @description Price per unit of the product. */
|
|
1360
|
+
price?: number | null;
|
|
1361
|
+
/** @description Identifier for the product. */
|
|
1362
|
+
productId: string;
|
|
1363
|
+
/** @description Quantity of the product ordered. */
|
|
1364
|
+
quantity: number;
|
|
1365
|
+
/** @description SKU of the product. */
|
|
1366
|
+
sku?: string | null;
|
|
1367
|
+
/** @description Title/name of the product. */
|
|
1368
|
+
title: string;
|
|
1369
|
+
/** @description Identifier for the product variant. */
|
|
1370
|
+
variantId?: string | null;
|
|
1371
|
+
};
|
|
1372
|
+
/** @description Shipping address. */
|
|
1373
|
+
"orders-api-shipping-address.schema": {
|
|
1374
|
+
/** @description Primary address line. */
|
|
1375
|
+
address1?: string | null;
|
|
1376
|
+
/** @description Secondary address line. */
|
|
1377
|
+
address2?: string | null;
|
|
1378
|
+
/** @description City. */
|
|
1379
|
+
city?: string | null;
|
|
1380
|
+
/** @description Country. */
|
|
1381
|
+
country?: string | null;
|
|
1382
|
+
/** @description Postal or zip code. */
|
|
1383
|
+
postalCode?: string | null;
|
|
1384
|
+
/** @description State or province. */
|
|
1385
|
+
province?: string | null;
|
|
1386
|
+
};
|
|
1387
|
+
/** @description Shipping information. */
|
|
1388
|
+
"orders-api-shipping.schema": {
|
|
1389
|
+
address?: components["schemas"]["orders-api-shipping-address.schema"];
|
|
1390
|
+
/** @description Shipping cost. */
|
|
1391
|
+
cost?: number | null;
|
|
1392
|
+
/** @description Shipping method name. */
|
|
1393
|
+
method?: string | null;
|
|
1394
|
+
};
|
|
1395
|
+
/** @description Tracking event details. */
|
|
1396
|
+
"orders-api-tracking-event.schema": {
|
|
1397
|
+
/**
|
|
1398
|
+
* Format: date-time
|
|
1399
|
+
* @description ISO 8601 timestamp of the tracking event.
|
|
1400
|
+
*/
|
|
1401
|
+
datetime: string;
|
|
1402
|
+
location?: components["schemas"]["orders-api-tracking-location.schema"];
|
|
1403
|
+
/** @description Tracking event message. */
|
|
1404
|
+
message: string;
|
|
1405
|
+
/** @description Status at this tracking event. */
|
|
1406
|
+
status: string;
|
|
1407
|
+
};
|
|
1408
|
+
/** @description Location information for a tracking event. */
|
|
1409
|
+
"orders-api-tracking-location.schema": {
|
|
1410
|
+
city?: string | null;
|
|
1411
|
+
country?: string | null;
|
|
1412
|
+
postalCode?: string | null;
|
|
1413
|
+
state?: string | null;
|
|
1414
|
+
};
|
|
1415
|
+
/**
|
|
1416
|
+
* @description Request body for updating a fulfillment's tracking status.
|
|
1417
|
+
*
|
|
1418
|
+
* The status field accepts two types of values:
|
|
1419
|
+
* - **Statuses** (e.g., `in_transit`, `delivered`): Update the shipment's current status and trigger configured automations.
|
|
1420
|
+
* - **Events** (e.g., `stalled_in_transit`, `delayed`, `arriving_early`): Trigger automations without changing the current shipment status.
|
|
1421
|
+
*
|
|
1422
|
+
* Both can update other fields like estimated delivery date and tracking history.
|
|
1423
|
+
*/
|
|
1424
|
+
"orders-api-update-fulfillment-status-request.schema": {
|
|
1425
|
+
/**
|
|
1426
|
+
* Format: date-time
|
|
1427
|
+
* @description Timestamp of the tracking event in ISO 8601 format.
|
|
1428
|
+
*/
|
|
1429
|
+
datetime?: string | null;
|
|
1430
|
+
/**
|
|
1431
|
+
* Format: date-time
|
|
1432
|
+
* @description Estimated delivery date in ISO 8601 format.
|
|
1433
|
+
*/
|
|
1434
|
+
estimatedDeliveryDate?: string | null;
|
|
1435
|
+
location?: components["schemas"]["orders-api-tracking-location.schema"];
|
|
1436
|
+
/** @description Tracking event message (e.g., "Departed shipping partner facility"). */
|
|
1437
|
+
message?: string | null;
|
|
1438
|
+
/**
|
|
1439
|
+
* @description Shipment status or automation event.
|
|
1440
|
+
*
|
|
1441
|
+
* Statuses update the current shipment status and trigger automations:
|
|
1442
|
+
* `pre_transit`, `in_transit`, `out_for_delivery`, `available_for_pickup`, `delivered`, `return_to_sender`, `failure`, `cancelled`, `error`.
|
|
1443
|
+
*
|
|
1444
|
+
* Events trigger automations without changing the current status:
|
|
1445
|
+
* `stalled_in_transit`, `delayed`, `arriving_early`.
|
|
1446
|
+
*
|
|
1447
|
+
* @enum {string}
|
|
1448
|
+
*/
|
|
1449
|
+
status: "pre_transit" | "in_transit" | "out_for_delivery" | "available_for_pickup" | "delivered" | "return_to_sender" | "failure" | "cancelled" | "error" | "stalled_in_transit" | "delayed" | "arriving_early";
|
|
1450
|
+
};
|
|
1139
1451
|
/**
|
|
1140
1452
|
* Person name
|
|
1141
1453
|
* @description Person name.
|
|
@@ -1178,6 +1490,32 @@ export interface components {
|
|
|
1178
1490
|
*/
|
|
1179
1491
|
name: string;
|
|
1180
1492
|
};
|
|
1493
|
+
/**
|
|
1494
|
+
* Return Dropoff
|
|
1495
|
+
* @description Dropoff entry for returns using QR-code-based drop-off methods (e.g. BlueYonder/FedEx Easy Returns)
|
|
1496
|
+
*/
|
|
1497
|
+
"return-dropoff.schema": {
|
|
1498
|
+
/**
|
|
1499
|
+
* Provider
|
|
1500
|
+
* @description Dropoff provider name (e.g. "FedEx Easy Returns", "Virtual")
|
|
1501
|
+
*/
|
|
1502
|
+
provider: string;
|
|
1503
|
+
/**
|
|
1504
|
+
* QR Code
|
|
1505
|
+
* @description Raw QR code data
|
|
1506
|
+
*/
|
|
1507
|
+
qrCode?: string;
|
|
1508
|
+
/**
|
|
1509
|
+
* QR Code URL
|
|
1510
|
+
* @description URL to a rendered QR code image
|
|
1511
|
+
*/
|
|
1512
|
+
qrCodeUrl?: string;
|
|
1513
|
+
/**
|
|
1514
|
+
* Shipment Group ID
|
|
1515
|
+
* @description ID of the shipment group this dropoff belongs to
|
|
1516
|
+
*/
|
|
1517
|
+
shipmentGroupId: string;
|
|
1518
|
+
};
|
|
1181
1519
|
/**
|
|
1182
1520
|
* Return
|
|
1183
1521
|
* @description Return read.
|
|
@@ -1211,6 +1549,11 @@ export interface components {
|
|
|
1211
1549
|
*/
|
|
1212
1550
|
phoneNumber?: components["schemas"]["phone-number.schema"];
|
|
1213
1551
|
};
|
|
1552
|
+
/**
|
|
1553
|
+
* Dropoffs
|
|
1554
|
+
* @description Array of QR-code-based dropoff entries for returns using drop-off methods such as BlueYonder/FedEx Easy Returns. Empty for standard label-based returns.
|
|
1555
|
+
*/
|
|
1556
|
+
dropoffs?: components["schemas"]["return-dropoff.schema"][];
|
|
1214
1557
|
/**
|
|
1215
1558
|
* Exchange
|
|
1216
1559
|
* @description Exchange order
|
|
@@ -1924,10 +2267,14 @@ export interface components {
|
|
|
1924
2267
|
};
|
|
1925
2268
|
responses: never;
|
|
1926
2269
|
parameters: {
|
|
2270
|
+
/** @description Unique fulfillment identifier. */
|
|
2271
|
+
"fulfillment-id.param": string;
|
|
1927
2272
|
/** @description Optional idempotency key for safely retrying create requests. */
|
|
1928
2273
|
"idempotency-key.param"?: string;
|
|
1929
2274
|
/** @description Invoice ID */
|
|
1930
2275
|
"invoice-id.param": string;
|
|
2276
|
+
/** @description Order ID. Can be either the external order ID provided when creating the order, or the internal Redo order ID. */
|
|
2277
|
+
"order-id.param": string;
|
|
1931
2278
|
/**
|
|
1932
2279
|
* @description Page marker, from X-Page-Next header
|
|
1933
2280
|
* @example 64df700931a04885276c3364
|
|
@@ -2652,6 +2999,237 @@ export interface operations {
|
|
|
2652
2999
|
};
|
|
2653
3000
|
};
|
|
2654
3001
|
};
|
|
3002
|
+
/**
|
|
3003
|
+
* Create Order
|
|
3004
|
+
* @description Create a new order in the system with line items, customer information, and shipping details.
|
|
3005
|
+
*/
|
|
3006
|
+
"Order create": {
|
|
3007
|
+
parameters: {
|
|
3008
|
+
path: {
|
|
3009
|
+
storeId: components["parameters"]["store-id.param"];
|
|
3010
|
+
};
|
|
3011
|
+
};
|
|
3012
|
+
requestBody: {
|
|
3013
|
+
content: {
|
|
3014
|
+
"application/json": components["schemas"]["orders-api-create-order-request.schema"];
|
|
3015
|
+
};
|
|
3016
|
+
};
|
|
3017
|
+
responses: {
|
|
3018
|
+
/** @description Success */
|
|
3019
|
+
200: {
|
|
3020
|
+
content: {
|
|
3021
|
+
"application/json": components["schemas"]["orders-api-create-order-response.schema"];
|
|
3022
|
+
};
|
|
3023
|
+
};
|
|
3024
|
+
/** @description Bad Request (validation error) */
|
|
3025
|
+
400: {
|
|
3026
|
+
content: {
|
|
3027
|
+
"application/json": components["schemas"]["orders-api-error.schema"];
|
|
3028
|
+
};
|
|
3029
|
+
};
|
|
3030
|
+
/** @description Unauthorized (invalid or missing API token) */
|
|
3031
|
+
401: {
|
|
3032
|
+
content: {
|
|
3033
|
+
"application/json": components["schemas"]["orders-api-error.schema"];
|
|
3034
|
+
};
|
|
3035
|
+
};
|
|
3036
|
+
/** @description Conflict (duplicate order ID) */
|
|
3037
|
+
409: {
|
|
3038
|
+
content: {
|
|
3039
|
+
"application/json": components["schemas"]["orders-api-error.schema"];
|
|
3040
|
+
};
|
|
3041
|
+
};
|
|
3042
|
+
/** @description Error */
|
|
3043
|
+
default: {
|
|
3044
|
+
content: {
|
|
3045
|
+
"application/problem+json": components["schemas"]["error.schema"];
|
|
3046
|
+
};
|
|
3047
|
+
};
|
|
3048
|
+
};
|
|
3049
|
+
};
|
|
3050
|
+
/**
|
|
3051
|
+
* Get Order
|
|
3052
|
+
* @description Retrieve an existing order from the system, including all fulfillments. The orderId parameter can be either the external order ID you provided when creating the order, or the internal Redo order ID returned from the create order response.
|
|
3053
|
+
*/
|
|
3054
|
+
"Order get": {
|
|
3055
|
+
parameters: {
|
|
3056
|
+
path: {
|
|
3057
|
+
storeId: components["parameters"]["store-id.param"];
|
|
3058
|
+
orderId: components["parameters"]["order-id.param"];
|
|
3059
|
+
};
|
|
3060
|
+
};
|
|
3061
|
+
responses: {
|
|
3062
|
+
/** @description Success */
|
|
3063
|
+
200: {
|
|
3064
|
+
content: {
|
|
3065
|
+
"application/json": components["schemas"]["orders-api-get-order-response.schema"];
|
|
3066
|
+
};
|
|
3067
|
+
};
|
|
3068
|
+
/** @description Unauthorized (invalid or missing API token) */
|
|
3069
|
+
401: {
|
|
3070
|
+
content: {
|
|
3071
|
+
"application/json": components["schemas"]["orders-api-error.schema"];
|
|
3072
|
+
};
|
|
3073
|
+
};
|
|
3074
|
+
/** @description Order not found */
|
|
3075
|
+
404: {
|
|
3076
|
+
content: {
|
|
3077
|
+
"application/json": components["schemas"]["orders-api-error.schema"];
|
|
3078
|
+
};
|
|
3079
|
+
};
|
|
3080
|
+
/** @description Error */
|
|
3081
|
+
default: {
|
|
3082
|
+
content: {
|
|
3083
|
+
"application/problem+json": components["schemas"]["error.schema"];
|
|
3084
|
+
};
|
|
3085
|
+
};
|
|
3086
|
+
};
|
|
3087
|
+
};
|
|
3088
|
+
/**
|
|
3089
|
+
* Delete Order
|
|
3090
|
+
* @description Delete an order from the system. The orderId parameter can be either the external order ID you provided when creating the order, or the internal Redo order ID returned from the create order response.
|
|
3091
|
+
*/
|
|
3092
|
+
"Order delete": {
|
|
3093
|
+
parameters: {
|
|
3094
|
+
path: {
|
|
3095
|
+
storeId: components["parameters"]["store-id.param"];
|
|
3096
|
+
orderId: components["parameters"]["order-id.param"];
|
|
3097
|
+
};
|
|
3098
|
+
};
|
|
3099
|
+
responses: {
|
|
3100
|
+
/** @description Success */
|
|
3101
|
+
200: {
|
|
3102
|
+
content: {
|
|
3103
|
+
"application/json": components["schemas"]["orders-api-delete-order-response.schema"];
|
|
3104
|
+
};
|
|
3105
|
+
};
|
|
3106
|
+
/** @description Unauthorized (invalid or missing API token) */
|
|
3107
|
+
401: {
|
|
3108
|
+
content: {
|
|
3109
|
+
"application/json": components["schemas"]["orders-api-error.schema"];
|
|
3110
|
+
};
|
|
3111
|
+
};
|
|
3112
|
+
/** @description Order not found */
|
|
3113
|
+
404: {
|
|
3114
|
+
content: {
|
|
3115
|
+
"application/json": components["schemas"]["orders-api-error.schema"];
|
|
3116
|
+
};
|
|
3117
|
+
};
|
|
3118
|
+
/** @description Error */
|
|
3119
|
+
default: {
|
|
3120
|
+
content: {
|
|
3121
|
+
"application/problem+json": components["schemas"]["error.schema"];
|
|
3122
|
+
};
|
|
3123
|
+
};
|
|
3124
|
+
};
|
|
3125
|
+
};
|
|
3126
|
+
/**
|
|
3127
|
+
* Create Fulfillment
|
|
3128
|
+
* @description Create a fulfillment for specific line items within an order, including tracking information. The orderId parameter can be either the external order ID you provided when creating the order, or the internal Redo order ID returned from the create order response.
|
|
3129
|
+
*/
|
|
3130
|
+
"Fulfillment create": {
|
|
3131
|
+
parameters: {
|
|
3132
|
+
path: {
|
|
3133
|
+
storeId: components["parameters"]["store-id.param"];
|
|
3134
|
+
orderId: components["parameters"]["order-id.param"];
|
|
3135
|
+
};
|
|
3136
|
+
};
|
|
3137
|
+
requestBody: {
|
|
3138
|
+
content: {
|
|
3139
|
+
"application/json": components["schemas"]["orders-api-create-fulfillment-request.schema"];
|
|
3140
|
+
};
|
|
3141
|
+
};
|
|
3142
|
+
responses: {
|
|
3143
|
+
/** @description Success */
|
|
3144
|
+
200: {
|
|
3145
|
+
content: {
|
|
3146
|
+
"application/json": components["schemas"]["orders-api-fulfillment-response.schema"];
|
|
3147
|
+
};
|
|
3148
|
+
};
|
|
3149
|
+
/** @description Bad Request (validation error) */
|
|
3150
|
+
400: {
|
|
3151
|
+
content: {
|
|
3152
|
+
"application/json": components["schemas"]["orders-api-error.schema"];
|
|
3153
|
+
};
|
|
3154
|
+
};
|
|
3155
|
+
/** @description Unauthorized (invalid or missing API token) */
|
|
3156
|
+
401: {
|
|
3157
|
+
content: {
|
|
3158
|
+
"application/json": components["schemas"]["orders-api-error.schema"];
|
|
3159
|
+
};
|
|
3160
|
+
};
|
|
3161
|
+
/** @description Order not found */
|
|
3162
|
+
404: {
|
|
3163
|
+
content: {
|
|
3164
|
+
"application/json": components["schemas"]["orders-api-error.schema"];
|
|
3165
|
+
};
|
|
3166
|
+
};
|
|
3167
|
+
/** @description Error */
|
|
3168
|
+
default: {
|
|
3169
|
+
content: {
|
|
3170
|
+
"application/problem+json": components["schemas"]["error.schema"];
|
|
3171
|
+
};
|
|
3172
|
+
};
|
|
3173
|
+
};
|
|
3174
|
+
};
|
|
3175
|
+
/**
|
|
3176
|
+
* Update Fulfillment Status
|
|
3177
|
+
* @description Post a shipment status update or trigger an automation event for a fulfillment.
|
|
3178
|
+
*
|
|
3179
|
+
* The status field accepts two types of values:
|
|
3180
|
+
*
|
|
3181
|
+
* **Statuses** (e.g., `in_transit`, `delivered`): Real carrier tracking statuses that update the shipment's current status. When you send these, the fulfillment's current status is updated to reflect the new state. Triggers any configured automations for that status.
|
|
3182
|
+
*
|
|
3183
|
+
* **Events** (e.g., `stalled_in_transit`, `delayed`, `arriving_early`): Special event types that trigger automations without changing the current shipment status. The status field remains unchanged, but you can still update estimated delivery date and add tracking history entries. Use these to trigger event-based automations.
|
|
3184
|
+
*
|
|
3185
|
+
* Both statuses and events can update other fields like estimated delivery date and tracking history.
|
|
3186
|
+
*/
|
|
3187
|
+
"Fulfillment status update": {
|
|
3188
|
+
parameters: {
|
|
3189
|
+
path: {
|
|
3190
|
+
storeId: components["parameters"]["store-id.param"];
|
|
3191
|
+
orderId: components["parameters"]["order-id.param"];
|
|
3192
|
+
fulfillmentId: components["parameters"]["fulfillment-id.param"];
|
|
3193
|
+
};
|
|
3194
|
+
};
|
|
3195
|
+
requestBody: {
|
|
3196
|
+
content: {
|
|
3197
|
+
"application/json": components["schemas"]["orders-api-update-fulfillment-status-request.schema"];
|
|
3198
|
+
};
|
|
3199
|
+
};
|
|
3200
|
+
responses: {
|
|
3201
|
+
/** @description Success */
|
|
3202
|
+
200: {
|
|
3203
|
+
content: {
|
|
3204
|
+
"application/json": components["schemas"]["orders-api-fulfillment-response.schema"];
|
|
3205
|
+
};
|
|
3206
|
+
};
|
|
3207
|
+
/** @description Bad Request (validation error) */
|
|
3208
|
+
400: {
|
|
3209
|
+
content: {
|
|
3210
|
+
"application/json": components["schemas"]["orders-api-error.schema"];
|
|
3211
|
+
};
|
|
3212
|
+
};
|
|
3213
|
+
/** @description Unauthorized (invalid or missing API token) */
|
|
3214
|
+
401: {
|
|
3215
|
+
content: {
|
|
3216
|
+
"application/json": components["schemas"]["orders-api-error.schema"];
|
|
3217
|
+
};
|
|
3218
|
+
};
|
|
3219
|
+
/** @description Fulfillment not found */
|
|
3220
|
+
404: {
|
|
3221
|
+
content: {
|
|
3222
|
+
"application/json": components["schemas"]["orders-api-error.schema"];
|
|
3223
|
+
};
|
|
3224
|
+
};
|
|
3225
|
+
/** @description Error */
|
|
3226
|
+
default: {
|
|
3227
|
+
content: {
|
|
3228
|
+
"application/problem+json": components["schemas"]["error.schema"];
|
|
3229
|
+
};
|
|
3230
|
+
};
|
|
3231
|
+
};
|
|
3232
|
+
};
|
|
2655
3233
|
/**
|
|
2656
3234
|
* Bulk upload products (Beta)
|
|
2657
3235
|
* @description Bulk create or update product families and their variants.
|