Shipping - Restore Inventory
Restore inventory that was previously deducted when a shipment was created.
Request body
Example request
{
"store_id": "507f1f77bcf86cd799439011",
"shipment_id": "507f1f77bcf86cd799439011"
}Response
Inventory restored and returns updated order shipments
Example response
{
"_id": "507f1f77bcf86cd799439011",
"shipments": [
{
"_id": "507f1f77bcf86cd799439011",
"request": {
"_id": "507f1f77bcf86cd799439011",
"store_id": "507f1f77bcf86cd799439011",
"address": {
"country": "US"
},
"origin_address": {
"country": "US"
},
"return_address": {
"country": "US"
},
"rate": {
"carrier_account": {
"_id": "507f1f77bcf86cd799439011"
}
},
"order_items": [
{
"item_id": "507f1f77bcf86cd799439011",
"location_id": "507f1f77bcf86cd799439011"
}
],
"customs_items": [
{
"origin_country": "US"
}
],
"currency": "USD",
"origin": "507f1f77bcf86cd799439011",
"shipping_date": "2025-01-15"
},
"time": "2025-01-15T12:00:00.000Z"
}
]
}Changes
Changed in 6 of the 13 revisions of this API.5616
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
- ▲
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
- ▲
- ▲
added required request body
request-body-added-required
- ●
deleted the
queryrequest parametercarrier_shipment_idrequest-parameter-removed
- ●
deleted the
queryrequest parameterno_refreshrequest-parameter-removed
- ●
deleted the
queryrequest parameterorder_numberrequest-parameter-removed
- ●
deleted the
queryrequest parametershipment_idrequest-parameter-removed
- ●
deleted the
queryrequest parameterstore_idrequest-parameter-removed
- ●
deleted the
queryrequest parametertracking_numberrequest-parameter-removed
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
- ▲
- ▲
removed the request body
request-body-removed
- ▲
removed the media type
application/jsonfor the response with the statusresponse-media-type-removed
- ○
api operation id
post_shipping_restore_inventoryremoved and replaced withapi-operation-id-removed
- ○
added the new optional
queryrequest parametercarrier_shipment_idnew-optional-request-parameter
- ○
added the new optional
queryrequest parameterno_refreshnew-optional-request-parameter
- ○
added the new optional
queryrequest parameterorder_numbernew-optional-request-parameter
- ○
added the new optional
queryrequest parametershipment_idnew-optional-request-parameter
- ○
added the new optional
queryrequest parameterstore_idnew-optional-request-parameter
- ○
added the new optional
queryrequest parametertracking_numbernew-optional-request-parameter
- ○
removed the non-success response with the status
response-non-success-status-removed
- ○
removed the non-success response with the status
response-non-success-status-removed
- ○
removed the non-success response with the status
response-non-success-status-removed
- ○
removed the non-success response with the status
response-non-success-status-removed
- ○
removed the non-success response with the status
response-non-success-status-removed
This revision also has 85 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