A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
curl --location --request POST 'https://logixgrid-save.myshopify.com/admin/api/2023-01/fulfillments.json' \ --header 'X-Shopify-Access-Token: \ --header 'Content-Type: application/json' \ --data-raw '{ "fulfillment": { "message": "The package was shipped this morning.", "notify_customer": false, "tracking_info": { "number": 1562678, "url": "https://google.com", "company": "my-shipping-company" }, "line_items_by_fulfillment_order": [ { "fulfillment_order_id": 5247929286964, "fulfillment_order_line_items": [ { "id": 1058737495, "quantity": 1 } ] } ] } }'
Solved! Go to the solution
This is an accepted solution.
use the orders.json?name=[order_number]
where [order_number] is the number you see in the shopify backend for the number
this will give you the order ID you need to use. it will be the First field returned.
and you can find the fulfillments.line_items.ID in the response as well
you should update your post and take out your "X-Shopify-Access-Token"
how are you getting your fulfillment_order_id and your id?
you need to use the API to get those.
fulfillment_order_id is "The ID of the fulfillment order"
ID is "The ID of the fulfillment order line item"
This is an accepted solution.
use the orders.json?name=[order_number]
where [order_number] is the number you see in the shopify backend for the number
this will give you the order ID you need to use. it will be the First field returned.
and you can find the fulfillments.line_items.ID in the response as well