Skip to main content

Cancel a Cancellation Request

API data

API Gateway
This API is used for payment gateway operations:

Cancel a pending cancellation request

Used to cancel a cancellation request that is in PENDENTE status. After cancellation, the request will no longer be processed.

POST /v1/refund/cancel

Data dictionary - Request body

FIELDDESCRIPTIONTYPESIZENOTES
IdUnique identifier of the cancellation requestguid-Required.
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "CANCELADO",
"message": "Status alterado para CANCELADO com sucesso",
"lastModifiedOn": "2024-11-12T14:30:00"
}

Data dictionary - Response

FIELDDESCRIPTIONTYPENOTES
idUnique identifier of the requestguid-
statusNew request statusstring-
messageConfirmation messagestring-
lastModifiedOnDate and time of last modificationdatetime-
Cancellation rules
  • Only requests with PENDENTE status can be canceled
  • Once canceled, the request cannot be reverted
Status flow

A cancellation request can have the following statuses:

  • PENDENTE: Waiting to be processed
  • CANCELADO: Canceled by the user (via this API)
  • APROVADO: Processed and approved by the team
  • REJEITADO: Processed and rejected by the team

This API can only change requests from PENDENTE to CANCELADO.