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

# Get Order

> Retrieve a specific order by ID.

## Path Parameters

<ParamField path="id" type="integer" required>
  The ID of the order to retrieve
</ParamField>

## Example Request

```bash theme={null}
GET /wp-json/latepoint-api/v1/orders/38
Authorization: Bearer YOUR_API_KEY
```

## Example Response

```json theme={null}
{
  "id": 38,
  "confirmation_code": "LP38CONF",
  "subtotal": "45.00",
  "total": "45.00",
  "status": "open",
  "fulfillment_status": "not_fulfilled",
  "payment_status": "not_paid",
  "customer_id": 8,
  "coupon_code": null,
  "tax_total": "0.00",
  "customer_comment": null,
  "created_at": "2024-12-21 17:45:32",
  "updated_at": "2024-12-21 17:45:32",
  "items": [
    {
      "id": 38,
      "variant": "booking",
      "item_data": "{\"booking_id\":38}",
      "quantity": 1,
      "subtotal": "45.00",
      "total": "45.00"
    }
  ]
}
```

## Related Endpoints

Once you have an order ID, you can access related resources:

### Order Invoices

```bash theme={null}
# Get all invoices for an order
GET /wp-json/latepoint-api/v1/orders/{order_id}/invoices

# Get a specific invoice
GET /wp-json/latepoint-api/v1/orders/{order_id}/invoices/{invoice_id}

# Update an invoice
PUT /wp-json/latepoint-api/v1/orders/{order_id}/invoices/{invoice_id}
```

### Order Transactions

```bash theme={null}
# Get all transactions for an order
GET /wp-json/latepoint-api/v1/orders/{order_id}/transactions

# Get a specific transaction
GET /wp-json/latepoint-api/v1/orders/{order_id}/transactions/{transaction_id}
```

### Example Usage

```bash theme={null}
# Get invoices for order 56
GET /wp-json/latepoint-api/v1/orders/56/invoices
Authorization: Bearer YOUR_API_KEY

# Get transactions for order 56
GET /wp-json/latepoint-api/v1/orders/56/transactions
Authorization: Bearer YOUR_API_KEY
```
