Dev Resources

Developer API for Digital Wallet

You’ll find all the UPay wallet API here...


Developer API

API Guide

API Responses

Language

cURL

Example Request

Customer Login
curl --location --request POST "https://usr.upay.ma/v1/api/customer/login"
    --header "secret_key: $2y$10$zwy2wsGyguW1rxEvVTwFu.ptkKQCI.DOrB3gpGWDxymBGdwOoF9j2"
    --header "auth_token: $2y$10$DN7l4uwTbm1GEXbHYlvwsOcTrYdq6futX3cRkuhpDEPesuhIsCqhe"

Example Response

200 - OK
    
    {
        "message": "Login Success",
        "data": {
            "auth_token": "$2y$10$9W8lY2xg0CvxWDJFptjGk.XcbQtxQ.-ZjZzwCLQqv2tnrWH1elejK",
            "redirect_url": "https://www.exampleredirecturi.com/"
        }
    }
    

Example Request

User Detail
curl --location --request POST "https://usr.upay.ma/v1/api/customer/login"
    --header "secret_key: $2y$10$zwy2wsGyguW1rxEvVTwFu.ptkKQCI.DOrB3gpGWDxymBGdwOoF9j2"
    --header "auth_token: $2y$10$DN7l4uwTbm1GEXbHYlvwsOcTrYdq6futX3cRkuhpDEPesuhIsCqhe"

Example Response

200 - OK
    
    {
        "message": "User details are",
        "data": {
            "customer_name": "Gold M",
            "customer_email": "gold@gmail.com",
            "customer_phone_number": "8124443152",
            "customer_currency": "USD",
            "customer_currency_symbol": "$",
            "customer_wallet": 450.19,
            "customer_coins": 0,
        }
    }
    
TODO :: get real values
TODO :: get real values
TODO :: get real values
TODO :: get real values
TODO :: get real values
TODO :: get real values