Skip to main content
DELETE
Cancel Charges by Period

Cancel Charges by Period

Request the asynchronous cancellation of every eligible Payin created by a merchant within a date range, filtered by payment method. Useful when a merchant needs all of its open charges canceled at once (e.g. when the account is being deactivated).
This is an asynchronous request. The response returns the estimated number of charges that matched the filters and were queued for cancellation. The actual cancellation is performed by background jobs.

Eligibility

Cancellation Restrictions — a charge is only queued for cancellation when it:
  • has status = created
  • was created between start_date and end_date
  • matches one of the requested payment_method values
  • respects the minimum time since creation (see below)

Minimum Time Before Cancellation

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

Request Body

integer
required
The ID of the merchant whose charges will be canceled. Must belong to the authenticated user.
string
required
Start of the creation period, format Y-m-d H:i:s.Example: 2025-09-30 00:00:00
string
required
End of the creation period, format Y-m-d H:i:s. Must be after start_date.Example: 2025-12-31 00:00:00
array
required
The payment methods to include in the cancellation. Must contain at least one value.Useful values:
  • pix
  • billet
The value credit-card is accepted by validation but credit-card charges are never eligible for cancellation, so including it has no effect.

Response

boolean
Indicates if the cancellation request was successfully accepted.
object
Response data object.
string
Confirmation message about the cancellation request.

Request Example

Important Notes

Pix Cancellation: Pix charges are canceled instantly once the job runs.
Billet Cancellation: Billet charges require at least 1 day to move from drop_requested to canceled, as the process depends on confirmation from the payment processor.
To cancel a specific set of charges instead of a whole period, use Cancel Charges with a list of IDs.