Retrieve card data

Retrieve the card information linked to the given card and customer id.

GET /v1/customers/:id/sources/:id

curl https://testapi.txpmnts.com/v1/customers/P2ZTA56JQ7-AvwGf0pHd2Q/sources/TlnNDVS6TteSn2-FEh3ZKg \
  -u sk_test_yFStF-KUmgr-7CoumuY2JA:

The above command returns JSON structured like this:

{
	"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

Argument
Type
Description

customer

string

Customer id owner of the card id provided.

cardID

string

Card id that you want to retrieve.

Returns

Return the card with the id if the card is linked to the customer if not it return 404.

Last updated