[NEWS] GET /order/checkout-forms/{id}/invoices - nowa lista powodów odrzucenia faktury / GET /order/checkout-forms/{id}/invoices - new list of invoice rejection reasons
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 244
- Forks
- 40
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Od dzisiaj, gdy skorzystasz z [GET /order/checkout-forms/{id}/invoices](https://developer.allegro.pl/documentation/#operation/getOrderInvoicesDetails), w obiekcie **eptVerification** zwrócimy nową tablicę obiektów **reasons**, w której znajdziesz pola:
- **id** - identyfikator powodu odrzucenia faktury,
- **message** - powód odrzucenia.
Dzięki liście **reasons** dowiesz się, z jakich powodów PragmaGO odrzuciła wysłany plik faktury.
**Przykładowy response:**
```
{
“invoices”: [
{
...
“eptVerification”: {
“status”: “REJECTED”,
“verifiedAt”: “2021-05-19T15:58:00.000Z”,
“reason”: “Błędnie wypełniona faktura”,
“reasons”: [{
“id”: “FIELD_NET_VALUE_NOT_READ_BY_OCR ”,
“message”: ”Kwota netto jest nieczytelna. Upewnij się, czy dokument jest
czytelny (pomóc może skan w lepszej rozdzielczości)."
}]
}
}
]
}
```
**Uwaga! 19 sierpnia 2021** usuniemy pole **reason**, dlatego zacznij korzystać z nowej listy **reasons**.
Sam obiekt **eptVerification** zwracamy tylko dla zamówienia z [Odroczoną płatnością dla Firm](https://allegro.pl/pomoc/dla-sprzedajacych/platnosc-od-kupujacego/odroczona-platnosc-dla-firm-informacje-dla-sprzedajacych-k1WOEaoXZHL). Dla innych metod płatności przyjmie on wartość **null**.
Więcej informacji o tym, jak zarządzać fakturami znajdziesz w [naszym poradniku](https://developer.allegro.pl/orders/#faktury).
------------------------
From today, when you use [GET /order/checkout-forms/{id}/invoices](https://developer.allegro.pl/en/documentation/#operation/getOrderInvoicesDetails), in the **eptVerification** object we will return a new **reasons** objects array, in which you will find the fields:
- **id** - ID of the reason for the invoice rejection,
- **message** - rejection reason.
Owing to the **reasons** array, you will find out for what reasons PragmaGO rejected the invoice file you sent.
**Sample response:**
```
{
“invoices”: [
{
...
“eptVerification”: {
“status”: “REJECTED”,
“verifiedAt”: “2021-05-19T15:58:00.000Z”,
“reason”: “Incorrectly filled invoice”,
“reasons”: [{
“id”: “FIELD_NET_VALUE_NOT_READ_BY_OCR ”,
“message”: ”The net amount is illegible. Make sure the document is legible (a
better resolution scan may help).”
}]
}
}
]
}
```
**Note! On August 19th, 2021**, we will remove the **reason** field, so start using the new **reasons** array.
We only return the **eptVerification** object for an order with [Deferred payment for Businesses](https://allegro.pl/help/for-sellers/payments-from-buyers/deferred-payment-for-businesses-information-for-sellers-nnjY6DgW9SX). For other payment methods we will return **null** value.
You can find more information on how to manage invoices in [our guide](https://developer.allegro.pl/en/orders/#invoices).
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.