curl --request POST \
--url https://{subdomain}.nudj.cx/api/v2/admin/users/{id}/points-transaction \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '
{
"amount": 500000.5,
"direction": "credit",
"externalTransactionReference": "<string>",
"communityId": "<string>"
}
'{
"success": true,
"message": "<string>",
"transaction": {
"id": "<string>",
"organisationId": "<string>",
"userId": "<string>",
"accountingDirection": "credit",
"amount": 123,
"status": "pending",
"createdAt": "<string>",
"externalTransactionReference": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>",
"communityId": "<string>"
}
}Create a points transaction (credit or debit) for a user’s account
curl --request POST \
--url https://{subdomain}.nudj.cx/api/v2/admin/users/{id}/points-transaction \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '
{
"amount": 500000.5,
"direction": "credit",
"externalTransactionReference": "<string>",
"communityId": "<string>"
}
'{
"success": true,
"message": "<string>",
"transaction": {
"id": "<string>",
"organisationId": "<string>",
"userId": "<string>",
"accountingDirection": "credit",
"amount": 123,
"status": "pending",
"createdAt": "<string>",
"externalTransactionReference": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>",
"communityId": "<string>"
}
}ID of the user for the points transaction, this can be the Nudj user ID or the external user ID
Input for managing points transactions (credit or debit)
Number of points for the transaction
1 <= x <= 1000000Direction of the transaction: Credit to add points, Debit to deduct points
credit, debit Unique reference provided by the admin to track this transaction
1 - 200ID of the community for the transaction. Required if organization has multiple communities
Was this page helpful?