Skip to main content
POST
/
api
/
user
/
userInstitutionCredit
/
{id}
Credit user institution with tokens
curl --request POST \
  --url https://pria.praxislxp.com/api/user/userInstitutionCredit/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "credits": 1000
}
'
{
  "success": true,
  "message": "Transfer successfuly executed and recorded!"
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Path Parameters

id
string
required

The user institution ID to credit (must be a valid ObjectId)

Body

application/json
credits
integer

Number of credits to transfer (defaults to 1000 if omitted)

Example:

1000

Response

Credits transferred successfully

success
boolean
Example:

true

message
string
Example:

"Transfer successfuly executed and recorded!"