Fulfillment Payloads on Order Creation now accept a location id

Alex_B
Shopify Staff
57 4 29

Fulfillment payloads on the orders#create endpoint have been updated to accept a location id.

This means that if you are including a fulfillment payload during order creation, that payload will now require a location id.
Not including a location id as part of these fulfillments will return a 422 error, similar to other sections of the fulfillment API.

If you are not currently including a fulfillment payload during order creation, no action is needed on your part.

To showcase how to leverage this, we’ve added an example to the POST /orders.json documentation.

The fulfillments payload requires an array of fulfillments, but currently only supports a single fulfillment.

Therefore, when passing a fulfillment payload as part of order creation, all line items will need to be fulfillable from that location.

Alex | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Replies 0 (0)