Delete an affiliate program

DELETE https://api.tamio.com/v2/affiliate-programs/{uuid}

Deletes an affiliate program by its UUID. Deletion will fail if the program still has active affiliates. Remove all affiliates before deleting.

Path Parameters

uuid string*

UUID of the affiliate program to delete.

Responses

200 Program deleted successfully

Program deleted successfully

status integer
id string

UUID of the deleted program.

400 Validation or business logic error. Returned when:
401 Missing or invalid API key
/affiliate-programs/{uuid}
1const response = await fetch("https://api.tamio.com/v2/affiliate-programs/{uuid}", {
2 method: "DELETE",
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,
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}