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

# Read an order through a guest link

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

## `GET /orders/guest`

**Read an order through a guest link**

Returns one order to a buyer who checked out as a guest. Send
`X-Lynkow-Pk` and the access token from the buyer's order email in
the `X-Lynkow-Order-Token` header. No customer session is needed, and
customer accounts can be off. The site must have order history turned
on. Its `shipments` lists the parcels sent, each with its carrier and
tracking link, cancelled parcels left out. The response carries
`Cache-Control: no-store`: do not cache it.

### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Missing or invalid storefront publishable key |
| `402` | The site subscription does not currently permit this operation |
| `403` | The storefront key origin is not allowed |
| `404` | Site, resource, or commerce feature not found |
| `422` | The `X-Lynkow-Order-Token` header is missing or empty. |


> **Notes:** A missing token returns 422. An unknown or revoked token returns 404
> `ORDER_NOT_FOUND`, also with `Cache-Control: no-store`. Limit: 10 per 15
> minutes per site and client.

### 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.orders.getGuest(tokenFromTheUrl)
  renderOrder(order)
} catch (err) {
  if (isLynkowError(err) && err.status === 404) {
    // The link is no longer valid: show a "link expired" page.
  }
}
```

### Examples

```javascript
// `orderToken` is the access token from the buyer's order email
const res = await fetch(`https://api.lynkow.com/storefront/${siteId}/orders/guest`, {
  headers: {
    'X-Lynkow-Pk': 'lkw_pk_...',
    'X-Lynkow-Order-Token': orderToken,
  },
  cache: 'no-store',
})
const { data } = await res.json()
```

---