PriceVariants

Delete price variant

Changed on

Deletes a price variant that has never been on sale. A variant that has been sold, or whose product has been published, can't be deleted: set archived to true with PATCH /price_variants/{id} to retire it and keep its sales history.

delete/price_variants/{id}

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

The resource's ID, as returned in its id field

Response

Price variant deleted

DeleteResponse required
id, string required
object, string required
deleted, true required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision