List cards
| Time | Status | User Agent | |
|---|---|---|---|
| Make a request to see history. |
URL Expired
The URL for this request expired after 30 days.
Response Structure
Response Schema
- country: string, enum - The card country of issuance following ISO 3166 alpha-3 (Allowed:
USA,CAN,AUS,NZL,PRT,BEL) - expiryMonth: integer - The card expiration month (1 to 12)
- expiryYear: integer - The card expiration year
- subaccountId: uuid
- limit: integer - Defaults to 25 (1 to 100)
- offset: number - Defaults to 0
- accept: string, enum - Defaults to application/hal+json (Allowed:
application/hal+json,application/problem+json)
Response Codes
- 200: Successful operation
- 400: The server cannot or will not process the request due to a client error
- 401: Authentication credentials were missing or incorrect
- 403: Authentication credentials do not have permissions to perform the request
- 500: The server encountered an unexpected condition
Sample CURL Request
curl --request GET \
--url 'https://api.astrada.co/cards?limit=25&offset=0' \
--header 'accept: application/hal+json'
Sample Response
{
"_links": {
"self": {
"href": "/cards"
}
},
"_embedded": {
"cards": [
{
"_links": {
"self": {
"href": "/cards/8309b5f8-d5d8-49bb-9001-38bf1bb0f1e4"
}
},
"id": "8309b5f8-d5d8-49bb-9001-38bf1bb0f1e4",
"expiryMonth": 12,
"expiryYear": 2026,
"network": "mastercard",
"country": "USA",
"createdAt": "2024-02-04T18:41:16.142Z",
"updatedAt": "2024-02-04T18:41:16.142Z",
"first6digits": "424242",
"last4digits": "4242",
"subaccountId": "da6649a8-f0ea-4af0-b342-c0b5c3e024dd"
},
{
"_links": {
"self": {
"href": "/cards/f744b691-bf05-4f2a-ab89-bb1afe4eb840"
},
"cardholder": {
"href": "/cards/f744b691-bf05-4f2a-ab89-bb1afe4eb840/cardholder"
}
},
"id": "f744b691-bf05-4f2a-ab89-bb1afe4eb840",
"expiryMonth": 11,
"expiryYear": 2028,
"network": "mastercard",
"country": "USA",
"createdAt": "2024-02-04T18:41:16.142Z",
"updatedAt": "2024-02-04T18:41:16.142Z",
"first6digits": "434343",
"last4digits": "4343",
"subaccountId": "da6649a8-f0ea-4af0-b342-c0b5c3e024dd"
}
]
},
"totalItems": 2
}