Skip to main content
DELETE
/
v1
/
program
Delete program
curl --request DELETE \
  --url https://api.example.com/v1/program
{
  "status": 1,
  "message": "Program deleted successfully"
}

Endpoint

DELETE https://api.partnero.com/v1/program
Permanently deletes the program associated with the API key. This is a two-step process that requires confirmation to prevent accidental deletion.
Deleting a program removes all associated partners, customers, transactions, rewards, and settings. This action cannot be undone.

How it works

  1. Request a confirmation code — call the endpoint without a confirmation_code. The API returns a unique 8-character code
  2. Confirm deletion — call the endpoint again with the confirmation_code within 20 seconds
If the code expires or doesn’t match, the deletion is rejected.

Request body

ParameterTypeRequiredDescription
confirmation_codestringNoThe confirmation code received from step 1. Omit to request a new code

Step 1: Request confirmation code

cURL
curl --location --request DELETE 'https://api.partnero.com/v1/program' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_API_KEY'

Response

200 OK
{
  "data": {
    "confirmation_code": "aB3xK9mQ"
  }
}

Step 2: Confirm deletion

Send the confirmation code back within 20 seconds to complete the deletion.
cURL
curl --location --request DELETE 'https://api.partnero.com/v1/program' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "confirmation_code": "aB3xK9mQ"
  }'

Response

{
  "status": 1,
  "message": "Program deleted successfully"
}