[NEWS] Szczegóły przesyłki - dodaliśmy informacje o podjeździe kuriera i przewoźnikach / Shipment details - we have added information about the pickup availability and carriers
- Langage dominant
- Aucune donnée de langage
- Étoiles
- 244
- Forks
- 40
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Od dziś w [szczegółach przesyłki](https://developer.allegro.pl/documentation#operation/getShipmentDetails) zwracamy:
* informacje o przewoźnikach, którzy biorą udział w dostarczaniu przesyłki oraz
* informację o tym, czy dla danej przesyłki można zamówić odbiór paczki przez kuriera.
**Co zmieniliśmy?**
Dla [GET /shipment-management/shipments/{shipmentId}](https://developer.allegro.pl/documentation#operation/getShipmentDetails) zwracamy dwa nowe pola "**transport**" i "**pickupAvailable**".
**Przykładowy fragment odpowiedzi:**
```
{
...
"pickupAvailable": true, // informacja czy możesz zamówić podjazd kuriera
"carrier": "Allegro", // ID przewoźnika, tutaj "Dostawa Allegro International Czechy"
"transport": [
"InPost", // transport do granicy polsko-czeskiej
"WEDO" // transport z granicy do czeskiego odbiorcy
]
...
}
```
W większości przypadków pole transport będzie zawierać tylko jedną wartość. Są jednak przypadki, szczególnie w przewozie międzynarodowym, gdzie może zawierać więcej przewoźników.
**Dlaczego wprowadziliśmy zmianę?**
Chcemy, aby sprzedający wiedzieli, jacy przewoźnicy biorą udział w dostarczaniu paczki do klienta. Dzięki dodatkowemu polu pickupAvailable sprzedający mogą zawczasu sprawdzić, czy możliwe jest zamówienie podjazdu kuriera zanim wyślą o to [zapytanie](https://developer.allegro.pl/documentation#operation/createPickup).
---
The [shipment details](https://developer.allegro.pl/documentation#operation/getShipmentDetails) now include:
* information about carriers who are involved in the shipping
* information on whether it is possible to order the parcel to be collected by a courier
**What have we changed?**
[GET /shipment-management/shipments/{shipmentId}](https://developer.allegro.pl/documentation#operation/getShipmentDetails) now returns two new fields: "transport" and "pickupAvailable".
**Sample response fragment:**
```
{
...
"pickupAvailable": true, // information whether you can order a courier pickup
"carrier": "Allegro", // Carrier ID, here "Allegro International Czech Republic delivery"
"transport": [
"InPost", // transport to the Polish-Czech border
"WEDO" // transport from the border to the Czech recipient
]
...
}
```
In most cases, the transport field will contain only one value. However, there are cases, especially in international transport, where it may include more carriers.
**Why did we make the change?**
We want sellers to know which carriers are involved in delivering the parcel to the customer. The new pickupAvailable field lets sellers check in advance whether an order is possible to be picked up by the courier, without having to send [another request](https://developer.allegro.pl/documentation#operation/createPickup).
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.