ReferenceSDKClient
Billing
SDK reference for billing — Usage, credits, and billing hold information.
Usage, credits, and billing hold information.
getUsage
GET
Usage:
const result = await swirls.client.billing.getUsage()Output:
| Field | Type | Description |
|---|---|---|
features | object[] |
getBillingHoldCount
GET
Usage:
const result = await swirls.client.billing.getBillingHoldCount()Output:
| Field | Type | Description |
|---|---|---|
count | number |
getExecutionCreditsUsage
POST
Usage:
const result = await swirls.client.billing.getExecutionCreditsUsage({})Input:
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | No | |
range | "24h" | "7d" | "30d" | "90d" | "last_cycle" | "1bc" | "3bc" | No |
Output:
| Field | Type | Description |
|---|---|---|
range | string | |
byProject | object[] |