Skip to main content
POST
/
api
/
admin
/
account
/
{id}
/
credits
Adjust an account's credit balance (super admin only)
curl --request POST \
  --url https://pria.praxislxp.com/api/admin/account/{id}/credits \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "credits": 500,
  "note": "INV-2026-0412 annual renewal"
}
'
{
  "success": true,
  "data": {
    "account": {
      "id": "<string>",
      "credits": 123
    },
    "transfer": {
      "_id": "<string>",
      "institution": "<string>",
      "account": "<string>",
      "user": "<string>",
      "credits": 123,
      "status": "active",
      "created": "2023-11-07T05:31:56Z",
      "transferMode": 1,
      "note": "<string>"
    }
  },
  "message": "Account credits adjusted!"
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Path Parameters

id
string
required

Account ID

Body

application/json
credits
integer
required

Non-zero integer. Positive adds, negative subtracts.

Example:

500

note
string
required

Mandatory reason for the adjustment (e.g. invoice reference, compensation reason). Max 2000 chars.

Example:

"INV-2026-0412 annual renewal"

Response

Credits adjusted and transfer recorded

success
boolean
Example:

true

data
object
message
string
Example:

"Account credits adjusted!"