allegro / allegro/allegro-api

[NEWS] GET /fulfillment/stock i GET /fulfillment/available-products - dodaliśmy obsługę nagłówka Accept-Language / GET /fulfillment/stock and GET /fulfillment/available-products - we have added support for the Accept-Language header

未關閉
#8,077 0 則留言 0 個 reaction 已指派 1 人 已被 @MaciejFrackowiak 認領 在 GitHub 檢視
News
主要語言
沒有語言資料
星號
244
分支
40
PR 合併指標
30 天內沒有已合併 PR

描述

Za pomocą [GET /fulfillment/stock](https://developer.allegro.pl/documentation/#operation/getFulfillmentStock) pobierzesz listę aktualnych stanów magazynowych twoich produktów, a dzięki [GET /fulfillment/available-products](https://developer.allegro.pl/documentation/#operation/getAvailableProducts) pobierzesz listę dostępnych do zawizowania produktów w ramach usługi [One Fulfillment by Allegro](https://allegro.pl/kampania/fulfillment).

**Jak to działało do tej pory?**

W odpowiedzi dla:
- [GET /fulfillment/stock](https://developer.allegro.pl/documentation/#operation/getFulfillmentStock),
- [GET /fulfillment/available-products](https://developer.allegro.pl/documentation/#operation/getAvailableProducts)

zwracaliśmy podstawowe informacje o produktach, w tym ich nazwę (pole “**name**”) w języku bezpośrednio pobranym z [Katalogu Produktów Allegro](https://developer.allegro.pl/tutorials/glosariusz-VL6Yel7BnSz#katalog-produktow).

**Co zmieniliśmy?**

Dodaliśmy obsługę nagłówka “**Accept-Language**”, dzięki któremu zdecydujesz w jakim języku chcesz otrzymać nazwy produktów. Obsługujemy wartości: **en-US, pl-PL, uk-UA**. Gdy nie przekażesz żadnej wartości w nagłówku, to zwrócimy nazwy produktów w **domyślnym języku (en-US)**.

**Dlaczego wprowadziliśmy zmianę?**

Usługa One Fulfillment by Allegro przyciąga zagranicznych sprzedających i chcemy by nazwy produktów były dostępne w wielu językach.

-----
Using [GET /fulfillment/stock](https://developer.allegro.pl/documentation/#operation/getFulfillmentStock) you will receive a list of current products stock. [GET /fulfillment/available-products](https://developer.allegro.pl/documentation/#operation/getAvailableProducts) is a resource thanks to which you will retrieve a list of available products to prepare an Advance Ship Notice for [One Fulfillment by Allegro](https://allegro.pl/kampania/fulfillment) service.

**How has it worked so far?**

In the response to:
- [GET /fulfillment/stock](https://developer.allegro.pl/documentation/#operation/getFulfillmentStock),
- [GET /fulfillment/available-products](https://developer.allegro.pl/documentation/#operation/getAvailableProducts)

we returned basic information about the products, including their name (the “**name**” field) in language directly retrieved from the [Allegro Product Catalogue](https://developer.allegro.pl/tutorials/glosariusz-VL6Yel7BnSz#katalog-produktow).

**What have we changed?**

We have added support for the “**Accept-Language**” header so that you can decide in which language you want the product names. We support the values: **en-US, pl-PL, uk-UA**. When you do not pass any value in the header, we will return the product names in the **default language (en-US)**.

**Why have we made the change?**

The One Fulfillment by Allegro service attracts foreign sellers and we want product names to be available in multiple languages.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。