v1

latestOpenAPI 3.1.02026-08-04490133.8 KB

Get a single card transactions

get/cards/transactions/{cardId}

Path parameters

cardIdstring required

enter the card id

Query parameters

querystring

Enter title of card merchant e.g. udemy

fromstring

Enter start date in this format: 2023-05-20

tostring

Enter end date in this format: 2023-05-20

typestring

Specify the transaction type, either Credit or Debit

statusstring

It can be either Successful, Pending or Failed

Response

200

codeinteger
successboolean

Example response

{
  "code": 200,
  "data": {
    "message": "Cards fetched successfully",
    "data": {
      "card": [
        {
          "id": 30,
          "date": "2023-09-18T09:17:33.000Z",
          "authorization": {
            "currency": "USD",
            "amount": "4.98"
          },
          "merchant": {
            "name": "UDEMY  ONLINE COURSES",
            "city": "+18888385432 CA",
            "country": "US"
          },
          "status": "failed",
          "currency": "USD",
          "amount": "4.98",
          "createdAt": "2023-09-22T14:12:26.503Z",
          "processedAt": "2023-09-18T08:17:32.782Z",
          "balanceBefore": "0.01999999999999957",
          "balanceAfter": "5",
          "type": "debit"
        }
      ],
      "limit": 20,
      "page": 1,
      "total": 3
    }
  },
  "success": true
}