GET /v1/organization/credits
GET
/v1/organization/creditsAuthorization
AuthorizationBearer token · headerrequiredResponses
200The balance and every lot.
balanceinteger<int64>requiredHundred-millionths of a credit, the unit the deployment's billing
layer names; on Subako Cloud a credit is one SC. Zero or below refuses
every creation and every platform call.
lotsCreditLotBody[]requiredEvery lot ever granted, oldest first; `remaining` and `expires_at` tell
which still count.
Show propertiesHide properties
Array of
CreditLotBodyamountinteger<int64>requiredHundred-millionths of a credit, the unit the deployment's billing
layer names; on Subako Cloud a credit is one SC.
expires_atstring<date-time> | nullrequiredgranted_atstring<date-time>requiredidstring<uuid>requirednotestring | nullrequiredWhy the lot was granted, in words; null where the grant recorded none.
remaininginteger<int64>requiredWhat is left of `amount`; negative where the lot absorbed a shortfall.
sourceCreditSourceBodyrequiredAllowed:
grantpurchase401Missing, malformed, or invalid bearer token.
errorErrorDetailrequiredShow propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired403Caller lacks org.credits.read.
errorErrorDetailrequiredShow propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired