Version 0.9.1 · For developers. Authentication, money and orders, every route, errors, ready-made clients and webhooks.
Base URL: https://<provider-whmcs>/modules/addons/reseller_suite/api.php
Every call is a POST with a JSON object body (send {} when there is nothing to send). The route goes in the route query parameter:
POST …/api.php?route=/v1/domains/check
(…/api.php/v1/domains/check also works where the web server passes PATH_INFO.)
Answers:
{"success": true, "data": { … }}
{"success": false, "error": {"code": "insufficient_balance", "message": "…", "details": { … }}}
The generated WHMCS modules (Domains and Products) use this API; resellers on other platforms call it directly.
Authentication
Every request is signed with the reseller's API key. The secret never travels over the network.
| Header | Value |
|---|---|
X-ARS-Key |
Key ID, e.g. ars_live_3f9c… (test keys start with ars_test_) |
X-ARS-Timestamp |
Current Unix time in seconds. Requests more than 300 seconds off are refused. |
X-ARS-Nonce |
A new random string for every request, 16–64 characters A–Z a–z 0–9 _ -. Single use. |
X-ARS-Signature |
Lower-case hex HMAC-SHA256 of the canonical string, keyed with the secret. |
Idempotency-Key |
Optional, 8–64 characters A–Z a–z 0–9 _ - : .. Send it on every order. |
Canonical string
"POST" + "\n" + ROUTE + "\n" + TIMESTAMP + "\n" + NONCE + "\n" + hex(SHA256(raw body))
ROUTE is the route only, e.g. /v1/domains/register — not the full URL and not the query string.
$ts = (string) time();
$nonce = bin2hex(random_bytes(16));
$body = json_encode(['domain' => 'example.com', 'years' => 1]);
$sig = hash_hmac('sha256', "POST\n/v1/domains/register\n{$ts}\n{$nonce}\n" . hash('sha256', $body), $secret);
Money and orders
Orders are paid from the reseller balance. The amount is reserved before anything is registered or created and charged only on success; a failed order releases it. There is no credit: an order the free balance does not cover is refused with insufficient_balance (HTTP 402) and nothing is sent upstream.
Orders answer with an order record:
{"order_id": 812, "status": "completed", "action": "register", "item": "example.com", "amount": "10.00", "sandbox": false, "result": { … }}
status is completed, processing (look again with /v1/orders/get) or failed (with error). Repeating a request with the same Idempotency-Key returns the same order and never charges twice; the same key with a different body is refused with idempotency_conflict (409). After a failed or refused order, the same key may be used again.
Test keys (ars_test_…) run every order as a simulation: nothing is registered or created and no money moves. They can only call /v1/ping, /v1/account, /v1/orders/get, /v1/orders/list (sandbox orders only), the catalogue reads (/v1/domains/check, /v1/domains/pricing, /v1/domains/tlds, /v1/domains/promotions, /v1/domains/additional-fields, /v1/domains/dns/templates, /v1/products) and the simulated orders (/v1/domains/register, /v1/domains/transfer, /v1/domains/renew, /v1/services/create, /v1/services/upgrade). Every other call with a test key is refused with sandbox_not_allowed (403); use a live key to manage real domains and services.
Routes
| Route | Body | Answer |
|---|---|---|
/v1/ping |
— | pong, time, sandbox |
/v1/account |
— | balance, held, available, currency, modes, sells (domains / products you can sell now), topup_url and orders_url (your reseller area), versions |
/v1/orders/get |
order_id |
order record (own orders only) |
/v1/orders/list |
status (open, failed, both by default), limit (1–100) |
your open (queued, processing) and failed orders of the last 30 days; retry_safe is true for a failed order (its idempotency key was released, so sending the same request again is a new attempt charged at most once) |
/v1/catalog/price-changes |
since (YYYY-MM-DD, default 30 days ago) |
announced increases of your own prices (status: announced, with effective_at) and those applied since that day; decreases apply at once and show in the catalogue. Filtered by module; a sub-reseller sees his parent's prices plus the parent's markup |
/v1/domains/check |
domains (max 25), action (register default, or transfer) |
per domain: status (available, unavailable, tld_not_offered, invalid, unknown); for a name you could order (available, or unavailable with action=transfer) also premium (true/false) and, when premium, premium_price (one year, your currency), premium_renew_price, currency, orderable (false when the price cannot be determined: the name cannot be ordered now) — see Premium domains |
/v1/domains/additional-fields |
tld (also GET …/additional-fields?tld=.uk) |
tld, count, fields: the registry-specific fields of the TLD as the provider's WHMCS defines them, each with name, label, type (text, dropdown, radio, tickbox, display), options (value, label), required, required_if ({"Other field": ["value", …]} or null), default, description. Test keys may call it |
/v1/domains/pricing |
tlds (optional) |
your prices per TLD: register/renew per year, transfer, grace, redemption; a price lowered by a TLD promotion also has promo.<action>.<years> = {regular, ends} |
/v1/domains/tlds |
— | TLDs offered to you |
/v1/domains/promotions |
— | running and upcoming TLD promotions for your group: id, label, status (running / upcoming), starts, ends, store (your choice: pass or keep), items (tld, action, years, regular, price, discount); plus currency and your min_margin. A domain-module catalogue read (module_not_licensed without it); test keys may call it |
/v1/domains/register |
domain, years, nameservers, contacts.registrant, id_protection, end_client_ref, additional_fields, premium_price (premium names) |
order record (result.ignored_fields: names you sent that the TLD does not use; result.premium: a premium registration) |
/v1/domains/transfer |
domain, epp_code, nameservers, contacts.registrant, end_client_ref, additional_fields, premium_price (premium transfers) |
order record |
/v1/domains/renew |
domain, years, due_date (optional, YYYY-MM-DD: the due date your system renews from), premium_price (optional, premium names) |
order record (grace/redemption fee added when due). The same renewal (domain, years, due_date) sent again under another idempotency key answers 409 duplicate_renewal with details.order_id |
/v1/domains/info / sync |
domain |
status, expiry, next due, premium, additional_fields (the values kept on the domain) / sync flags |
/v1/domains/nameservers/get / save |
domain, nameservers |
|
/v1/domains/lock/get / save |
domain, locked |
|
/v1/domains/contacts/get / save |
domain, contacts |
|
/v1/domains/epp |
domain |
epp_code (or sent to the registrant) |
/v1/domains/dns/get / save |
domain, records |
|
/v1/domains/email-forwarding/get / save |
domain, forwards |
|
/v1/domains/id-protection |
domain, enabled |
|
/v1/domains/private-ns/register / modify / delete |
domain, nameserver, ip / current_ip, new_ip |
|
/v1/domains/dnssec/get / save |
domain, records (key_tag, algorithm, digest_type, digest; empty list switches DNSSEC off) |
enabled, records |
/v1/domains/forwarding |
domain, url (empty removes), type (redirect / frame), host (@ or one label) |
forwarding |
/v1/domains/dns/templates |
— | your DNS templates and ours |
/v1/domains/dns/templates/save / delete |
name, records (type, hostname, address, priority), template_id |
template_id |
/v1/domains/dns/apply-template |
domain, template_id, variables (ip, ip6) |
replaces the domain's records; {domain}, {ip}, {ip6} filled in |
/v1/domains/cloudflare |
domain |
adds the domain to your connected Cloudflare account and switches its nameservers |
/v1/domains/verification/resend |
domain |
resends the ICANN registrant verification email |
/v1/domains/backorder/create |
domain, nameservers (2–5, optional), id_protection, end_client_ref |
backorder record — the backorder price is held now (see below); Idempotency-Key supported |
/v1/domains/backorder/list |
status (optional: active, registering, won, failed, cancelled) |
backorders: your backorders, newest first |
/v1/domains/backorder/cancel |
backorder_id |
backorder record (cancelled); only while it is still active, the held amount is released |
/v1/products |
— | products with cycles, prices, configurable options and custom fields |
/v1/catalog/products |
— | the catalogue the Connector imports: groups, and per product group_id, paytype, cycles (your price, setup and the provider's min_resale when set), config_options (each choice with price and setup per cycle; a quantity option: one unit) and addons (price and setup per cycle). Amounts have four decimals, as charged. Optional page / per_page (1–500; the answer has total). Needs the products scope on a scoped key. Read-only, not a sale: refused with module_not_licensed only when the provider's licence lacks products, so price sync of what you already sell keeps working. Test keys may read it |
/v1/services/create |
product_id, billing_cycle, domain, config_options, custom_fields, end_client_ref |
order record, result.service_id |
/v1/services/info |
service_id |
status, IPs, cycle, next due, price |
/v1/services/suspend / unsuspend / terminate |
service_id (reason) |
a provider suspension (e.g. overdue) cannot be lifted by the reseller |
/v1/services/password |
service_id, password (10–64, upper, lower, digit) |
|
/v1/services/sso |
service_id |
url |
/v1/services/upgrade |
service_id, product_id (same billing cycle) |
order record; you pay the price difference for the rest of the period, the next renewal uses the new price. Refused with renewal_due while a renewal is unpaid |
/v1/services/renew |
service_id |
pays the open renewal invoice from your balance (nothing_due when there is none) |
/v1/services/wordpress |
service_id, site_title, admin_user, admin_email, path |
url, admin_user, admin_password (shown once) — when the server module supports it, else not_supported (501) |
/v1/services/vps/power |
service_id, action (start, shutdown, restart) |
done — VPS Reseller Pro for Contabo servers only, while it is installed and licensed; never for a suspended service |
/v1/services/vps/action |
service_id, action (reinstall, vnc, snapshots, snapshot_create, snapshot_delete, snapshot_revert, status), args |
status, url, snapshots, snapshot_id — needs a VPS Reseller Pro version with reseller actions, else not_supported (501) |
Domains and services are always scoped to the key's reseller: anything else answers 404. Only the newest WHMCS record of a domain name counts: once a domain lapsed and was registered again by someone else, the old owner gets 404.
New domains are locked against transfer right after registration (provider setting). When the provider set a backup registrar for a TLD and the main registrar fails, the same paid order is tried once with the backup registrar.
Additional fields (ccTLDs). Many registries need more than the registrant contact: .uk legal type, .us nexus category and purpose, .ca CIRA legal type, .eu citizenship, .es / .it tax IDs, .au eligibility, .de admin contact and so on. Read the fields of a TLD with /v1/domains/additional-fields (they are the provider's own WHMCS definitions, including his changes) and send the values with register or transfer as additional_fields, an object of field name → value, e.g. {"Legal Type": "UK Limited Company", "Company ID Number": "01234567"}. Names are matched without regard to case; for a dropdown or radio field send the option value (its label is accepted too); a tickbox is on with "on", "1", "yes" or true; an empty field with a default gets the default. A required field left empty (or a required_if field whose condition is met) answers 422 missing_additional_fields with details.missing; a value outside the options answers 422 invalid_additional_fields with details.invalid; both before anything is held or ordered. Names the TLD does not use are ignored and listed in result.ignored_fields. The values go to the provider's registrar with the order and stay on the domain, so renewals and contact changes keep them (domains/info shows them). The order record keeps only the field names, never the values. To change a value after registration, open a ticket with us: registrars have no standard call for it.
Premium domains. Some names are sold by the registry at a premium price. /v1/domains/check asks the provider's registrar and answers premium: true with your premium_price for one year (action=transfer: the premium transfer price) and premium_renew_price: the registrar's price plus the provider's premium markup, never under the provider's cost rules. To order a premium name, send premium_price with exactly the quoted amount ("125.00"); without it, or when the price has changed since you checked, the order answers 409 premium_price_mismatch with the current price in details.premium_price and nothing is held or charged. Premium registrations are for one year (422 premium_one_year; renew for further years). When the registrar cannot tell the price, orderable is false and an order answers 422 premium_price_unknown: a premium name is never sold at the normal TLD price. The order is paid like any other: held on your balance, sent to the registrar, then charged. Renewals of a premium domain use its current premium renewal price (premium_price on renew is optional; if you send it and the price differs you get 409 premium_price_mismatch).
Backorders (when the provider offers them): ask for a domain that is registered today. Your backorder price for the TLD (the provider's backorder price, or your 1-year register price; it includes the first year) is held on your balance at once and charged only when the domain is registered for you. We watch the domain (availability checks that get more frequent as its expected deletion date — expiry plus the TLD's grace, redemption and pending-delete periods — comes near) and register it through the normal order path the moment it is free, with your nameservers or the provider's defaults and your account's contact details (change the registrant afterwards with contacts/save). Several resellers on one domain: first come, first served — the oldest backorder gets it, the others end with reason lost and their money is released. A backorder also ends, with its money released, when you cancel it, when the domain was renewed or registered by someone else, when the registration fails, or when it was not deleted by the deadline (expected drop + 30 days, one year when no expiry date is known). A domain whose expected deletion is more than 400 days away cannot be backordered yet. Record: backorder_id, domain, status, amount, currency, expires, expected_drop, next_check, last_checked, checks, reason and message, error, order_id (the registration, see orders/get), created, finished. Test keys cannot place backorders. Placing is refused before any lookup when your free balance does not cover the price or after 30 tries in an hour (rate_limited), and passes the same review as orders (review_required). If the registrar fails when the domain is free, your hold stays and we try again a few minutes later (up to 5 times); if your account cannot order at that moment (for example an unpaid membership) you keep your place for up to 7 days while the next backorder in line is tried. Your system (or the registrar module) may call these routes; events backorder.* tell you what happened.
Bulk actions: upload a CSV in the reseller area (Domain tools) with action,domain,years,epp_code,ns1,ns2,ns3,ns4 (register, transfer, renew, nameservers, lock, unlock; up to 1,000 lines). Each line runs as a normal order with its own idempotency key; results can be downloaded as CSV.
Errors
| HTTP | code |
Meaning |
|---|---|---|
| 400 | invalid_json / invalid_idempotency_key |
Body or header malformed |
| 401 | invalid_key / invalid_signature / timestamp_out_of_window / invalid_nonce / replayed_request |
Authentication failed |
| 402 | insufficient_balance |
Free balance does not cover the order (details.available, details.required) |
| 403 | ip_not_allowed / key_paused / reseller_inactive / api_not_allowed / mode_not_allowed / spending_limit / unsuspend_blocked / review_required / sandbox_not_allowed / abuse_hold / topup_refund_due / first_topup_required / module_not_licensed / backorders_disabled / backorder_limit |
Not allowed (module_not_licensed: new sales of domains or products are not offered by the provider at the moment — details.module says which; renewals and management of what you already have keep working, services/upgrade to a product that costs the same or less always works, and sub-resellers place no new orders when the provider has no Full Suite; the OpenAPI document marks each call with x-ars-module. review_required: nothing charged; send the same request again once we approved it. sandbox_not_allowed: a test key on a call that would touch a live object. abuse_hold: the domain is held after an abuse report. topup_refund_due: a refunded top-up is still owed. first_topup_required: a new account must add its first balance before new orders — details.min_amount, details.currency and details.topup_url; renewals and management of what you already have keep working. backorders_disabled: the provider does not offer backorders. backorder_limit: too many open backorders, details.max) |
| 404 | domain_not_found / service_not_found / order_not_found / backorder_not_found / not_found |
Not on your account |
| 409 | domain_inactive / domain_exists / domain_unavailable / idempotency_conflict / duplicate_renewal / renewal_due / nothing_due / cloudflare_not_connected / domain_available / backorder_exists / backorder_not_cancellable / premium_price_mismatch |
Conflict (premium_price_mismatch: confirm the premium price in details.premium_price with premium_price; domain_available: register it instead of backordering; domain_inactive: your domain is Expired, Cancelled, Transferred Away or held — an Expired domain can only be renewed, info and sync still answer) |
| 501 | not_supported |
The registrar or server module does not offer this |
| 413 | body_too_large |
Body over 1 MB |
| 422 | tld_not_offered / period_not_offered / option_not_offered / missing_epp_code / invalid_nameservers / weak_password / backorder_too_early / missing_additional_fields / invalid_additional_fields / invalid_tld / premium_price_unknown / premium_one_year / … |
Input refused (missing_additional_fields / invalid_additional_fields: see Additional fields, details.missing / details.invalid; option_not_offered: a configurable option or quantity has no price for the chosen billing cycle; a dropdown or radio option you leave out is ordered with its preselected choice and charged, so it must be priced too) |
| 429 | rate_limited |
Too many requests this minute |
| 502 | order_failed / registrar_error / module_error |
Upstream failed; nothing was charged |
| 503 | api_disabled / service_unavailable / tld_not_configured |
Temporarily unavailable |
Ready-made clients and tools
In the reseller area (Modules) every reseller can download, already set up for this provider:
- PHP, Node.js and Python clients — one file each, no dependencies; signed requests, a method for every route above, idempotency keys, typed errors, and a webhook signature check.
- OpenAPI 3.1 description and a Postman collection (requests are signed by the collection's pre-request script; enter the key ID and secret as collection variables).
- WHMCS modules (registrar and provisioning) and Blesta modules (registrar and products, Blesta 5.10+ / 6).
- HostBill modules (
DomainModuleregistrar inincludes/modules/Domain/<slug>/,HostingModuleprovisioning inincludes/modules/Hosting/<slug>_hosting/), ClientExec plugins (RegistrarPlugininplugins/registrars/<slug>/,ServerPlugininplugins/server/<slug>hosting/) and Upmind provision providers (composer packages forupmind/provision-provider-domain-names^2.34 andupmind/provision-provider-shared-hosting^6.19, namespaceUpmind\ProvisionProviders\DomainNames|SharedHosting\<Slug>; Upmind runs them only after it has reviewed and merged them upstream). They use the same signed client and the routes above (no extra routes); on402 insufficient_balancethey add thetopup_urlof/v1/accountto the message (Upmind domain providers put it in the error data, so customer-facing text stays white-label). Domain packages are offered with the domains module, product packages with the products module. - Connector addon for WHMCS — installs next to the WHMCS modules and imports products from
/v1/catalog/products, keeps prices in step daily, shows TLD margins and a balance/orders widget (see the reseller guide). The registrar module'sGetTldPricingfeeds WHMCS's Registrar TLD Sync with shortest-term prices. - Domain search for websites: a small script and a WordPress plugin (
[slug_domain_search]). They call only the public, rate-limited search address (index.php?m=reseller_suite&widget=1&w=CODE&q=name) and never contain an API secret. Store resellers show their store prices and link to their store's cart; others set the link to their own cart.
Webhooks
X-ARS-Signature: t=<unix>,v1=<hex> where v1 = HMAC-SHA256(webhook secret, "<t>.<raw body>"). Reject anything older than 5 minutes. Events: order.completed, order.failed, balance.low, renewal.paid, renewal.insufficient, payout.paid, payout.rejected, abuse.reported, integration.unhealthy, price.change, review.required, security.new_login, maintenance.scheduled, security.api_anomaly, monitor.down, monitor.up, monitor.ssl_expiring, backorder.placed, backorder.won (with order_id), backorder.failed (with reason), backorder.cancelled, promo.started and promo.ending (a TLD promotion for your group started / ends in two days: promotion, tlds, actions, from, until), topup.auto_paid (with invoice_id, amount), topup.auto_failed (with invoice_id, amount, reason: declined, authentication, pay_method, gateway or error, and paused: yes / no).
This article is part of the complete Reseller Suite for WHMCS guide. All guide articles.