WooCommerce reseller plugin: sell domains and services from your WooCommerce site through our API

API & DocumentationWordPress, Websites & Automation·· 9 views· 4 min read

This plugin is for resellers. You sell domains, hosting, servers and SMS credits as products on your WooCommerce site, and once the order is paid the plugin does the rest through our API, with your Interweb account key. It works in Portuguese and English.

What it does

Products: domains (registration and transfer), hosting, reseller hosting, radio, VPS, cloud and dedicated servers, and SMS credits. Each product has a Fulfilment tab, where you choose what the API does, the plan, the cycle and the options.

Before the cart: the product page asks for the domain (and the transfer code). A name that is not free never reaches the cart.

Once paid: the order runs by itself in the background. The plugin registers, transfers, buys the plan or the credits, follows the result and marks the order completed.

For your customer: "My services" in their account, with the state, expiry, Renew and the hosting control panel. They get e-mails with your site name: service ready, renewal reminders (30, 7 and 1 days before, you choose which), renewed and state changes.

Renewals: the customer pays a renewal order, and the plugin renews the domain or pays the plan's renewal invoice with your credit.

Margin: your API price shows next to the product price, with a warning when you sell below it. With the domains plugin of the same brand, its Register button puts the name in your cart.

Domains carry your account details. The API has no field for the contact of the end customer, so every domain sold through the plugin is registered with the contact details of your reseller account, not your customer's.

What you need

WordPress 6.0 or newer, PHP 7.4 to 8.5, the OpenSSL extension and WooCommerce 7.0 or newer. And an API key, created in the API Center of Meu Interweb, with credit in your account to pay for the orders.

Installing, step by step

1 Download the ZIP of the latest release.
2 Upload it in Plugins > Add New > Upload Plugin. You can also copy the interweb-mz-reseller folder to wp-content/plugins/.
3 Activate the plugin and open Settings > Interweb Mozambique Reseller.
4 Paste the API key and save. The key is checked with the API right away.

The API key and its permissions

The key always needs catalog:read, billing:read, billing:purchase and billing:pay. Add the ones for what you sell: domains:read and domains:write, hosting:read and hosting:write, vps:write, sms:read and sms:write. For the control panel link, hosting:login. See how to create a key and pick its permissions.

When you save it, the plugin asks the API about the key. A wrong, revoked or expired key is not saved, and the plugin tells you right away if permissions are missing or the key is a Sandbox key. The key is kept encrypted (AES-256-GCM, with the WordPress security keys) and never shown again. You can define INTERWEB_MZ_RESELLER_API_KEY in wp-config.php instead.

Testing without spending

A sandbox_ key simulates every order: nothing is registered, created or charged. Place a test order for each product, then move to a prod_ key.

Good to know

Everything comes out of your credit: each order is paid with your account credit. Keep enough for the orders you expect. Without credit, the order waits, tries again every hour and you get an alert.

Never twice: a retry never buys again, because each order item carries its own Idempotency-Key.

Hosting: it uses the customer's domain only when that domain is in your account. Otherwise it starts with a temporary address.

SMS credits: they go to your SMS balance. The plugin counts what each customer bought.

Help

If a paid order does not move to completed, open a support ticket and tell us the order number, the plugin version and the message you see. The code is in the plugin repository, under the MIT license.

Ready to resell from your WooCommerce site?

Download the latest release

SEE ALSO

What the Reseller Program is

The API for resellers and agencies

Repeating a purchase without doing it twice

The repository on Interweb Git

SDKs and integrations, in the API documentation

RECOMMENDED PRODUCT

WordPress hosting

One-click install, updates handled, and speed that holds up. from 321,75 MT/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.