Skip to main content
DELETE
/
v1
/
product-collections
/
{productCollectionId}
Delete Product Collection
curl --request DELETE \
  --url https://{cluster}.voucherify.io/v1/product-collections/{productCollectionId} \
  --header 'Authorization: Bearer <token>' \
  --header 'X-App-Id: <api-key>' \
  --header 'X-App-Token: <api-key>'
{
  "code": 400,
  "key": "resource_in_use",
  "message": "Resource in use",
  "details": "Resource products_collection with id pc_41V4DiQQO8YGqj0J2oZD57j4 is in use by validation_ruless with ids [val_9TB89AjZeVEJ]",
  "request_id": "v-0ae3a63aff940ed1b2",
  "related_object_ids": [
    "val_9TB89AjZeVEJ"
  ],
  "related_object_type": "validation_rules"
}

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required
Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

productCollectionId
string
required

A unique product collection ID.

Example:

"pc_41V4DiQQO8YGqj0J2oZD57j4"

Response

Returns no content if deletion is successful.