Allocate Credits to a Sub-Account🔗︎
HTTP Verb | Path |
---|---|
POST | https://api.us.textkernel.com/tx/accounts/api/(accountId)/allocate |
Adjust credits on a sub-account, or set a sub-account to unrestricted credit usage.
Path Parameters🔗︎
Parameter | Data Type | Description |
---|---|---|
accountid | string | The AccountId to allocate credits to. |
Request Body🔗︎
CreditsToAdd 🔗︎ decimal
CreditsToAdd🔗︎
How many SaaS Credits to add to this account. To remove credits, set this to a negative number. If this is not set, Unrestricted
must be true
Unrestricted 🔗︎ bool
Unrestricted🔗︎
If the account should have unrestricted access to your SaaS Credits. If this is not set, CreditsToAdd
must have a non-zero value.
Response Body🔗︎
CreditsRemaining 🔗︎ decimal
CreditsRemaining🔗︎
Amount of credits remaining on the account after the adjustment. If unrestricted, this will equal the total number of credits left on your SaaS account.