Store a card
Store the card is used to store the card information for a customer.
curl https://{provided url}/v1/customers/P2ZTA56JQ7-AvwGf0pHd2Q/sources \
-u sk_test_yFStF-KUmgr-7CoumuY2JA: \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d card[number]=5159084567916624 \
-d card[exp_month]=12 \
-d card[exp_year]=2022 \
-d card[name]=John Doe \
-d card[address_line1]=Address line 1 \
-d card[address_state]=mz \
-d card[address_city]=Cardholder City \
-d card[address_zip]=24310 \
-d card[address_country]=pl \
-d client_ip=127.0.0.1{
"id": "TlnNDVS6TteSn2-FEh3ZKg",
"created_at": 1568904725,
"name": "John Doe",
"exp_month": 12,
"exp_year": 2022,
"last4": "6624",
"brand": "mastercard",
"customer": "P2ZTA56JQ7-AvwGf0pHd2Q",
"fingerprint": "R1gbK7BauiX3XdnUCQRhzlnvMxxtSKVS7NqScFBeVRE",
"client_ip": "127.0.0.1",
"address_line1": "Address line 1",
"address_city": "Cardholder City",
"address_state": "mz",
"address_zip": "24310",
"address_country": "PL",
"type": "card"
}Arguments
Parameter
Type
Required
Description
Returns
Last updated