curl --request DELETE \
--url https://{cluster}.voucherify.io/v2/loyalties/tier-structures/{tierStructureId}/tiers/{tierId} \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"tier_structure_id": "<string>",
"name": "<string>",
"downgrade": {
"type": "INHERIT"
},
"object": "tier",
"qualification_rules": {
"type": "POINTS",
"points": {
"min_value": 123,
"max_value": 123
},
"segment": {
"id": "<string>"
}
}
}{
"code": 123,
"key": "<string>",
"message": "<string>",
"details": "<string>",
"request_id": "<string>",
"resource_id": "<string>",
"resource_type": "<string>"
}{
"code": 123,
"key": "<string>",
"message": "<string>",
"details": "<string>",
"request_id": "<string>",
"resource_id": "<string>",
"resource_type": "<string>"
}{
"code": 500,
"key": "api_error",
"message": "Something went wrong. Don't worry, your campaigns are still safe and the Voucherify Team has been notified. Check out our Help Center and forums for help, or head back to home."
}Delete tier
This documentation is in progress. The parameters, fields, request and response bodies, and other data may be subject to change. If you need more information or you want to share feedback, contact Voucherify support or your Technical Account Manager.
Deletes a tier by marking it deleted and returns the deleted tier. Returns 400 (resource_in_use) when an earning rule or a reward still references the tier.
curl --request DELETE \
--url https://{cluster}.voucherify.io/v2/loyalties/tier-structures/{tierStructureId}/tiers/{tierId} \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"tier_structure_id": "<string>",
"name": "<string>",
"downgrade": {
"type": "INHERIT"
},
"object": "tier",
"qualification_rules": {
"type": "POINTS",
"points": {
"min_value": 123,
"max_value": 123
},
"segment": {
"id": "<string>"
}
}
}{
"code": 123,
"key": "<string>",
"message": "<string>",
"details": "<string>",
"request_id": "<string>",
"resource_id": "<string>",
"resource_type": "<string>"
}{
"code": 123,
"key": "<string>",
"message": "<string>",
"details": "<string>",
"request_id": "<string>",
"resource_id": "<string>",
"resource_type": "<string>"
}{
"code": 500,
"key": "api_error",
"message": "Something went wrong. Don't worry, your campaigns are still safe and the Voucherify Team has been notified. Check out our Help Center and forums for help, or head back to home."
}Authorizations
Path Parameters
Identifies the tier structure. Format lts_[a-f0-9]+.
^lts_[a-f0-9]+$Identifies the tier. Format lt_[a-f0-9]+.
^lt_[a-f0-9]+$Response
The deleted tier.
Response body schema for DELETE /v2/loyalties/tier-structures/{tierStructureId}/tiers/{tierId}.
Free-form key/value object holding custom attributes. Defaults to {}.
Creation timestamp (ISO 8601).
Last update timestamp (ISO 8601), or null if never updated.
Unique tier identifier.
^lt_[a-f0-9]+$Unique identifier of the parent tier structure.
^lts_[a-f0-9]+$Display name of the tier.
Tier-level downgrade behavior. Always present; when the tier has no downgrade
configured, an empty object (no type) is returned.
Show child attributes
Show child attributes
Object type discriminator. Always tier.
"tier"Rules determining which members qualify for this tier.
Show child attributes
Show child attributes

