API:Add Billable Item

From WHMCS Documentation

Jump to: navigation, search

This command is used to add a new billable item to the system.

Attributes

clientid
description
amount
recur - frequency to recur - 1,2,3,etc...
recurcycle - Days, Weeks, Months or Years
recurfor - number of times to repeat
invoiceaction - noinvoice, nextcron, nextinvoice, duedate, recur
duedate - date the invoice should be due

Example Command

$postfields["action"] = "addbillableitem"; 
$postfields["clientid"] = "1";
$postfields["description"] = "Payment Towards Web Design Project";
$postfields["amount"] = "250.00";
$postfields["recur"] = "1";
$postfields["recurcycle"] = "Months";
$postfields["recurfor"] = "4";
$postfields["invoiceaction"] = "nextcron";
$postfields["duedate"] = "2009-05-01";

Returned Variables

billableid - the id of the newly added item entry

About the API System · Example API Usage · API Functions

API Functions
Add Client - Update Client - Delete Client - Get Clients - Get Clients Details - Get Clients Products - Get Clients Password - Send Email
Get Support Departments - Get Support Statuses - Get Tickets - Get Ticket - Get Ticket Predefined Cats - Get Ticket Predefined Replies
Open Ticket - Reply Ticket - Add Ticket Note - Delete Ticket
Module Create - Module Suspend - Module Unsuspend - Module Terminate
Create Quote - Update Quote - Delete Quote - Send Quote - Accept Quote
Get Orders - Get Order Statuses - Add Order - Accept Order - Pending Order - Cancel Order - Fraud Order - Delete Order
Get Invoice - Get Payment Methods - Create Invoice - Add Billable Item - Add Invoice Payment
Add Transaction - Add Credit - Capture Payment
Domain WHOIS Lookup - Get Activity Log - Get Admin Details - Update Admin Notes - Get Currencies - Get Email Templates
Get To-Do Items - Get To-Do Item Statuses - Get Staff Online - Get Stats - Encrypt Password - Decrypt Password