Pria UI now available in Dark mode !
cURL
curl --request POST \ --url http://localhost:3000/api/user/userInstitutionCredit/{userInstitutionId} \ --header 'Content-Type: application/json' \ --header 'x-access-token: <api-key>' \ --data ' { "credits": 1000 } '
{ "success": true, "message": "Transfer successfully executed and recorded!" }
Transfers credits from the parent account to the institution (requires admin privileges)
JWT token passed in x-access-token header
The user institution ID to credit
Number of credits to transfer (default 1000)
1000
Credits transferred successfully
true
"Transfer successfully executed and recorded!"
Was this page helpful?