Cancels a pending charge when the payment is closed.

Requires the cancelamento ticket returned at creation. An old credit charge accepts its token in credito. It acts only in the product and environment of origin. It does not refund payments or remove the history. 202 shows a cancellation in progress; the watcher retries external failures. Returns: { id, estado }

post/api/credito/asaas/{id}/cancelar

Request

  • Base URL
    https://editalmd.com
  • URL
    https://editalmd.com/api/credito/asaas/{id}/cancelar
  • Auth
    none declared

Path parameters

idstring required

Charge ID (32 hex).

Response

{ id, estado }

idstring required

Charge ID.

estadostring required

cancelando, vencido or the final state already confirmed.

Changes

No recorded changes to this operation across all 29 revisions of this API.