[NEWS] GET /sale/offer-events - rozszerzyliśmy dane dla eventu OFFER_PRICE_CHANGED / GET /sale/offer-events - we have expanded the data for the OFFER_PRICE_CHANGED event
- 主要言語
- 言語のデータがありません
- スター
- 244
- フォーク
- 40
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
[GET /sale/offer-events](https://developer.allegro.pl/documentation/#operation/getOfferEvents) to dziennik zdarzeń w ofertach zalogowanego sprzedawcy, który zwraca informacje o zmianach z ostatnich 24 godzin.
Dzisiaj, dla zdarzenia “**OFFER_PRICE_CHANGED**”, dodaliśmy tablicę “**marketplaces**”, gdzie w polu:
- **id** - zwracamy informację o rynku, na którym zmieniono cenę;
- **changeType** - informujemy o źródle zmiany ceny. Dostępne są dwie wartości:
- “**MANUAL**” - zmiana ceny wykonana przez sprzedającego;
- “**AUTOMATIC**” - zmiana ceny wykonana automatycznie za pośrednictwem przelicznika cen.
**Przykładowy response**:
```
{
"offerEvents": [
{
"id": "MTcxNjk4NDM2MTExMTkwMQ",
"type": "OFFER_PRICE_CHANGED",
"occurredAt": "2024-05-29T12:05:50.203Z",
"offer": {
"id": "7762061106",
"external": null,
"publication": null,
"marketplaces": [
{
"id": "allegro-pl", - identyfikator serwisu
"changeType": "MANUAL" - źródło zmiany ceny
},
{
"id": "allegro-cz",
"changeType": "AUTOMATIC"
},
{
"id": "allegro-sk",
"changeType": "AUTOMATIC"
}
]
}
}
]
}
```
Więcej informacji o dzienniku zdarzeń znajdziesz w [naszym poradniku](https://developer.allegro.pl/tutorials/jak-zarzadzac-ofertami-7GzB2L37ase#dziennik-zdarzen-w-ofertach-sprzedawcy).
-----
[GET /sale/offer-events](https://developer.allegro.pl/documentation/#operation/getOfferEvents) resource is an event journal concerning changes in offers listed by authorized seller that occurred within the last 24 hours.
Today, for the “**OFFER_PRICE_CHANGED**” event, we added the “**marketplaces**” array, wherein the field:
- **id** - we return information about the marketplace where the price was changed;
- **changeType** - we inform about the source of the price change. Two values are available:
- “**MANUAL**” - price change made by the seller;
- “**AUTOMATIC**” - price change made automatically via price automation.
**Sample response**:
```
{
"offerEvents": [
{
"id": "MTcxNjk4NDM2MTExMTkwMQ",
"type": "OFFER_PRICE_CHANGED",
"occurredAt": "2024-05-29T12:05:50.203Z",
"offer": {
"id": "7762061106",
"external": null,
"publication": null,
"marketplaces": [
{
"id": "allegro-pl", - marketplace id
"changeType": "MANUAL" - source of the price change
},
{
"id": "allegro-cz",
"changeType": "AUTOMATIC"
},
{
"id": "allegro-sk",
"changeType": "AUTOMATIC"
}
]
}
}
]
}
```
You can read more about event journal in [our tutorial](https://developer.allegro.pl/tutorials/how-to-process-list-of-offers-m09BKA5v8H3#event-journal-concerning-changes-in-seller-s-offers).
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。