/sherweb:api-patternsfrom sherweb
Authenticates and calls the Sherweb Partner API using OAuth 2.0 client credentials, token caching, subscription-key headers, page-based pagination, and localization. Covers endpoints, MCP tools, rate limits, and error codes.
Ships in sherweb. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The Sherweb Partner API provides programmatic access to distributor-level operations including customer management, subscription lifecycle, and billing data. The API uses OAuth 2.0 client credentials flow for authentication, requires a subscription key header for API management, and exposes two main scopes: distributor and service-provider. This skill covers authentication, endpoints, MCP tool usage, error handling, and best practices.
pax8-api-patterns. Copying a paging pattern between the two
silently changes which records you get.shared-skills-wyre-gateway-troubleshooting.conduit__my_access for whether it is
granted to you. Two capabilities really are absent: billing-period
enumeration and invoice retrieval. See the billing tool table below.Sherweb uses the OAuth 2.0 client credentials grant for machine-to-machine authentication. No user interaction is required.
Token Endpoint:
POST https://api.sherweb.com/auth/oidc/connect/token
Request Parameters:
| Parameter | Value |
|---|---|
grant_type | client_credentials |
client_id | Your Sherweb Client ID |
client_secret | Your Sherweb Client Secret |
scope | distributor or service-provider (see Scopes section) |
Token Response:
{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6...",
"expires_in": 3600,
"token_type": "Bearer"
}
Key details:
Authorization headerIn addition to the Bearer token, every API request must include the API management subscription key:
| Header | Value | Description |
|---|---|---|
Ocp-Apim-Subscription-Key | Your subscription key | API management gateway key |
This key is obtained from the Sherweb Partner Portal (cumulus.sherweb.com) under Security > APIs.
Every API request must include:
| Header | Value |
|---|---|
Authorization | Bearer <access_token> |
Ocp-Apim-Subscription-Key | <subscription_key> |
Content-Type | application/json |
Accept | application/json |
export SHERWEB_CLIENT_ID="your-client-id"
export SHERWEB_CLIENT_SECRET="your-client-secret"
export SHERWEB_SUBSCRIPTION_KEY="your-subscription-key"
export SHERWEB_MCP_URL="https://your-sherweb-mcp-url"
Sherweb supports two API scopes that control the level of access:
| Scope | Description | Base URL |
|---|---|---|
distributor | Full distributor-level access to all service providers and their customers | https://api.sherweb.com/distributor/v1 |
service-provider | Scoped to a single service provider (MSP) and their customers | https://api.sherweb.com/service-provider/v1 |
service-provider scope - This gives access to your own customers and subscriptions| Scope | Base URL |
|---|---|
| Distributor | https://api.sherweb.com/distributor/v1 |
| Service Provider | https://api.sherweb.com/service-provider/v1 |
| Endpoint | Method | Description |
|---|---|---|
/customers | GET | List customers |
/customers/{customerId} | GET | Get customer details |
/customers/{customerId}/accounts-receivable | GET | Customer AR data |
/customers/{customerId}/subscriptions | GET | List a customer's subscriptions |
/customers/{customerId}/subscriptions/{subscriptionId} | GET | Get subscription details |
/customers/{customerId}/subscriptions/{subscriptionId}/change-quantity | POST | Change subscription quantity |
/catalog/products | GET | List catalog products |
/payable-charges | GET | Get payable charges for a date range (distributor scope) |
/payable-charges/{chargeId} | GET | Get one charge's breakdown (distributor scope) |
There is no billing-period endpoint and no invoice endpoint behind this connector. See the billing tool table below.
| Tool | Description | Parameters |
|---|---|---|
sherweb_customers_list | List and search customers | search, page, pageSize |
sherweb_customers_get | Get a single customer | customerId (required) |
sherweb_customers_accounts_receivable | Get customer AR data | customerId (required) |
Every subscription tool is scoped by customer — customerId is required on
all three, because the underlying routes are nested under /customers/{id}.
| Tool | Description | Parameters |
|---|---|---|
sherweb_subscriptions_list | List a customer's subscriptions | customerId (required), page, pageSize |
sherweb_subscriptions_get | Get a single subscription | customerId (required), subscriptionId (required) |
sherweb_subscriptions_change_quantity | Set seat count (absolute, not a delta) | customerId (required), subscriptionId (required), quantity (required) |
| Tool | Description | Parameters |
|---|---|---|
sherweb_catalog_list_products | Browse the Sherweb product catalog | search, page, pageSize |
| Tool | Description | Parameters |
|---|---|---|
sherweb_billing_payable_charges | Get charges for an explicit date range | billingCycleType (OneTime|Monthly|Yearly), periodFrom, periodTo, page, pageSize |
sherweb_billing_charge_details | Get charge breakdown | chargeId (required) |
Billing capabilities this connector does not have. There is no tool that
enumerates billing periods, and no tool that lists or fetches invoices.
sherweb_billing_payable_charges takes the window you give it as
periodFrom/periodTo; you cannot ask which periods exist. For invoices, the
closest surfaces are sherweb_billing_charge_details (line items of one
charge) and sherweb_customers_accounts_receivable (a customer's outstanding
balance) — neither is an invoice, and neither should be presented as one. See
sherweb-billing for the full statement.
| Tool | Description | Parameters |
|---|---|---|
sherweb_status | Show credentials status and available domains | — |
That is the only discovery tool available through Conduit. Conduit
refuses sherweb_navigate for every caller; use conduit__my_access
to see which tools you can call. The server's lazy-loading meta-tools
(sherweb_list_categories, sherweb_list_category_tools,
sherweb_router, sherweb_execute_tool) are registered only when it
runs with LAZY_LOADING=true, which Conduit does not use.
All list endpoints use 1-based page pagination:
| Parameter | Description | Default | Max |
|---|---|---|---|
page | Page number (1-based) | 1 | - |
pageSize | Results per page | 25 | 100 |
Pagination Response Metadata:
| Field | Description |
|---|---|
page | Current page number |
pageSize | Number of results per page |
totalCount | Total number of records |
totalPages | Total number of pages |
To iterate: call with page=1 and pageSize=100, read totalPages, then
increment page until page >= totalPages, collecting each response.
The Sherweb API supports localized responses via the Accept-Language header:
| Header | Values | Description |
|---|---|---|
Accept-Language | en, fr | Response language (English or French) |
This is particularly useful since Sherweb is a Canadian company with bilingual support. Product names, descriptions, and error messages can be returned in either language.
Caching strategy:
current_time + expires_in)| Metric | Limit |
|---|---|
| Requests per second | Varies by endpoint |
| Requests per minute | Varies by subscription tier |
When rate limited, the API returns a 429 Too Many Requests response with:
| Header | Description |
|---|---|
Retry-After | Seconds to wait before retrying |
Rate limit strategy:
Retry-After header when presentpageSize=100 to minimize pagination requests| Code | Description | Action |
|---|---|---|
| 200 | Success | Process response |
| 400 | Bad Request | Check request parameters |
| 401 | Unauthorized | Token expired or invalid; re-authenticate |
| 403 | Forbidden | Insufficient scope or permissions |
| 404 | Not Found | Resource does not exist |
| 409 | Conflict | Conflicting operation (e.g., pending change) |
| 429 | Too Many Requests | Rate limited; wait and retry |
| 500 | Internal Server Error | Sherweb server issue; retry with backoff |
| 503 | Service Unavailable | Temporary outage; retry later |
Authentication Error (401):
{
"error": "invalid_token",
"error_description": "The access token has expired"
}
Validation Error (400):
{
"errors": [
{
"field": "quantity",
"message": "Quantity must be greater than 0"
}
]
}
Rate Limit (429):
{
"statusCode": 429,
"message": "Rate limit exceeded. Retry after 30 seconds."
}
Ocp-Apim-Subscription-Key header is setGET /customers?pageSize=1 to verify authentication worksAccept-Language: en (or fr) for consistent response languageWhat SKILL.md sets; muted values are Claude Code's defaults
When authenticating to or calling the Sherweb API directly or through MCP tools. Use when: sherweb api, sherweb authentication, sherweb oauth, sherweb token, sherweb endpoint, sherweb rate limit, sherweb mcp, sherweb request, sherweb scope, sherweb subscription key, sherweb error, or sherweb connection.
Three short reads, in order
4 skills in this plugin
/billingSherweb BillingSherweb distributor billing: explicit billing date ranges, Setup/Recurring/Usage charge types, billing cycles (OneTime, Monthly, Yearly), the pricing breakdown (listPrice, netPrice, prorated, subTotal), promotional and performance deductions, fees, taxes, and MSP margin calculation. Also covers what this plugin cannot retrieve: there is no billing-period enumeration and no invoice surface.
/customersSherweb CustomersSherweb customer records: the distributor > service provider > customer hierarchy and its API scoping consequences, customer lifecycle stages, core address and contact fields, accounts-receivable data with aging buckets, and cross-referencing customers with PSA, subscription, and billing data.
/subscriptionsSherweb SubscriptionsSherweb subscription management: the subscription lifecycle and its states, seat/license quantity rules (absolute values, minimums, proration, commitment restrictions), the quantity-change workflow, subscription and change-response fields, and state-transition errors.
npx claudepluginhub wyre-ai/msp-claude-plugins --plugin sherwebOther plugins' skills for the same job