Vincent is here! Just say the word, and Vincent will build the campaigns for you! Get early access.
curl --request DELETE \
--url https://{cluster}.voucherify.io/v1/product-collections/{productCollectionId} \
--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"
}This method deletes a product collection.
curl --request DELETE \
--url https://{cluster}.voucherify.io/v1/product-collections/{productCollectionId} \
--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"
}Documentation Index
Fetch the complete documentation index at: https://docs.voucherify.io/llms.txt
Use this file to discover all available pages before exploring further.
Was this page helpful?