Skip to main content

Connect HostBill

This page covers connecting HostBill to BrandForge via Domain Connect. You'll need administrator access to your HostBill installation.

HostBill exposes a REST/JSON API where every request names a call (the action) and is authenticated with an API ID and API key.

1. Create API credentials

  1. In HostBill admin, go to Settings → API.
  2. Generate a new API ID and API key for BrandForge.
  3. Authorise the IP of the BrandForge server (shown in your BrandForge Domain Connect settings) so HostBill accepts its calls.
  4. Copy the API ID and key into BrandForge.

A HostBill API request looks like:

POST https://your-hostbill.com/admin/api.php
api_id=YOUR_API_ID
api_key=YOUR_API_KEY
call=getClientDomains

2. Confirm the API calls are permitted

HostBill lets you restrict which calls an API token may use. Make sure the token you created can perform at least:

CallUsed for
getCurrenciesReading your currency list
getDomainPricing / domain lookupReading domain prices
domainCheckLive availability checks
addClientCreating new customers
getClientDetailsRecognising returning customers
addOrder / addDomainOrderCreating the order
getInvoiceChecking payment status
note

Exact call names can vary slightly across HostBill versions. If a call is rejected as unknown or unauthorised, check Settings → API for the available calls and permitted set on your token.

3. Configure TLDs and pricing

  1. Go to Settings → Domains → TLD (Domain Settings).
  2. Add the TLDs you want to sell and set Register, Transfer, and Renew prices, in each currency you offer.
  3. Attach each TLD to a domain registrar module so orders can be fulfilled.

4. Configure currencies

Under Settings → Currencies, add each currency and set exchange rates. Ensure every TLD is priced in every currency you enable.

5. Activate a payment gateway

Activate at least one payment gateway under Settings → Payment Gateways and note its identifier so you can select it in BrandForge.

6. Enter your details into BrandForge

BrandForge fieldValue
API URLhttps://your-hostbill.com/admin/api.php
API IDFrom step 1
API KeyFrom step 1
Payment MethodYour active gateway
Invoice URLYour HostBill invoice URL
Login URLYour HostBill client area URL
Default Nameserverse.g. ns1.your-hostbill.com, ns2.your-hostbill.com

Click Test connection in BrandForge (a read-only getCurrencies call), then place a test order and confirm it appears under your HostBill orders and invoices.

Troubleshooting

SymptomCauseFix
Authentication / access deniedWrong API ID/key or IP not authorisedStep 1
Call not found / not permittedCall not allowed on the tokenStep 2
No prices appearTLDs unpriced in that currencySteps 3–4
Order placed, domain never registersInvoice unpaid or registrar not attachedMark invoice paid; check step 3