This folder contains examples of interactions between different API's.
- Login through the Auth API to get a token.
- Use the token to connect to the Portal API.
- Connect to the Payment API.
- Fetch 5 invoices from the Portal API that are not activated, contains the text
tessand where the invoice type ifF(invoice). - Loop through the invoices and fetch the payment from the Payment API.
updateStatusLogByInvoiceNumber
The normal way to update the status log through the Payment API is to use the updateStatusLogOfInvoiceByHash method. That will require us to know the hash of the invoice. But if we only know the invoice number then we will have to ask the Portal API for the hash. This example shows how to do that.
- Login through the Auth API to get a token.
- Use the token to connect to the Portal API.
- Connect to the Payment API.
- Fetch the invoice from the Portal API by invoice number.
- Get the hash from the invoice data.
- Update the status log of the invoice by hash in the Payment API.