Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Order Fulfilment API

Order Fulfilment API

identix
Shopify Partner
27 0 3

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

banned
Replies 0 (0)