Development discussions around Shopify APIs
Hello,
Can someone please help what is causing the below error?
URL - /admin/api/2020-01/orders/2060602441773/fulfillments.json
POST: {"fulfillment":{"notify_customer":true,"tracking_company":null,"tracking_numbers":["KT406371969GB"],"location_id":42752409645}}
Response - {"errors":{"fulfillment":"Required parameter missing or invalid"}}
Thank you!
Hey @Emagination,
If this call is updating tracking info on an existing fulfillment, you should send a POST to:
/admin/api/2020-01/fulfillments/#{fulfillment_id}/update_tracking.json
Or you can send a PUT to:
/admin/api/2020-01/orders/#{order_id}/fulfillments/#{fulfillment_id}.json
Our docs (link here) show examples for all the different calls you can make using the fulfillment API.
JB | Solutions Engineer @ Shopify
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi @_JB ,
This call is meant to fulfil the order and all of its items using the call:
POST /admin/api/2020-01/orders/#{order_id}/fulfillments.json
as to create a new fulfilment, i don't know what value is missing or invalid.
Hey @Emagination,
Sorry I read your question wrong originally.
Can you please provide the X-Shopify-Request-ID value from the response headers of your call? I will use this to check our logs and find out why you're getting an error.
JB | Solutions Engineer @ Shopify
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi
I've used the update tracking number api following this docs https://shopify.dev/docs/admin-api/rest/reference/shipping-and-fulfillment/fulfillment?api[version]=... but got this error message
{ "errors": { "fulfillment": "Required parameter missing or invalid" } }
{ "fulfillment": { "tracking_number": "IQ24EUZPIUGY935M", "id": 2132783005780, } }Please advises
Hey @JimmyNJ,
Please provide the X-Request-ID value from the response headers of your call, and I can use this to investigate further.
JB | Solutions Engineer @ Shopify
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
I was wondering, how in the end was this resolved?
User | RANK |
---|---|
15 | |
7 | |
5 | |
5 | |
5 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022