CDNShark Documentation

Reseller API

← Back to Documentation

Reseller API Reference

Complete endpoint list for the Reseller API. Base URL: /api/reseller. All requests require Authorization: Bearer YOUR_RESELLER_TOKEN.

Catalog

MethodEndpointAbilityDescription
GET/api/reseller/planscatalog:readPlans with wholesale pricing. Filter with ?type=
GET/api/reseller/plans/{id}catalog:readOne plan, with its spec
GET/api/reseller/productscatalog:readWhich product lines accept new orders

Customers

MethodEndpointAbilityDescription
GET/api/reseller/customerscustomers:readList. Supports ?search=
POST/api/reseller/customerscustomers:writeCreate a customer
GET/api/reseller/customers/{id}customers:readRead one
PUT/api/reseller/customers/{id}customers:writeUpdate
PUT/api/reseller/customers/{id}/passwordcustomers:writeSet a new password
POST/api/reseller/customers/{id}/suspendcustomers:writeBlock portal login
POST/api/reseller/customers/{id}/unsuspendcustomers:writeRestore login

CDN services

MethodEndpointAbilityDescription
GET/api/reseller/servicesservices:readList. Filter by customer_id, status
POST/api/reseller/servicesservices:writeOrder a CDN service. Idempotency-Key required
GET/api/reseller/services/{id}services:readRead one
POST/api/reseller/services/{id}/suspendservices:writeSuspend delivery
POST/api/reseller/services/{id}/unsuspendservices:writeResume delivery

Cloud VPS

MethodEndpointAbilityDescription
GET/api/reseller/vpsservices:readList instances
POST/api/reseller/vpsservices:writeOrder a VPS. Idempotency-Key required
GET/api/reseller/vps/{id}services:readRead one
POST/api/reseller/vps/{id}/suspendservices:writePower off
POST/api/reseller/vps/{id}/unsuspendservices:writePower on

Hosting

MethodEndpointAbilityDescription
GET/api/reseller/hostingservices:readList accounts
POST/api/reseller/hostingservices:writeOrder hosting. Idempotency-Key required
GET/api/reseller/hosting/{id}services:readRead one
POST/api/reseller/hosting/{id}/suspendservices:writeDisable the account
POST/api/reseller/hosting/{id}/unsuspendservices:writeRe-enable the account

Email

MethodEndpointAbilityDescription
GET/api/reseller/mailservices:readList mailbox subscriptions
POST/api/reseller/mailservices:writeBuy seats. Idempotency-Key required

Billing

MethodEndpointAbilityDescription
GET/api/reseller/creditbilling:readCurrent balance and discount
GET/api/reseller/credit/transactionsbilling:readYour credit ledger
GET/api/reseller/ordersbilling:readOrders across your customers
GET/api/reseller/orders/{id}billing:readRead one order
GET/api/reseller/invoicesbilling:readInvoices across your customers
GET/api/reseller/invoices/{id}billing:readRead one invoice

Usage

MethodEndpointAbilityDescription
GET/api/reseller/usageusage:readAll customers. ?from= &to=
GET/api/reseller/customers/{id}/usageusage:readOne customer, by host and by day

Webhooks

MethodEndpointAbilityDescription
GET/api/reseller/webhookswebhooks:readList subscriptions
GET/api/reseller/webhooks/eventswebhooks:readSubscribable event catalogue
POST/api/reseller/webhookswebhooks:writeCreate. Returns the secret once
PUT/api/reseller/webhooks/{id}webhooks:writeUpdate
DELETE/api/reseller/webhooks/{id}webhooks:writeDelete
POST/api/reseller/webhooks/{id}/rotate-secretwebhooks:writeIssue a new signing secret
GET/api/reseller/webhooks/{id}/deliverieswebhooks:readDelivery history

Delegated login

MethodEndpointAbilityDescription
POST/api/reseller/customers/{id}/ssossoSingle-use 5-minute login URL

Conventions

  • List endpoints are paginated. Use ?per_page= (max 200) and ?page=; totals are returned under meta.
  • All monetary values are USD decimals. All timestamps are ISO 8601.
  • Ability names in the tables above are shown without their reseller: prefix for brevity — the real ability is reseller:services:write and so on.