The trusted server creates one-time or recurring grants, adjusts available funds, changes future grants and expiry, or revokes a grant. Frozen funds and historical usage remain intact.
SDK 0.0.1Updated
Make the request
The trusted server creates one-time or recurring grants, adjusts available funds, changes future grants and expiry, or revokes a grant. Frozen funds and historical usage remain intact.
Credential
Server API key only. Call from your trusted backend.
Permission
credits:manage
Set the base URL and App ID from SDK setup. These examples use placeholders and do not execute requests. Never put a server key in browser code.
The nextResetAt value for this operation. Its accepted type and constraints are listed above and below.
grantIduuid | uuid | uuidOptional
The grantId value for this operation. Its accepted type and constraints are listed above and below.
revisioninteger | integer | integerOptional
Revision returned by profile reads; updates use it to detect concurrent changes.
Response fields
Successful responses include requestId and scope. Use the actual business status or accepted field to determine the result. Optional fields are omitted when unavailable.
HTTP 200 · application/json
requestIduuidRequired
Server-generated HTTP request UUID. Include it when reporting a failed request.
scopeobjectRequired
The App and environment of this response. Headers only verify scope; they cannot switch key scope.
Show child fields
projectIdstringRequired
App ID bound to the credential.
minLength: 1
environmentenumRequired
Separate data scope: sandbox or live.
Show allowed values
"sandbox""live"
grantobjectRequired
The grant value for this operation. Its accepted type and constraints are listed above and below.
Show child fields
iduuidRequired
The id value for this operation. Its accepted type and constraints are listed above and below.
entitlementVersionIduuidRequired
The entitlementVersionId value for this operation. Its accepted type and constraints are listed above and below.
entityIduuid | nullRequired
Entity ID within the current customer scope, for configured entity and license features.
namestringRequired
Display name of the customer or object; not an identity key.
amountobject | nullRequired
Credit or ledger amount, using the field’s decimal-string or integer type.
resetobject | nullRequired
The reset value for this operation. Its accepted type and constraints are listed above and below.
Show child fields
intervalenumRequired
The interval value for this operation. Its accepted type and constraints are listed above and below.