Account Information#

These endpoints allow you as a TPP to get information from the account of a Holvi customer.

Note

All these endpoints are authenticated, see the authentication documentation for the full list of headers required for this endpoint.

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).

Example response:

[
    {
        "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 be psd2.holvi.com

  • Date: Must follow the format described in section 7.1.1.1 of RFC 7231

  • Signature: See authentication documentation for more details

  • X-Holvi-Client-Id: Client ID provided by Holvi

  • X-Holvi-Client-Secret: Client secret provided by Holvi

  • Authorization: JWT token to authenticate

Status Codes:

  • 200: No error

  • 401: Unsuccessful authentication

Detail#

GET /api/v2/payment-accounts/(string:uuid)/#

Returns a payment account from uuid.

Example response:

{
    "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:

Request Headers:

  • Host: Must be psd2.holvi.com

  • Date: Must follow the format described in section 7.1.1.1 of RFC 7231

  • Signature: See authentication documentation for more details

  • X-Holvi-Client-Id: Client ID provided by Holvi

  • X-Holvi-Client-Secret: Client secret provided by Holvi

  • Authorization: JWT token to authenticate

Status Codes:

  • 200: No error

  • 401: 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.

{
    "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 of unverified, paid, notenoughbalance, cancelled, scheduled

  • direction: One of in, out

Request Headers:

  • Host: Must be psd2.holvi.com

  • Date: Must follow the format described in section 7.1.1.1 of RFC 7231

  • Signature: See authentication documentation for more details

  • X-Holvi-Client-Id: Client ID provided by Holvi

  • X-Holvi-Client-Secret: Client secret provided by Holvi

  • Authorization: JWT token to authenticate

Status Codes:

  • 200: No error

  • 401: Unsuccessful authentication

Detail#

GET /api/v2/payment-accounts/(string:payment_account_uuid)/payments/(string:payment_uuid)/#

Example response:

{
    "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:

Request Headers:

  • Host: Must be psd2.holvi.com

  • Date: Must follow the format described in section 7.1.1.1 of RFC 7231

  • Signature: See authentication documentation for more details

  • X-Holvi-Client-Id: Client ID provided by Holvi

  • X-Holvi-Client-Secret: Client secret provided by Holvi

  • Authorization: JWT token to authenticate

Status Codes:

  • 200: No error

  • 401: Unsuccessful authentication