allegro / allegro/allegro-api

[NEWS] Zamówienia - dodaliśmy informację o preferencjach językowych kupującego / Orders - we have added information about buyer’s language preferences

Aberta
#6,079 0 comentários 0 reações 1 responsável Reivindicada por @MaciejFrackowiak Ver no GitHub
News
Linguagem predominante
Sem dados de linguagem
Estrelas
244
Forks
40
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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).

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.