Fullfillment API Error - Required Parameter Missing Or Invalid

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’

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-update-tracking

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

no, fulfillment_id ≠ fulfillment_order_id

https://shopify.dev/api/admin-rest/2022-10/resources/fulfillment#get-fulfillment-orders-fulfillment-order-id-fulfillments

https://shopify.dev/api/admin-rest/2022-10/resources/fulfillment#get-orders-order-id-fulfillments?since-id=255858046

And you can look the interfaces above for getting fulfillment_id