PickupPoint

Interface

A pickup point returned by PickupPointsService.search.

Property

Type

Optional

Description

address

PickupPointAddress

No

Public address of the point.

carrier

string

No

Code of the carrier the point belongs to, a stable machine value. Compare it, never display it.

distanceMeters

number | null

No

Distance in meters from the searched postcode or coordinates, or null when unknown.

id

string

No

Identifier of the point. Send it as pickupPointId to lynkow.cart.update() to store<br>the buyer's choice. Opaque: never parse it.

latitude

number | null

No

Latitude of the point, or null when unknown.

longitude

number | null

No

Longitude of the point, or null when unknown.

name

string

No

Name of the point to show the buyer.

openingHours

PickupPointOpeningHours[] | null

No

Opening periods, or null when unknown.


PickupPointAddress

Interface

Public address of a PickupPoint.

Property

Type

Optional

Description

address1

string

No

Primary street address.

address2

string | null

No

Additional street address details, or null when the point has none.

city

string

No

City or locality.

countryCode

string

No

Uppercase ISO 3166-1 alpha-2 country code (e.g. 'FR').

postalCode

string

No

Postal or ZIP code.


PickupPointList

Interface

The points found by PickupPointsService.search, nearest first, not paginated.

Property

Type

Optional

Description

data

PickupPoint[]

No

The points, nearest first. Empty when none was found near the searched place.


PickupPointOpeningHours

Interface

One opening period of a PickupPoint, in the point's local time. A day open twice, such as morning and afternoon, has two entries.

Property

Type

Optional

Description

closes

string

No

Closing time, 'HH:MM' (e.g. '12:30').

day

number

No

ISO weekday, from 1 for Monday to 7 for Sunday.

opens

string

No

Opening time, 'HH:MM' (e.g. '09:00').


PickupPointSearchBase

Interface

Fields shared by both forms of PickupPointSearchOptions.

Extends: BaseRequestOptions

Property

Type

Optional

Description

countryCode

string

No

ISO 3166-1 alpha-2 country code to search in (e.g. 'FR'). Required in both forms.

fallback

boolean

Yes

Set false to refuse records served in another locale: a detail read then<br>throws NOT_FOUND and a list drops them. Fallback is on by default. Reads<br>without locale fallback ignore it.

fetchOptions

RequestInit

Yes

fetch() options for this request, shallow-merged over the client's<br>fetchOptions, such as { next: { revalidate: 60 } }.

limit

number

Yes

Maximum number of points to return, from 1 to 30. The API returns 10 when omitted.

locale

string

Yes

Locale of this request (e.g. 'fr'), overriding the client's locale.<br>Reads never reject a locale: a missing translation is served in another<br>locale and flagged isFallback: true (see LocaleResolution). Some<br>writes, such as reviews.submit(), refuse a locale the site does not enable.

shippingOptionId

string

No

The shp_... id of the shipping option the buyer chose. It must deliver to a pickup point.


PickupPointSearchOptions

TypeAlias

What PickupPointsService.search takes: the shipping option and country, then either a postalCode or a latitude with a longitude. TypeScript refuses a mix of the two forms.

TypeScript
type PickupPointSearchOptions = PickupPointSearchBase & { latitude?: never; longitude?: never; postalCode: string } | PickupPointSearchBase & { latitude: number; longitude: number; postalCode?: never }

SelectedPickupPoint

Interface

The pickup point the buyer chose, as stored on the order and on each of its shipments. It carries no distance and no opening hours: search again with PickupPointsService.search to show those.

Property

Type

Optional

Description

address

SelectedPickupPointAddress

No

Public address of the point.

carrier

string

No

Code of the carrier the point belongs to, a stable machine value. Compare it, never display it.

id

string

No

Identifier of the point, the id of the PickupPoint the buyer chose.

lat

number

No

Latitude of the point, in decimal degrees.

lng

number

No

Longitude of the point, in decimal degrees.

name

string

No

Name of the point to show the buyer.


SelectedPickupPointAddress

Interface

Public address of a SelectedPickupPoint.

Property

Type

Optional

Description

address1

string

No

Primary street address.

address2

string

Yes

Additional street address details. Absent when the point has none.

city

string

No

City or locality.

countryCode

string

No

Uppercase ISO 3166-1 alpha-2 country code (e.g. 'FR').

postalCode

string

No

Postal or ZIP code.