roPay Documentation

Introduction


Use our APIs.

clientKey = a1b2c3clientkey

Register Resturant


Resturants can be registered with the help of the following api. The resturant details are sent in a form of a JSON object.

https://api.anomoz.com/api/roPay/post/insert_resturant_278126.php?clientId={{clientKey}}
JSON Input:
{
    name: {{resturant name}},
    email: {{resturant email}},
    password: {{resturant password}},
    resturantId: {{unique resturant ID}},
}

Register Users


Users can be registered with the help of the following api. The user details are sent in a form of a JSON object.

https://api.anomoz.com/api/roPay/post/insert_user_3572883.php?clientId={{clientKey}}
JSON Input:
{
    name: {{customer name}},
    email: {{customer email}},
    password: {{customer password}},
    custId: {{unique customer ID}},
}

Add credits to User Wallet


Anyone will be able to add balance to the user wallet. All that is needed is the userId, resturantID, and the amount. Api should be used over GET request with all the parameters in the URL.

https://api.anomoz.com/api/roPay/post/insert_user_credits_3691233.php?clientId={{clientKey}}
JSON Input:
{
    userId: {{customer Id}},
    resturantId: {{resturant Id}},
    addCredits: {{number of credits to be added}},
}

Get Wallet of All Users


Admin will be able to get details of all the wallets under his clientKey. Api should be used over GET request with all the parameters in the URL.

https://api.anomoz.com/api/roPay/post/get_all_wallets_2370812.php?clientId={{clientKey}}

Get Wallet of a single user


Admin will be able to get details of all a single wallet under his clientKey. All that is needed is the userId. Api should be used over GET request with all the parameters in the URL.

https://api.anomoz.com/api/roPay/post/get_single_user_wallet_36721385.php?clientId={{clientKey}}&userId={{userId}}