> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ignyt.si/llms.txt
> Use this file to discover all available pages before exploring further.

# Test in Sandbox

> Test data and scenario products that trigger real checkout outcomes, without real stores or money.

Test data
The built-in Sandbox test store behaves like a real store, and a few products always trigger a specific outcome so you can test how your integration handles it.

Sandbox is a separate environment with its own keys, merchants and orders. Payments use the provider's test mode, so nothing in Sandbox charges real money, and the built-in test stores never ship goods. Other stores connected in Sandbox can be real stores, so orders placed with them can reach that store. Never use a fulfillment-enabled live store for testing. Connect a built-in test store from the dashboard; you can have up to two active test stores per company.

## Test store products

| SKU | Product | Price (AED) | What happens |
| - | - | - | - |
| `OUD-50` | Royal Oud Perfume 50ml | 249.00 | Normal product. Use it for the happy path. |
| `COF-SET` | Arabic Coffee Set | 159.00 | Normal product. |
| `DATES-S` | Dates Gift Box, Small 500g | 45.00 | Normal product, high stock. |
| `DATES-L` | Dates Gift Box, Large 1kg | 89.00 | Normal product. |
| `SOLD-OUT-SNK` | Limited Sneaker | 399.00 | The catalog shows it in stock, but the quote reports it as unavailable. Test how you tell the shopper an item sold out after they added it. |
| `PRICE-UP-LAMP` | Brass Lamp | 120.00 | The quote returns a price 10% higher than the catalog. Test showing the new total and asking the shopper to approve it again. |
| `FAIL-ORDER-KTL` | Cursed Kettle | 99.00 | The store rejects the order after payment. Test a partial purchase: the purchase becomes `partially_placed`, other stores' orders stay placed and the failed store's share is refunded. |
| `UNKNOWN-ORDER-HP` | Ghost Headphones | 299.00 | The store creates the order but the response is lost. Ignyt recovers it by looking the order up, so the purchase ends placed. Test that you wait for the final status instead of retrying. |
| `LOST-ORDER-WTC` | Lost Watch | 199.00 | The store times out and its lookup finds no order. Ignyt cannot prove the order failed, so the store order stays `unknown`, the purchase stays `placing` and nothing is refunded automatically. Test that you show this as pending and never resubmit. |

If your test store was set up with a SKU prefix, the SKUs above start with that prefix. The scenario still applies because Ignyt matches the scenario name inside the SKU.

## Shipping, tax and coupons

The test store charges AED 15.00 shipping per store and 5% VAT on the discounted subtotal plus shipping. These coupon codes work:

| Code | Effect |
| - | - |
| `SAVE10` | 10% off the store's subtotal |
| `FREESHIP` | Free shipping for that store |
| Anything else | Quoting returns `409 coupon_rejected`. Remove or replace the code and request a fresh quote. |

Set coupons per store connection with `PUT /v1/carts/{cart_id}/coupons`, then request a new quote:

```json Request body theme={"theme":{"light":"github-light","dark":"vesper"}}
{ "coupons": { "con_01M8NWKBAESANDBOXSTORE0001": ["SAVE10"] } }
```

## Test payments

Sandbox payments use the payment provider's test mode. Follow `payment_action.url` from the purchase and pay with one of the provider's published Sandbox test cards. Test both a successful card and a declined card, and a card that requires 3D Secure. Never enter a real card in Sandbox.

## Test your webhooks

Send a test event to a registered endpoint with `POST /v1/webhook-endpoints/{endpoint_id}/test`, then check that your receiver verified the signature and stored the event. See [Webhooks](https://docs.ignyt.si/webhooks.md).

## What to test before going live

* A purchase with two stores where one succeeds and one fails (`FAIL-ORDER-KTL` plus a normal product).
* A price change and a sold-out item at quote time.
* Retrying a submission after a lost response, with the same `Idempotency-Key` and body.
* A declined card, then a successful payment.
* Webhook delivery, duplicate events and events that arrive out of order.
* A store order whose response was lost and later recovered (`UNKNOWN-ORDER-HP`), and one that stays unknown (`LOST-ORDER-WTC`).

Then work through the [go-live checklist](https://docs.ignyt.si/testing-and-go-live.md).

## Related guides

> [card] [Quickstart](https://docs.ignyt.si/quickstart.md)
>
> Place your first Sandbox order.

> [card] [Build your checkout](https://docs.ignyt.si/checkout-and-refunds.md)
>
> Handle each of these outcomes in your app.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.