Base de conhecimento

Selling Zinn® hosting from your own systems

Drive Zinn® hosting from your own billing panel, WordPress site or scripts: get an API key, make your first call, and the six calls the integration needs.

Zinn®, o nosso viking, a ler a sua lista de verificação ao lado de um índice de artigos com um aberto.

You resell our hosting. Your clients are yours: your prices, your invoices, your payment provider. This is how you drive our platform from whatever you already run — a billing panel, your own WordPress site, or a script.

What your clients actually see

Before the mechanics: your clients never have to see us. Three surfaces, and you choose which you use.

SurfaceWhose it is
The hosting panel, on your own hostnameSet a panel hostname under Reselling → Your brand and your clients sign in at panel.yourcompany.com with your logo and your colours. Same panel, your address.
Your own websiteThe WordPress plugin puts domain search and a one-click sign-in link on your site, and takes the order through your own WooCommerce checkout.
Your billing panelWHMCS or HostBill stays the front door; the module provisions behind it and the client-area button signs them straight into their hosting.

⛔ Whichever you pick, you are the merchant of record for your clients: your prices, your invoices, your VAT number, your payment provider. We bill you, once a month, at wholesale.

Once you have set a panel hostname, put it in the Panel address field of the WordPress plugin and in nothing else — the sign-in links this API mints follow it automatically.

The four ways in

There are four ways in, and they all do the same thing underneath:

For
The WHMCS moduleA WHMCS shop
The HostBill moduleA HostBill shop
The WordPress pluginSelling from your own WordPress or WooCommerce site
The APIAnything else — Blesta, an in-house system, a cron script

1. Get an API key

In your dashboard, go to API keys and create one. Give it only what it needs. These six are what the HostBill module and the PHP library call, and the base of every integration:

PermissionWhy
org.createOpen a client account on the first order
sites.createProvision a site
sites.viewRead a service
sites.deleteTerminate
reseller.viewList your services and read usage
reseller.provisionSuspend, release, set a client's plan and sign them in

The WHMCS module needs four more for its extra buttons (sites.cache.purge, hosting.backup.manage, sites.panel_access, hosting.php.manage), and the WordPress plugin lists its own per module on its Account tab. Each module's exact list ships beside it as api-permissions.json.

⛔ Do not give an integration reseller.manage. That permission edits your price list and your own payment-gateway credentials. reseller.provision exists precisely so a key you paste into a billing panel or a website does not need it.

The key is shown once. Store it where you store your other credentials — never in a file your web server serves.

2. Make your first call

curl https://api.zinndigital.com/v1/reseller/services \
  -H "Authorization: Bearer zdk_live_…"

That returns every service you have provisioned, one row per site, with the client it belongs to, its status, and what you charge for it. On a new account it is an empty list — which is the correct answer, not an error.

3. The whole integration, in six calls

WHEN                 CALL
an order is paid     POST   /v1/orgs                                   once per CUSTOMER
                     POST   /v1/sites                                  once per SERVICE
they have not paid   POST   /v1/reseller/services/{siteId}/suspend
they pay             POST   /v1/reseller/services/{siteId}/unsuspend
they cancel          DELETE /v1/sites/{siteId}
"log in to hosting"  POST   /v1/reseller/services/{siteId}/sso

Provisioning is two calls, and the keys matter:

# 1. the customer's account — keyed on YOUR customer id
curl -X POST https://api.zinndigital.com/v1/orgs \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: account-4211" \
  -d '{"type":"customer","name":"Acme Ltd"}'

# 2. their site — keyed on YOUR service id
curl -X POST https://api.zinndigital.com/v1/sites \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: service-9915" \
  -d '{"org_id":"<from step 1>","product_line":"mainstream","primary_domain":"acme.com"}'

Two rules that cost money when you get them wrong

  1. Key the account on your CUSTOMER and the site on your SERVICE. A customer's second order must land in the account they already have. Key both on the service and one customer ends up with three unrelated accounts and three separate panels.
  2. Send an Idempotency-Key on every POST, built from your own id for the thing. Every billing system retries — a gateway callback arrives twice, an admin re-runs a failed provision, a customer double-clicks. Without the key the second attempt creates a second site and you are billed for it.

