allegro / allegro/allegro-api

[NEWS] GET /fulfillment/stock - dodaliśmy nowe pole "available" / GET /fulfillment/stock - we added a new field "available"

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

説明

Dzięki [GET /fulfillment/stock](https://developer.allegro.pl/documentation#operation/getFulfillmentStock) pobierzesz aktualne stany magazynowe twoich produktów sprzedawanych w ramach [One Fulfillment by Allegro](https://allegro.pl/kampania/fulfillment).

**Co zmieniliśmy?**

Do obiektu **stock[].quantity** dodaliśmy nowe pole **available**, dzięki któremu poznasz całkowitą dostępną do sprzedaży liczbę sztuk danego produktu w naszym magazynie.

**Przykładowy response:**

>
```
{
"stock": [
{
"product": {
"id": "7152gtf2-2265-4e15-b76b-c17025d84ft7",
"name": "iPhone 5s",
"gtins": [
"2746650558857",
"1859832948337"
],
"image": "https://5.allegroimg.com/original/003358/a4f5dbb14d24971aff2ca5afb5d5"
},
"quantity": {
"onOffer": 5, – liczba sztuk w aktywnej ofercie
"available": 5, – liczba sztuk dostępna w magazynie
"onOrder": 3,
"onHold": 1
}
"sellingStats": {
"lastWeekAverage": 4,
"lastThirtyDaysSum": 200
},
"reserve": {
"outOfStockIn": 13,
"status": "LOW_STOCK"
}
}
],
"count": 1,
"totalCount": 10
}
```
>
Dotychczas zwracaliśmy informację tylko o liczbie dostępnych sztuk w aktywnych ofertach (w polu **stock[].quantity.onOffer**). Liczba sztuk zwrócona w nowym polu **available** pobierana jest z aktualnej aktywnej oferty lub - w przypadku braku aktywnej oferty - pokazujemy liczbę sztuk, która będzie dostępna w ofercie po jej utworzeniu.

Więcej o One Fulfilment by Allegro przeczytasz w [naszym poradniku](https://developer.allegro.pl/tutorials/one-fulfillment-by-allegro-0ADwgOLqWSw).

-----
By using [GET /fulfillment/stock](https://developer.allegro.pl/documentation#operation/getFulfillmentStock) you will get the current stock of your products sold within [One Fulfillment by Allegro](https://allegro.pl/kampania/fulfillment).

**What have we changed?**

We have added a new **available** field to the **stock[].quantity** object, so you can get the total available stock of a given product in our warehouse.

**Sample response:**

>
```
{
"stock": [
{
"product": {
"id": "7152gtf2-2265-4e15-b76b-c17025d84ft7",
"name": "iPhone 5s",
"gtins": [
"2746650558857",
"1859832948337"
],
"image": "https://5.allegroimg.com/original/003358/a4f5dbb14d24971aff2ca5afb5d5"
},
"quantity": {
"onOffer": 5, – stock in active offer
"available": 5, – stock in the warehouse
"onOrder": 3,
"onHold": 1
}
"sellingStats": {
"lastWeekAverage": 4,
"lastThirtyDaysSum": 200
},
"reserve": {
"outOfStockIn": 13,
"status": "LOW_STOCK"
}
}
],
"count": 1,
"totalCount": 10
}
```
>

Previously, we only returned information about the stock in active offers (in the **stock[].quantity.onOffer** field). The stock returned in the new **available** field is taken from the current active offer or, if there is no active offer, we show a number of products that will be available in the offer when it is created.

You can read more about One Fulfilment by Allegro in [our guide](https://developer.allegro.pl/tutorials/one-fulfillment-by-allegro-4R9dXyMPlc9).

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

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

評価

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

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

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