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 |
---|---|
10 | |
4 | |
3 | |
3 | |
3 |
As a business owner, have you ever wondered when your customer's first impression of yo...
By Skye Jun 6, 2023We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023