Skip to content

Reads whether over-quota consumption may draw on the caller's OWN balance for this metric.

GET
/api/v1/provision/consumer/me/credits/{metric}/spending
curl --request GET \
--url https://example.com/api/v1/provision/consumer/me/credits/example/spending
metric
required
string

The balance-carrying metric.

sessionId
string format: uuid

The caller’s own session id.

OK

The current state of a balance’s consumer spending switch.

object
entitlementId
string format: uuid
metric
string
allowed

true when over-quota consumption may draw on this balance.

boolean

Unauthorized

object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string

Forbidden

object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string

Not Found

object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string