Skip to main content

 

Affirm Merchant Help

Retrieve First Data Card Details

Card details request format

GET /api/v2/checkout/<checkout_id>/checkout_instrument

This returns the card details associated with the checkout_id that was passed in the request URL. Once the card details are returned, the card can be authorized through your usual card gateway.


curl https://sandbox.affirm.com/api/v2/checkout/<checkout_id>/checkout_instrument
     -u "(public_api_key):(private_api_key)"
URL

 

Card details response object

200 Response:


{
   number:"41111111111111111",
   pin:"1234"
}
 
number
string. The First Data card number.
pin
string. The First Data card pin.

400 Response if no First Data card exists for the given checkout.


500 Response if Affirm is unable to issue a card with First Data.