Covers all questions related to inventory management, order fulfillment, and shipping.
Good afternoon,
I am trying to create a fulfilment through the REST API, but keep getting this response:
{"errors":{"fulfillment":"Required parameter missing or invalid"}}
Path:
/admin/api/2021-04/orders/4019382714537/fulfillments.json
My request:
{
"fulfillment":
{
"order_id": 4019382714537,
"location_id": 61798908073,
"tracking_company": "DHL Express"
"tracking_numbers": [123456789],
"notify_customer": true,
}
}
Headers:
I'm not sure what I'm doing wrong. Hope someone is able to help me out with this.
Hi There,
Not sure but I would say that the you are a bit behind the times. As far as I am aware, even though you have 2021-04 your code is actually using 2022-04. Your best bet would be to upgrade your code to use the current fulfillment api.
https://shopify.dev/docs/api/admin-rest/2023-04/resources/fulfillment#post-fulfillments
Cheers,
Gary