I am having trouble completing a draft order using https://shopify.dev/docs/api/admin-rest/2023-07/resources/draftorder#put-draft-orders-draft-order-id-complete
The response I get is (X-Request-ID: 52202645-301e-4a2b-8a10-c07188d4eba9)
{
"errors": "Product variant not found., Your cart has been updated and the items you added can’t be shipped to your address. Remove the items to complete your order., and Your payment couldn’t be processed because your order total has changed. Check your order total and try again."
}
Note that the product variant exists!
What should I do?
Request
PUT /admin/api/2023-07/draft_orders/1141814067476/complete.json HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 0
Content-Type: application/json
User-Agent: HTTPie/3.2.2
Response
Response
HTTP/1.1 422 Unprocessable Entity
X-Request-ID: 52202645-301e-4a2b-8a10-c07188d4eba9
{
“errors”: “Product variant not found., Your cart has been updated and the items you added can’t be shipped to your address. Remove the items to complete your order., and Your payment couldn’t be processed because your order total has changed. Check your order total and try again.”
}
