Retrieve user's cards
A user should be able to retrieve the list of the cards linked to his account.
The user should be logged in.
GET https://api.tradingpartners.ai/api/v1/users/cards
Get users/cards response object
The response object contains the list of user's cards.
The attributes of a card are:
Attributes
id - string fmt:uuid
Partner's payment service card ID.
isDefault - boolean
true
if the current card is the default one.
isValid - boolean
true
if the current card is still valid (expiration, blocked status, etc).
dsCardNumber - string
Card number. Length might vary depending on the card brand.
dsExpiryDate - string
The expiry date of the card. The format used is YY/MM
.
dsCardBrand - string
The card brand or card scheme (ie. VISA, MasterCard, etc.).
issueAt - string fmt:date-time
Date when the card was linked to the account.