Fullfillment API Error - Required parameter missing or invalid on version update

Emagination
Tourist
3 0 1

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! 

 

0 Likes
_JB
Shopify Staff
Shopify Staff
834 99 189

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 | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
Emagination
Tourist
3 0 1

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.

_JB
Shopify Staff
Shopify Staff
834 99 189

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 | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
JimmyNJ
New Member
1 0 0

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"
    }
}
Here is my request body
{
  "fulfillment": {
    "tracking_number": "IQ24EUZPIUGY935M",
    "id": 2132783005780,
  }
}
Please advises 
Thanks!
0 Likes
_JB
Shopify Staff
Shopify Staff
834 99 189

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 | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
Emagination
Tourist
3 0 1
Hi this has been resolved and can the ticket can be closed.


0 Likes
BartJR
Tourist
4 1 0

I was wondering, how in the end was this resolved?

0 Likes