One endpoint, clear actions
Create clients, place orders, raise invoices, provision services and manage domains from any language that can send an HTTP request.
One endpoint
Send every request as POST to /api on your billing domain, with an action name and its parameters.
Authentication
Pass identifier and secret as fields, or a Bearer token in the form IDENTIFIER.SECRET.
Responses
JSON by default, or XML with responsetype=xml. Every response carries result: success or error.
Scoped credentials
Create credentials under Setup → API & Webhooks and limit each one by IP address and allowed actions.
Example request
Fetch a client with their billing and service stats.
curl -X POST https://billing.yourhost.com/api \
-H "Authorization: Bearer IDENTIFIER.SECRET" \
-d action=GetClientsDetails \
-d client_id=12 \
-d stats=trueResponse
Successful calls return the data next to result: success.
{
"result": "success",
"client": {
"id": 12,
"first_name": "Rahim",
"last_name": "Uddin",
"email": "rahim@example.com",
"status": "active"
},
"stats": {
"unpaid_invoices": 1,
"services_active": 2,
"domains_active": 1
}
}{
"result": "error",
"message": "Authentication failed: identifier and secret are required"
}Actions
The most used actions, grouped by area. Each credential can be limited to just the actions it needs.
Clients
17 actionsCreate, update and close clients, contacts and notes.
GetClientsGetClientsDetailsAddClientUpdateClientCloseClientDeleteClientGetClientsProductsGetClientsDomainsGetClientsAddonsGetContactsAddContactUpdateContactDeleteContactGetClientGroupsGetCancelledPackagesGetEmailsAddClientNoteUsers
8 actionsClient logins and what each login may do.
GetUsersAddUserUpdateUserResetPasswordGetPermissionsListGetUserPermissionsUpdateUserPermissionsDeleteUserClientOrders
11 actionsPlace, accept, cancel and fraud-check orders, and validate promotions.
GetOrdersAddOrderAcceptOrderCancelOrderPendingOrderFraudOrderDeleteOrderGetOrderStatusesOrderFraudCheckGetPromotionsCheckPromotionProducts
3 actionsProducts, pricing and currencies.
GetProductsAddProductGetCurrenciesBilling
15 actionsInvoices, payments, credit, transactions and billable items.
GetInvoicesGetInvoiceCreateInvoiceUpdateInvoiceAddInvoicePaymentApplyCreditGetTransactionsAddTransactionUpdateTransactionAddCreditGetCreditsAddBillableItemGenInvoicesGetPayMethodsDeletePayMethodServices
9 actionsRun server module actions on a client's service.
ModuleCreateModuleSuspendModuleUnsuspendModuleTerminateModuleChangePackageModuleChangePwUpdateClientProductUpgradeProductAddCancelRequestDomains
14 actionsRegister, transfer and renew domains, and manage TLD pricing.
DomainRegisterDomainTransferDomainRenewDomainGetNameserversDomainUpdateNameserversDomainGetLockingStatusDomainUpdateLockingStatusDomainRequestEPPDomainToggleIdProtectDomainWhoisUpdateClientDomainGetRegistrarsGetTLDPricingCreateOrUpdateTLDSupport
13 actionsTickets, replies, notes and announcements.
GetTicketsGetTicketGetTicketCountsOpenTicketAddTicketReplyAddTicketNoteUpdateTicketMergeTicketDeleteTicketGetSupportDepartmentsGetSupportStatusesGetAnnouncementsAddAnnouncementModules & servers
7 actionsModule configuration, the provisioning queue and server health.
GetModuleQueueGetModuleConfigurationParametersUpdateModuleConfigurationActivateModuleDeactivateModuleGetServersGetHealthStatusSystem
15 actionsStats, logs, settings, staff and email.
GetStatsGetActivityLogLogActivityGetAutomationLogGetConfigurationValueSetConfigurationValueGetPaymentMethodsGetEmailTemplatesSendEmailSendAdminEmailGetAdminUsersGetStaffOnlineAddBannedIpValidateLoginMyBillDetails