> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# Get one of the current customer's orders

**Published**: 2026-11-30
**Category**: Commerce

## `GET /customers/me/orders/:id`

**Get one of the current customer's orders**

Returns one of the signed-in buyer's orders by its `ord_` identifier.
Send `X-Lynkow-Pk` and `Authorization: Bearer <customer-session-token>`. The visibility rule of the order list
applies: until the buyer's email is verified, only the orders placed
while signed in can be opened. Its `shipments` lists the parcels sent,
each with its carrier and tracking link, cancelled parcels left out.
The site must have order history and customer accounts turned on.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | Yes | Unique identifier |


### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Missing or invalid storefront publishable key or customer session token |
| `402` | The site subscription does not currently permit this operation |
| `403` | The storefront key origin is not allowed |
| `404` | Not found |
| `422` | The `{id}` is not an order identifier. |


> **Notes:** 401 without a valid customer session, 422 for a malformed `{id}`,
> 404 `ORDER_NOT_FOUND` for an order this buyer cannot see.

### SDK

```typescript
import { createClient } from 'lynkow'

const lynkow = createClient({
  siteId: process.env.LYNKOW_SITE_ID!,
  publishableKey: process.env.LYNKOW_PK,
})

try {
  const order = await lynkow.customers.order('ord_...')
  console.log(order.orderNumber, order.status, order.items.length)
} catch (err) {
  if (isLynkowError(err) && err.apiCode === 'ORDER_NOT_FOUND') {
    // Not this buyer's order, or it no longer exists.
  }
}
```

### Examples

```javascript
const res = await fetch(`https://api.lynkow.com/storefront/${siteId}/customers/me/orders/${orderId}`, {
  headers: {
    'X-Lynkow-Pk': 'lkw_pk_...',
    Authorization: `Bearer ${customerSessionToken}`,
  },
})
const { data } = await res.json()
```

---