Get Started

Note that you are currently using the beta version of our APIs and documentation.

Here is how you get started with OP Developer.

Create an account

Register an account here and get access to our sandbox APIs and collaborate with our advisors and business partners.

How to create an application

After you have registered your account, you can start creating applications from here.

First, choose the API products that your application is going to use. After your application is created, you can find your application's API key in the application table. Use this key in the x-api-key header.

You're allowed to share the app key within your team but do not share your API key with the public e.g. public github repo, on a website, in a code sample etc.

When you're done developing your application and want to start using our production APIs please let us know.

Because this is a beta version of the developer site, callback url and API secrets are not in use at the moment.

Newsletter

Subscribe to our newsletter and we will keep you up to date when there is new features added

FAQ

More questions? We have listed typical questions on our Frequently asked questions page.

If you’re still missing an answer, don’t hesitate to give us feedback or email us at api@op.fi.

Examples

It is important to us that our APIs are easy to use. Here are examples to help you get started.

SDK

To help you getting started, we have created a Javascript SDK for our APIs. You can start using the SDK by following instructions here: https://www.npmjs.com/package/@op/api-sdk.

If you have improvement suggestions please create an issue or a pull request to our GitHub repository https://github.com/op-developer/op-api-javascript-sdk.

GitHub

You can find other examples in our GitHub: https://github.com/op-developer/

Usage examples

NodeJs

Example using OP JS SDK for getting all accounts for example customer

import SDK from "@op/api-sdk";

const options = {
    headers: {
        'x-api-key': 'your-api-key',
        'x-authorization': 'b6910384440ce06f495976f96a162e2ab1bafbb4'
    }
}
const client = new SDK.Client(options)

const accounts = await client.getAllAccounts();
// accounts is array of Account objects.

Curl

Example curl request for getting all accounts for example customer:

curl -X GET \
  https://sandbox.apis.op-palvelut.fi/v1/accounts \
  -H 'x-api-key: * your_api-key *' \
  -H 'x-authorization: b6910384440ce06f495976f96a162e2ab1bafbb4' \

Returns:

[
    {
        "accounId": "064418ca1d292a5112e9804af4dc66df5b90203c",
        "iban": "FI2350009421535899",
        "bic": "OKOYFIHH",
        "accountName": "KÄYTTÖTILI",
        "balance": 0,
        "amountAvailable": 0,
        "currency": "EUR",
        "ownerId": "b6910384440ce06f495976f96a162e2ab1bafbb4"
    },
    {...}
]

Overview

All API requests require an API key and an authorization token. See below for more information.

Availability

Our sandbox APIs are available to anyone wanting to test or develop their applications.

API products are tagged with current API lifecycle status (experimental, in development, in production, deprecated).


Sandbox environment

This sandbox is your environment to get to know about our APIs. It provides the same APIs as our production environment but with mock data.

Currently the sandbox environment is in beta stage, so some changes to the APIs and request header structure are subject to change.


Production environment and support

Once you have tested your business case in the Sandbox environment and feel confident that APIs here fulfil your needs, it’s time to move on to production.

You can apply to production environment by sending an email to tpp-support@op.fi stating your business case, schedule and the APIs you’d need. You will first receive the terms of use for the APIs in the reply email. After accepting the terms of use, you will then receive the information on how to use the APIs in production.

Note that APIs have different classifications which directly correlate to lead time for getting the production keys – open data APIs have typically shorter lead times and regulated data APIs longer. This is simply due to legislative requirements.

Also note that you can only apply to APIs which are explicitly stated to being in production. Follow OP-Developer site and our newsletters to keep up to date on production status of our APIs.


Authentication

Currently authentication is simulated with static tokens. You can pass along the x-authorization header with one of following tokens to get access to different end-user data:

Token
6c18c234b1b18b1d97c7043e2e41135c293d0da9
b6910384440ce06f495976f96a162e2ab1bafbb4
7a66629ddf3691a66eb6466ab7a9f610de531047
3af871a0e3ebfc46f375ff2b63d1414982bd4f76

Security

