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

# Search pickup points

**Published**: 2026-12-03
**Category**: Commerce

## `GET /pickup-points`

**Search pickup points**

Lists the pickup points of the carrier behind a shipping option, nearest first, not
paginated. Send the `shippingOptionId` of an option the buyer can pick, a `countryCode`,
and either a `postalCode` or a `latitude` with a `longitude`.

Send the chosen point's `id` as `pickupPointId` on the cart.

Errors: 422 `SHIPPING_OPTION_INVALID` for an unknown or inactive option, 422
`SHIPPING_OPTION_NO_PICKUP_POINTS` for an option that does not deliver to a pickup
point, 503 `PICKUP_POINT_SEARCH_UNAVAILABLE` when the carrier cannot answer (the buyer
can pick another option), 404 when shipping is not enabled on the site, and 422 for an
invalid query.

> **Note:** Available only on sites with e-commerce enabled.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `shippingOptionId` | query | string | Yes | Shipping option to search for (prefixed `shp_`), as the shipping options read returns it. |
| `countryCode` | query | string | Yes | Country to search in (ISO 3166-1 alpha-2). |
| `postalCode` | query | string | No | Postal code to search near. Send it, or `latitude` with `longitude`. |
| `latitude` | query | number (-90 to 90) | No | Latitude to search near, sent with `longitude`. |
| `longitude` | query | number (-180 to 180) | No | Longitude to search near, sent with `latitude`. |
| `limit` | query | integer (1 to 30, default 10) | No | Maximum number of points to return. |


### 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` | `SHIPPING_OPTION_INVALID` or `SHIPPING_OPTION_NO_PICKUP_POINTS` on `shippingOptionId`, or an invalid query. |
| `503` | `PICKUP_POINT_SEARCH_UNAVAILABLE`: the carrier cannot answer right now. The buyer can pick another option. |


> **Notes:** Every buyer asking the same search reads the same response. Cache:
> `Cache-Control: public, max-age=0, s-maxage=60`. Rate-limit bucket:
> pickup points (60 requests per minute), plus general.

### SDK

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

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

const { data: points } = await lynkow.pickupPoints.search({
  shippingOptionId: option.id,
  countryCode: 'FR',
  latitude: 48.8566,
  longitude: 2.3522,
  limit: 5,
})

// Show the points, then store the buyer's choice on the cart.
const chosen = points[0]
if (chosen) {
  await lynkow.cart.update({ pickupPointId: chosen.id })
}
```

### Examples

```curl
curl "https://api.lynkow.com/storefront/{siteId}/pickup-points?shippingOptionId=shp_7yd2r7kv9n78n71fbmf0ptkwgg&countryCode=FR&postalCode=75010" \
  -H "X-Lynkow-Pk: lkw_pk_..."
```

```javascript
const params = new URLSearchParams({
  shippingOptionId,
  countryCode: 'FR',
  postalCode: '75010',
})
const res = await fetch(`https://api.lynkow.com/storefront/${siteId}/pickup-points?${params}`, {
  headers: { 'X-Lynkow-Pk': publishableKey },
})
const { data } = await res.json()
// Send the chosen point's `id` as `pickupPointId` on the cart
```

### Response Example

```json
{
  "data": [
    {
      "id": "40125",
      "carrier": "example_carrier",
      "name": "Papeterie du Canal",
      "address": {
        "address1": "12 Rue de l'Exemple",
        "address2": null,
        "postalCode": "75010",
        "city": "Paris",
        "countryCode": "FR"
      },
      "latitude": 48.8752,
      "longitude": 2.3601,
      "distanceMeters": 240,
      "openingHours": [
        {
          "day": 1,
          "opens": "09:00",
          "closes": "12:30"
        },
        {
          "day": 1,
          "opens": "14:00",
          "closes": "19:00"
        },
        {
          "day": 6,
          "opens": "10:00",
          "closes": "13:00"
        }
      ]
    }
  ]
}
```

---