Issue in updating tracking number through the API, getting 200 response instead of 201 created

Mrreese
Visitor
2 0 0

 

https://{{api_key}}:{{api_password}}@{{store_name}}.myshopify.com/admin/api/{{api_version}}/orders/3825632870598/fulfillments.json

 

request body:

{
    "fulfillment": {
        "location_id"905**4977,
        "tracking_number"1411******19004625,
        "tracking_company""Fedex",
       "line_items":[
"456789***8765"
]
    }

 

}
 
Mrreese_1-1631531053830.png

 

 
Replies 2 (2)

Jayvin
Shopify Partner
284 42 89

Hi,

Looks like you have not properly authorized your application.

If you are using public/custom app credentials, you need to go through the oauth process.

Else you can just private api key and password for your store.

banned
Mrreese
Visitor
2 0 0

 Hi jayvin,

  • We registered it as a private App only and we're passing API key and password in the request but still getting 200 instead of 201response status code.Thanks in advance 🙂