Points de collecte
Recherchez des points relais DPD (points de collecte, consignes, points de service) par adresse ou coordonnées GPS.
Chemin de base: /api/v1/parcel-shop
Authentification: Jeton JWT Bearer requis
Points de terminaison
| Méthode | Point de terminaison | Description |
|---|---|---|
| GET | /api/v1/parcel-shop/{parcelShopId} | Obtenir un point relais par son identifiant |
| POST | /api/v1/parcel-shop/address | Rechercher par adresse |
| POST | /api/v1/parcel-shop/coordinates | Rechercher par coordonnées GPS |
POST /api/v1/parcel-shop/address
Recherche de points relais près d'une adresse. Résultats triés par distance.
| Champ | Type | Obligatoire | Description | Défaut |
|---|---|---|---|---|
country | String (2) | Oui | Code pays ISO | — |
zipCode | String | Oui | Code postal | — |
city | String | Non | Nom de la ville | — |
limit | Integer | Non | Nombre maximum de résultats | 25 |
hideClosed | Boolean | Non | Exclure les points fermés | false |
availabilityDate | String | Non | Vérifier disponibilité (yyyy-MM-dd) | — |
curl -X POST "https://label-print-shipments.dpd.ch/api/v1/parcel-shop/address?locale=fr_CH" \
-H "Authorization: Bearer <jwt_token>" \
-H "Content-Type: application/json" \
-d '{ "country": "CH", "zipCode": "1000", "city": "Lausanne", "limit": 10 }'
POST /api/v1/parcel-shop/coordinates
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
latitude | Double | Oui | Latitude GPS (−90 à 90) |
longitude | Double | Oui | Longitude GPS (−180 à 180) |
limit | Integer | Non | Nombre maximum de résultats (défaut : 25) |
hideClosed | Boolean | Non | Exclure les points fermés |
Types de points relais
| Type | Description |
|---|---|
1 | Point relais DPD |
2 | Consigne DPD |
3 | Partenaire (ex. La Poste) |
4 | Point de service |