DataJet
Search…
rest
rest will allow you to perform Shopify actions with use of Shopify REST API.
It accepts a JSON object as a parameter.
Here is an example input object that would be used to create fulfillment via REST API.
1
{% json rest_input %}
2
{
3
"path": "/orders/1234567/fulfillments.json",
4
"method": "POST",
5
"body": {
6
"fulfillment": {
7
"location_id": "98765431",
8
"notify_customer": false,
9
"status": "success"
10
}
11
}
12
}
13
{% endjson %}
Copied!
Above can be used together with rest filter to create fulfillment for order: 1234567.
1
{% assign fulfillment_result = rest_input | rest %}
Copied!
fulfillment_result is going to store response returned from shopify. If we want to access newly created fulfillment we would do with with following syntax: fulfillment_result.body.fulfillment
rest input object has one required parameter which is path. You can always look up path for every Shopify resource in official Shopify REST documentation:
REST Admin API reference
Shopify
Last modified 8mo ago
Copy link