Billpayment
Introduction
Invoice payment API contains the methods that allow you to obtain and pay invoices pending payment. payment of these invoices. There are two workflows depending on whether it is Postpaid or Prepaid.
The workflow to be followed and the methods required, as well as the fields requested and the answers with their explanation and format, are detailed below. explanation and format, are detailed below.
Overview
In order to call our "Sale" method, which performs the payment, the user must make two previous calls. The flow that must be followed is explained below followed by an explanatory graphic.
Requesting user invoices
The first thing to do is to check the outstanding invoices of a user by means of the nic for which the operation is going to be done. To do this we have the method "Get Invoices".
Registering and completing the sale
Once all the necessary information is available, the information must be pre-registered. For this there is our method "Register", which will return, in case of correct insertion in our system, a registration id.
Once the information has been registered, the developer must call the "Sale" method indicating the registration id returned in the previous step. returned in the previous step. This method will return the result of the sale.