PickupPoint
Interface
A pickup point returned by PickupPointsService.search.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Public address of the point. |
|
| No | Code of the carrier the point belongs to, a stable machine value. Compare it, never display it. |
|
| No | Distance in meters from the searched postcode or coordinates, or |
|
| No | Identifier of the point. Send it as |
|
| No | Latitude of the point, or |
|
| No | Longitude of the point, or |
|
| No | Name of the point to show the buyer. |
|
| No | Opening periods, or |
PickupPointAddress
Interface
Public address of a PickupPoint.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Primary street address. |
|
| No | Additional street address details, or |
|
| No | City or locality. |
|
| No | Uppercase ISO 3166-1 alpha-2 country code (e.g. |
|
| No | Postal or ZIP code. |
PickupPointList
Interface
The points found by PickupPointsService.search, nearest first, not paginated.
Property | Type | Optional | Description |
|---|---|---|---|
|
| 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 |
|---|---|---|---|
|
| No | Closing time, |
|
| No | ISO weekday, from 1 for Monday to 7 for Sunday. |
|
| No | Opening time, |
PickupPointSearchBase
Interface
Fields shared by both forms of PickupPointSearchOptions.
Extends: BaseRequestOptions
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | ISO 3166-1 alpha-2 country code to search in (e.g. |
|
| Yes | Set |
|
| Yes |
|
|
| Yes | Maximum number of points to return, from 1 to 30. The API returns 10 when omitted. |
|
| Yes | Locale of this request (e.g. |
|
| No | The |
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.
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 |
|---|---|---|---|
|
| No | Public address of the point. |
|
| No | Code of the carrier the point belongs to, a stable machine value. Compare it, never display it. |
|
| No | Identifier of the point, the |
|
| No | Latitude of the point, in decimal degrees. |
|
| No | Longitude of the point, in decimal degrees. |
|
| No | Name of the point to show the buyer. |
SelectedPickupPointAddress
Interface
Public address of a SelectedPickupPoint.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Primary street address. |
|
| Yes | Additional street address details. Absent when the point has none. |
|
| No | City or locality. |
|
| No | Uppercase ISO 3166-1 alpha-2 country code (e.g. |
|
| No | Postal or ZIP code. |