Skip to main content

Fulfillments

The fulfillment flow inserts shipment data on Shopify and thus notifies the customer.

In the example we can see the fields regarding shipped product data and tracking information.

The system allows partial fulfillments.

{
"orderName": "#1049",
"lineItems": [
{
"sku": "0001BK",
"qty": 1
}
],
"trackingInfo": {
"company": "UPS",
"number": "1Z001985YW99744790",
"url": "https://www.myshipping.com/track/?tracknumbers=TRACKING_NUMBER"
},
"notifyCustomer": true // Default to true
}

Destination configuration

Configure a Shopify destination and associate it with the flow, in addition to the basic data flow configuration.

FieldValueNotes
Destination TypeShopify
OperationFulfillmentPOST /egress/sync-fulfillment-to-shopify
GraphQL endpoint URLhttps://SHOPIFYURL.myshopify.com/Shopify Admin GraphQL endpoint URL
Admin API access tokenshpat_CODICEALFANUMERICOOr Client ID (API key) + Client secret — see Authentication
Client ID (API key)YOUR_CLIENT_ID
Client secretYOUR_CLIENT_SECRET
Allow duplicate SKUstrue / falseWhen true, allows fulfillment line items that reference duplicate SKUs (default: false, required)

Deprecated — previous configuration (HTTP Adapter)

Deprecated

Configuration via HTTP Adapter with Base Url, Resource Path, and x-api-key header in Settings Override is deprecated. Use the Shopify destination configuration described above.

In addition to the basic data flow configuration, the following Settings Override settings were required:

FieldValueNotes
Base Urlhttps://adapter.flowlyze.ioAdapter URL
Resource Path/api/adp/shopify/egress/sync-fulfillment-to-shopifyAdapter path for fulfillment
Headers :: x-api-key**********API key for endpoint interaction verification
Headers :: x-shopify-graphql-urlhttps://SHOPIFYURL.myshopify.com/Shopify shop URL to connect to
Headers :: x-shopify-access-tokenshpat_CODICEALFANUMERICOSecret of the custom app created for integration
Headers :: x-allow-duplicate-skustrue/falseIndicates whether duplicate SKUs are allowed among line items in the request (default false)