get https://api-demo.fonoa.com/Invoicing/v1/Invoices/
This endpoint is used to check the status of invoice requests and, upon completion, retrieve the generated base64 encoded files. As the only input, you need to enter the id
received in the endpoint Request an Invoice.
As a result of the request, you will receive a base64 encoded file, which can be used to generate an invoice in PDF or HTML.
Property name | Type | Demo ID |
---|---|---|
id | string | 526bfb66424b4446bfc73370ed5c9e6f |
Request example
curl --request GET \
--url https://api-demo.fonoa.com/Invoicing/v1/Invoices/526bfb66424b4446bfc73370ed5c9e6f \
--header 'Accept: application/json' \
--header 'Ocp-Apim-Subscription-Key: 8b144782eec54b159917c8c4a367d694'
We recommend using a 1000 ms delay between two identical GET requests.
To see a list of possible HTTP status codes, please click here.
Response example (200 OK)
{
"id": "526bfb66424b4446bfc73370ed5c9e6f",
"status": "Completed",
"message": null,
"base64_pdf": "JVBERi0…………………………………………………lJUVPRgo=",
"base64_html": "PGh0bW…………………………………………………L2h0bWw+",
"created": "2021-01-15T12:00:01.1546554+00:00"
}
Examples of the request and responseExamples of the request in more programming languages are available in the console pane on the right-hand side. After clicking on the ‘Try it’ button, you will get a response.