Sandbox Access for Premium Customers
The Sandbox environment allows premium customers to develop and test integrations before connecting to production services.
How to Request Access
Prerequisites
Before requesting access, ensure that the following requirements are met:
- StepsDescription
- 1. Contact Sales and attain Premium Customer StatusPremium customer status or an active premium customer agreement.
- 2. Get Client certificate for authenticationProvide a compliant client certificate for authentication.
- 3. Complete the onboardingComplete of the onboarding process for accessing the production or sandbox environments
Step 1: Contact Sales
Contact your sales representative to request Sandbox access. The sales team will verify eligibility and initiate the onboarding process.
If you do not have an assigned sales representative, please use the standard sales channels available on our website.
Step 2: Obtain a Client Certificate
Access to the Sandbox requires mutual TLS (mTLS) authentication using a client certificate.
Certificate requirements and onboarding instructions will be provided during the onboarding process.
Step 3: Complete Onboarding
During onboarding:
During the onboarding process, we will prepare the technical setup required for accessing the Sandbox environment. This may include configuring access, establishing connectivity, and performing any necessary environment-specific preparations.
Our technical team will guide you through the process and provide the information required to successfully connect and begin testing.
Sandbox Capabilities
The Sandbox service contract follows the OpenAPI Specification (OAS) published for the service. This enables development and validation against an API contract that closely resembles the production environment.
Sandbox Capabilities and LimitationsThe Sandbox environment is designed to support integration development and testing before moving to production. It enables testing of normal business flows, common validation and business error scenarios, as well as application behavior during integration failures and recovery situations.
To provide a stable and controlled testing environment, certain limitations apply. The Sandbox uses restricted test data and simulated business processes, and some features or integrations may not be available. Performance characteristics may also differ from the production environment and should not be used for capacity or performance testing.
Sandbox Availability
Sandbox environments are available for selected services. Not all services currently offer Sandbox support.
Your sales representative or onboarding contact can confirm whether Sandbox support is available for the services you intend to integrate with.
Test Data and Scenario Documentation
Detailed information regarding test data, available scenarios, supported error conditions, and environment limitations is provided during onboarding.
As the Sandbox environment is continuously maintained and improved, test data and supported scenarios may evolve over time. Documentation is therefore distributed directly to onboarded organizations to ensure access to the most up-to-date information.
Next Steps
Once access has been granted, use the API documentation, integration guides, and OpenAPI specifications available in the Developer Portal to start developing and testing your integration.
For questions regarding onboarding, Sandbox availability, or certificate requirements, contact your sales representative.
Getting Started with the Sandbox Environment
The Sandbox environment is designed to accelerate development and integration testing. It allows you to validate authentication and authorization, explore API capabilities, and verify your implementation before connecting to the production environment.
An implementation developed against the Sandbox environment should be straightforward to migrate to production. However, we strongly recommend validating your solution against the production environment before going live. While Sandbox is designed to behave as closely as possible to production, subtle differences may exist, including response times, available data, and other environment-specific characteristics.
The examples below use curl and assume a recent version is installed.
Throughout the documentation, API operations are presented using simplified paths such as:
GET /v1/premium-documents/document-category/periodic-reports/documents
When calling the Sandbox environment, the Sandbox host must be prepended to the API path. For example:
curl -X GET \
'https://sandbox2.handelsbanken.com/openbanking/documents/v1/consents' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'X-IBM-Client-Id: <your-client-id>' \
-H 'Authorization: Bearer <access-token>' \
-H 'organisation-number: 5020077862' \
-H 'Accept: application/json'
Endpoint
The Sandbox base URL is https://sandbox2.handelsbanken.com/openbanking
The Sandbox environment uses HTTPS and presents a certificate that is trusted by most operating systems and development environments. If the certificate chain is not trusted within your network, consult your infrastructure or network administrator.
Accept-Encoding
The API supports commonly used HTTP compression formats such as gzip, deflate, and Brotli. This header is optional and is only indicative what the client supports
X-IBM-Client-Id
As part of the onboarding process, you will receive a unique client ID. This value must be included in every API request.
Requests with a missing or invalid client ID will be rejected and typically result in a
401 Unauthorized response.
Authorization
The bearer token is obtained through the OAuth 2.0 authentication flow and must be supplied in subsequent calls. There are probably differences between the authentication flow in the sandbox compared to the live environment
Refer to the authentication documentation for details on obtaining access tokens. The documentation is found here
Organisation Number
The organisation-number header identifies the corporate customer whose data is being
requested. If the organisation-number is omitted you will get a client error in return if required.
If you are a service provider accessing data on behalf of a customer, you must supply the customer's organisation number, not your own. If you are accessing your own organization's data, you must supply your own organisation number.
Use a 10-digit organisation number without separators:
Accept
The Accept header specifies the expected response format.
Most API operations support JSON. Consult the documentation for each endpoint to determine which response formats are supported.
Content-Type
Requests containing a request body must specify a Content-Type header indicating the
format of the payload. Consult the documentation about supported types for each service. JSON is often implied if nothing else
is written. The service returns a client error if the specified type is not supported.
JSON is the most commonly used payload format. The Content-Type header is not required
for GET requests or other body-less requests because no request body is sent.