Solved

Please let me know what API the "Fulfill item" function of Admin is.

weap0n7
Shopify Partner
24 1 2

I wonder what API Admin's FullfilItem feature should use.
I don't know how to get fillment_order_id from that API.
I think fulfillment_order_id and order_id are different. I don't know how to get a fillment_order_id.

 

/admin/api/2023-07/fulfillments.json
{
"fulfillment": {
"line_items_by_fulfillment_order": [
{
"fulfillment_order_id": ???????????????
}
],
"tracking_info": {
"number": "MS1562678",
"url": "https://www.my-shipping-company.com?tracking_number=MS1562678"
}
}
}

fulfillItem2.JPG

Accepted Solution (1)

RobZone
Shopify Staff
69 10 22

This is an accepted solution.

You can get a list of fulfillment orders from the order with this endpoint: https://shopify.dev/docs/api/admin-rest/2023-10/resources/fulfillmentorder#get-orders-order-id-fulfi...

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 2 (2)

Made4uo-Ribe
Shopify Partner
5515 1327 1635

Hi @weap0n7 

 

You can get the fulfillment ID by get request. See more information here

 

GET https://{shop}.myshopify.com/admin/api/{api_version}/assigned_fulfillment_orders.json?assignment_status=fulfillment_requested&location_ids[]={assigned_location_id}

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

 

 

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


RobZone
Shopify Staff
69 10 22

This is an accepted solution.

You can get a list of fulfillment orders from the order with this endpoint: https://shopify.dev/docs/api/admin-rest/2023-10/resources/fulfillmentorder#get-orders-order-id-fulfi...

To learn more visit the Shopify Help Center or the Community Blog.