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

# Environments

> Base URLs and request conventions.

ArchiveOrder exposes separate production and development API hosts.

| Environment | Base URL                           | Use for                                       |
| ----------- | ---------------------------------- | --------------------------------------------- |
| Production  | `https://api.archiveorder.com`     | Live customer orders and production payments. |
| Development | `https://api-dev.archiveorder.com` | Integration testing and sandbox data.         |

## Path format

API hosts expose resources at the root:

```text theme={null}
https://api.archiveorder.com/orders
https://api-dev.archiveorder.com/orders
```

## Headers

Most requests use these headers:

```http theme={null}
Authorization: Bearer <api_key>
Content-Type: application/json
```

Mutating requests should also include:

```http theme={null}
Idempotency-Key: 4f3d4d79-0c2d-4ad8-a62b-77b0b9db0aa1
```

## Content type

Request and response bodies are JSON.

```http theme={null}
Content-Type: application/json
```

## Dates and currencies

* Date-only fields use ISO 8601 dates such as `2026-07-15`.
* Timestamps use ISO 8601 date-time strings.
* Currency fields use three-letter ISO currency codes such as `EUR` or `USD`.
* Payment amount fields ending in `Minor` are integer minor units, such as cents.

## Sandbox access

Use the development environment for integration testing. Sandbox data, API keys, webhook endpoints, and payment behavior are separate from production.
