> ## 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.

# How Ignyt works

> The main objects in the API, how they relate and the rules that apply to all of them.

Concepts
Ignyt connects your app to many merchant stores. Your shopper checks out once; each store receives its own order.

## The main objects

| Object | ID prefix | What it is |
| - | - | - |
| App | `app_` | Your integration in one environment. API keys, webhooks and data belong to an app. |
| Merchant | `mer_` | A business whose products your app can sell. |
| Product and variant | `prd_`, `var_` | A catalog product and the purchasable option of it, such as a size. You add **variants** to carts. |
| Cart | `crt_` | The shopper's basket. It can hold variants from several merchants. |
| Quote | `quo_` | Prices, shipping and tax frozen from each store for a short time. The shopper approves a quote's total. |
| Purchase | `pur_` | The result of submitting a cart: one payment for the whole cart. |
| Store order | `mord_` | One merchant's part of a purchase. Each has its own status, shipments, cancellation and refunds. Also called a merchant order or child order. |
| Refund | `rfd_` | Money returned to the shopper for a store order. |
| Event | `evt_` | A record that something changed, delivered by webhook or the event feed. |

```mermaid theme={"theme":{"light":"github-light","dark":"vesper"}}
flowchart LR
    Cart --> Quote --> Purchase
    Purchase --> Payment
    Purchase --> SO1[Store order: merchant A]
    Purchase --> SO2[Store order: merchant B]
    SO1 --> Refund
```

## Rules that apply everywhere

* **Money is in minor units.** Every amount is an integer with a currency, for example `27720` and `AED` for AED 277.20. Never use floating-point numbers for money.
* **Writes can be retried safely.** Operations that create something important, such as submitting a cart or refunding, take an `Idempotency-Key` header. Save the key before sending, and reuse it with the same body if you don't get a response.
* **A timeout is not a failure.** If a write times out, read the resource to find out what happened before trying again.
* **Lists are paginated.** List endpoints return `next_cursor`; pass it as `cursor` to get the next page.
* **Events can repeat or arrive out of order.** Deduplicate by event `id` and use `revision` to ignore older updates.

## Environments

Sandbox and Live are separate environments with separate keys, merchants and data. A Sandbox key can't read or change Live data. Build and test in Sandbox, then request Live access. See [Apps and environments](https://docs.ignyt.si/apps-and-environments.md) and the [go-live checklist](https://docs.ignyt.si/testing-and-go-live.md).

## What Ignyt does and what you do

| Ignyt | Your app |
| - | - |
| Connects to each store and keeps catalogs in sync | Shows products and the shopper's cart |
| Gets live prices, shipping and tax at quote time | Shows the quote and gets the shopper's approval |
| Takes the payment through the payment provider's page | Redirects the shopper to the payment page |
| Places an order with each store and tracks it | Shows each store's status to the shopper |
| Refunds a failed store's share automatically | Handles cancellations, returns and refund requests |

## Related guides

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

> [card] [Authentication](https://docs.ignyt.si/authentication.md)
>
> API keys and scopes.


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