A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi,
We want to fulfill an order using API where we are facing an issue.
Reference link: https://shopify.dev/api/admin-rest/2022-07/resources/fulfillment#post-fulfillments
First, we tried as follows:
URL: https://STORE_URL/admin/api/2022-07/fulfillments.json
Body data:
{
"fulfillment": {
"location_id" : 67155460254,
"notify_customer": false,
"line_items_by_fulfillment_order": [
{
"fulfillment_order_id": 4643216851102,
"fulfillment_order_line_items": [
{
"id": 11569323999390,
"quantity": 1
}
]
}
]
}
}
Response:
{
"errors": "Not Found"
}
Here, every time we get a "not found response".
Second, we tried as follows:
Somewhere we got suggestions to do as follows and here response is empty.
URL: https://STORE_URL/admin/api/2022-07/orders/4643216851102/fulfillments.json
Body data:
{
"fulfillment": {
"location_id" : 67155460254,
"notify_customer": false,
"line_items_by_fulfillment_order": [
{
"fulfillment_order_id": 4643216851102,
"fulfillment_order_line_items": [
{
"id": 11569323999390,
"quantity": 1
}
]
}
]
}
}
Response:
https://prnt.sc/X4SuP8Ia3CNV
Please help us by correcting what we are doing wrong here to resolve the issue and fulfill the order using the API.
Thanks