Cards API

Read Card

Returns the card details.

get/cards/{checkout_id}

Request

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

Path parameters

checkout_idstring required

A checkout_token that represents the purchase and customer information on purchase (e.g tokenization).

Response

HTTP 200 OK

checkout_tokenstring

The virtual card token.

createdstring

Timestamp of when the virtual card was generated.

cvvstring

The virtual card security code.

numberstring

The virtual card number. In sandbox, we can set up this number to your payment gateway for testing.

callback_idstring

Can be ignored, for Affirm internal use.

cardholder_namestring

The customer's full name

expirationstring

A four-digit expiration date in MMYY format.

charge_aristring

A unique identifier representing the charge.

Example response

{
  "billing_address": {
    "city": "San Francisco",
    "state": "CA",
    "zipcode": "94107",
    "line1": "123 Example Street",
    "line2": "Apt 123"
  },
  "checkout_token": "FA0UUFRGOND84S7C",
  "created": "2020-01-24T20:00:50.712Z",
  "callback_id": "5473686c-1dc4-4153-b9a7-abfccc00ef3a",
  "cardholder_name": "John Doe",
  "charge_ari": "0959-060P"
}

Changes

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