Skip to main content
POST
/
v1
/
transactions
/
{key}
/
archive
Archive transaction
curl --request POST \
  --url https://api.example.com/v1/transactions/{key}/archive
{
  "status": 1
}

Endpoint

POST https://api.partnero.com/v1/transactions/{key}/archive
Soft-deletes a transaction and its associated rewards. Unlike permanent deletion, archived transactions can be restored later.
This endpoint is available for affiliate programs only.

Path parameters

ParameterTypeRequiredDescription
keystringYesTransaction’s unique key

Request

cURL
curl --location --request POST 'https://api.partnero.com/v1/transactions/transaction_123/archive' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_API_KEY'

Response

{
  "status": 1
}

Error responses

StatusErrorSolution
404Transaction not foundCheck the transaction key is correct
400Action failedTransaction may already be archived
Use archive instead of delete when you may need to reverse the action later. To undo an archive, use the restore endpoint.