Creating fulfillment for an order gives 422 Unprocessable Entity

dkarta
Visitor
1 0 1

We use the shopify-api-node package from https://github.com/MONEI/Shopify-api-node to talk to Shopify's API. Sometimes creating a fulfillment for an order gives 422 - Unprocessable Entity error. The request (API version 2021-10) looks something like this:

 

POST https://xactnutrition.myshopify.com/admin/api/2021-10/orders/4416288981035/fulfillments.json

 

 

{
	"fulfillment": {
		"line_items": [
			{
				"id": "13635318481198",
				"quantity": 1
			}
		],
		"location_id": "73060417838",
		"notify_customer": false	
	}
}

 

 

I don't think it has to do with the body of the request since the 422 doesn't happen all the time. Could this error be thrown for subscription items? For example one of the order ids for which this happened was 4416288981035 for shopify store xactnutrition. Is it possible to check what happened for that order?

Replies 0 (0)