1、 Fetch fulfillment_order_id by https://mystorefr.myshopify.com/admin/api/2024-01/orders/5938409177405/fulfillment_orders.json
Response:
{
“fulfillment_orders”: [
{
“id”: 6890437804349,
“shop_id”: 85353627965,
“order_id”: 5938409177405,
“assigned_location_id”: 95703499069,
“request_status”: “unsubmitted”,
“status”: “open”,
“supported_actions”: [
“create_fulfillment”,
“hold”
],
“line_items”: [
{
“id”: 15225819365693,
“shop_id”: 85353627965,
“fulfillment_order_id”: 6890437804349,
“quantity”: 1,
“line_item_id”: 15083962925373,
“inventory_item_id”: 49738501325117,
“fulfillable_quantity”: 1,
“variant_id”: 47690587177277
}
]
}
]
}
2、 Create a fulfillment https://mystorefr.myshopify.com/admin/api/2024-01/fulfillments.json
and return 404 not found:
{
“fulfillment”: {
“api_version”: “2024-01”,
“line_items_by_fulfillment_order”: [
{
“fulfillment_order_id”: 6890437804349,
“fulfillment_order_line_items”: [
{
“id”: “15225819365693”,
“quantity”: 1
}
],
“line_items”: [
{
“id”: “15225819365693”,
“quantity”: 1
}
]
}
],
"tracking_info ": {
“number”: “604833730845”,
“company”: “GLS”
},
“notify_customer”: true
}
}