Account Information#
These endpoints allow you as a TPP to get information from the account of a Holvi customer.
Note
All these endpoints require authentication, see the authentication documentation for the full list of headers required for these endpoints.
Payment accounts#
A Holvi customer can have multiple payment accounts. Each payment account can hold only one type of currency and the user is able to give a name to it.
List#
GET /api/v2/payment-accounts/
#
Returns a list of payment accounts for the given JWT token issued for a PSU (payment service user).
Note
Only payments from the last 365 days are returned.
Example response:
HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json
[
{
"uuid": "b06d5478-0954-451a-a1e0-f1eeb25336be",
"currency": "EUR",
"type": "psd",
"name": "Main",
"default": false,
"iban": "FI7979977991294922",
"bic": "HOLVFIHH",
"available_balance": "10000.00",
"state": "active"
}
]
Request Headers:
Host
: Must bepsd2.holvi.com
Date
: Must follow the format described in section 7.1.1.1 of RFC 7231Signature
: See authentication documentation for more detailsX-Holvi-Client-Id
: Client ID provided by HolviX-Holvi-Client-Secret
: Client secret provided by HolviAuthorization
: JWT token to authenticate
Status Codes:
200
: No error401
: Unsuccessful authentication
Filtering query parameters:
state
: The state of the payment, which can be one of the following:unverified
,verified
,paid
,notenoughbalance
,cancelled
,scheduled
.direction
: The direction of the payment, which can be eitherin
orout
.from_date
: The starting date of the payment inYYYY-MM-DD
format.to_date
: The ending date of the payment inYYYY-MM-DD
format.
Detail#
GET /api/v2/payment-accounts/(string:uuid)/
#
Returns a payment account from uuid
.
Example response:
HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json
{
"uuid": "b06d5478-0954-451a-a1e0-f1eeb25336be",
"currency": "EUR",
"type": "psd",
"name": "Main",
"default": false,
"iban": "FI7979977991294922",
"bic": "HOLVFIHH",
"available_balance": "10000.00",
"state": "active"
}
Parameters:
uuid
: UUID of the payment account that can be fetched from GET /api/v2/payment-accounts/
Request Headers:
Host
: Must bepsd2.holvi.com
Date
: Must follow the format described in section 7.1.1.1 of RFC 7231Signature
: See authentication documentation for more detailsX-Holvi-Client-Id
: Client ID provided by HolviX-Holvi-Client-Secret
: Client secret provided by HolviAuthorization
: JWT token to authenticate
Status Codes:
200
: No error401
: Unsuccessful authentication
Payments#
List#
GET /api/v2/payment-accounts/(string:uuid)/payments/
#
Returns a list of payments for payment account uuid
.
Example response:
Note
This response is shortened for brevity.
HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json
{
"count": 10,
"next": "https://psd2.holvi.com/api/v2/payment-accounts/b06d5478-0954-451a-a1e0-f1eeb25336b/payments/?page=2",
"previous": null,
"results": [
{
"uuid": "c437243b-c5a8-4629-b00c-773505868f0f",
"counterparty": {
"name": "Holvi",
"bic": "",
"account_identifier": "",
"account_identifier_type": "iban"
},
"amount": "10.00",
"currency": "EUR",
"method": "sepa",
"booking_date": null,
"due_date": "2024-06-26",
"execution_at": "2024-06-26T09:40:15.994768Z",
"state": "scheduled",
"direction": "out",
"is_credit": null,
"structured_reference": "",
"unstructured_reference": "",
"end_to_end_id": ""
}
]
}
Parameters:
uuid
: UUID of the payment account that can be fetched from GET /api/v2/payment-accounts/state
: One ofunverified
,paid
,notenoughbalance
,cancelled
,scheduled
direction
: One ofin
,out
Request Headers:
Host
: Must bepsd2.holvi.com
Date
: Must follow the format described in section 7.1.1.1 of RFC 7231Signature
: See authentication documentation for more detailsX-Holvi-Client-Id
: Client ID provided by HolviX-Holvi-Client-Secret
: Client secret provided by HolviAuthorization
: JWT token to authenticate
Status Codes:
200
: No error401
: Unsuccessful authentication
Detail#
GET /api/v2/payment-accounts/(string:payment_account_uuid)/payments/(string:payment_uuid)/
#
Example response:
HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json
{
"uuid": "c437243b-c5a8-4629-b00c-773505868f0f",
"counterparty": {
"name": "Holvi",
"bic": "",
"account_identifier": "",
"account_identifier_type": "iban"
},
"amount": "10.00",
"currency": "EUR",
"method": "sepa",
"booking_date": null,
"due_date": "2024-06-26",
"execution_at": "2024-06-26T09:40:15.994768Z",
"state": "scheduled",
"direction": "out",
"is_credit": null,
"structured_reference": "",
"unstructured_reference": "",
"end_to_end_id": ""
}
Parameters:
payment_account_uuid
: UUID of the payment account that can be fetched from GET /api/v2/payment-accounts/payment_uuid
: UUID of the payment that can be fetched from GET /api/v2/payment-accounts/(string:uuid)/payments/
Request Headers:
Host
: Must bepsd2.holvi.com
Date
: Must follow the format described in section 7.1.1.1 of RFC 7231Signature
: See authentication documentation for more detailsX-Holvi-Client-Id
: Client ID provided by HolviX-Holvi-Client-Secret
: Client secret provided by HolviAuthorization
: JWT token to authenticate
Status Codes:
200
: No error401
: Unsuccessful authentication