SMAO API Documentation
Distributor API v1Billing

List assignable plans

GET
/plans

Returns all SMAO plans available for assignment to customer organizations. Trial and enterprise plans are excluded. Each plan includes its slug, commitment (monthly/yearly), baseFee in the smallest currency unit, and a usage array showing included units and overage cost per service.

Use the slug and commitment values when creating or updating an organization's plan.

Authorization

DistributorApiKey
AuthorizationBearer <token>

Long-lived distributor API key scoped to a channel partner on the shared smao instance.

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/plans"
{  "status": "success",  "count": 0,  "plans": [    {      "id": "6967b1c7138bed3e7f6bf7e6",      "slug": "string",      "name": "string",      "commitment": "none",      "tier": 0,      "currency": "string",      "baseFee": 0,      "usage": [        {          "service": "CALL",          "included": 0,          "costPerUnit": 0        }      ]    }  ]}