allegro / allegro/allegro-api

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

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

説明

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

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

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

評価

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

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

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