Resources/API

ResellPortal API

Everything in your panel, from code. Clients, orders, provisioning, balance, products, domains, eSIM and SMM.

Base URL

https://panel.resellportal.com/wp-json/resellportal/v1/

Get your API credentials: log in to your ResellPortal panel and open the API section to view your API Key and API Secret. Generating a key, every read call and test mode are free. A live order only needs enough wallet balance to cover its own wholesale cost.

API DocumentationAll API requests require authentication using your API Key and API Secret in the request headers.

Authentication Headers
X-API-Key: your_api_key
X-API-Secret: your_api_secret

Run your store from Claude, ChatGPT or Cursor

https://panel.resellportal.com/mcp
Claude: Settings → Connectors → Add custom connector
ChatGPT: Settings → Apps & Connectors → Advanced → Developer mode → Create (OAuth)
Cursor: Add to Cursor or Settings → MCP → Add new server

Then sign in with your ResellPortal login and click Allow. No account? https://panel.resellportal.com/mcp/public shows the catalog, prices and docs without signing in. Orders run in test mode unless you ask for a live one (charged to your wallet). Disconnect under Profile → Connected Apps.

Global Flags

Account2 endpoints

Response:
{
  "success": true,
  "balance": 150.00,
  "currency": "USD"
}
Response:
{
  "success": true,
  "products": [
    {
      "id": "ai_receptionist",
      "name": "AI Chatbot & Receptionist",
      "icon": "fa-headset",
      "type": "recurring",
      "category": "digital",
      "pricing": { "chat": 30.00, "booking": 78.00, "phone": 198.00 },
      "wholesale": { "chat": 15.00, "booking": 39.00, "phone": 99.00 }
    }
  ]
}

pricing is what your clients pay on your store (your retail prices). wholesale is what you pay per sale, after your wallet discount. Both are keyed by plan or billing option. Products priced per item (eSIM, social media, domains) show a pricing_note instead.

Clients4 endpoints

Request Body:
{
  "name": "John Doe",
  "email": "john@example.com",
  "phone": "+1234567890",
  "company": "Acme Inc",
  "portal_password": "optional - min 8 chars, generated if omitted",
  "send_setup_email": "optional - true to email the client a set-password link instead of returning a password"
}
Response:
{
  "success": true,
  "client_id": 123,
  "message": "Client created successfully",
  "portal_login_url": "https://your-store.com/account",
  "portal_credentials": {
    "email": "john@example.com",
    "password": "Xk9mP2vQ7Lw4"
  },
  "setup_email_sent": false
}
With "send_setup_email": true no password is generated for you: password is null, setup_email_sent is true, and the client receives a branded email with a link (valid 3 days) to choose their own password. Use this when your integration should never see or store client passwords.
portal_credentials is the client's login for your storefront account page, where every service they own opens with one click. It is returned once, at creation — store it or send it to the client. Pass portal_password to set your own.
Response:
{
  "success": true,
  "clients": [
    {
      "id": 1,
      "name": "John Doe",
      "email": "john@example.com",
      "created_at": "2025-01-15"
    }
  ]
}
Response:
{
  "success": true,
  "client": {
    "id": 123,
    "name": "John Doe",
    "email": "john@example.com",
    "phone": "+1234567890",
    "company": "Acme Inc",
    "source": "api",
    "active_services": 2,
    "total_services": 3,
    "total_revenue": 45.00,
    "created_at": "2025-01-15"
  }
}
Client must have no services. Delete all services first.
Response:
{
  "success": true,
  "message": "Client deleted successfully"
}

Orders & services5 endpoints

Note: Different products require different parameters. Select a product below to see the request format.
AI Chatbot & Receptionist
Activate a 24/7 AI receptionist for a client's website. plan is required: chat (AI Chat, $15/mo: answers questions, captures leads, inbox, webhooks) booking (Chat + Booking, $39/mo: adds appointment booking with calendar busy-time check, reminders and follow-ups) or phone (Chat + Booking + Phone, $99/mo: also answers the business phone 24/7 with call transfers and spam screening, unlimited calls for normal business use; the client picks their number in the dashboard). Billed monthly. The client sets it up at /receptionist on your storefront; the response includes their install code and shareable chat link. A client can have more than one (one per business or website); each is its own service, billed at its plan price.
Client receives: Branded welcome email with a link to their dashboard and a 4-step setup guide. Pass skip_client_email: true to opt out.
Request:
POST /wp-json/resellportal/v1/orders
Content-Type: application/json

