[NEWS] GET /parcel-management/delivery-services - nowe pole “carrierId” / GET /parcel-management/delivery-services - a new field “carrierId”
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 244
- Fork
- 40
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Dzisiaj dla [GET /parcel-management/delivery-services](https://developer.allegro.pl/documentation/#operation/getAvailableDeliveryServices) udostępniliśmy nowe pole **“carrierId”**, w którym zwracamy informację o identyfikatorze przewoźnika, który świadczy daną usługę dostawy. Wartości pola **“carrierId”** są zgodne z wartościami dostępnymi dla zasobu [GET /order/carriers](https://developer.allegro.pl/documentation/#operation/getOrdersCarriersUsingGET).
**Przykładowy request:**
```
curl -X GET \
'https://api.allegro.pl/parcel-management/delivery-services’ \
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/vnd.allegro.public.v1+json'
```
**Przykładowy response:**
```
{
"deliveryServices": [
{
"id": 12345,
"service": "INPOST_KURIER",
"name": "InPost",
“carrierId”: “INPOST”, - identyfikator przewoźnika
"additionalServices": {
"cashOnDelivery": {
"available": true,
"expressAvailable": true
},
"options": [
{
"name": "guarantee1200",
"description": "Delivery up to 12:00."
}
]
},
"owner": "ALLEGRO"
}
]
}
```
Więcej informacji o tym jak zarządzać przesyłkami przez Wysyłam z Allegro znajdziesz w [naszym poradniku](https://developer.allegro.pl/wza/).
-----
Today in [GET /parcel-management/delivery-services](https://developer.allegro.pl/en/documentation/#operation/getAvailableDeliveryServices) we have introduced a new field **“carrierId”** in which we return information about shipping carrier ID, who provides the given delivery service. The values of the **"carrierId"** field match the values available for the [GET /order/carriers](https://developer.allegro.pl/en/documentation/#operation/getOrdersCarriersUsingGET) resource.
**Sample request:**
```
curl -X GET \
'https://api.allegro.pl/parcel-management/delivery-services’ \
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/vnd.allegro.public.v1+json'
```
**Sample response:**
```
{
"deliveryServices": [
{
"id": 12345,
"service": "INPOST_KURIER",
"name": "InPost",
“carrierId”: “INPOST”, - shipping carrier ID
"additionalServices": {
"cashOnDelivery": {
"available": true,
"expressAvailable": true
},
"options": [
{
"name": "guarantee1200",
"description": "Delivery up to 12:00."
}
]
},
"owner": "ALLEGRO"
}
]
}
```
You can find more information on how to manage parcels via Send with Allegro in [our tutorial](https://developer.allegro.pl/en/wza/).
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.