Homepage | Client Area | Contact | Order Now »
WHMCS - The Complete Client Management, Billing & Support System
Article | Discussion | Edit | History Log in / create account

API:Add Invoice Payment

From WHMCS Documentation

Jump to: navigation, search

This command is used to add a payment to an invoice.

Attributes

invoiceid - should contact the ID number of the invoice to add the payment to
transid - should contain the transaction number for the payment
amount - should contact the amount paid, can be left blank to take full amount of invoice
fees - optional, if set defines how much fees were involved in the transaction
gateway - should contain the gateway used in system name format, eg. banktransfer or paypalinvoices
noemail - set to true to not send an email if the payment marks the invoice paid
date - optional, if set defines the date the payment was made

Example Command

$postfields["action"] = "addinvoicepayment";
$postfields["invoiceid"] = "1";
$postfields["transid"] = "TEST-123456";
$postfields["amount"] = "40";
$postfields["gateway"] = "mailin";

Returned Variables

None

Main Page
Getting Started
Using WHMCS & Howto's
Customising WHMCS
Modules
API
Contributions

Search
 

What links here
Recent Changes
Privacy Policy
General Disclaimer
Copyright © WHMCS Ltd. 2005-2008. All Rights Reserved. UK Registered Company #6265962. Vat No. GB 927 7746 76