Products

Deletes a product. A product that has orders, or has ever been on sale, can't be deleted: archive it with status: "archived" instead. That refusal is a 409 with code product_not_deletable.

delete/products/{id_or_slug}

Request

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

Path parameters

id_or_slug, string required

The resource ID (e.g., "prod_3f9a1c0b7d2e4a6f8b1c3d5e") or slug (e.g., "my-product")

Response

Product deleted

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

Changes

    • info

      added the non-success response with the 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