Create a custom invoice provider
In Picqer, you can create a custom invoice provider (JSON Push). If an order hasn’t been invoiced yet, you can generate an invoice for it once an invoice provider has been configured.
You can create a custom invoice provider by clicking here.
On this page you have the button to connect a new invoice provider, here you can choose JSON push.
Pre-requisites
To configure the integration we need the following:
- Name of the invoice provider
- URL endpoint to create a invoice
- Invoice URL prefix (for example: https://example.com/invoices/)
- Authentication method via username and password
We currently only support HTTP Basic Auth for authentication. For the endpoints we currently only support HTTPS connections with TLS 1.1 or later.
Creating a invoice
Once the user has created the provider, they can use it to create a invoice.
When the user creates a invoice, we send a POST request to the URL you have provided. In this request you will receive details about the customer, order and products. We expect only an invoice identifier as a response
POST to for example:
In you request above you will find all the information necessary to create an invoice
In Picqer this identifier is used to let the user open the invoice via the invoice URL prefix provided in the configuration (for example: https://example.com/invoices/{invoiceIdentifier})
The processing of the request should take a maximum of 20 seconds, otherwise we will regard this invoice as failed.
Errored response
When you send an HTTP Status Code within the 4xx range, we will pick up the error message and show it to the user. You can do this in the format as follows:
Responses with a status code in the 5xx range will trigger a generic response in Picqer, this should not be used in regular circumstances.

