Get sandbox agreements
GET/v1/sandbox/agreements
Only for managing sandbox data, not part of the production API. Get list of all agreements created using POST /v1/sandbox/agreements. Both private and corporate agreements are shown.
Request
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 [
Array [
]
]
engagements
object[]
required
account
object
required
Possible values: [OWNER
, DISPOSAL
, VIEW
, REGISTER
, APPROVE
, INTERNAL_TRANSFER
, SALARY
]
_links
object
required
self
object
required
engagements
object
required
[
{
"id": "enc!!oHc4g0K00_s2115LNqycmoQWN8tluC1Apmivegog7Ix3EpASoZ-Doe3mR7tuLEyvRbS7CdzKM1FnHYKx4KTKyA==",
"name": "Testavtale",
"engagements": [
{
"id": "enc!!s5D4NqQEMBHkWZB-bKMJPBtBfr5D6qhsKNsOQ1um5jHiJdEThVowZHquX20B7jNGop831hQj_9sXLqAVwls9OA==",
"customer": "01085800481",
"owner": 999999991,
"account": {
"bban": "90412263056",
"iban": "NO2390412263056"
},
"roles": [
"VIEW",
"REGISTER"
],
"accessRights": false,
"paymentRights": false,
"transferRights": false,
"registerLimit": 0,
"approvalLimit": 0
}
],
"_links": {
"self": {
"href": "/v1/sandbox/agreements/enc!!oHc4g0K00_s2115LNqycmoQWN8tluC1Apmivegog7Ix3EpASoZ-Doe3mR7tuLEyvRbS7CdzKM1FnHYKx4KTKyA==",
"verbs": [
"GET",
"DELETE"
]
},
"engagements": {
"href": "/v1/sandbox/agreements/enc!!oHc4g0K00_s2115LNqycmoQWN8tluC1Apmivegog7Ix3EpASoZ-Doe3mR7tuLEyvRbS7CdzKM1FnHYKx4KTKyA==/engagements",
"verbs": [
"POST",
"DELETE"
]
}
}
}
]
[
{
"id": "enc!!9LnOfAAQ-HgKXsU61DSZc0b1M9k-2FkJ4Hunsoe4mfTD3AOU_Evq91NkmNgd1lK9RRT6jE7MV7aAPxm7gMrQLg==",
"name": "Testavtavtale",
"owner": "999999991",
"engagements": [
{
"id": "enc!!1bRk1fK4sFyUtXGn39GeNXOVW5jeCV9D_QQ5GEpGZmGa1Juu6yA_ISHbyn7sXolF55Am8zAFoSUFSYGN7LbHag==",
"customer": "01085800481",
"account": {
"bban": "91351631959",
"iban": "NO8591351631959"
},
"roles": [
"OWNER"
],
"accessRights": true,
"paymentRights": true,
"transferRights": true,
"registerLimit": 10000,
"approvalLimit": 10000
}
],
"_links": {
"self": {
"href": "/v1/sandbox/agreements/enc!!9LnOfAAQ-HgKXsU61DSZc0b1M9k-2FkJ4Hunsoe4mfTD3AOU_Evq91NkmNgd1lK9RRT6jE7MV7aAPxm7gMrQLg==",
"verbs": [
"GET",
"DELETE"
]
},
"engagements": {
"href": "/v1/sandbox/agreements/enc!!9LnOfAAQ-HgKXsU61DSZc0b1M9k-2FkJ4Hunsoe4mfTD3AOU_Evq91NkmNgd1lK9RRT6jE7MV7aAPxm7gMrQLg==/engagements",
"verbs": [
"POST",
"DELETE"
]
}
}
},
{
"id": "enc!!oHc4g0K00_s2115LNqycmoQWN8tluC1Apmivegog7Ix3EpASoZ-Doe3mR7tuLEyvRbS7CdzKM1FnHYKx4KTKyA==",
"name": "Testavtale",
"engagements": [
{
"id": "enc!!s5D4NqQEMBHkWZB-bKMJPBtBfr5D6qhsKNsOQ1um5jHiJdEThVowZHquX20B7jNGop831hQj_9sXLqAVwls9OA==",
"customer": "01085800481",
"account": {
"bban": "90412263056",
"iban": "NO2390412263056"
},
"roles": [
"VIEW",
"REGISTER"
],
"accessRights": false,
"paymentRights": false,
"transferRights": false,
"registerLimit": 0,
"approvalLimit": 0
}
],
"_links": {
"self": {
"href": "/v1/sandbox/agreements/enc!!oHc4g0K00_s2115LNqycmoQWN8tluC1Apmivegog7Ix3EpASoZ-Doe3mR7tuLEyvRbS7CdzKM1FnHYKx4KTKyA==",
"verbs": [
"GET",
"DELETE"
]
},
"engagements": {
"href": "/v1/sandbox/agreements/enc!!oHc4g0K00_s2115LNqycmoQWN8tluC1Apmivegog7Ix3EpASoZ-Doe3mR7tuLEyvRbS7CdzKM1FnHYKx4KTKyA==/engagements",
"verbs": [
"POST",
"DELETE"
]
}
}
}
]