> For the complete documentation index, see [llms.txt](https://apidocs.arionbanki.is/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.arionbanki.is/business-apis/authentication/sandbox.md).

# Sandbox

The best way to test out the service is to use our sandbox APIs, that way you will not need to use a certificate and you do not need to access production data.

## Create an application

To get started with the service, first create a new *Business API* application on the [Arion developer portal. ](https://apidocs.arionbanki.is/business-apis/authentication/www.developer.arionbanki.is)

<figure><img src="https://4095428740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWRKRXR147Y5hgO0DneWg%2Fuploads%2FZOnVOtdugSl9f2Nt1nHU%2Fimage.png?alt=media&amp;token=76891b3a-fd80-48c3-9e63-098ddf6092ac" alt=""><figcaption></figcaption></figure>

## Get your API key

After creating an application, you will receive an API key which is used to connect to the webservice.

<figure><img src="https://4095428740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWRKRXR147Y5hgO0DneWg%2Fuploads%2FkuFPQzboyUa8HuopDnCU%2Fimage.png?alt=media&amp;token=579a2ee9-a29a-48ed-a53c-0f86b11bb1f3" alt=""><figcaption></figcaption></figure>

Note that when a new application is created, a sandbox version is created so this API key is for the sandbox environment. To make a production application, you need to "go live" with the application. For more information on how to get started with a production application, see the [guide for production. ](broken://pages/r1EmBu2pwaiQ1qFsPf70)🚀

## Create sandbox testing data

The sandbox APIs do not use production data but rather sandbox data generated on the developer portal. Head over to the "Data" tab at the top of the page and create a new "fake person":&#x20;

<figure><img src="https://4095428740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWRKRXR147Y5hgO0DneWg%2Fuploads%2FXshS2owrT2Wm3dL1aazM%2Fimage.png?alt=media&amp;token=edd16b04-5c96-4872-8eee-0913b1251f2a" alt=""><figcaption></figcaption></figure>

Once a fake person has been created, you can create fake resources for that person. \
Choose a person you have created and press the "Create credit card" button to create a sandbox credit card for the selected person:&#x20;

<figure><img src="https://4095428740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWRKRXR147Y5hgO0DneWg%2Fuploads%2FZKMQ6QaDkBXC9esG4LtG%2Fimage.png?alt=media&amp;token=06bbf0a6-0446-441e-85a5-4676dfdfe45a" alt=""><figcaption></figcaption></figure>

Each created credit card will have randomised transaction data generated for it automatically. The transaction data can be viewed by choosing a card.&#x20;

## User authorization on sandbox

Since we are not using real data on the sandbox, we do not need to use username and passwords to access the data like in the production environment.&#x20;

However, to simulate the OAuth flow we use a sandbox generated access token that can be fetched on the portal. To generate a token, simply head over to your application on the developer portal and press "Generate Token". Afterwards, you will choose your application and the "fake person" you would like to create a token for. This token is then used as a Bearer token in the sandbox request calls. Note that this sandbox token lives for a long time so you will not need to create it again.

<figure><img src="https://4095428740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWRKRXR147Y5hgO0DneWg%2Fuploads%2FhjJTzChb5pPj7utv8llo%2Fimage.png?alt=media&amp;token=d60244d1-6664-4e7a-af7a-5843b583e4b2" alt=""><figcaption></figcaption></figure>

The base URLs for sandbox are

* <https://apigwsandbox.arionbanki.is/cards>
* <https://apigwsandbox.arionbanki.is/claims>
* <https://apigwsandbox.arionbanki.is/documents>

## Use Our Sample Clients

Check out our sample clients if you want an example of usage:

{% columns %}
{% column %}
Here's a guide on how to get Postman set up against our services:

{% content-ref url="/pages/Qf4oYxCJ7tayE0YVbEMa" %}
[Postman Examples](/business-apis/examples/postman-examples.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Here's an example of a .NET client if you prefer that;

{% content-ref url="/pages/R5GwZIHeTwiKK8nehodk" %}
[.NET Sample Clients](/business-apis/examples/.net-sample-clients.md)
{% endcontent-ref %}
{% endcolumn %}
{% endcolumns %}
