Documentation

API

To prevent DDOS attacks and increase security, we decided to use RapidAPI for accessing data from our servers.

Error codes:

0: Successful
1: Username is invalid!
2: Password is incorrect!
3: Something went wrong while inserting data to database!
4: Username is already registered!
5: Password must be between 8 and 50 characters long and can't contain spaces!
6: Email is invalid!
7: Zip is invalid!
8: Address is invalid!
9: City is invalid!
10: Last Name is invalid!
11: Name is invalid!
12: Problem with sending money to user!
13: Username doesn't exist!
14: Problem with withdrawing money.
15: You don't have enough money!
16: Something went wrong with withdrawing money. Try again later...
17: Email is already subscribed!
18: Username is already on your friend list.
19: Friend can't be added!
20: Message can't be sent!
21: Username can't be removed from your friend list.
22: Developer doesn't exist.
23: Username don't have any income transactions.
24: Username don't have any outcome transactions.
25: Amount must be a number.
26: Minimum withdraw amount is $5.
27: Maximum withdraw amount is $500.
28: Method doesn't exist.
29: Minimum send amount is $1.
30: Maximum send amount is $500.
31: Note is to long!
32: You can't send money to yourself!
33: This user is not your friend!
34: This discord account isn't connected into any Rabbit Pay account!
35: Email is already registered!
401: Public or private token isn't correct.
403: You didn't provide all required values in POST.
404: Can't connect into API.
505: Something went wrong while connecting to database!
999: You don't have permission to use this endpoint.

Permissions:

000 -> Don't have any permissions
_00 -> Read permission
    1 -> get username
    2 -> get balance
    3 -> get name, get surname
    4 -> get transactions
    5 ->
    6 ->
    7 ->
    8 ->
    9 -> can read everything
0_0 -> Write permission
    1 -> 
    2 ->
    3 ->
    4 ->
    5 ->
    6 ->
    7 ->
    8 ->
    9 -> can change everything
00_ -> Execute permission
    1 -> Can create subscriptions
    2 -> Can send money

Subcribe to our Newsletter

Stay updated with the latest news about Rabbit Pay