allegro / allegro/allegro-api

[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

Open
#2,116 0 comments 1 reaction 1 assignee Claimed by @PrzemyslawLukanowski View on GitHub
News
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.