Bulk delete discounts

POST https://api.tamio.com/v2/discounts/bulk/delete

Permanently deletes multiple discounts and all their associated data. Invalid or non-existent UUIDs are silently skipped.

Body Parameters

discounts array of string*

Array of discount UUIDs to delete

Responses

200 Discounts deleted successfully

Discounts deleted successfully

status integer
400 Validation error
401 Unauthorized – invalid or missing Bearer token
/discounts/bulk/delete
1const response = await fetch("https://api.tamio.com/v2/discounts/bulk/delete", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200
}