SWIRLS_
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:

FieldTypeDescription
featuresobject[]

getBillingHoldCount

GET

Usage:

const result = await swirls.client.billing.getBillingHoldCount()

Output:

FieldTypeDescription
countnumber

getExecutionCreditsUsage

POST

Usage:

const result = await swirls.client.billing.getExecutionCreditsUsage({})

Input:

ParameterTypeRequiredDescription
projectIdstringNo
range"24h" | "7d" | "30d" | "90d" | "last_cycle" | "1bc" | "3bc"No

Output:

FieldTypeDescription
rangestring
byProjectobject[]

On this page