Invoice Service Tutorials
How to configure your tenant for invoice creation
To prepare your tenant for invoice generation, you have to set up the Configuration, Sequential ID and Site Settings services.
Set up invoice configuration in the Configuration service
Use the parameters for an order query in case of an automatic job type:
threshold
- the time after delivery date for which the order should be found, the time is defined in hours (96h)status
- the order status for which the order should be found (CREATED)extendedOrderStatus
- the extended order status for which the order should be found (70)
Loading...
Set up the Sequential ID service
This configuration is used to set up the format of invoice numbers. Set up the numbers by invoking the sequential id service with theLoading...
Set up the Site Settings service
The logo URL configuration allows to upload a custom logo that should be visible on the invoice header. Add your company logo to the invoice with theLoading...
How to trigger the invoice creation process
To trigger the invoice creation process, initiate a job by making a call to the- Manual: Requires providing a list of
orderIds
in the job creation request. - Automatic: The list of
orderIds
is generated using a parameterized query. The query parameters, including order status, order extended status, and time after the delivery date (in hours), can be configured in the configuration service. The Invoice Service then sends a request to the Order Service to retrieve orders that match the specified query criteria.
The standard invoice service flow is:
- Validation - checks if there's an existing invoice for the specific order.
- Recalculation - checks what is ordered and at what cost.
- Payment capture - charges the credit card.
- Creation of a PDF file with invoice.
- Sending email to the customer with the invoice file.