REST API curl fulfillment - Bad Request

Hi @chetancrao

Thank you for your response.

OS: Windows 10

CLI: Command Prompt

We have tried your suggested cURL through command line. Copy/paste your exact line with the proper URL/Token produced an error:

curl: (3) URL using bad/illegal format or missing URL
curl: (3) URL using bad/illegal format or missing URL
curl: (3) URL using bad/illegal format or missing URL
curl: (3) URL using bad/illegal format or missing URL
curl: (6) Could not resolve host: application
curl: (3) URL using bad/illegal format or missing URL
curl: (3) URL using bad/illegal format or missing URL
curl: (3) unmatched brace in URL position 1:
{

I had to slightly modify the line removing space intervals to avoid the above error. Here is the line I came up with:

curl --location "https://image-devstore.myshopify.com/admin/api/2023-04/fulfillments.json" --header "X-Shopify-Access-Token: {our_token}" --header 'Content-Type:application/json' --data '{"fulfillment":{"line_items_by_fulfillment_order":[{"fulfillment_order_id":5702836650028}],"tracking_info":{"number":"MS12345","url":"https://www.usps.com?tracking_number=MS12345"}}}'

Here is the respond:

{"errors":{"fulfillment":"Required parameter missing or invalid"}}

I’m also attaching the Postman json file for reference.