Covers all questions related to inventory management, order fulfillment, and shipping.
Array ( [fulfillment] => Array ( [line_items_by_fulfillment_order] => Array ( [0] => Array ( [fulfillment_order_id] => $orderId [fulfillment_order_line_items] => Array ( [0] => Array ( [id] => $itemId [quantity] => 1 ) ) ) ) [tracking_info] => Array ( [number] => $trackingNumber ) [notify_customer] => 1 ) )
I am trying to create fulfillment request with details with API /admin/api/2023-10/fulfillments.json', $fulfillmentData, 'POST', but its returning not found in error.
I am stuck at this point. I am creating custom APP and trying to update details. I and sending orders to delivery agent and they are providing tracking number in return.
Solved! Go to the solution
This is an accepted solution.
[fulfillment_order_id] => $orderId
fulfillment_order_id and order ID are 2 different things - could that be the issue?
steps...
get the order_id
get the related fulfillment_order_id using order_id
add a fulfillment using the fulfillment_order_id
add events to the fulfillment using the fulfillment_id
https://shopify.dev/docs/api/admin-rest/2023-10/resources/fulfillmentorder
https://shopify.dev/docs/api/admin-rest/2023-10/resources/fulfillmentevent
This is an accepted solution.
[fulfillment_order_id] => $orderId
fulfillment_order_id and order ID are 2 different things - could that be the issue?
steps...
get the order_id
get the related fulfillment_order_id using order_id
add a fulfillment using the fulfillment_order_id
add events to the fulfillment using the fulfillment_id
https://shopify.dev/docs/api/admin-rest/2023-10/resources/fulfillmentorder
https://shopify.dev/docs/api/admin-rest/2023-10/resources/fulfillmentevent
Thank you, it works for me.