allegro / allegro/allegro-api

[NEWS] GET /sale/categories/{categoryId}/parameters - dodajemy nowe pola i ułatwiamy wystawianie ofert powiązanych z produktem / GET /sale/categories/{categoryId}/parameters - we add new fields and simplify listing an offer assigned to a product

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

説明

Do tej pory, gdy za pomocą [POST /sale/product-offers](https://developer.allegro.pl/documentation/#operation/createProductOffers) wystawiasz ofertę powiązaną z produktem i chcesz otrzymać dwa różne zbiory dla parametrów ofertowych i produktowych, musisz skorzystać z dwóch osobnych zasobów. **Uprościliśmy ten proces** - w odpowiedzi dla [GET /sale/categories/{categoryId}/parameters](https://developer.allegro.pl/documentation/#operation/getFlatParametersUsingGET_2) dodaliśmy nowe pola:

- **options.describesProduct** - wartość:
- true oznacza, że parametr jest produktowy,
- false oznacza, że parametr jest ofertowy.
Parametry ofertowe są związane z indywidualną ofertą, np. stan, data ważności, etc., a nie z cechą konkretnego produktu.
- **requiredForProduct** - wartość true oznacza, że musisz przekazać wartość dla tego parametru, gdy tworzysz propozycję nowego produktu.

Więcej informacji o tym, jak w łatwy sposób wystawić ofertę powiązaną z produktem, znajdziesz w [naszym poradniku](https://developer.allegro.pl/product_offers/).

**Przykładowy response:**

```
{
"id": "10563",
"name": "Marka",
"type": "dictionary",
"required": true,
"requiredForProduct": true
"unit": null,
"options": {
"variantsAllowed": false,
"variantsEqual": true,
"ambiguousValueId": "10563_40",
"dependsOnParameterId": null
"describesProduct": true
},

}
```

-----

Up to this date, when you listed an offer assigned to a product via [POST /sale/product-offers](https://developer.allegro.pl/documentation/#operation/createProductOffers) and wanted to receive two different sets of offer and product parameters, you needed to use two separate resources. **To simplify this process** - in the response for [GET /sale/categories/{categoryId}/parameters](https://developer.allegro.pl/documentation/#operation/getFlatParametersUsingGET_2) we have added new fields:

- **options.describesProduct** - value:
- true - this is a product parameter,
- false - this is an offer parameter.
Note! Offer parameters are related to individual offer, e.g. condition, expiration date, but not with a specific product feature.
- **requiredForProduct** - true means you need to provide a value for this parameter when adding a new product proposal.

You can find more information on how to list an offer assigned to a product in a simple way in [our guide](https://developer.allegro.pl/en/product_offers/).

**Sample response:**

```
{
"id": "10563",
"name": "Brand",
"type": "dictionary",
"required": true,
"requiredForProduct": true
"unit": null,
"options": {
"variantsAllowed": false,
"variantsEqual": true,
"ambiguousValueId": "10563_40",
"dependsOnParameterId": null
"describesProduct": true
},

}
```

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

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

評価

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

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

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