Looking for a bit of guideance into what I am missing. I have tried multiple times submitting fullfilments, and used every ID available in case I have it wrong. I have checked scopes and it has read/write for fulfillments, in fact anything with fulfillment in the name is added. I have changed the field fulfillment_order_line_items to just line_items even though this is not mentioned in the documentation. Still same error.
I have called : https://xxxxxxxxxx.com/admin/api/2023-04/orders/5544234745937/fulfillment_orders.json
To get the FulfillmentOrder ID. In this case it is 6160758636625
I am then trying to create a simple fulfillment against this fulfillment order at this end point
https://xxxxxxxxxx.com/admin/api/2024-04/fulfillments.json
I have tried submitting only one item.
{
“fulfillment”: {
“message”: “Items processed and shipped today.”,
“notify_customer”: true,
“tracking_info”: {
“number”: “7GRO0316901-11”,
“url”: “http://www.xxxxxxxxxxx.com”,
“company”: “MY COURIER”
},
“line_items_by_fulfillment_order”: [
{
“fulfillment_order_id”: 6160758636625,
“line_items”: [
{
“id”: 12779787616337,
“quantity”: 1
}
]
}
]
}
}
OR IN FULL with no tracking data. As per this cURL example in the documentation.
*curl -d ‘{“fulfillment”:{“line_items_by_fulfillment_order”:[{“fulfillment_order_id”:1046000800}]}}’ *
*-X POST “https://your-development-store.myshopify.com/admin/api/2024-04/fulfillments.json” *
*-H “X-Shopify-Access-Token: {access_token}” *
-H “Content-Type: application/json”
The below returns the same error. Any idea where this has gone wrong?
{
“fulfillment”:{
“line_items_by_fulfillment_order”:[
{
“fulfillment_order_id”:6160758636625
}
]
}
}