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 個 reaction 已指派 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 摘要。