Documentation Index Fetch the complete documentation index at: https://docs.tracklysms.com/llms.txt
Use this file to discover all available pages before exploring further.
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
The unique identifier of the offer to archive.
Response Fields
Indicates whether the offer was archived successfully.
Confirms the offer has been set to archived status.
Examples
curl -X DELETE "https://api.tracklysms.com/api/v2/offers/664f1a2b3c4d5e6f7a8b9c0d" \
-H "X-Api-Key: trk_your_api_key_here"
import requests
offer_id = "664f1a2b3c4d5e6f7a8b9c0d"
response = requests.delete(
f "https://api.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}
const offerId = "664f1a2b3c4d5e6f7a8b9c0d" ;
const response = await fetch (
`https://api.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 }
200 - Success
404 - Not Found
401 - Unauthorized
{
"success" : true ,
"archived" : true
}
Error Codes
HTTP Status Error Code Description 401 unauthorizedAPI key is missing or invalid. 404 not_foundNo offer exists with the specified ID. 500 server_errorAn unexpected error occurred on the server.
Next Steps
Offers Overview Manage offers and payouts
Record Revenue Track offer revenue