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