# Testing in Sandbox

The Sandbox environment lets you build and test your integration without affecting live data. It mirrors the production API but uses separate credentials and isolated data.

## Sandbox base URL

```
https://api.sandbox.fondo.se/v2/partner
```

You receive sandbox credentials (`client_id` and `client_secret`) as part of partner onboarding.

## Order settlement

Subscription orders in Sandbox settle automatically on a predictable 30-minute cycle. Timing deviations may occur, and a part of the cycle may sometimes be skipped.

| Time | What happens |
|  --- | --- |
| HH:00, HH:30 | pending orders are submitted to the fund provider — status moves to `sent` |
| ~30min after send | subscriptions orders' status moves to `settled` |


Redemption orders follow the same submission schedule but are settled manually by Fondo at earliest 45 minutes after being sent. To trigger settlement, provide Fondo with the order id.

The typical testing cycle for a subscription looks like:

1. Place an order — it appears with status `pending`.
2. At the next :00 or :30, the order moves to `sent`.
3. 30 minutes later it settles automatically.
4. Verify that fund transactions, balances, and account values update correctly.


## Swish

- The swish app will give the user an error message in sandbox, but the swish transaction will complete successfully.


## NPC environment

For testing mock user data, use the NPC environment instead:

```
https://api.npc.fondo.se/v2/partner
```

NPC uses **test-BankID** rather than real BankID, allowing you to complete KYC, account opening, and autogiro signing flows without real identity verification.
Otherwise it should correspond to the sandbox Environment