PUT
/
v1.1
/
pix-automatic
/
authorizations
/
{idRec}
/
cancel
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"
}

Headers

x-api-key
string
required
Example:

"your-x-api-key"

x-api-token
string
required
Example:

"your-x-api-token"

Path Parameters

idRec
string
required

Recurrence ID (idRec) of the authorization to be canceled.

Body

application/json

Reason for the cancellation.

The body is of type object.

Response

200
application/json

Authorization canceled successfully.

The response is of type object.