Domain infrastructure for Zimbabwe and beyond
Support centreUSDWonderweb Technologies

DEVELOPER CENTRE

API documentation

Guides, endpoint reference and integration best practices.

WHMCS registrar module

Get the current integration package and setup instructions.

Download module

Integration API v1.1

A stable action-based contract for external WHMCS modules and SDK clients.

Endpoint and authentication

Bash
https://api.wonderweb.co.zw/v1/integration/

Use GET for reads and form-encoded POST for writes. The key prefix selects the environment. Every successful response includes environment and simulated. Tenant keys use existing scopes; sandbox keys access only synthetic data.

ActionMethodProduction scope
capabilitiesGETaccount:read
catalogueGETpricing:read
availabilityGETdomains:check
domainGETdomains:read
walletGETwallet:read
orderGETorders:read
submitPOSTorders:create + domains:quote; contacts:write for acquisitions
sandbox_create / sandbox_revokePOSTaccount:read; confirm=1

Capability check

Bash
curl --request GET \\n  --header "Accept: application/json" \\n  --header "Authorization: Bearer $WW_API_KEY" \\n  "https://api.wonderweb.co.zw/v1/integration/?action=capabilities"

Order submission

FieldRequirement
actionsubmit
referenceStable 16–100 character idempotency reference
domainExact fully qualified standard domain
operationregister, renew, transfer
years1
max_price_centsExplicit wholesale ceiling in integer USD cents
confirm1
contactJSON object for acquisition; required contact fields in module README
nameserversJSON array with 2–4 distinct hostnames
business_profileProduction approved reseller profile ID for acquisitions
previous_expiryExact YYYY-MM-DD for renewal
eppTransfer only; check the qualified extension list

Read order status using GET action=order and the same reference. Production requests reuse the existing native quote and financial authorization engine. Only fulfilled means completed. Requested, quoted, queued, submitting and uncertain are not completed orders. A verified quote expires after five minutes; reuse the reference, never blindly resubmit. The background authorization worker accepts a fresh verified quote only within the explicit ceiling. Read the existing order reference; do not create another purchase. Automatic production renewal is limited to the final 90 days before expiry.

Management boundary

Production domain information requires an owned, isolated guarded WHMCS record and authoritative active registry response. Nameservers and lock are only returned when the registrar supplies them. Production management writes are queued and require registry readback. EPP retrieval requires an unlocked, verified international domain.

Unified lifecycle actions

GET actionRequired fieldsScope
portfolioafter (optional)domains:read
registry_contactsdomaindomains:read + contacts:write
jobidorders:read
renewal_preferencesnonedomains:read
eventsafter sequence (optional)orders:read
casesnoneorders:read
webhooksnoneaccount:read
POST actionFields in addition to action and confirm=1Scopes in addition to orders:create
authorize_applicationreference, quote_id, price_cents, application_sha256domains:quote
bulk_submititems JSON array of 1-5 independently authorized requestsPer-item order scopes
set_nameserversdomain, reference, nameservers JSONdomains:read
set_contactdomain, reference, contact JSONdomains:read + contacts:write
set_lockdomain, reference, locked (0 or 1)domains:read
eppdomaindomains:read + contacts:write
auto_renewdomain, enabled (0 or 1), max_price_centsdomains:read + domains:quote
payment_casedeposit_id, kind, reasonorders:create
webhook_createendpoint (public HTTPS)orders:read + domains:read
webhook_revokeidorders:create

For management jobs, poll GET job with the returned ID. A queued or review result is not a verified change. Local registry changes require operator processing. Webhook secrets are shown once. The full guide includes exact headers and retry limits.

Webhook signature verification

Read X-Wonderweb-Timestamp and X-Wonderweb-Signature. The signature is sha256=HEX of HMAC-SHA256(secret, timestamp + dot + raw body). Compare in constant time, reject timestamps more than five minutes old, deduplicate event ID and respond successfully only after accepting the event. Public HTTPS only; redirects and private networks are blocked. Delivery retries at most eight times. GET events supports catch-up; no automatic email delivery is implied.

Local application flow

For .co.zw add postal_same=same|separate, postal_address, core_business and brief_description to submit. Poll order by reference; when quoted, review the returned application, quote_id, application_sha256 and amount_cents. Authorize the exact document and quoted price with authorize_application. Successful submission completes the local order, not independent registry verification. Local changes require operator review.

Automatic renewal and bulk requests

Auto-renewal applies to eligible international domains within 30 days before expiry, once per term with a fresh quote, active authorizing identity and price ceiling. Coordinate WHMCS and Registrar renewal schedules. Bulk submission is non-atomic: inspect each result and reuse the original reference. A payment case does not move funds.

GET portfolio, registry_contacts, job, renewal_preferences, events, cases and webhooks. POST authorize_application, bulk_submit, set_nameservers, set_contact, set_lock, epp, auto_renew, payment_case, webhook_create and webhook_revoke. Writes require confirm=1, appropriate scopes and stable references. Read the versioned guide for field details, local availability review and webhook verification.

Download the complete v1.1 integration guide