{
  "client_id": 123,
  "product_key": "ai_receptionist",
  "plan": "booking"
}
Parameters:
plan - Required. chat, booking or phone.
skip_client_email - Optional true/false. Skip the built-in welcome email. Default false.
Response:
{
  "success": true,
  "service_id": 2601,
  "message": "AI Receptionist activated successfully",
  "client_access_url": "https://yourstore.com/receptionist",
  "ai_receptionist": {
    "plan": "booking",
    "plan_label": "Chat + Booking",
    "dashboard_url": "https://yourstore.com/receptionist",
    "chat_url": "https://yourstore.com/receptionist/chat/air_k3v9...",
    "embed_code": "<script src=\"https://yourstore.com/receptionist/widget.js\" data-key=\"air_k3v9...\" async></script>"
  },
  "billing_cycle": "monthly",
  "amount_charged": 39,
  "new_balance": 103.50
}
Query Parameters: ?status=active&product_type=vpn&client_id=123&limit=50&offset=0 (all optional)
Response:
{
  "success": true,
  "orders": [
    {
      "id": 1,
      "client_id": 123,
      "client_name": "John Doe",
      "client_email": "john@example.com",
      "product_type": "vpn",
      "status": "active",
      "deployment_status": "deployed",
      "cost": 6.00,
      "actual_cost": 2.00,
      "billing_cycle": "monthly",
      "next_billing_date": "2026-04-15",
      "purchase_origin": "reseller_panel",
      "created_at": "2026-03-15 10:30:00"
    }
  ],
  "total": 45,
  "limit": 50,
  "offset": 0
}
Query Parameters: ?status=active (optional)
Response:
{
  "success": true,
  "services": [
    {
      "id": 1,
      "client_id": 123,
      "service_type": "ai_tools",
      "status": "active",
      "monthly_cost": 49.00,
      "next_billing_date": "2025-02-15"
    }
  ]
}
Response:
{
  "success": true,
  "service": {
    "id": 456,
    "client_id": 123,
    "client_name": "John Doe",
    "client_email": "john@example.com",
    "service_type": "web_hosting",
    "status": "active",
    "billing_cycle": "monthly",
    "monthly_cost": 15.00,
    "next_billing_date": "2025-02-15",
    "deployment_status": "deployed",
    "service_data": {
      "username": "johndoe",
      "domain": "example.com"
    },
    "created_at": "2025-01-15"
  }
}
Two ways to cancel. With no options the service ends now. With at_period_end the renewal is stopped and the service keeps working until the end of the period already paid, the same as the Cancel button on a service in your panel.
Optional parameter:
at_period_end (boolean) — true stops the renewal only. Send it in the JSON body or as ?at_period_end=true. Only for services that renew; a service with no upcoming renewal returns 400 not_recurring.
Stop the renewal, keep the paid period:
DELETE /services/456?at_period_end=true

{
  "success": true,
  "service_id": 456,
  "cancel_at_period_end": true,
  "access_ends": "2026-01-05 14:30:00",
  "message": "Renewal stopped. The service stays active until the end of the paid period."
}
End the service now:
DELETE /services/456

{
  "success": true,
  "message": "Service deleted successfully"
}
Nothing is charged at the next renewal date; the service ends then. GET /services/{id} returns "cancel_at_period_end": true for a service waiting to end. Sending the request again is safe.

VPN7 endpoints

