Update order tracking from JSON
Fulfilleo enables you to sync tracking numbers and fulfill orders via your supplier's API.
Last updated
Fulfilleo enables you to sync tracking numbers and fulfill orders via your supplier's API.
Last updated
If your supplier provides order tracking data through an API, you can use it to fulfill orders in Shopify. Typically, the data is shared in JSON format. Here’s an example of what the API response might look like:
In this scenario, configure the following settings in the Data Mapping section:
In scenarios where data retrieval is required from a field higher in the JSON hierarchy, you can utilize the variables order
and shipment
.
order
: contains details about a single order from the API
shipment
: contains details about a single shipment from the API (only available if the Shipment field is included in the Data Mapping section)
Some suppliers require the order number to be included in the URL when making a request. Fulfilleo supports these cases by iterating through all unfulfilled and partially fulfilled orders to check if the supplier has provided tracking data.
You can include the following variables in the URL:
{{ order_number }}
{{ order_id }}
{{ order_email }}
{{ order.metafields.<namespace>.<key> }}
In this mode, you can utilize the context
object in the Data Mapping section. The context
object provides the following structure and contains key details about the order from Shopify:
Sometimes, the API response might not include the order number required in the Data Mapping section. In such cases, you can use {{ context.order.order_number }}
or {{ context.order_number }}
to provide the necessary order number.