from ৳5,999one-time, or monthly from ৳699

API reference

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
curl -X POST https://billing.yourhost.com/api \
  -H "Authorization: Bearer IDENTIFIER.SECRET" \
  -d action=GetClientsDetails \
  -d client_id=12 \
  -d stats=true

Response

Successful calls return the data next to result: success.

200 OK
{
  "result": "success",
  "client": {
    "id": 12,
    "first_name": "Rahim",
    "last_name": "Uddin",
    "email": "[email protected]",
    "status": "active"
  },
  "stats": {
    "unpaid_invoices": 1,
    "services_active": 2,
    "domains_active": 1
  }
}
Error
{
  "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 actions

Create, update and close clients, contacts and notes.

GetClientsGetClientsDetailsAddClientUpdateClientCloseClientDeleteClientGetClientsProductsGetClientsDomainsGetClientsAddonsGetContactsAddContactUpdateContactDeleteContactGetClientGroupsGetCancelledPackagesGetEmailsAddClientNote

Users

8 actions

Client logins and what each login may do.

GetUsersAddUserUpdateUserResetPasswordGetPermissionsListGetUserPermissionsUpdateUserPermissionsDeleteUserClient

Orders

11 actions

Place, accept, cancel and fraud-check orders, and validate promotions.

GetOrdersAddOrderAcceptOrderCancelOrderPendingOrderFraudOrderDeleteOrderGetOrderStatusesOrderFraudCheckGetPromotionsCheckPromotion

Products

3 actions

Products, pricing and currencies.

GetProductsAddProductGetCurrencies

Billing

15 actions

Invoices, payments, credit, transactions and billable items.

GetInvoicesGetInvoiceCreateInvoiceUpdateInvoiceAddInvoicePaymentApplyCreditGetTransactionsAddTransactionUpdateTransactionAddCreditGetCreditsAddBillableItemGenInvoicesGetPayMethodsDeletePayMethod

Services

9 actions

Run server module actions on a client's service.

ModuleCreateModuleSuspendModuleUnsuspendModuleTerminateModuleChangePackageModuleChangePwUpdateClientProductUpgradeProductAddCancelRequest

Domains

14 actions

Register, transfer and renew domains, and manage TLD pricing.

DomainRegisterDomainTransferDomainRenewDomainGetNameserversDomainUpdateNameserversDomainGetLockingStatusDomainUpdateLockingStatusDomainRequestEPPDomainToggleIdProtectDomainWhoisUpdateClientDomainGetRegistrarsGetTLDPricingCreateOrUpdateTLD

Support

13 actions

Tickets, replies, notes and announcements.

GetTicketsGetTicketGetTicketCountsOpenTicketAddTicketReplyAddTicketNoteUpdateTicketMergeTicketDeleteTicketGetSupportDepartmentsGetSupportStatusesGetAnnouncementsAddAnnouncement

Modules & servers

7 actions

Module configuration, the provisioning queue and server health.

GetModuleQueueGetModuleConfigurationParametersUpdateModuleConfigurationActivateModuleDeactivateModuleGetServersGetHealthStatus

System

15 actions

Stats, logs, settings, staff and email.

GetStatsGetActivityLogLogActivityGetAutomationLogGetConfigurationValueSetConfigurationValueGetPaymentMethodsGetEmailTemplatesSendEmailSendAdminEmailGetAdminUsersGetStaffOnlineAddBannedIpValidateLoginMyBillDetails