Skip to main content
DELETE
/
v2
/
offers
/
{id}
{
  "success": true,
  "archived": true
}
Soft-deletes an offer by setting its status to archived. The offer is not permanently removed from the system and can be restored by updating its status back to active or paused via the Update Offer endpoint. Archived offers are excluded from the default List Offers response unless you explicitly filter by status=archived.

Path Parameters

id
string
required
The unique identifier of the offer to archive.

Response Fields

success
boolean
Indicates whether the offer was archived successfully.
archived
boolean
Confirms the offer has been set to archived status.

Examples

cURL
curl -X DELETE "https://app.tracklysms.com/api/v2/offers/664f1a2b3c4d5e6f7a8b9c0d" \
  -H "X-Api-Key: trk_your_api_key_here"
Python
import requests

offer_id = "664f1a2b3c4d5e6f7a8b9c0d"

response = requests.delete(
    f"https://app.tracklysms.com/api/v2/offers/{offer_id}",
    headers={"X-Api-Key": "trk_your_api_key_here"}
)

data = response.json()
print(data)  # {"success": True, "archived": True}
Node.js
const offerId = "664f1a2b3c4d5e6f7a8b9c0d";

const response = await fetch(
  `https://app.tracklysms.com/api/v2/offers/${offerId}`,
  {
    method: "DELETE",
    headers: {
      "X-Api-Key": "trk_your_api_key_here"
    }
  }
);

const data = await response.json();
console.log(data);  // { success: true, archived: true }
{
  "success": true,
  "archived": true
}

Error Codes

HTTP StatusError CodeDescription
401unauthorizedAPI key is missing or invalid.
404not_foundNo offer exists with the specified ID.
500server_errorAn unexpected error occurred on the server.

Next Steps

Offers Overview

Manage offers and payouts

Record Revenue

Track offer revenue