allegro / allegro/allegro-api

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

未關閉
#2,218 2 則留言 0 個 reaction 已指派 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 摘要。