List Transactions on Card
https://sandboxapi.bitnob.co/api/v1/virtualcards/cards/{card_id}/transactions (opens in a new tab)
List all the transactions for a given card
Path Params
Parameter | type | Required |
---|---|---|
card_id | string | ✅ |
Query Params
Parameter | type | Required |
---|---|---|
order String Defaults to ASC | string | |
page | int32 | |
take The number of users to return | string |
Request
Virtual Cards/List Transactions on Card [GET]
curl --request GET \
--url https://sandboxapi.bitnob.co/api/v1/virtualcards/cards/card_id/transactions \
--header 'Authorization: Bearer API-KEY' \
--header 'accept: application/json'
Responses
🟢 200 - Result example
{
"status": true,
"message": "successfully fetched virtual card",
"data": {
"cardTransactions": [
{
"id": "22082e24-8a0a-4ea2-9a7d-3a633cdaf206",
"createdAt": "2022-12-20T09:33:12.025Z",
"updatedAt": "2022-12-20T09:33:14.286Z",
"amount": "500",
"centAmount": "500",
"type": "credit",
"method": "withdrawal",
"narrative": null,
"status": "success",
"currency": "usd",
"reference": "kdjhdjwjodfw",
"cardId": "4f644a2c-3c4f-48c7-a3fa-e896b544d546"
},
{
"id": "54febad6-8770-4721-9aaf-26044d33725b",
"createdAt": "2022-12-20T09:31:34.574Z",
"updatedAt": "2022-12-20T09:31:36.287Z",
"amount": "1000",
"centAmount": "1000",
"type": "credit",
"method": "topup",
"narrative": null,
"status": "success",
"currency": "usd",
"reference": "hello",
"cardId": "4f644a2c-3c4f-48c7-a3fa-e896b544d546"
},
{
"id": "72104f15-0fe6-456f-bb6c-38484824bf9d",
"createdAt": "2022-12-20T09:30:22.565Z",
"updatedAt": "2022-12-20T09:30:24.272Z",
"amount": "500",
"centAmount": "500",
"type": "credit",
"method": "topup",
"narrative": null,
"status": "success",
"currency": "usd",
"reference": "tester",
"cardId": "4f644a2c-3c4f-48c7-a3fa-e896b544d546"
},
{
"id": "92bc66d5-186c-4092-be17-ac80e13de82b",
"createdAt": "2022-12-20T09:29:08.167Z",
"updatedAt": "2022-12-20T09:29:14.460Z",
"amount": "500",
"centAmount": "500",
"type": "credit",
"method": "topup",
"narrative": null,
"status": "success",
"currency": "usd",
"reference": "testing22",
"cardId": "4f644a2c-3c4f-48c7-a3fa-e896b544d546"
}
],
"meta": {
"page": 1,
"take": 10,
"itemCount": 4,
"pageCount": 1,
"hasPreviousPage": false,
"hasNextPage": false
}
}
}
Last updated on