DELETE
/v1/affiliates/pre-registrations/{id}The claim code stops working immediately and the person can no longer activate the link.
Request
curl -X DELETE https://api.proppertrading.com/v1/affiliates/pre-registrations/aff_pre_zd95p9x9prp3cga9thjusesr \
-H "Authorization: Bearer sk_live_a1b2c3d4_9f83c2e15b7a4d6e8091c3f5a7b9d1e2"
Response
The reservation, now revoked.
{
"data": {
"id": "aff_pre_zd95p9x9prp3cga9thjusesr",
"status": "revoked"
},
"meta": { "request_id": "req_01kz4bkr1aj1gv63d8fv3133ey" }
}
The referral code stays reserved
Withdrawing does not release the code back into circulation. The link may already have been shared, and giving it to a different affiliate later would send that traffic to the wrong person.
Errors
| Status | Code | Meaning |
|---|---|---|
| 404 | resource_not_found | No such reservation |
| 409 | pre_registration_not_pending | Already claimed or withdrawn |