Skip to main content
PUT
/
v1
/
charge
/
cancel
Cancel a charge
curl --request PUT \
  --url https://sandbox.api.veepag.com/v1/charge/cancel \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <api-key>' \
  --data '
{
  "companyId": "<string>",
  "chargeId": "<string>"
}
'
{
  "error_messages": [
    {
      "msg": "Payload invalido.",
      "type": "field",
      "path": "companyId",
      "location": "body"
    }
  ],
  "code": "ZodValidationException",
  "path": "/v1/charge/cancel",
  "metadata": {}
}

Authorizations

apiKey
string
header
required

API key no formato keyId.secret.

Body

application/json
companyId
string
required
chargeId
string
required

Response

Cobranca cancelada com sucesso. Em sucesso, o endpoint nao retorna corpo de resposta.