Hi!
I need to create a fulfillment.
I’m trying to do this via postman but fail. i am following this
https://shopify.dev/docs/api/admin-rest/2022-10/resources/fulfillment#post-fulfillments
documentation but it doesn’t work.
In my case:
{
"fulfillment_orders": [
{
"id": {{fulfillment_order_id}},
"shop_id": {{shop_id}},
"order_id": {{order_id}},
"assigned_location_id": {{location_id}},
"request_status": "unsubmitted",
"status": "open",
"supported_actions": [
"create_fulfillment",
"hold"
],
"destination": {
},
"line_items": [
{
"id": {{id}},
"shop_id": {{shop_id}},
"fulfillment_order_id": {{fulfillment_order_id}},
"quantity": 1,
"line_item_id": {{line_item_id}},
"inventory_item_id": xxxxxxxx,
"fulfillable_quantity": 1,
"variant_id": xxxxxxx
}
],
"fulfill_at": "2023-04-27T15:00:00+02:00",
"fulfill_by": null,
"international_duties": null,
"fulfillment_holds": [],
"merchant_requests": []
}
]
}
now i create a fulfillment:
endpoint->
Post https://xxxxx:xxxxx@mywebsite.myshopify.com/admin/api/2023-04/fulfillments.json
{"fulfillment":
{
"message":"The package was shipped this morning.",
"notify_customer":false,
"tracking_info":
{
"number":1562678,
"url":"https://www.my-shipping-company.com",
"company":"my-shipping-company"
},
"line_items_by_fulfillment_order":
[
{"fulfillment_order_id":{{fulfillment_order_id}},
"fulfillment_order_line_items":
[{"id":{{line_item_id}},"quantity":1}]
}
]
}
}
It not work and i not understand the problem.
Please help
Alessandro