payInvoiceUsingCredits

This method will pay an invoice with LoopiaPrePAID credits provided that the right amount is availible in the account.

Syntax

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

Return value

status, this method returns a status code of OK if all went well.

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