payInvoiceUsingCredits

This method pays an invoice using LoopiaPrePAID credits, provided that the required amount is available in the account.

Syntax

status = payInvoiceUsingCredits(username, password, [customer_number,] reference_no)

Return value

status. This method returns a status code of OK if the call succeeded.

Parameters

  • username
    string
    Username for LoopiaAPI.
  • password
    string
    Password for LoopiaAPI.
  • customer_number
    string
    Customer ID for the account. Used only by resellers who work with the customer’s account.
  • reference_no
    string
    Invoice number.
Was this article helpful?

Related Articles