allegro / allegro/allegro-api

[NEWS] Zamówienia - dodaliśmy dodatkowe informacje o płatności / Orders - we have added additional payment information

Offen
#8,833 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @AureliuszBrussy Auf GitHub ansehen
News
Vorherrschende Sprache
Keine Sprachdaten
Sterne
244
Forks
40
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Od dzisiaj w zamówieniach zwracamy dodatkową informację o płatności i dopłacie - o tym, czy kupujący skorzystał z Allegro Pay.

Dotyczy to:
* [GET /order/checkout-forms](https://developer.allegro.pl/documentation#operation/getListOfOrdersUsingGET),
* [GET /order/checkout-forms/{id}](https://developer.allegro.pl/documentation#operation/getOrdersDetailsUsingGET).

**Co zmieniliśmy?**

W obiekcie "**payment**" i tablicy "**surcharges[]**" dodaliśmy nową tablicę "**features[**]" w której zwracamy dodatkowe informacje o płatności. Aktualnie, jeżeli Kupujący skorzysta z Allegro Pay, zwrócimy wartość ALLEGRO_PAY. W przyszłości możemy rozszerzyć dostępne wartości.

```json5
...
"payment": {
"id": "0f8f1d13-7e9e-11e8-9b00-c5b0dfb78ea6",
"type": "ONLINE",
"provider": "P24",
"finishedAt": "2024-04-10T10:12:32.321Z",
"paidAmount": {
"amount": "123.45",
"currency": "PLN"
},
"reconciliation": null
"features": [
"ALLEGRO_PAY"
]
}
...
```

Więcej o obsłudze zamówień przeczytasz się w [naszym poradniku](https://developer.allegro.pl/tutorials/jak-obslugiwac-zamowienia-GRaj0qyvwtR).

--------
Starting today, we are returning an additional payment and surcharge information in orders - whether the buyer used Allegro Pay.

This applies to:
* [GET /order/checkout-forms](https://developer.allegro.pl/documentation#operation/getListOfOrdersUsingGET),
* [GET /order/checkout-forms/{id}](https://developer.allegro.pl/documentation#operation/getOrdersDetailsUsingGET).

**What did we change?**

In the "**payment**" object and the "**surcharges[]**" array, we added a new array "**features[]**" in which we return additional payment information. Currently, if a buyer uses Allegro Pay, we will return the value ALLEGRO_PAY. In the future, we may expand the available values.

```json5
...
"payment": {
"id": "0f8f1d13-7e9e-11e8-9b00-c5b0dfb78ea6",
"type": "ONLINE",
"provider": "P24",
"finishedAt": "2024-04-10T10:12:32.321Z",
"paidAmount": {
"amount": "123.45",
"currency": "PLN"
},
"reconciliation": null
"features": [
"ALLEGRO_PAY"
]
}
...
```

You can read more about order processing [in our guide](https://developer.allegro.pl/tutorials/process-orders-PgPMlWDr8Cv).

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.