Skip to main content
DELETE
/
v1
/
products
/
{productId}
Delete Product
curl --request DELETE \
  --url https://{cluster}.voucherify.io/v1/products/{productId} \
  --header 'Authorization: Bearer <token>' \
  --header 'X-App-Id: <api-key>' \
  --header 'X-App-Token: <api-key>'
This response does not have an example.

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

productId
string
required

A Voucherify product ID or source ID.

Example:

"prod_3ttSkdxGuAfcv3"

Query Parameters

force
boolean

If this flag is set to true, the product and all related SKUs will be removed permanently. If it is set to false or not set at all, the product and all related SKUs will be moved to the bin. Going forward, the user will be able to create another product with exactly the same source_id.

Response

Returns no content if deletion is successful.

⌘I