Covers all questions related to inventory management, order fulfillment, and shipping.
This is the item data I am fetching off 'fulfillment_orders.json':
{
id: ######,
shop_id: ######,
fulfillment_order_id: ######,
quantity: 1,
line_item_id: ######,
inventory_item_id: ######,
fulfillable_quantity: 1,
variant_id: ######
}
This is my script I am using to try and update the item as fulfilled using 'fulfillments.json':
Hi There,
Close but not quite, refer to the documentation for the right structure of the json. I'll give you a "hint" though.. its "fulfillment_order_line_items" and not "line_items".
fulfillment.line_items_by_fulfillment_order = [
{
"fulfillment_order_id": 1046000849,
"fulfillment_order_line_items": [
{
"id": 1058737608,
"quantity": 1
}
]
}
];
Cheers,
Gary