All requests are made over https to ensure that request payload and headers are encrypted. Be aware that TLS 1.0 and 1.1 versions are nearing their end of life, so we strongly encourage you to use clients that support TLS version 1.2.


API Security Considerations For Production

  • Security requirements and mechanisms for a particular API depends on the risk level of the service and the confidentiality of the data processed.

  • Authentication and authorization requirements are set according to the risk levels as well.

  • As a minimum requirement, confidential data must be protected both in transit and in store.

  • Risk levels are evaluated and security levels and requirements are set accordingly, please see the table below.

Security levelAccess Control Requirements
HighThe client app must be authenticated and authorized to use the API. Strong customer authentication methods are used to authenticate the end-user using the OIDC protocol. The end-user can also be subject to fine grained authorization within the API processing logic. TLS Mutual authentication and encryption is compulsory.
SubstantialThe client app must be authenticated and authorized to use the API. Strong customer authentication of the end-user as well as end-user authorization is often required.
BasicThe client app must be registered and will be authenticated prior to granting access to the API. A user can be a technical user e.g. a system or a process and it must be authorized to use the API. Usually, there is no need to authenticate the end-user, though the user information can be relayed in the payload.
OpenClient application must be registered.

Refer to the technical documentation of the API in question for detailed security implementation guidelines.


API Versioning

API's version is embedded in the URI: sandbox.apis.op-palvelut.fi/v1/accounts. The v1 part of the URI is the current major version for the API. When the next major version of the API is published the version number is increased by one e.g. sandbox.apis.op-palvelut.fi/v2/accounts. Backward compatibility between major API versions is not guaranteed and usually previous major version is deprecated when new version is published.


Requests

You should use these custom headers in your requests:

NameExampleDescription
x-api-keya161-43ee-b222(Required) Consumer application's API key
x-session-idc38a-11e7-abc4(Optional) Session identifier for in-memory data
x-request-idstring(Optional) Request unique identifier (not validated at the moment)
x-authorizationsee authentication(Required) Token for end-user simulation

Rate limiting

Currently requests to all sandbox APIs are limited to 1000 requests / application / day. If the daily limit is reached the server responds with a HTTP status code 429 (see below) along with X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers, which tells the caller that the request limit has been reached.

If you feel that 1000 requests per day isn't enough for your developer application feel free to contact us, along with a description of your usage needs.


Responses

Normal operation of an API request is indicated in a response message by an HTTP status in the range of 200-399.

The list below summarizes HTTP normal operation status codes.

200 OK

A successful retrieval or update operation

400 BAD REQUEST

The request contained invalid or missing request headers, parameters or payload. A retry of an identical request will not succeed. Possible error conditions:

  • Validation errors of headers or payload
  • Missing or malformed content, invalid encoding etc.
401 UNAUTHORIZED

Resource access requires user identification. Identity token is missing or invalid.

429 TOO MANY REQUESTS

Optional, used when a request is rejected due to rate limiting.

500 INTERNAL SERVER ERROR

A system error, specified in detail by the error data descriptor in the response payload.
Possible error conditions include:

  • Runtime exception in a service
  • Application server failure
  • Unrecoverable technical exception
  • Business level exception
503 SERVICE UNAVAILABLE

The service exists but it is temporarily unavailable, e.g. due to overload or maintenance. The application server instance is not accepting requests.


Errors

Sometimes the execution of an API call fails and the error situation must be handled. In these cases, the error situation is indicated by proper HTTP status code as defined in response status code listing. In addition to standard HTTP status codes, also custom consumable error descriptors are provided to the client as part of the response payload. The examples below show the structure of an error descriptor in JSON format which is the default format for REST APIs. The error descriptor might contain 1-n errors. If there is an error descriptor in the response, it is the only payload data available. The following table describes the error descriptor content.

FieldRequiredDescription
IdyesA unique identifier for the error event, for example UUID. Generated on the server side when the error occurs.
LevelyesError level can be FATAL, ERROR or WARN. For a FATAL, no retry is likely to succeed without server side maintenance measures. An ERROR may be temporary and the request may be retried later. A WARN level error indicates that as part of the request execution, something went wrong but the end result is ok.
TypeyesAllowed error types are SECURITY, VALIDATION, TECHNICAL and BUSINESS. A BUSINESS type of an error message must include a business specific error code and a an optional detailed error code.
MessageyesA textual description of the error condition.
CodenoAn error code defined by the application, for errors of type BUSINESS only.
DetailedConstraitViolationsnoDetailed map of validation fields and constraints that failed, for errors of type VALIDATION only.

