Status 422
Last variant of the product
last_variant_of_product
When it happens
A product cannot stay without variants, so its last variant cannot be archived.
What to do
Archive the product itself (DELETE /v1/products/{product}).
Can’t find the answer, or the error keeps coming back? Write to us and quote the X-Request-Id from the response so we can find the request. Contact us
Endpoints that return it
Response body
application/problem+json · ValidationProblem
typestringrequiredMachine type of the problem: a stable code to branch on, such as insufficient_scope. Every type has a page in the error catalog.
titlestringrequiredShort summary of the problem in the language of the request.
statusintegerrequiredHTTP status of the response.
detailstringExplanation of this occurrence in the language of the request.
errorsmap of array of stringrequiredInvalid fields: name of the field (nested ones with dots, such as variants.0.price) → messages.