Cancels a recurring payment authorization.
cURL
curl --request PUT \ --url https://api.paymee.com.br/v1.1/pix-automatic/authorizations/{idRec}/cancel \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --header 'x-api-token: <x-api-token>' \ --data ' { "reason": "Customer requested cancellation." } '
{ "status": 0, "message": "success" }
"your-x-api-key"
"your-x-api-token"
Recurrence ID (idRec) of the authorization to be canceled.
idRec
Reason for the cancellation.
A brief reason for the cancellation.
"Customer requested cancellation."
Authorization canceled successfully.
0
"success"