Error descriptor is attached to the response message payload as children of top-level element "errors" in the event of a server side error.

{
    "errors": [
        {
            "id": "G_-20343744:143e886a59f:-7ff9",
            "level": "ERROR",
            "type": "BUSINESS",
            "message": "Account balance exceeded",
            "code": "ACC_ERR_123"
        }
      ]
}


op-cover-banking

Banking

Products

In development
prod-accounts

Accounts with AI

Accounts with AI APIs provide access points to basic, enriched, and predictive information on accounts and transactions.

In development
prod-payments

Payments

Payment APIs allows you to initiate and confirm SEPA payments between participants.

In production
paymenthighway-logo

Payment Highway

Payment Highway offers Finland’s best app payment experience. The APIs enable one-click payments and recurring charging in-app and on the web.

    In production
    pivo-logo

    Pivo Payment

    Finland’s largest mobile wallet payment solution is designed to make paying online easy and fast. The API supports online, in-app and Facebook messenger.

    Go to Pivo API docs

      In production
      yrityssiirto-logo-svg

      OP-Yrityssiirto

      The API allows merchants to pay real time transfers directly to consumers’ bank accounts.

      Go to Pivo API docs

        About

        Banking is OP’s largest business segment providing customers with a comprehensive range of products and services. In the coming years, we will see a big shift in banking as the PSD2 obliges European banks to open their APIs. We consider this as a great opportunity to collaborate with FinTechs and start-ups in expanding the services we offer to our customers.

        Development

        OP is dedicated to continously develop our Banking APIs. Through our sandbox, at this moment, you can use the Accounts and Payments APIs. When you're ready and want to go live with your service or application, just contact us.

        During 2018 we're going to release many more APIs in our sandbox.

        Pricing & Usage

        Sandbox APIs are free to use although some restrictions on the number of calls apply.

        Contact

        For all API questions just reach out to api@op.fi and we'll get right back to you.


        op-cover-wealth

        Wealth

        Products

        In development
        prod-fund

        Funds

        APIs for user's holdings, fund information and creating redemption and subscription orders.

        In development
        prod-holdings

        Holdings

        APIs for user's holdings information.

        About

        Our APIs for mutual funds open new possibilities to embed the concept of saving and investing as part of other service experiences. We offer a set of APIs allowing you to invest in funds, view your current ownerships and their development, as well as redeem ownerships.

        Unlike many other products, mutual funds do not have a minimum investment limitation, hence making it possible to accumulate savings over time also through very small one time transactions. Mutual fund APIs make investments accessible to wider customer groups with innovative new distribution arrangements.

        Development

        We are looking to release more Wealth API Products later this year, in the area of stock market trading and custodies. These APIs will be available in production to selected partners.

        Pricing & Usage

        Sandbox APIs are free to use although some restrictions on the number of calls apply.

        Contact

        For all API questions just reach out to api@op.fi and we'll get right back to you.


        cover-mobility

        Mobility

        Products

        In production
        Branches

        Branches

        Branches API provides your customers with up-to-date information on the closest bank branches.

        About

        Mobility APIs is about locations and getting from A to B.

        Development

        OP is dedicated to continously develop our Mobility APIs. Through our sandbox, at this moment, you can use the Mobility APIs. When you're ready and want to go live with your service or application, just contact us.

        During 2018 we're going to release many more APIs in our sandbox.

        Pricing & Usage

        Sandbox APIs are free to use although some restrictions on the number of calls apply.

        Contact

        For all API questions just reach out to api@op.fi and we'll get right back to you.

        Support

        FAQ

        We have listed typical questions on our Frequently asked questions page.

        Feedback

        If you’re still missing an answer don’t hesitate to give us feedback

        Please include your email address if you want us to reply.

        Contact

        You can email us at api@op.fi