allegro / allegro/allegro-api

[NEWS] Ustawienia dostawy dostępne w REST API / Delivery settings available in REST API

オープン
#2,218 コメント 2 件 リアクション 0 件 担当者 1 名 @PrzemyslawLukanowski が担当を希望しています GitHub で見る
News
主要言語
言語のデータがありません
スター
244
フォーク
40
PR マージ指標
30日以内にマージされた PR はありません

説明

Dziś udostępniliśmy w REST API zasoby, które pozwolą ci zarządzać [ustawieniami dostawy](https://allegro.pl/pomoc/dla-sprzedajacych/cennik-dostawy):

- [GET /sale/delivery-settings](https://developer.allegro.pl/documentation/#operation/getSaleDeliverySettings) - pobierz ustawienia dostawy,
- [PUT /sale/delivery-settings](https://developer.allegro.pl/documentation/#operation/putSaleDeliverySettings) - edytuj ustawienia dostawy.

Przykładowy request:

```
curl -X GET \
'https://api.allegro.pl/delivery-settings' \
-H 'Accept: application/vnd.allegro.public.v1+json' \
-H 'Authorization: Bearer {token}' \
-H 'content-type: application/vnd.allegro.public.v1+json'
```

Przykładowy response:
```
{

"freeDelivery": {
"amount": 4.04, -- minimalna kwota zamówienia
"currency": "PLN" kwalifikująca się do darmowej dostawy
},
"joinPolicy": {
"strategy": "MAX" -- sposób obliczania kosztów dostawy
},
"customCost": {
"allowed": true -- czy klient może wpisać koszt dostawy
ustalony ze sprzedawcą
},
"updatedAt": "2019-08-21T10:13:40.036Z"
}
```
Więcej informacji na temat nowych zasobów znajdziesz w [naszej dokumentacji](https://developer.allegro.pl/documentation/#tag/Delivery).

-----

Today we have introduced new resources in REST API, which allows you to manage the [delivery settings](https://allegro.pl/pomoc/dla-sprzedajacych/cennik-dostawy):

- [GET /sale/delivery-settings](https://developer.allegro.pl/en/documentation/#operation/getSaleDeliverySettings) - retrieve delivery settings,
- [PUT /sale/delivery-settings](https://developer.allegro.pl/en/documentation/#operation/putSaleDeliverySettings) - edit delivery settings.

Sample request:

```
curl -X GET \
'https://api.allegro.pl/delivery-settings' \
-H 'Accept: application/vnd.allegro.public.v1+json' \
-H 'Authorization: Bearer {token}' \
-H 'content-type: application/vnd.allegro.public.v1+json'
```

Sample response:
```
{

"freeDelivery": {
"amount": 4.04, -- minimum total order amount
"currency": "PLN" required for free delivery
},
"joinPolicy": {
"strategy": "MAX" -- policy of calculating delivery costs
},
"customCost": {
"allowed": true -- whether the custom delivery cost should be available
},
"updatedAt": "2019-08-21T10:13:40.036Z"
}
```

You will find more information about new resources in [our documentation](https://developer.allegro.pl/documentation/#tag/Delivery).

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。