Wallets, tokens & networks
Configure Wallet Refs Distribution For Grant
Sets per-wallet distribution ratios for one token grant, blocked during payroll cutoff.
POSThttps://api.toku.com/hris/configure-wallet-refs-distribution-for-grant
Not available to API keys.
curl --request POST \
--url 'https://api.toku.com/hris/configure-wallet-refs-distribution-for-grant' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"grantID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"roleInOrgID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"walletRefsconfig": [
{
"walletReferenceID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"distRatio": "string"
}
]
}'200 response
{
"success": true,
"message": "string"
}Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is an access token from a Toku sign-in. See Authentication in the API reference.
Body
application/json
grantIDstring<uuid>requiredroleInOrgIDstring<uuid>requiredwalletRefsconfigobject[]requiredNOTE(ck): a .refine() rule is not mirrored here; TGA still enforces it NOTE(ck): a .transform() rule is not mirrored here; TGA still enforces it NOTE(ck): z.instanceof(Decimal) has no contract form; TGA still checks it
Allowed: at most 1000 items
Show child attributes
walletReferenceIDstring<uuid>requireddistRatiostring | any | numberrequiredResponse
200Successful response
successbooleanrequiredmessagestring400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
429Response 429
Was this page helpful? Suggest edits