API:addInvoicePayment - Add payment

Submit new payment (transaction) to invoice

Required parameters

id
Invoice ID
amount
Transaction amount
paymentmodule
ID of related payment gateway
fee
Fees applied to payment (0 for no fees)
date
Transaction date

Optional parameters

transnumber
Transaction number
currency_id
Currency ID
rate
Currency rate

Request

GET http://url_to_your_hostbill.com/admin/api.php?api_id=API_ID&api_key=API_KEY&call=addInvoicePayment&id=ID&amount=AMOUNT&paymentmodule=PAYMENTMODUE&fee=FEE&date=DATE

Response

   {
      "success": true,
      "call": "addInvoicePayment",
      "server_time": 1323787706,
      "info": [
         "Transaction has been added to invoice"
      ]
   }