Orbiill

API Reference

The Orbiill Public API provides programmatic access to plans, billing configs, and subscriptions. All endpoints require API key authentication.

Authentication

Authenticate by including your API key in the x-api-key header. Create and manage API keys in Settings → API Keys in the dashboard.

header
x-api-key: orb_sk_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6

Security: Never expose your API key in client-side code. Always call the API from your backend server.

Base URL

https://api.orbiill.com/api/v1/

Rate Limits

Rate limits are applied per API key. When exceeded, the API returns 429 Too Many Requests with a Retry-After header.

EndpointRate Limit
GET /plans, GET /plans/:id100 requests / minute
GET /billing-configs, GET /billing-configs/:id100 requests / minute
GET /subscriptions100 requests / minute
POST /subscriptions/:id/cancel30 requests / minute
POST /subscriptions/:id/usage60 requests / minute

Endpoints

Plans

GET/api/v1/plansList all plans for your organization
GET/api/v1/plans/:idGet plan details
List planscurl
curl https://api.orbiill.com/api/v1/plans \
  -H "x-api-key: orb_sk_a1b2c3d4..."
Response 200json
{
  "data": [
    {
      "id": "bp_abc123",
      "name": "Pro",
      "description": "For growing teams",
      "priceAmount": 29,
      "currency": "USD",
      "intervalUnit": "month",
      "intervalCount": 1,
      "features": ["Unlimited projects", "Priority support"],
      "isFree": false,
      "trialDays": 14
    }
  ]
}

Billing Configs

GET/api/v1/billing-configsList billing configs
GET/api/v1/billing-configs/:idGet billing config details
List billing configscurl
curl https://api.orbiill.com/api/v1/billing-configs \
  -H "x-api-key: orb_sk_a1b2c3d4..."

Subscriptions

GET/api/v1/subscriptionsList subscriptions
POST/api/v1/subscriptions/:id/cancelCancel a subscription
POST/api/v1/subscriptions/:id/usageReport usage for a subscription item

Query parameters for GET /subscriptions

ParameterTypeDescription
cursor optionalstringPagination cursor from meta.nextCursor
limit optionalintegerResults per page (default: 25, max: 100)
List subscriptionscurl
curl https://api.orbiill.com/api/v1/subscriptions?limit=10 \
  -H "x-api-key: orb_sk_a1b2c3d4..."
Response 200json
{
  "data": [
    {
      "id": "sub_1N0abc...",
      "customerEmail": "[email protected]",
      "customerName": "John Doe",
      "status": "active",
      "currentPeriodEnd": "2026-05-08T00:00:00Z",
      "cancelAtPeriodEnd": false,
      "created": "2026-04-08T10:00:00Z",
      "items": [
        {
          "priceId": "price_1N0...",
          "productName": "Pro",
          "unitAmountCents": 2900,
          "currency": "usd",
          "interval": "month",
          "intervalCount": 1,
          "quantity": 1
        }
      ]
    }
  ],
  "meta": {
    "hasMore": false,
    "nextCursor": null
  }
}

Body parameters for POST /subscriptions/:id/cancel

ParameterTypeDescription
immediate optionalbooleanCancel immediately (default: false, cancel at period end)

Body parameters for POST /subscriptions/:id/usage

ParameterTypeDescription
quantity requirednumberUsage quantity to report
Report usagecurl
curl -X POST https://api.orbiill.com/api/v1/subscriptions/si_abc123/usage \
  -H "x-api-key: orb_sk_a1b2c3d4..." \
  -H "Content-Type: application/json" \
  -d '{ "quantity": 150 }'
Response 200json
{
  "data": { "success": true }
}

Error Codes

All errors follow a consistent format:

Error responsejson
{
  "message": "Billing config must be validated before deployment",
  "statusCode": 400,
  "error": "Bad Request"
}
CodeNameDescription
400Bad RequestRequest body failed validation. Check the message field.
401UnauthorizedMissing or invalid API key.
403ForbiddenYou do not have permission. You may be accessing a resource outside your organization.
404Not FoundThe requested resource does not exist.
429Too Many RequestsRate limit exceeded. Check the Retry-After header.
500Internal Server ErrorUnexpected error. If it persists, contact support.

We use cookies to improve your experience. By continuing, you agree to our Cookie Policy.