Sandbox configuration
Sandbox-only commands and simulation utilities for testing KYC/KYB, fiat pay-ins, crypto funding, webhooks, and transfer flows.
Configure sandbox-only testing utilities to simulate flows that differ from production behavior.
Overview
Use the sandbox environment to test onboarding, KYC/KYB, pay-ins, webhooks, and transfer flows without triggering production money movement or production verification decisions.
Sandbox utilities are only available for testing. Do not use sandbox command URLs or simulation endpoints in production integrations.
Sandbox access
- API base URL:
https://api.sandbox.due.network - Dashboard: https://app.sandbox.due.network
Get a sandbox API key from the platform dashboard under Developers > API keys, or from the business portal under Settings > API keys. You can also issue a key with POST /v1/api_keys. See Authentication for the authorization header.
There is currently no sandbox tool to move a transfer to failed or to the refund statuses.
Sandbox KYC
In sandbox, KYC is simulated by Due and does not go through Sumsub. As a result:
POST /v1/kyc/sessiondoes not return a usable Sumsub SDK access token in sandbox. You can test the Sumsub SDK only in production.- The link returned by the same call opens Due’s sandbox KYC page, where you can approve the applicant or simulate Sumsub review events. It does not open the Sumsub verification flow.
- Applicants approved in sandbox are not reviewed against real documents. Use production for end-to-end verification testing.
KYC sharing from your own Sumsub account is not affected and continues to use Sumsub’s sandbox.
Stub KYC applicant approval
In sandbox, you can simulate an applicant review in Due and mark the applicant as approved without a Sumsub review.
You can approve the applicant in either of these ways:
-
Call the sandbox endpoint directly with the account ID whose KYC/KYB status you want to approve:
POST /dev/sumsub/applicants/{{accountId}}/approveReplace
{{accountId}}with the sandbox account ID. -
Use the sandbox approval tool:
https://dev.sandbox.due.network/commands/sumsub/approve-applicant
Use this when you need to test flows that depend on a completed KYC/KYB status, such as:
- creating gated virtual accounts after KYC/KYB approval;
- testing endorsement flows;
- testing post-KYC onboarding steps;
- validating webhook handling for status changes.
This endpoint and tool are sandbox-only. In production, KYC/KYB status is determined by the normal verification review process.
Simulate a KYC rejection
In sandbox, you can simulate a failed or resubmission-required review for an account, so you can test how your integration handles kyc.status values other than passed.
Start an active KYC session for the account with POST /v1/kyc or POST /v1/kyc/session before you simulate a review.
Call the sandbox endpoint with the account ID and a JSON body that sets the reject type:
POST /dev/sumsub/applicants/{{accountId}}/applicantReviewed/RED
Content-Type: application/json
{"review":{"reviewStatus":"completed","reviewResult":{"reviewAnswer":"RED","reviewRejectType":"FINAL"}}}Replace {{accountId}} with the sandbox account ID.
The reviewRejectType value decides the resulting status:
reviewRejectType | Resulting kyc.status |
|---|---|
FINAL | failed |
RETRY | resubmission_required (mapped in code; sandbox test not yet confirmed) |
Each status change sends a bp.kyc.status_changed webhook. A RED call without reviewRejectType leaves the account in pending and sends no event.
The sandbox KYC page simulates RED without a reject type, so use the endpoint above to reach failed or resubmission_required.
To test moving the account back to passed, use the approval endpoint or tool above. The code mapping supports this transition, but approval after a rejection has not yet been confirmed in a sandbox test.
Simulate fiat pay-ins
In sandbox, you can simulate an incoming fiat pay-in instead of sending funds from an external bank.
Use the sandbox pay-in simulation endpoint:
POST /dev/payinThe request can include the pay-in amount, currency, rail, reference, sender, and recipient details used for the test scenario.
SEPA example shape:
{
"currency": "EUR",
"rail": "sepa",
"amount": "100.00",
"reference": "test-reference",
"sender": {
"schema": "bank_sepa"
},
"recipient": {
"schema": "bank_sepa"
}
}Matching rules
- Virtual accounts: Set
recipientto the virtual account details returned when you created the account. - Transfers: Set
recipienttotransferInstructions.details. If the rail uses a memo (for example, SEPA), setreferencetotransferInstructions.memo.
An HTTP 200 from /dev/payin means the simulator sent the payment, not that it matched. Check the deposit or transfer status, or use its webhook, to confirm the result.
COP Bre-B (cop_breb)
cop_breb)Bre-B matches pay-ins by the Bre-B key, not by a memo or reference. Omit reference from the request.
- Recipient: Use
bank_co_brebwith the key from the virtual account details or the transfer'stransferInstructions.details. - Sender: Use
bank_colombia(a Colombian bank account), notbank_co_breb. GetfinancialInstitutionIdfromGET /v1/financial_institutions/CO/bank_colombia. CheckGET /v1/schemasfor the allowedbankAccountTypeandidTypevalues.
{
"currency": "COP",
"rail": "cop_breb",
"amount": "100000",
"sender": {
"schema": "bank_colombia",
"accountType": "individual",
"firstName": "John",
"lastName": "Snow",
"financialInstitutionId": "<id from GET /v1/financial_institutions/CO/bank_colombia>",
"bankAccountType": "<see GET /v1/schemas>",
"accountNumber": "<account number>",
"idType": "<see GET /v1/schemas>",
"idNumber": "<id number>"
},
"recipient": {
"schema": "bank_co_breb",
"name": "<account holder name>",
"key": "@<Bre-B key>"
}
}If you use bank_co_breb for sender, the simulator still returns HTTP 200, but the pay-in won't match and no deposit is created.
BOB pay-ins (bob_local)
bob_local)BOB pay-ins return a hosted payment link in transferInstructions.url. In sandbox, this link points to a stub host and does not open a page.
To mark the pay-in as paid, call /dev/payin with that link in externalLink:
POST /dev/payin{
"currency": "BOB",
"rail": "bob_local",
"externalLink": "https://stub.dlocal.com/gmf-apm/payments/..."
}The transfer then moves to payment_processed.
Use pay-in simulation to test:
- virtual account deposit handling;
- transfer status updates after funds are received;
- webhook delivery for incoming payment flows;
- reconciliation logic in your application.
/dev/payinsupports fiat pay-ins only. It cannot simulate crypto funding.
Test crypto legs
/dev/payin cannot simulate crypto funding. Fund crypto legs yourself on the sandbox chain with test USDC issued by the sandbox.
-
Get test USDC. Mint it to your sender wallet from the Stub Admin. Select the network (for example, Base Sepolia), USDC, your sender wallet address, and the amount.
Mint to the sender wallet, never to the funding address. Do not use public testnet faucets: they issue a different token that the sandbox does not recognize, so deposits of that token are never matched.
-
Fund the transfer. Create the transfer with your wallet as the sender, then request a funding address:
POST /v1/transfers/{transferId}/funding_addressThe response returns
details.address. Send the exactsource.amountof USDC from the sender wallet to that address in a single transaction beforeexpiresAt. The sender wallet must also hold enough native token to pay gas. -
Follow the matching rules. The deposit is matched to the transfer by sender address and amount. The sending address must exactly match the sender set on the transfer.
If you use a contract wallet, such as a Safe or smart account, set that contract address as the sender and send from it. Funds sent from another address, with a different amount, split across multiple transactions, or sent after expiry remain in
awaiting_fundsand are not credited. -
Wait for processing. After the deposit is confirmed, the transfer moves through
approvedandpayment_submittedtopayment_processedautomatically. You do not need to simulate the payout.
Sandbox network IDs differ from mainnet and not every network has a sandbox equivalent. Use GET /v1/networks on the sandbox base URL for the current list.
Production differences
Sandbox commands and simulation endpoints replace external actions for testing only.
| Flow | Sandbox behavior | Production behavior |
|---|---|---|
| KYC/KYB approval | You can stub applicant approval with /dev/sumsub/applicants/{{accountId}}/approve or the sandbox approval tool. | Approval is determined by the verification review process. |
| Fiat pay-ins | You can simulate incoming funds with /dev/payin. | Funds must arrive through the external bank or payment rail. |
| Crypto legs | Fund the registered sender wallet's transfer address yourself on the corresponding sandbox chain. | Funds must arrive on the corresponding production chain. |
| Webhooks | Use simulated actions to trigger and validate webhook handling. | Webhooks are triggered by real production events. |
Recommended testing flow
- Create a sandbox account.
- Start KYC/KYB for the account.
- Call
/dev/sumsub/applicants/{{accountId}}/approveor use the sandbox approval tool when you need the applicant to be approved. - Create the virtual account, transfer, or endorsement you want to test.
- Call
/dev/payinfor fiat flows that depend on incoming funds. - For crypto legs, mint test USDC from the Stub Admin to the sender wallet, request a funding address, and send the exact amount from that wallet.
- Verify webhook delivery and update your internal records from the webhook payloads.
Updated 1 day ago