Getting an error when trying to create a fulfillment. Use case is that I want to automatically fulfill digital line items in an order that do not require shipping.
I have gotten the fulfillment order ID from the following endpoint:
/admin/api/2024-01/orders/<ORDER_ID>/fulfillment_orders.json
And trying to use this endpoint with the fulfillment order ID and fulfillment order line item ID:
/admin/api/2024-01/fulfillments.json
And getting the following error:
{
"errors": {
"fulfillment": "Required parameter missing or invalid"
}
}
My request body:
{
"api_version": "2024-01",
"notify_customer": true,
"line_items_by_fulfillment_order": [
{
"fulfillment_order_id": 6596237721XXX,
"fulfillment_order_line_items": [
{
"id": 14564806754XXX,
"quantity": 1
}
]
}
]
}
Anyone run into this issue before? All the required parameters are there and should be correct.