allegro / allegro/allegro-api

[NEWS] Dodaliśmy pole z numerem VIN dla zasobów Centrum wiadomości / We have added a field with the VIN number for the Message Center resources

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

説明

W odpowiedzi na [sugestię](https://github.com/allegro/allegro-api/discussions/5755) udostępniliśmy dzisiaj nowe pole **"vin"** w opcjonalnym obiekcie **"additionalInformation"** dla:

- [GET /messaging/threads/{threadId}/messages](https://developer.allegro.pl/documentation/#operation/listMessagesGET),
- [GET /messaging/messages/{messageId}](https://developer.allegro.pl/documentation/#operation/getMessageGET).

Dzięki zmianie sprzedający zintegrowany z Centrum Wiadomości po API, może od teraz odczytać numer VIN pojazdu kupującego wpisany w "Zadaj pytanie" i dzięki temu szybciej dopasować oferowane [części samochodowe](https://allegro.pl/kategoria/czesci-samochodowe-620) oraz [motocyklowe](https://allegro.pl/kategoria/czesci-i-wyposazenie-motocyklowe-czesci-motocyklowe-158) do wskazanego pojazdu.

**Przykładowy request:**

```
curl -X GET \
'https://api.allegro.pl/messaging/threads/dpYCg9auts9xpSojwC6DWPvyVKHraqDCZCiT70j6pcf/messages' \
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/vnd.allegro.public.v1+json'
```
>
**Przykładowy response:**
```
{
"messages": [
{
"id": "0e75718f-03c2-4f07-b0c9-b107455aff61",
"status": "DELIVERED",
"type": "ASK_QUESTION",
"createdAt": "2022-07-27T07:23:23.033Z",
"thread": {
"id": "dpYCg9auts9xpSojwC6DWPvyVKHraqDCZCiT70j6pcf"
},
"author": {
"login": "allebuyer",
"isInterlocutor": true
},
"text": "Proszę o info, czy pasuje do mojego pojazdu.",
"subject": null,
"relatesTo": {
"offer": {
"id": "7689665899"
},
"order": null,
"purchaseRequest": null
},
"hasAdditionalAttachments": false,
"attachments": [],
"additionalInformation": {
"vin": "WVGZZZ5NZ8W031284" - opcjonalne, numer VIN pojazdu
}
}
],
"offset": 0,
"limit": 20
}
```
>
Więcej informacji o Centrum wiadomości znajdziesz w [naszym poradniku](https://developer.allegro.pl/tutorials/jak-zarzadzac-centrum-wiadomosci-XxWm2K890Fk).

-----

In response to a [suggestion](https://github.com/allegro/allegro-api/discussions/5755), we have introduced today a new **"vin"** field in the optional **"additionalInformation"** object for:

- [GET /messaging/threads/{threadId}/messages](https://developer.allegro.pl/documentation/#operation/listMessagesGET),
- [GET /messaging/messages/{messageId}](https://developer.allegro.pl/documentation/#operation/getMessageGET).

Thanks to the change, the seller, integrated with the Message Center via API, can from now on read the VIN number of the buyer's vehicle entered in "Ask a question" and thus match the offered [car parts](https://allegro.pl/kategoria/czesci-samochodowe-620) and [motorcycle parts](https://allegro.pl/kategoria/czesci-i-wyposazenie-motocyklowe-czesci-motocyklowe-158) to the indicated vehicle more quickly.

**Sample request:**

```
curl -X GET \
'https://api.allegro.pl/messaging/threads/dpYCg9auts9xpSojwC6DWPvyVKHraqDCZCiT70j6pcf/messages' \
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/vnd.allegro.public.v1+json'
```
>
**Sample response:**
```
{
"messages": [
{
"id": "0e75718f-03c2-4f07-b0c9-b107455aff61",
"status": "DELIVERED",
"type": "ASK_QUESTION",
"createdAt": "2022-07-27T07:23:23.033Z",
"thread": {
"id": "dpYCg9auts9xpSojwC6DWPvyVKHraqDCZCiT70j6pcf"
},
"author": {
"login": "allebuyer",
"isInterlocutor": true
},
"text": "Please let me know if it fits my vehicle.",
"subject": null,
"relatesTo": {
"offer": {
"id": "7689665899"
},
"order": null,
"purchaseRequest": null
},
"hasAdditionalAttachments": false,
"attachments": [],
"additionalInformation": {
"vin": "WVGZZZ5NZ8W031284" - optional, vehicle VIN number
}
}
],
"offset": 0,
"limit": 20
}
```
>
You can find more information about Message Center in [our tutorial](https://developer.allegro.pl/tutorials/how-to-manage-the-message-center-g05avyGlZUW).

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

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

評価

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

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

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