Get sandbox account transactions
GET/v1/sandbox/accounts/:mockAccountId/transactions
Only for managing sandbox data, not part of the production API. Get all transactions on an account created using POST /v1/sandbox/accounts. This can include transactions created using POST /v1/sandbox/accounts/{mockCardAccountId}/transactions or from payments performed in the sandbox.
Request
Path Parameters
Query Parameters
Advertises which date the client wishes to receive transactions from.
Advertises which date the client wishes to receive transactions to.
Advertises how many transactions should be skipped before starting to count the limit.
Possible values: >= 1
Advertises how many transactions should be returned.
Header Parameters
- keyId must be formatted as
keyId="SN=XXX,CA=YYY"
whereXXX
is the serial number of the signing certificate in hexadecimal encoding andYYY
is the full Distinguished Name of the Certificate Authority having certificate - algorithm must identify the same algorithm for the signature as presented in the signing certificate and should be
rsa-sha256
- headers must contain
date
,digest
,x-request-id
,psu-id
,psu-corporate-id
, andtpp-redirect-uri
when available - signature must be computed as
Base64(RSA-SHA256(signingString))
Advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header.
Advertises which character set the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice within the Content-Type response header.
Advertises which content encoding, usually a compression algorithm, the client is able to understand. Using content negotiation, the server selects one of the proposals, uses it and informs the client of its choice with the Content-Encoding response header.
Advertises which natural languages the client is able to understand, and which locale variant is preferred. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Language response header.
The domain name of the server (for virtual hosting), and (optionally) the TCP port number on which the server is listening.
Request identifier, unique to the call, as determined by the TPP.
The certificate used for signing the request in base64 encoding.
HTTP Message Signature as specified by https://tools.ietf.org/html/draft-cavage-http-signatures-10 with requirements imposed by Berlin Group's NextGenPSD2 Framework.
If any values in the Signature header is ISO-8859-1 or UTF-8 encoded you need to URL encode the Signature header according to RFC 2047 which means MIME encoding the signature.
Also the signature must be wrapped using this format: =?charset?encoding?encoded signature?=
Example of this encoding: =?utf-8?B?a2V5QTQsQ0E9Mi41LjQuOTc9IzB........jMTM1MDUzNDQ0ZTRmMmQ0NjUz?=
Java example of how to implement encoding:
if (charset.equals(StandardCharsets.UTF_8)) {
Signature = String.format("=?utf-8?B?%s?=", Base64.getEncoder().encodeToString(signature.getBytes(StandardCharsets.UTF_8)));
}
Responses
- 200
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
creditorAccount
object
required
debtorAccount
object
required
Possible values: >= 4 characters
and <= 14 characters
ISO20022 Bank Transaction Code available if supported by underlying services
_links
object
required
self
object
required
[
{
"id": "enc!!4c_ShWHL-8V71weszbvvxjXl76AZFJOp2tfV9l_Wth0re5ZeSwOhiXwLrQCmJqp4",
"amount": 1,
"currency": "NOK",
"valueDate": "1557446400000",
"remittanceInformationUnstructured": "Ipsum lorem",
"creditorName": "Testperson 1",
"creditorAccount": {
"bban": "90491105991",
"iban": "NO6290491105991"
},
"debtorName": "Testperson 2",
"debtorAccount": {
"bban": "90491105991",
"iban": "NO6290491105991"
},
"bankTransactionCode": "PMNT",
"ultimateDebtor": "Ultimate debtor name",
"ultimateCreditor": "Ultimate creditor name",
"purposeCode": "code",
"bookingDate": "1557446400000",
"_links": {
"self": {
"href": "/v1/sandbox/accounts/enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD/transactions/enc!!4c_ShWHL-8V71weszbvvxjXl76AZFJOp2tfV9l_Wth0re5ZeSwOhiXwLrQCmJqp4",
"verbs": [
"GET",
"DELETE"
]
}
}
}
]
[
{
"id": "enc!!4c_ShWHL-8V71weszbvvxjXl76AZFJOp2tfV9l_Wth0re5ZeSwOhiXwLrQCmJqp4",
"amount": 1,
"currency": "NOK",
"valueDate": "1557446400000",
"remittanceInformationUnstructured": "Ipsum lorem",
"creditorName": "Testperson 1",
"creditorAccount": {
"bban": "90491105991",
"iban": "NO6290491105991"
},
"debtorName": "Testperson 2",
"debtorAccount": {
"bban": "90491105991",
"iban": "NO6290491105991"
},
"bankTransactionCode": "PMNT",
"ultimateDebtor": "test",
"ultimateCreditor": "Test",
"purposeCode": "code",
"bookingDate": "1557446400000",
"_links": {
"self": {
"href": "/v1/sandbox/accounts/enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD/transactions/enc!!4c_ShWHL-8V71weszbvvxjXl76AZFJOp2tfV9l_Wth0re5ZeSwOhiXwLrQCmJqp4",
"verbs": [
"GET",
"DELETE"
]
}
}
},
{
"id": "enc!!d7HYAhRYWywk1GdrTGzsev8BeAvYvTB5Jqpn5fBkWpn5xNgcdTYEqdLsUslb2zg1",
"amount": 2,
"currency": "NOK",
"valueDate": "1557446400000",
"remittanceInformationUnstructured": "Ipsum lorem",
"creditorName": "Testperson 1",
"creditorAccount": {
"bban": "90491105991",
"iban": "NO6290491105991"
},
"debtorName": "Testperson 2",
"debtorAccount": {
"bban": "90491105991",
"iban": "NO6290491105991"
},
"bankTransactionCode": "PMNT",
"ultimateDebtor": "test",
"ultimateCreditor": "Test",
"purposeCode": "code",
"bookingDate": "1557446400000",
"_links": {
"self": {
"href": "/v1/sandbox/accounts/enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD/transactions/enc!!d7HYAhRYWywk1GdrTGzsev8BeAvYvTB5Jqpn5fBkWpn5xNgcdTYEqdLsUslb2zg1",
"verbs": [
"GET",
"DELETE"
]
}
}
},
{
"id": "enc!!bWaPqAXp6G_pocVnh_PZv8xty6Pzl8L4-JXpu_y3KHCtuZBxyFRfaX9Xbxn0CebA",
"amount": 3,
"currency": "NOK",
"valueDate": "1557446400000",
"remittanceInformationUnstructured": "Ipsum lorem",
"creditorName": "Testperson 1",
"creditorAccount": {
"bban": "90491105991",
"iban": "NO6290491105991"
},
"debtorName": "Testperson 2",
"debtorAccount": {
"bban": "90491105991",
"iban": "NO6290491105991"
},
"bankTransactionCode": "PMNT",
"ultimateDebtor": "test",
"ultimateCreditor": "Test",
"purposeCode": "code",
"bookingDate": "1557446400000",
"_links": {
"self": {
"href": "/v1/sandbox/accounts/enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD/transactions/enc!!bWaPqAXp6G_pocVnh_PZv8xty6Pzl8L4-JXpu_y3KHCtuZBxyFRfaX9Xbxn0CebA",
"verbs": [
"GET",
"DELETE"
]
}
}
}
]