PATH
[POST] /account/authenticate
The rider auth was accessed thus: https://ogwugo.net/api/v2/rider/market/account/authenticate
PARAMETERS:
Param | type | required | comment |
---|---|---|---|
username | str | 1 | the username could be email address too |
password | str | 1 | validated to 6-15 char |
RESPONSE:
{ "data": { "id": 54, "rider_id": 54, "username": "Stephen", "wallet_balance": 451108, "email": "[email protected]", "last_name": null, "first_name": null, "device_uuid": null, "user_token": "ef7ce6ee53b0c65c4fa271a500e7f13a", "user_token_expiry": "2018-11-13 10:12:04", "rider_details": { "id": 2, "web_buyer_id": 54, "rider_access_code": "4rer", "referee_name_phone": null, "current_longitude": null, "current_latitude": null, "coverage_areas": null, "user_area": "Newheaven", "collect_on_delivery": 1, "online": 0, "phone": "090-6794-8537", "bvn": "Mr ugwu ", "bank": "Access Bank", "account_number": "3085739595", "account_name": "owoh stephen monday", "residential_address": null, "permanent_address": null, "access_food_domain": 0, "access_gas_domain": 0, "access_local_domain": 0, "access_food_packages": 0, "status": 0, "store_id": 15, "shipper_id": null, "created_at": "2018-09-18 14:48:31", "updated_at": "2018-09-26 10:39:27", "store_name": "Ntachi Osa", "shipper_name": null }, "documentation": "the rider is also a buyer, rider_id = buyer_id in view user(buyer detail), you will see rider wallet currency, etc." }, "status": "success", "message": "correct username and password", "error": { "detail": "username and password verified", "code": "202" } }