Loading the search index…

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

  • typestringrequired

    Machine type of the problem: a stable code to branch on, such as insufficient_scope. Every type has a page in the error catalog.

  • titlestringrequired

    Short summary of the problem in the language of the request.

  • statusintegerrequired

    HTTP status of the response.

  • detailstring

    Explanation of this occurrence in the language of the request.

  • errorsmap of array of stringrequired

    Invalid fields: name of the field (nested ones with dots, such as variants.0.price) → messages.

← Errors