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

API:Add Credit

From WHMCS Documentation

Jump to: navigation, search

This command is used to add credit to a client

Attributes

clientid - the ID of the client the credit is to be added to
description - reason for credit being added (stored in admin credit log)
amount - the amount to be added

Example Command

$postfields["action"] = "addcredit";
$postfields["clientid"] = "1";
$postfields["description"] = "Adding funds via custom module";
$postfields["amount"] = "40.00";

Returned Variables

newbalance - the total credit balance the client now has

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