Cards API

Cancel Card

Cancels an authorized loan and voids the corresponding virtual card.

post/cards/{checkout_id}/cancel

Request

  • Base URL
    https://api.global.affirm.com/api/v2
  • URL
    https://api.global.affirm.com/api/v2/cards/{checkout_id}/cancel
  • Auth
    HTTP basic

Path parameters

checkout_idstring required

a unique idenifier of the VCN transaction

Response

HTTP 200 OK

messagestring

A message on the action taken on the virtual card.

codestring

A code sharing the status of this action. The code will be "success" for 200 responses, or explain the error for 400 responses.

checkout_tokenstring

The checkout_id of the virtual card.

Example response

{
  "message": "The card was successfully scheduled to finalize. You should see changes reflected in 24 hours.",
  "code": "success",
  "checkout_token": "FA0UUFRGOND84S7C"
}

Changes

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