Skip to content

Grant Coins

Endpoint used to insert coins into a student’s wallet in Toolzz LMS.

Terminal window
curl --request POST \
--url 'https://shop.api.toolzz.com.br/coin/insert-coins' \
--header 'Authorization: Bearer <token>' \
--header 'x-auth-version: v2' \
--header 'Content-Type: application/json' \
--data '{
"user_id": "<string>",
"email": "<string>",
"amount": 100
}'
{
"success": true,
"message": "Coins inserted successfully"
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
x-auth-versionStringMust be sent with value v2Yes
ParameterTypeDescriptionRequired
user_idstringID of the user to whom coins will be assigned. Must be a UUID or unique identifier in the system.No
emailstringEmail of the user to whom coins will be assigned. Used as an alternative to user_id. Must be a valid email address.No
amountintegerNumber of coins to be added to the user’s balance. Must be a positive integer. If absent, null, or invalid, the system defaults to 100 coins.No

To access this endpoint, it is necessary to send the x-auth-version: v2 header and a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.