Update_tracking.json Error 400 The json provided is not formatted correctly: Error occurred while pa

Topic summary

A user is encountering a 400 error when attempting to update tracking information via the Shopify Admin API. The error message indicates: “The json provided is not formatted correctly: Error occurred while parsing request parameters.”

API Details:

  • Endpoint: POST /admin/api/2024-01/fulfillments/{fulfillment_id}/update_tracking.json
  • The request includes tracking company (UPS), tracking number, URL, and customer notification flag

Issue:
The JSON payload appears malformed or improperly structured, preventing successful parsing by the API. The user has provided their curl command and request body but seeks assistance identifying the specific formatting problem causing the rejection.

Status: The issue remains unresolved with no responses yet. The user is requesting help to identify what’s wrong with their JSON formatting.

Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

Hi, Kind request for support, help. I want to upate the tracking number via API, below the example that Im using, but i get 400 Error:

Response Data Error
error

The json provided is not formatted correctly: Error occurred while parsing request parameters


URL: POST: https://xxxxxxxxxxxxxxx.myshopify.com/admin/api/2024-01/fulfillments/7109558403395/update_tracking.json

BODY:

curl -d ‘{“fulfillment”:{“notify_customer”:true,“https://test.com/”:{“company”:“UPS”,“number”:“1Z001985YW99744790”}}}’ \ -X POST “https://xxxxxxxxxxxxxx.myshopify.com/admin/api/2024-01/fulfillments/7109558403395/update_tracking.json” \ -H “X-Shopify-Access-Token: xxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxx” \ -H “Content-Type: application/json”

Any idea where is the error ? what im doing wrong?