Covers all questions related to inventory management, order fulfillment, and shipping.
I am posting this JSON Payload:
{"fulfillment":{"notify_customer":false,"tracking_info":{"number":"9400111206207344492193","url":"http://www.usps.com","company":"USPS"},"line_items_by_fulfillment_order":[{"fulfillment_order_id":6225260871908}]}}
And I am getting this response:
Response Body: {"errors":{"fulfillment":"Required parameter missing or invalid"}}
The fulfillment_order_id is correct and does belong to the store I am trying to connect to. To make sure I got the syntax in the POST payload correct, I copied it directly from the API documentation and updated the parameter values only. Because of this I am unsure what would be missing or invalid.
Please note that the payload I have provided skips providing fulfillment_order_line_id data because the documentation states that if you want to fulfill ALL lines you can leave that data out and only provide the fulfillment_order_id to update fulfillment for all lines. Regardless, I have tried it both ways and still get the same response.
Hi Ben_Kingery,
I afraid I cannot reproduce your error. Your request payload seems just right. I've run it in my test environment and it worked.
Did you submit this request to this enpoint?
POST https://<store_name>.myshopify.com/admin/api/2022-04/fulfillments.json
I will assist you if you provide full curl request you are sending.
To learn more visit the Shopify Help Center or the Community Blog.