[NEWS] Zamówienia - dodaliśmy informację o preferencjach językowych kupującego / Orders - we have added information about buyer’s language preferences
- 主要語言
- 沒有語言資料
- 星號
- 244
- 分支
- 40
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Udostępniliśmy dzisiaj nowy obiekt “**preferences**” z polem “**language**” dla:
* [GET /order/events](https://developer.allegro.pl/documentation/#operation/getOrderEventsUsingGET),
* [GET /order/checkout-forms](https://developer.allegro.pl/documentation/#operation/getListOfOrdersUsingGET),
* [GET /order/checkout-forms/{id}](https://developer.allegro.pl/documentation/#operation/getOrdersDetailsUsingGET).
Dzięki zmianie możesz wysyłać ze swojej aplikacji powiadomienia pozakupowe dopasowane do preferencji językowych kupującego.
**Przykładowy request:**
```
curl -X GET \
'https://api.allegro.pl/order/events' \
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/vnd.allegro.public.v1+json'
```
**Przykładowy response:**
```
{
"events": [
{
"id": "1656464432342092",
"order": {
"seller": {
"id": "44190193"
},
"buyer": {
"id": "43544040",
"email": "x8enc93cg2+1f38a4da0@allegromail.pl",
"guest": false,
"login": "allegro_buyer"
"preferences": {
"language": "pl-PL" - preferowany język kupującego
}
},
"lineItems": [
{
"offer": {
"id": "12693349175",
"name": "Zasilanie awaryjne pieca co ups pompy 800W",
"external": null
},
"price": {
"amount": "909.00",
"currency": "PLN"
},
"id": "952c2e20-2469-11ed-be1c-97c909e963cc",
"quantity": 1,
"originalPrice": {
"amount": "909.00",
"currency": "PLN"
},
"boughtAt": "2022-08-25T11:33:04.045Z"
}
],
"checkoutForm": {
"id": "952c5530-2469-11ed-be1c-97c909e963cc",
"revision": "bd4d65cd"
}
},
"type": "READY_FOR_PROCESSING",
"occurredAt": "2022-08-25T11:33:40.308Z"
}
]
}
```
Więcej informacji o obsłudze zamówień znajdziesz w [naszym poradniku](https://developer.allegro.pl/tutorials/jak-obslugiwac-zamowienia-GRaj0qyvwtR).
-----
Today we have added a new “**preferences**” object with a “**language**” field for:
* [GET /order/events](https://developer.allegro.pl/documentation/#operation/getOrderEventsUsingGET),
* [GET /order/checkout-forms](https://developer.allegro.pl/documentation/#operation/getListOfOrdersUsingGET),
* [GET /order/checkout-forms/{id}](https://developer.allegro.pl/documentation/#operation/getOrdersDetailsUsingGET).
Thanks to the change, you can send post-purchase notifications adjusted to the buyer's language preferences from your application.
**Sample request:**
```
curl -X GET \
'https://api.allegro.pl/order/events' \
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/ vnd.allegro.public.v1 +json'
```
**Sample response:**
```
{
"events": [
{
"id": "1656464432342092",
"order": {
"seller": {
"id": "44190193"
},
"buyer": {
"id": "43544040",
"email": "x8enc93cg2+1f38a4da0@allegromail.pl",
"guest": false,
"login": "allegro_buyer"
"preferences": {
"language": "pl-PL" - buyer's language preference
}
},
"lineItems": [
{
"offer": {
"id": "12693349175",
"name": "Zasilanie awaryjne pieca co ups pompy 800W",
"external": null
},
"price": {
"amount": "909.00",
"currency": "PLN"
},
"id": "952c2e20-2469-11ed-be1c-97c909e963cc",
"quantity": 1,
"originalPrice": {
"amount": "909.00",
"currency": "PLN"
},
"boughtAt": "2022-08-25T11:33:04.045Z"
}
],
"checkoutForm": {
"id": "952c5530-2469-11ed-be1c-97c909e963cc",
"revision": "bd4d65cd"
}
},
"type": "READY_FOR_PROCESSING",
"occurredAt": "2022-08-25T11:33:40.308Z"
}
]
}
```
You can find more information about orders management in [our tutorial](https://developer.allegro.pl/tutorials/process-orders-PgPMlWDr8Cv).
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。