Get a transaction
GET/api/transactions/:transactionId
This endpoint returns the details of a card purchase transaction by a given ID.
Request
Path Parameters
Primary identifier of the transaction to fetch
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
Array [
debit
- The transaction is from the cardholders’ balance to Immersve balancecredit
- The transaction is from Immersve balance to cardholders’ balance]
The transaction ID
A description of the transaction
Which account this transaction belongs to
Possible values: [init
, holding
, cleared
, failed
]
The status of the transaction
Which card this transaction belongs to
The billing amount of the transaction, an integer in the smallest denomination for the given currency
The billing currency of the transaction
The acquirer amount of the transaction, an integer in the smallest denomination for the given currency
The acquirer currency of the transaction
The locked funds' currency of the transaction
The fee amount of the transaction
The chain of the locked funds on
The created date formatted in ISO of the transactions
The cleared date formatted in ISO of the transactions
The reference used when making an enquiry through customer support
cardAcceptor
object
required
The city of the card acceptor
The country code of the card acceptor
The name of the card acceptor
Possible values: [credit
, debit
]
Indicates if the transaction was a credit or debit
web3Transactions
object[]
required
Possible values: [debit
, credit
]
The type of the web3 transaction:
The hash of the web3 transaction
The associated credit card transaction ID
Possible values: [authorization
, clearing
, reversal
]
The associated credit card transaction type
The first 6 digits of the card's PAN
The last 4 digits of the card's PAN
{
"id": "1000000178145",
"description": "Air NZ Online Auckland",
"accountId": "225d85e65495722bf6517ea0ba0d6f56",
"status": "init",
"cardId": "6c474aa7a5dc45bff721b5a207cf0f47",
"amount": "31412",
"currency": "USD",
"acquirerAmount": "31412",
"acquirerCurrency": "NZD",
"lockedFundCurrency": "USDC",
"feeAmount": "12",
"chain": "Polygon",
"transactionDate": "2022-11-09T03:24:15.182Z",
"processedDate": "2022-11-09T03:24:15.182Z",
"reference": "1000000178145",
"cardAcceptor": {
"city": "Auckland",
"countryCode": "NZ",
"name": "Air NZ Online"
},
"creditDebitIndicator": "credit",
"web3Transactions": [
{
"type": "debit",
"hash": "0x6f87ad90847828cb8575bd8f3c9a9cdde12a2e53e047604b6012f156495cce1e",
"transactionId": "1000000178145",
"transactionType": "authorization"
}
],
"panFirst6": "123456",
"panLast6": "1234"
}
Request fields are invalid
- application/json
- Schema
- Example (from schema)
Schema
{
"statusCode": 400,
"statusName": "Bad Request",
"errorCode": "BAD_REQUEST",
"errors": [
"Expected string, received number"
]
}
No Authorization to access resource.
- application/json
- Schema
- Example (from schema)
Schema
{
"statusCode": 403,
"statusName": "Forbidden",
"errorCode": "FORBIDDEN",
"reason": "Unauthorized"
}