Fulfillment Upload
Shopify API
https://help.shopify.com/en/api/reference/shipping-and-fulfillment/fulfillment
Description
Allows you to create fulfilments against orders.
Fulfilment Logic
It is important to note that Shopify support two methods of fulfilment: order management and fulfilment service, per Shopify's documentation.
https://shopify.dev/apps/fulfillment
IMan uses the Order Management flow as described by the Shopify document.
In order to generate a fulfilment, the Shopify connector transparently:
- Performs a query against Shopify to obtain the fulfilment order(s) against the customer order. This query should return a single fulfilment record - if multiple fulfilment records are returned the Shopify connector will only use the first.
If query fails an error will be generated. - Translate the 'order_id' and line 'id' values to the corresponding ids in the fulfilment order. If either order or line id translation fails, i.e. the returned fulfilment order returned from Shopify has fewer lines, an error will be generated.
- Sends the fulfilment request with the translated id's to Shopify.
Update Mode
Insert
Writeback Fields
- id
- The Shopify assigned fulfilment id.
Creating a Fulfilment
To create a fulfilment against an order specify the Shopify order_id field.
To fulfil specific lines of an order, the id field for each line detail must be specified with the Shopify id of the order line.