Skip to content

Transfer points and funds#

Two actions move balance to another account: transfer sends points, and fund adds funds for another member. Both accept POST only and deduct from your own balance.

transfer#

POST https://dash.9hits.com/api/transfer?key=YOUR_API_KEY

Body:

Field Description
receiver The recipient's username or email
message An optional message to include
amount The number of points deducted from your account
{
    "receiver": "daniel",
    "message": "Hi, a small gift for you ;)",
    "amount": 100
}
{
    "status": "ok",
    "messages": ["You have sent 90 points to daniel"],
    "data": {
        "sender": "john",
        "receiver": "daniel",
        "amount": 100,
        "net": 90,
        "fee": 10
    }
}

fee is the fee, and net is the number of points the recipient actually gets. The fee comes out of the amount you send: your account is debited amount, and the recipient gets amount minus fee. The rate can differ between accounts; see Transfer points to another account.

fund#

POST https://dash.9hits.com/api/fund?key=YOUR_API_KEY

Only accounts that have been granted reseller permission can call this action. Regular accounts get status: "error".

Body:

Field Description
receiver The recipient's username or email
message An optional message to include
amount The amount the customer receives, not the amount you actually pay
{
    "receiver": "daniel",
    "message": "Thank you",
    "amount": 100
}
{
    "status": "ok",
    "messages": ["You have sent $100 to daniel"],
    "data": {
        "sender": "john",
        "receiver": "daniel",
        "amount": 100,
        "commission": 15
    }
}

The customer's Funds balance is credited with the full amount. commission is the reseller commission you keep, so your account is charged amount - commission.