Types
ConsumeCreditInput
A single direct credit consumption from a wallet
input
ConsumeCreditInputFields
amount
Float!
required
The amount of credits to consume
createdAt
DateTime
Optional timestamp the consumption is attributed to
currencyId
String!
required
The credit currency (custom currency refId) to consume from
customerId
String!
required
The customer to consume credits from (refId)
dimensions
JSON
Optional dimensions describing the consumption
environmentId
UUID
The unique identifier for the environment
idempotencyKey
String!
required
A unique key used to deduplicate the consumption (required)
resourceId
String
Optional resource (refId) the consumption is attributed to