allegro / allegro/allegro-api

[NEWS] Udostępniliśmy grupową edycję lokalizacji w ofertach / We have enabled the possibility to modify the location in multiple offers

未关闭
#5,745 0 条评论 0 个 reaction 已指派 1 人 已被 @MaciejFrackowiak 认领 在 GitHub 查看
News
主要语言
没有语言数据
星标
244
派生
40
PR 合并指标
30 天内没有已合并 PR

描述

Od dziś za pomocą [PUT /sale/offer-modification-commands/{commandId}](https://developer.allegro.pl/documentation/#operation/modificationCommandUsingPUT) zmienisz grupowo lokalizację w ofertach.

**Przykładowy request:**
```
curl -X PUT \
'https://api.allegro.pl/sale/offer-modification-commands/{commandId}' \
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/vnd.allegro.public.v1+json' \
-H 'Content-Type: application/vnd.allegro.public.v1+json' \
-d '{
"modification": {
"location": {
"countryCode": "PL", - kod kraju
"province": "wielkopolskie", - województwo (wymagane dla kraju PL)
"city": "Poznań", - miejscowość
"postCode": "60-166" - kod pocztowy (wymagane dla kraju PL)
}
},
"offerCriteria": [
{
"offers": [
{
"id": "11223344556"
},
{
"id": “11335577991"
}
],
"type": "CONTAINS_OFFERS"
}
]
}'
```

Więcej informacji o grupowej edycji ofert znajdziesz w [naszym poradniku](https://developer.allegro.pl/tutorials/jak-zarzadzac-ofertami-7GzB2L37ase#edycja-wielu-ofert-jednoczesnie).

-----

From now on, you can use [PUT /sale/offer-modification-commands/{commandId}](https://developer.allegro.pl/documentation/#operation/modificationCommandUsingPUT) to change the location in multiple offers.

**Sample request:**
```
curl -X PUT \
'https://api.allegro.pl/sale/offer-modification-commands/{commandId}' \
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/vnd.allegro.public.v1+json' \
-H 'Content-Type: application/vnd.allegro.public.v1+json' \
-d '{
"modification": {
"location": {
"countryCode": "PL", - country code
"province": "wielkopolskie", - province (required if country code=PL)
"city": "Poznań", - city
"postCode": "60-166" - post code (required if country code=PL)
}
},
"offerCriteria": [
{
"offers": [
{
"id": "11223344556"
},
{
"id": “11335577991"
}
],
"type": "CONTAINS_OFFERS"
}
]
}'
```

You can find more information about editing multiple offers in [our tutorial](https://developer.allegro.pl/tutorials/how-to-process-list-of-offers-m09BKA5v8H3#editing-many-offers).

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。