Get the current integration package and setup instructions.
Integration API v1.1
A stable action-based contract for external WHMCS modules and SDK clients.
Endpoint and authentication
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.
| Action | Method | Production scope |
|---|---|---|
| capabilities | GET | account:read |
| catalogue | GET | pricing:read |
| availability | GET | domains:check |
| domain | GET | domains:read |
| wallet | GET | wallet:read |
| order | GET | orders:read |
| submit | POST | orders:create + domains:quote; contacts:write for acquisitions |
| sandbox_create / sandbox_revoke | POST | account:read; confirm=1 |
Capability check
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
| Field | Requirement |
|---|---|
| action | submit |
| reference | Stable 16–100 character idempotency reference |
| domain | Exact fully qualified standard domain |
| operation | register, renew, transfer |
| years | 1 |
| max_price_cents | Explicit wholesale ceiling in integer USD cents |
| confirm | 1 |
| contact | JSON object for acquisition; required contact fields in module README |
| nameservers | JSON array with 2–4 distinct hostnames |
| business_profile | Production approved reseller profile ID for acquisitions |
| previous_expiry | Exact YYYY-MM-DD for renewal |
| epp | Transfer 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.
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 action | Required fields | Scope |
|---|---|---|
| portfolio | after (optional) | domains:read |
| registry_contacts | domain | domains:read + contacts:write |
| job | id | orders:read |
| renewal_preferences | none | domains:read |
| events | after sequence (optional) | orders:read |
| cases | none | orders:read |
| webhooks | none | account:read |
| POST action | Fields in addition to action and confirm=1 | Scopes in addition to orders:create |
|---|---|---|
| authorize_application | reference, quote_id, price_cents, application_sha256 | domains:quote |
| bulk_submit | items JSON array of 1-5 independently authorized requests | Per-item order scopes |
| set_nameservers | domain, reference, nameservers JSON | domains:read |
| set_contact | domain, reference, contact JSON | domains:read + contacts:write |
| set_lock | domain, reference, locked (0 or 1) | domains:read |
| epp | domain | domains:read + contacts:write |
| auto_renew | domain, enabled (0 or 1), max_price_cents | domains:read + domains:quote |
| payment_case | deposit_id, kind, reason | orders:create |
| webhook_create | endpoint (public HTTPS) | orders:read + domains:read |
| webhook_revoke | id | orders: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.