List cards
Changed onList the cards the caller can see, physical cards first, then by name. Closed cards are left out unless status asks for them.
Request
- Base URLhttps://api.slash.com
- URLhttps://api.slash.com/v2/cards
- AuthAPI key in header X-API-Key
Query parameters
The opaque metadata.nextCursor value from the previous page. It carries that page's filters, page size and ordering, so pass it on its own; see Pagination.
Number of items per page, from 1 to 100. The page size is carried inside metadata.nextCursor, so later pages keep the same size unless limit is passed again to change it.
Return cards in these statuses. Defaults to every status but closed.
Return virtual or physical cards.
Return cards issued on one account.
Return cards on one virtual account.
Return cards in one card group.
Return cards held by one user.
Match on the card name, its last four digits or its id.
Response
A page of cards.
Example response
{
"items": [
{
"id": "c_2rj4l7hmrrrcv",
"name": "Ads – Meta",
"last4": "4242",
"expiryMonth": 9,
"expiryYear": 2030,
"accountId": "sa_group_2rj4l7hmrrrcv",
"virtualAccountId": "subaccount_2rj4l7hmrrrcv",
"cardGroupId": "card_group_2rj4l7hmrrrcv",
"cardProductId": "card_product_2rj4l7hmrrrcv",
"cardholderUserId": "u_2rj4l7hmrrrcv",
"controls": {
"limit": {
"amount": {
"amount": 500000,
"currency": "USD"
},
"period": "monthly"
},
"transactionLimit": {
"amount": 250000,
"currency": "USD"
},
"merchantCategoryCodes": {
"mode": "block",
"values": [
"7995"
]
}
},
"physical": {
"secondLine": "Computer Services"
}
}
]
}Changes
- info
endpoint added
- info