# Get an order

**GET** `/orders/{id}`

Base URL: `https://sandbox.api.example.com/v1`

Get an order

## Authorization

- bearerAuth (http, bearer)

## Path parameters

- `id` (string, required)
  The order ID.

## Responses

### 200

The order.

- `id` (string)
- `amount` (integer)
- `currency` (string)
- `status` ("pending" | "paid" | "canceled")

Example:

```json
{
  "id": "ord_123",
  "amount": 2500,
  "currency": "USD",
  "status": "pending"
}
```

### 401

Missing or invalid API key.

- `error` (object)
  - `code` (string)
  - `message` (string)

Example:

```json
{
  "error": {
    "code": "not_found",
    "message": "Order not found."
  }
}
```

### 404

No order with this ID.

- `error` (object)
  - `code` (string)
  - `message` (string)

Example:

```json
{
  "error": {
    "code": "not_found",
    "message": "Order not found."
  }
}
```