allegro / allegro/allegro-api

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

Ouverte
#8,833 0 commentaires 0 réactions 1 personne assignée Réclamée par @AureliuszBrussy Voir sur GitHub
News
Langage dominant
Aucune donnée de langage
Étoiles
244
Forks
40
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.