List Transactions
GEThttps://api.immersve.com/api/accounts/:accountId/transactions
List card purchase transactions by account
This API uses cursor-based pagination. Start by making a request without a cursor to get the first page. Use the nextCursor from the pageInfo in the response as the cursor for subsequent requests to retrieve further pages. Continue until nextCursor is undefined, indicating no more data.
Request
Path Parameters
accountId linked to transactions
Query Parameters
amount of records to return (max 1000)
cursor to retrieve the next page
Filter for transactions from this date (inclusive). Value should be a ISO 8601 string or RFC 2822 string
Filter for transactions up to this date (inclusive). Value should be a ISO 8601 string or RFC 2822 string
Possible values: [all
]
Filter for transaction status groups. By default the endpoint will return "holding" and "cleared" transactions. Passing "all" includes all statuses.
Responses
- 200
- 400
- 403
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
items
object[]
pageInfo
object
{
"items": [
{
"id": "1000000178145",
"description": "Air NZ Online Auckland",
"accountId": "225d85e65495722bf6517ea0ba0d6f56",
"status": "init",
"cardId": "6c474aa7a5dc45bff721b5a207cf0f47",
"amount": "31412",
"currency": "USD",
"acquirerAmount": "31412",
"acquirerCurrency": "NZD",
"feeAmount": "12",
"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",
"paymentType": "purchase",
"relatedPaymentId": "b297658d0cbac11"
}
],
"pageInfo": {
"nextCursor": "dGhlIG5leHQgY3Vyc29yIGdvZXMgaGVyZQ=="
}
}
Request fields are invalid
- application/json
- Schema
- Example (from schema)
Schema
errors
object[]
{
"statusCode": 400,
"statusName": "Bad Request",
"errorCode": "INVALID_REQUEST_INPUT",
"errors": [
{
"message": "Invalid type",
"path": "items[1].attributes.invalidField"
}
]
}
No Authorization to access resource.
- application/json
- Schema
- Example (from schema)
Schema
{
"statusCode": 403,
"statusName": "Forbidden",
"errorCode": "FORBIDDEN",
"reason": "Unauthorized"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://api.immersve.com/api/accounts/:accountId/transactions' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'