Polling
The polling option can be done until you reach a final status. The object returned has more information but for the E-invoice status the object shown below will suffice.
"CurrentDocumentDeliveryDetails": {
"DocumentDeliveryDate": "2023-10-09T20:15:14.173",
"DocumentDeliveryInfo": "SDI_RC",
"IsDocumentDelivered": true,
"DocumentDeliveryStatus": "Delivered"
}
The different DocumentDeliveryStatuses
Value | Description |
---|---|
Delivered | Invoice as been successfully delivered to the receiving party |
Pending | The invoice is still in progress |
Error | Something went wrong trying to deliver the invoice |
The whole object looks like the following. Not all of the fields will be returned and are more set when something goes wrong.
"CurrentDocumentDeliveryDetails": {
"DocumentRefusedDate": null,
"DocumentDeliveryDate": null,
"DocumentDeliveryInfo": null,
"DocumentRefusedReasonTC": null,
"DocumentRefusedInfo": null,
"IsDocumentDelivered": false,
"DocumentDeliveryStatus": null
}
Updated about 1 year ago