List sources

Return the list of the sources stored in a provided customer id.

GET v1/customers/:id/sources

curl https://testapi.txpmnts.com/v1/customers/5M-jneMWQQqUnRwqVm256w/sources \
  -u sk_test_yFStF-KUmgr-7CoumuY2JA:

The above command returns JSON structured like this:

[
    {
        "id": "Cb7gfDClSoiIJXL4h54lYw",
        "created_at": 1568895798,
        "name": "John Doe",
        "exp_month": 2,
        "exp_year": 2022,
        "last4": "0113",
        "brand": "visa",
        "customer": "P2ZTA56JQ7-AvwGf0pHd2Q",
        "fingerprint": "gEBnrziHFpLco9riUqALRU329zS8tEfNbVAPz2DQu78",
        "client_ip": "127.0.0.1",
        "address_line1": "Address Line 1",
        "address_city": "Address City",
        "address_state": "sk",
        "address_zip": "24310",
        "address_country": "PL",
        "type": "card"
    },
    {...},
    {...}
]

Arguments

Argument
Type
Description

customer

string

Customer id stored on database.

Returns

Return the list of the card object stored for the given customer.

Last updated