Superadmin APIs/Credits & Billing
Assign/Deduct Credits
POST
/superadmin/assigncredits/:idBearer token required
SUPERADMINContent-Type:
application/jsonPath Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Required | Admin user ID |
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
credits | string | Required | Numeric amount |
activity | string | Required | ASSIGNDEDUCT |
Request Example
JSON
{
"credits": "500",
"activity": "ASSIGN"
}Code Examples
curl -X POST 'https://<your-domain>:3001/superadmin/assigncredits/:id' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"credits": "500",
"activity": "ASSIGN"
}'