v1

latestOpenAPI 3.1.02026-07-245361280.3 KB

Cancel an authorization

This service allows you to cancel an authorized transaction before it's captured.

post/payments/{authorization_id}/cancel

Path parameters

authorization_idstring required

The Authorization ID.

Response

200

idstring
amountinteger
currencystring
payment_method_idstring
payment_method_typestring
payment_method_flowstring
countrystring
created_datestring
approved_datestring
statusstring
status_detailstring
status_codestring
order_idstring
notification_urlstring

Example response

{
  "id": "D-4-09f52dd0-5cfa-4b0e-a471-1608ea0dba24",
  "amount": 120,
  "currency": "USD",
  "payment_method_id": "CARD",
  "payment_method_type": "CARD",
  "payment_method_flow": "DIRECT",
  "country": "BR",
  "created_date": "2019-02-07T17:37:36.000+0000",
  "approved_date": "2019-02-07T17:37:36.000+0000",
  "status": "CANCELLED",
  "status_detail": "The payment was cancelled",
  "status_code": "400",
  "order_id": "be2fbac6-6114-44dc-a5f5-c4cdc38dda57",
  "notification_url": "http://conductor.sandbox.internal/robot-server/rest/generic/notification/new"
}