Fulfillments API Routes
A fulfillment is created for items in an order, return, exchanges, or claims to deliver items to/from the customer.
These API routes allow admin users to manage fulfillments.
POST /admin/fulfillments#
Create Fulfillment
Create a fulfillment for an order, return, exchange, and more.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Query parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.Request body (application/json)
location_idstringprovider_idstringdelivery_addressobjectThe address to deliver the items to.
delivery_addressobjectitemsobject[]The items to fulfill.
itemsobject[]labelsobject[]The labels for the fulfillment's shipments.
labelsobject[]order_idstringshipping_option_idstringOptionaldataobjectOptionalpacked_atstringOptionalshipped_atstringOptionaldelivered_atstringOptionalcanceled_atstringOptionalmetadataobjectOptionalRequest examples
Responses
200 OK
fulfillmentobjectThe fulfillment's details.
fulfillmentobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/fulfillments/{id}/cancel#
Cancel a Fulfillment
Cancel a fulfillment. The fulfillment can't be shipped or delivered.
To cancel the fulfillment, the cancelFulfillment method of the associated fulfillment provider is used.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringQuery parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.Request examples
Responses
200 OK
fulfillmentobjectThe fulfillment's details.
fulfillmentobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/fulfillments/{id}/shipment#
Create a Shipment for a Fulfillment
Create a shipment for a fulfillment. The fulfillment must not be shipped or canceled.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringQuery parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.Request body (application/json)
labelsobject[]The shipment's labels.
labelsobject[]Request examples
Responses
200 OK
fulfillmentobjectThe fulfillment's details.
fulfillmentobject400, 401, 404, 409, 422, 500: an error response is returned.