Skip to main content
DELETE
Cancel Charge

Cancel Charge

Request the cancellation of Payins of type boleto or pix.

Eligibility

Cancellation Restrictions:
  • Only Payins with status = created can be canceled
  • Payin in any other status cannot be canceled

Minimum Time Before Cancellation

  • pix: at least 5 minutes after creation
  • boleto: at least 30 minutes after creation

Behavior After Cancellation Request

  • pix: canceled instantly
  • boleto: requires at least 1 day to move from drop_requested to canceled, since the process depends on confirmation from the payment processor

Path Parameters

cashInId
string
required
The ID of the payin (charge) to cancel.Example: 32458

Request Body

cashInId
string
required
The ID of the payin to cancel (must match the path parameter).

Response

status
boolean
Indicates if the cancellation request was successful.
data
object
Response data object.

Request Example

Use Cases

Cancel a Pix charge that hasn’t been paid yet:
Cancel a Boleto charge that hasn’t been paid:
Cancel multiple charges at once:
Automatically cancel charges that have expired:
Cancel a charge with full validation:

Important Notes

Pix Cancellation: Pix charges are canceled instantly once the request is made.
Boleto Cancellation: Boleto charges require at least 1 day to move from drop_requested to canceled status, as the process depends on confirmation from the payment processor.
Time Requirements: Always check that the minimum time has passed before attempting to cancel:
  • Pix: 5 minutes
  • Boleto: 30 minutes

Status Flow

Pix Cancellation Flow

Boleto Cancellation Flow

Error Handling

Common errors when canceling charges: