[NEWS] GET /sale/offers - zwracamy dane o cenniku dostawy oraz udostępniamy filtrowanie po shippingRates.id / GET /sale/offers - we return information about shipping rates and provide filtering by shippingRates.id
- Dominant language
- No language data
- Stars
- 244
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
Do tej pory dane o cenniku dostawy zwracaliśmy tylko przez odwołanie się do konkretnej oferty za pomocą[ GET sale/offers/{offerId}](https://developer.allegro.pl/documentation/#operation/getOfferUsingGET). Od teraz taką informację udostępniamy w odpowiedzi dla [GET /sale/offers](https://developer.allegro.pl/documentation/#operation/searchOffersUsingGET).
Dodatkowo - w ramach tego zasobu - możesz również filtrować oferty według cennika dostawy.
Przykładowy request:
```
curl -X GET \
https://api.allegro.pl/sale/offers?delivery.shippingRates.id={id}
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/vnd.allegro.public.v1+json' \
-H 'Content-Type: application/vnd.allegro.public.v1+json' \
```
-----
Up to this date, information about shipping rates was returned only when referring to a specific offer with [GET sale/offers/{offerId}.](https://developer.allegro.pl/documentation/#operation/getOfferUsingGET) From now on, you can retrieve this information by calling [GET /sale/offers](https://developer.allegro.pl/documentation/#operation/searchOffersUsingGET). Moreover, you can filter [GET /sale/offers ](https://developer.allegro.pl/documentation/#operation/searchOffersUsingGET)response by shippingRates.id.
Sample request:
```
curl -X GET \
https://api.allegro.pl/sale/offers?delivery.shippingRates.id={id}
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/vnd.allegro.public.v1+json' \
-H 'Content-Type: application/vnd.allegro.public.v1+json' \
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.