API

BillingInfo

Billing information: prepaid balance and price grid, for your account or an organization.

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /billing/info/{sharing_id} load OK
GET /billing/info load OK

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

billing_info, err := client.BillingInfo(nil).Load(map[string]any{"sharing_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(billing_info)

Lua

Construct client as shown in the Lua setup, then call the operations:

local billing_info, err = client:BillingInfo():load({ sharing_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$billing_info = $client->BillingInfo()->load(["sharing_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

billing_info = client.BillingInfo().load({"sharing_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

billing_info = client.BillingInfo.load({ "sharing_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const billing_info = await client.BillingInfo().load({ sharing_id: "example" })

Fields

Field Type Required Description
annual_balance number Yes Annual Balance
grid string Yes Grid
outstanding_amount number Yes Outstanding Amount
prepaid object Yes Prepaid
prepaid_monthly_invoice boolean No Prepaid Monthly Invoice

load

GET /billing/info/{sharing_id}

Operation ID: getBillingInfoSharingId.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
sharing_id path string Yes

Responses

200: OK

application/json

Property Type Required Description
annual_balance number Yes
grid string Yes
outstanding_amount number Yes
prepaid object No
prepaid.amount number Yes
prepaid.created_at string (date-time) Yes
prepaid.currency string Yes
prepaid.updated_at string (date-time) Yes
prepaid.warning_threshold number Yes
prepaid_monthly_invoice boolean No
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

GET /billing/info

Operation ID: getBillingInfo.

Authentication: bearer token (bearerAuth).

Responses

200: OK

application/json

Property Type Required Description
annual_balance number Yes
grid string Yes
outstanding_amount number Yes
prepaid object No
prepaid.amount number Yes
prepaid.created_at string (date-time) Yes
prepaid.currency string Yes
prepaid.updated_at string (date-time) Yes
prepaid.warning_threshold number Yes
prepaid_monthly_invoice boolean No
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes