Cannot create fulfillment because of "Unprocessable Entity (Location not found.)"

Cannot create fulfillment because of "Unprocessable Entity (Location not found.)"

sengming
Shopify Partner
50 1 9

I am having trouble creating a fulfillment using the admin rest API https://shopify.dev/api/admin-rest/2021-04/resources/fulfillment#post-orders-order-id-fulfillments

 

This is the response I get when I create the fulfillment with location_id 59624652958, order id 4397639827614

 

Response code = 422. Response message = Unprocessable Entity (Location not found.).

 

However when I look at the available locations, the location id exists!

 

This is the response from using https://shopify.dev/api/admin-rest/2021-04/resources/location#get-locations

 

(filtered to protect my customer)

 

[
{
"id": 58904674462,
"created_at": "2021-01-08T14:02:36+08:00",
"updated_at": "2021-12-27T15:58:29+08:00",
"country_code": "SG",
"country_name": "Singapore",
"province_code": null,
"legacy": false,
"active": true,
"admin_graphql_api_id": "gid://shopify/Location/58904674462",
"localized_province_name": null
},
{
"id": 59624652958,
"created_at": "2021-02-07T12:16:54+08:00",
"updated_at": "2021-12-27T15:58:49+08:00",
"country_code": "SG",
"country_name": "Singapore",
"province_code": null,
"legacy": false,
"active": false,
"admin_graphql_api_id": "gid://shopify/Location/59624652958",
"localized_province_name": null
},
{
"id": 65611890846,
"created_at": "2021-11-30T13:38:25+08:00",
"updated_at": "2022-01-17T13:44:02+08:00",
"country_code": "SG",
"country_name": "Singapore",
"province_code": null,
"legacy": false,
"active": false,
"admin_graphql_api_id": "gid://shopify/Location/65611890846",
"localized_province_name": null
},
{
"id": 65941799070,
"created_at": "2022-01-17T13:44:35+08:00",
"updated_at": "2022-01-17T13:44:35+08:00",
"country_code": "SG",
"country_name": "Singapore",
"province_code": null,
"legacy": false,
"active": true,
"admin_graphql_api_id": "gid://shopify/Location/65941799070",
"localized_province_name": null
}
]

 

Am I misunderstanding the error message? What does the error mean? Thank you!

Reply 1 (1)

sengming
Shopify Partner
50 1 9

Just bumping this hoping to get response, thanks!