allegro / allegro/allegro-api

[NEWS] Rabaty i promocje - dodaliśmy możliwość edycji rabatu w zestawie ofertowym / Rebates and promotions - we have added the possibility to change the discount in offers bundles

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

説明

Dzięki zestawom ofertowym sprzedający mogą udostępnić kupującym zestaw kilku ofert w obniżonej cenie. Więcej informacji na ten temat znajdziesz na [stronie dla sprzedających](https://allegro.pl/dla-sprzedajacych/zestawy-ofert-z8Mq8GXvAs5).

**Jakie zmiany wprowadziliśmy?**

W ramach operacji [PUT /sale/loyalty/promotions/{promotionId}](https://developer.allegro.pl/documentation/#operation/updatePromotionUsingPUT) wdrożyliśmy możliwość edycji rabatu w istniejącym zestawie ofert. Wcześniej zasób umożliwiał wyłącznie edycję rabatów na duże zamówienie oraz cenników hurtowych.

**Przykładowy request:**

```
curl -X PUT \
'https://api.allegro.pl/[sale/loyalty/promotions/72c40ffb-6127-4719-a473-867bf5775601’ \
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/vnd.allegro.public.v1+json' \
-H Content-Type: application/vnd.allegro.public.v1+json' \
-d '{
"benefits": [
{
"specification": {
"type": "ORDER_FIXED_DISCOUNT",
"value": {
"amount": "10.00", - nowa wartość rabatu
"currency": "PLN"
}
}
}
],
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "10000000011",
"quantity": 1,
"promotionEntryPoint": true
},
{
"id": "10000000010",
"quantity": 1,
"promotionEntryPoint": false
}
]
}
]
}'
```

Więcej informacji o zarządzaniu promocyjnymi zestawami ofert znajdziesz w [naszym poradniku](https://developer.allegro.pl/tutorials/jak-zarzadzac-rabatami-promocjami-yPya2mj6zUP#edytuj-rabat-zestawu).

-----

Thanks to offers bundles sellers can sell a set of various items at a reduced price. More information about that you can find [here](https://allegro.pl/dla-sprzedajacych/zestawy-ofert-z8Mq8GXvAs5).

**What changes have we made?**

As part of [PUT /sale/loyalty/promotions/{promotionId}](https://developer.allegro.pl/documentation/#operation/updatePromotionUsingPUT) operation, we have introduced the possibility to change rebate in an existing bundle. Previously, the resource only allowed editing large order discounts and wholesale price lists.

**Sample request:**

```
curl -X PUT \
'https://api.allegro.pl/[sale/loyalty/promotions/72c40ffb-6127-4719-a473-867bf5775601’ \
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/vnd.allegro.public.v1+json' \
-H Content-Type: application/vnd.allegro.public.v1+json' \
-d '{
"benefits": [
{
"specification": {
"type": "ORDER_FIXED_DISCOUNT",
"value": {
"amount": "10.00", - new discount value
"currency": "PLN"
}
}
}
],
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "10000000011",
"quantity": 1,
"promotionEntryPoint": true
},
{
"id": "10000000010",
"quantity": 1,
"promotionEntryPoint": false
}
]
}
]
}'
```

You can find more information about managing offers bundles in [our tutorial](https://developer.allegro.pl/tutorials/how-to-manage-rebates-and-promotions-g05avdL0vT4#edit-offers-bundle-discount).

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

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

評価

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

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

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