Three answers you must not flatten into two

  • unsuspend can answer 409. That means our abuse team is holding the site, not you. Show the message; do not retry it.
  • **Terminating schedules a deletion, it does not perform one.** The date comes back as pending_deletion_at. Telling a customer their data is already gone when it is not is worse than telling them nothing.
  • disk_used_bytes can be null, and null is not zero. It means we could not measure, not that nothing was used. Skip it — do not write 0 into your own records, or you will show a customer a green usage bar for a site you have no reading from.

4. Sign a client in

POST /v1/reseller/services/{siteId}/sso returns a single-use URL that drops your client straight into their own account, already signed in.

⛔ Mint it when they click, never when you render the page. The link is single-use and expires within minutes, so a link written into a page is burned on the first page view and left in every cache between you and the browser.

5. Install a module instead

  • WHMCS — copy the module to modules/servers/zinn/, add a server whose Password is your API key, and set the product line on the product. Press Test Connection: it makes real calls, says whether your programme can sell, and names any permission the key lacks.
  • HostBill — copy to includes/modules/Hosting/zinn/ and connect it the same way.
  • WordPress — the Zinn® Reseller Toolkit: domain search, a sign-in link into your clients' hosting, and WooCommerce provisioning when an order is paid. Open source at <https://github.com/Zinn-Digital/zinn-reseller-toolkit>, or download it from Plugins in your dashboard.

6. Go live

Check these before you take a real order:

  • The connection test passes on the module, or your first curl returns a list.
  • Your price list is set (Reselling → Your prices).
  • Your payment gateway is connected (Reselling → Payment gateways) — your clients pay you, through your own account.
  • Your company details are in (Reselling → Your company) so your client invoices carry your legal entity and VAT number, not ours.
  • You have placed one real order end to end and watched the site appear.

Give a contractor only some of your clients

Everyone on your team reaches every client account by default. To limit someone, open Organisation → Team members, choose Client access on their row, pick Only the client accounts I choose and tick the clients they work on. They keep your organisation itself and open only those client accounts (and anything under them); every other client is invisible to them.

A limited member also cannot invite, remove or change team members or create API keys, so they cannot widen their own access. Owners always reach every client. Choosing Every client account lifts the limit. The same switch is in the API: PUT /v1/orgs/{orgId}/members/{userId}/client-access.

Change a client's plan

Open Your clients and choose Plan on the client's row. You see the plan they are on and what we charge you for it each month.

  • A client with no plan. Pick one under Put them on. Before you confirm, you see the monthly amount it adds to your next statement. A site created for a client with no plan gets no limits and is never billed to you, so give every client a plan.
  • A client already on a plan. You move them by changing the package on one of their sites: choose Their sites, then Change package on the site. Every site on the plan moves with it.

Change package lists every package the site can move to. A package the client's use does not fit (for example, more databases than it allows) is shown but cannot be chosen, with the numbers. When you pick one, you see what we will charge you for this client and your own price to them, before you confirm. We never charge your client: the change appears on your next statement and you bill your client yourself.

The same two actions are in the API: POST /v1/reseller/clients/{orgId}/plan and POST /v1/reseller/services/{siteId}/package.

Where everything else is

The complete API reference — every endpoint, generated from our specification, with the permission each one needs — is at <https://zinndigital.com/developers/api>.

Este artigo ainda não foi traduzido para o seu idioma, pelo que está a ler a versão em inglês.

Toda a documentação para programadores →

Mais recentes do blogue

O que temos escrito sobre alojamento, SEO e gestão de sites em escala.

SEO and Link Building from the Hosting Layer: A 2026 Operator's View

How hosting shapes indexing and link equity in 2026: keeping pages indexed, vetting aged domains before you build on them, link building without a footprint, and an honest line on what infrastructure can and cannot do for SEO.

Ler o artigo →

Making WordPress Fast and Secure: A Performance and Plugin Checklist

A practical checklist for fast, secure WordPress: server-level caching, a per-site object cache, the handful of plugins worth running, keeping the stack current, and the WooCommerce pages you must never cache.

Ler o artigo →

How to Choose Managed Web Hosting in 2026: A Buyer's Guide

What actually separates good managed hosting from a cheap box with a control panel — migrations, backups, isolation, real caching and honest scaling — and how to judge it before you commit.

Ler o artigo →

Ler o blogue →

Ainda com dúvidas?

O suporte está incluído em todos os planos, o apoio está disponível 24 horas por dia e pode escrever-nos em qualquer um dos nossos 59 idiomas — respondemos-lhe no seu.

Contactar o suporte Todos os artigos