Response:
{ "success": true, "servers": [ { "id": 8, "city": "Chicago", "country_code": "US", "country": "United States", "online": true, "protocols": ["wireguard", "openvpn", "openvpn-tcp"] }, ... ] }
openvpn-tcp means the server also takes OpenVPN over TCP 443, for networks that block UDP (hotels, offices, some countries).
Query Parameters:
?service_id=597 *required - An active VPN service (from GET /services)
?server_id=135 *required - From GET /vpn/servers
?protocol=wireguard - wireguard (default) or openvpn
?port_id=1 - OpenVPN only, from GET /vpn/ports: 1 = UDP 1194 (default, fastest), 2 = TCP 443 (works on networks that block UDP)
Response:
{
  "success": true,
  "protocol": "wireguard",
  "filename": "vpn-server-8.conf",
  "config": "[Interface]\nPrivateKey = ...\nAddress = 10.66.1.2/32\nDNS = 1.1.1.1, 9.9.9.9\nMTU = 1420\n\n[Peer]\nPublicKey = ...\nAllowedIPs = 0.0.0.0/0, ::/0\nEndpoint = 45.61.55.40:51820\nPersistentKeepalive = 25\n"
}
Embed the returned config in your own app (Capacitor/Android VpnService). Same VPN account works across all servers — just change server_id. WireGuard recommended for streaming.
Response:
{ "success": true, "ports": [ { "id": 1, "protocol": "udp", "number": 1194, "default": 1 }, { "id": 2, "protocol": "tcp", "number": 443, "default": 0 } ] }
Use UDP 1194 normally. If it can't connect (UDP blocked), fetch the config again with port_id=2 to get the TCP 443 file.
Query Parameters:
?username=jsmith *required - 3 to 32 characters: letters, numbers, _ and -
Response:
{ "success": true, "username": "jsmith", "available": true }
Check a name before you place a VPN order with it.
Body (JSON):
service_id *required - The VPN service ID
test_mode optional - true to try it without changing anything
Response:
{
  "success": true,
  "service_id": 3162,
  "status": "suspended",
  "note": "The login is blocked on every server within 5 minutes. Unsuspend it with POST /vpn/unsuspend."
}
Works for VPN logins on our own network. The login and its devices are kept. Signed-in apps show the account as suspended and cannot connect. No renewal is charged while it is suspended.
Body (JSON):
service_id *required - The VPN service ID
test_mode optional - true to see what would be charged without changing anything
Response:
{
  "success": true,
  "service_id": 3162,
  "status": "active",
  "charged": 1.75,
  "next_billing_date": "2026-12-13 09:44:34"
}
Works for VPN logins on our own network. If a renewal came due while it was suspended, that renewal is charged to your wallet now (charged) and the next billing date moves forward; otherwise charged is 0. Returns 402 when the wallet cannot cover the renewal.
Body (JSON):
service_id *required - The VPN service ID
password optional - 8 to 64 characters (letters, numbers, !@#$%^&*()_+-=.,?). Leave it out to get a random one
test_mode optional
Response:
{
  "success": true,
  "service_id": 3162,
  "username": "jsmith",
  "password": "ry00fv8leCvg",
  "note": "Devices signed in with the old password are signed out within 5 minutes and need the new one."
}
Works for VPN logins on our own network. No email is sent: pass the new password on to your client yourself.

eSIM2 endpoints

Query Parameters: ?location=US (optional - plans that work in that country)   ?ip=US (optional - plans whose internet comes out in that country)
Response:
{
  "success": true,
  "total_packages": 60,
  "packages": [
    {
      "package_code": "PHAJHEAYP",
      "name": "United States 1GB 7Days",
      "price": 1.80,
      "description": "United States 1GB 7Days",
      "location": "US",
      "ip_country": "US",
      "data_volume": "1 GB",
      "duration": "7 day",
      "speed": "3G/4G/5G"
    }
  ]
}
Use the package_code when creating E-SIM orders. Over 3,000+ packages available worldwide. location lists every country the plan works in, separated by commas. ip_country is where the plan's internet comes out (its IP address); two or more codes separated by / mean it can be any of them.
Live data usage for an eSIM service. Works for service_type esim only. Byte fields are exact; total, used and remaining are human-readable. Results are cached for 5 minutes. Returns 409 if the eSIM has not been issued yet and 503 if the carrier has no usage data yet.
Response:
{
  "success": true,
  "service_id": 456,
  "usage": {
    "status": "Active",
    "esim_status": "IN_USE",
    "iccid": "8944...",
    "total_bytes": 5368709120,
    "used_bytes": 1234567890,
    "remaining_bytes": 4134141230,
    "total": "5.00 GB",
    "used": "1.15 GB",
    "remaining": "3.85 GB",
    "pct_used": 23,
    "expires_at": "2026-11-12T00:00:00+00:00"
  },
  "cached_for_seconds": 300
}
Lists the top-ups available for one eSIM. A top-up adds data and days to the eSIM the customer already has; nothing new is installed. price is the list price, your_price is what your wallet pays after your volume discount. An empty list means this plan cannot be topped up (day plans, plans that are not extendable, or an eSIM that has expired).
Response:
{
  "success": true,
  "service_id": 456,
  "supports_topup": true,
  "currency": "USD",
  "packages": [
    {
      "package_code": "TOPUP_CKH301",
      "name": "Brazil 1GB 7Days",
      "data_bytes": 1073741824,
      "data": "1 GB",
      "days_added": 7,
      "price": 2.56,
      "your_price": 2.30
    }
  ]
}
Applies a top-up and takes its price from your wallet. Send an Idempotency-Key header (any unique text per purchase): repeating a request with the same key never tops up or charges twice, it returns the first result with "repeat": true. Status 202 means the top-up was sent but is still being confirmed; it is finished or refunded automatically, so repeat the same request with the same key after a minute. Test mode (X-RP-Test-Mode: true) returns the price without topping up.
Request and response:
POST /services/456/topup
Idempotency-Key: order-8841-topup-1

{ "package_code": "TOPUP_CKH301" }

{
  "success": true,
  "service_id": 456,
  "topup_id": 12,
  "repeat": false,
  "message": "Top-up applied",
  "package": { "code": "TOPUP_CKH301", "name": "Brazil 1GB 7Days", "data_bytes": 1073741824, "days_added": 7 },
  "amount_charged": 2.30,
  "new_balance": 97.70,
  "esim": { "total_bytes": 4294967296, "total": "4 GB", "expires_at": "2026-12-31T10:00:00+00:00" }
}

Social media (SMM)1 endpoint

Query Parameters:
?search=instagram - Filter by service name or description
?category=followers - Filter by category
?platform=instagram - Filter by platform (instagram, youtube, tiktok, facebook, twitter, etc.)
?type=followers - Filter by service type (followers, likes, views, comments, shares, etc.)
?country=US - Filter by country code (ISO 3166-1 alpha-2)
?quality=real - Filter by quality tier (real, premium, high_quality, standard, bot, economy)
?refill=true - Filter by refill availability
?min_rate=0.50 - Minimum rate per 1000
?max_rate=5.00 - Maximum rate per 1000
?sort_by=rate - Sort by: rate, name, service_id, min_quantity, max_quantity, platform, category
?sort_order=asc - Sort direction: asc, desc
?page=1 - Page number (requires per_page)
?per_page=50 - Results per page (max 500, omit for all results)
Response:
{
  "success": true,
  "total_services": 150,
  "page": 1,
  "per_page": 50,
  "total_pages": 3,
  "services": [
    {
      "service_id": "1234",
      "name": "Instagram Followers [Real] [USA]",
      "category": "Instagram - Followers",
      "rate_per_1000": 2.50,
      "min_quantity": 100,
      "max_quantity": 50000,
      "platform": "instagram",
      "service_type": "followers",
      "quality_tier": "real",
      "description": "Real Instagram followers from active accounts.",
      "type": "Default",
      "country_code": "US",
      "country_name": "United States",
      "geo_type": "country_targeted",
      "refill": true,
      "cancel": true,
      "drop_rate": "Almost No",
      "start_time": "2 mins",
      "delivery_speed": "12 mins",
      "reliability": "Good",
      "status": "active",
      "tags": ["instagram", "followers", "real", "us", "refill"]
    }
  ]
}
Use the service_id when creating SMM orders. Rate is cost per 1000 units. Pagination fields only appear when per_page is specified.