Managing invoices for the Postpay model by a third-party ERP system
By default, the platform itself manages invoices for the Postpay model (see Invoices for the Postpay model in Managing invoices).
To activate external management of invoices for the Postpay model by a third-party ERP system:
- Go to System Settings (see Navigation). The System Settings page is displayed (see General system settings).
- Go to the Finance tab (see Managing financial settings).
- In the Financial documents generation group, select the External system generates Invoices checkbox.
- Click Update.
When external management of Invoices for the Postpay model by a third-party ERP system is activated, the following logic is used for paying for postpaid services:
- On the billing day, the platform closes all blocked charges for the previous billing period.
- On the next day:
- The status of the invoice for the Postpay model changes from Open to Closed.
A linked payment is created in the Waiting for payment status and the empty due date (see Viewing the list of payments).
A payment in the Waiting for payment status and with the empty due date cannot be paid or approved.
A third-party ERP system generates an invoice, and via the API service (see Postpaid invoices managed by a third-party ERP system):
Approves the invoice for the Postpay model and sets the due date in the linked payment.
Optionally, specifies the amount and currency of the third-party invoice if they differ from the amount of an invoice (and a linked payment) in the platform and the reseller currency (see External total in Viewing details of the invoice for the Postpay charging model and Viewing payment details).
If the amount or currency of a third-party invoice differs from the amount of an invoice in the platform and the reseller currency, a customer cannot pay for it from the account balance. Only other payment methods are available, including ones based on payment gateway connectors (see Managing payment gateway connectors). On a payment method page (see Payment methods), the External total amount is displayed to a customer. The amount of the payment in the platform does not change even after paying.
Optionally, attaches to the payment a file of the receipt or a link to the file.
The platform matches a third-party invoice and invoice for the Postpay model using the start date of the billing period. If a third-party ERP system did not attach to the payment a file or a link to the third-party invoice, the platform generates the standard PDF form for the invoice for the Postpay model.
An invoice for the Postpay model is considered approved if only the linked payment has the due date.
- After a customer paid for the third-party invoice, the third-party ERP system via the API service (see Postpaid invoices managed by a third-party ERP system) approves the payment. The payment gets the Completed status.
Optionally, in the Operator Control Panel, a manager can manually approve an invoice for the Postpay model, approve or cancel its linked payment, or revoke the invoice approval:
- Approving manually an invoice managed by a third-party ERP system
- Processing a payment linked to an invoice issued by a third-party ERP system
- Revoking approval for an invoice managed by a third-party ERP system
When external management of invoices for the Postpay model by a third-party ERP system is activated, the following event handlers should be configured (see Creating an event handler and Placeholders used in notification templates for specific event handlers):
- The Invoice was approved.
- Payment due date is coming.
- The Invoice was revoked.