Cancels a pending charge when the payment dialog closes.

Requires the cancelamento capability returned at creation. An older credit charge accepts its token in credito. The product and environment must match. This does not refund payments or remove records. 202 means cancellation is pending; the scheduled worker retries provider failures. Returns: { id, estado }

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

Request

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

Path parameters

idstring required

Charge id (32 hex).

Response

{ id, estado }

idstring required

Charge id.

estadostring required

cancelando, vencido, or the confirmed final state.

Changes

No recorded changes to this operation across all 1 revision of this API.