For the complete documentation index, see llms.txt. This page is also available as Markdown.

Send Credits

POST https://yourwebsite.com/api/credits/send

Request Body

Name
Type
Description

sender_username*

string

target_username*

string

amount*

decimal

{
    "current_credits": "8.25 USD",
    "current_raw_credits": 8.25,
    "target_current_credits": "2.25 USD",
    "target_current_raw_credits": 2.25,
    "currency": "USD"
}
{
    "status": false,
    "error": "USER_NOT_FOUND",
    "message": "User not found!"
}
{
    "status": false,
    "error": "TARGET_USER_NOT_FOUND",
    "message": "Target user not found!"
}
{
    "status": false,
    "error": "INVALID_TARGET",
    "message": "You can't send credits to yourself!"
}

Last updated