Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Fullfillment API Error - Required Parameter Missing Or Invalid

Fullfillment API Error - Required Parameter Missing Or Invalid

Drewhang
Shopify Partner
2 0 0

Hello, i'm trying to update the order fulfillment information using the following api:

 

'fulfillment':  {
     'notify_customer': true,
     'tracking_info': {
           'number': trackingNumber,
           'url': trackingUrl,
           'company': shippingCarrier
        },
}
 
https://${shop}/admin/api/${SHOPIFY_API_VERSION}/orders/${order_id}/fulfillments.json
 
errors: { fulfillment: 'Required parameter missing or invalid' } 
x-request-id': '5f68fa39-75b4-4151-9f84-fc78790cd122'
Replies 3 (3)

loganaa
Shopify Partner
12 1 0

From the request body, This interface is used for update_tracking?

If so, your path is wrong

right path : /admin/api/${SHOPIFY_API_VERSION}/fulfillments/${fulfillment_id}/update_tracking.json

 

https://shopify.dev/api/admin-rest/2022-10/resources/fulfillment#post-fulfillments-fulfillment-id-up...

Drewhang
Shopify Partner
2 0 0

I'm still getting the same error. 

 

Assuming the fulfillment_id is invalid for me, can I retrieve the fulfillment_id from the following path?

https://${shop}/admin/api/${SHOPIFY_API_VERSION}/orders/${orderId}/fulfillment_orders.json
loganaa
Shopify Partner
12 1 0