{"id":19090171,"url":"https://github.com/jefedcreator/commute","last_synced_at":"2026-04-13T06:48:44.097Z","repository":{"id":235279076,"uuid":"781172634","full_name":"jefedcreator/commute","owner":"jefedcreator","description":"REST API for ride hailing SAAS within university campuses. Built with express, nodejs, typescript and paystack","archived":false,"fork":false,"pushed_at":"2024-05-13T23:02:05.000Z","size":294,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-02T22:18:44.995Z","etag":null,"topics":["docker","docker-compose","express","joi-validation","mongodb","paystack","typedi","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jefedcreator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-02T22:01:02.000Z","updated_at":"2024-05-13T23:02:42.000Z","dependencies_parsed_at":"2024-11-09T03:02:52.463Z","dependency_job_id":"d304648c-e0ac-4f35-9b31-0848eef19c4c","html_url":"https://github.com/jefedcreator/commute","commit_stats":null,"previous_names":["jefedcreator/commute"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefedcreator%2Fcommute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefedcreator%2Fcommute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefedcreator%2Fcommute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefedcreator%2Fcommute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jefedcreator","download_url":"https://codeload.github.com/jefedcreator/commute/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240136997,"owners_count":19753650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","express","joi-validation","mongodb","paystack","typedi","typescript"],"created_at":"2024-11-09T03:02:44.378Z","updated_at":"2026-04-13T06:48:39.071Z","avatar_url":"https://github.com/jefedcreator.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# commute\n\nREST API for ride hailing SAAS within university campuses. Built with express, nodejs, typescript and paystack\n\n# Table of Contents\n\n[Intoduction](#Introduction)\n\n[Local development](#local-development)\n\n[Docker](#docker)\n\n[Testing](#testing)\n\n[API](#api-walkthrough)\n\n## Introduction\n\nAs a student in a university, mobility is a necessity. From my experience, however, students have to queue under really long lines at certain stops, under the blistering sun of the day. This is the major inspiration for Commute, a Node.js Express server built with TypeScript and Joi for validations. This application caters to three categories of users: admin, users, and riders. Riders and users can sign up and sign in on the app. Users can create a ride for a fee of ₦50 per minute of ride duration, charged through if riders approve. Riders can approve, complete, and cancel a ride.\n\n## Local development\n\n```bash\ngit clone https://github.com/jefedcreator/commute.git\ncd commute/\n```\n\n#### Nodejs v20.11.1\n\nFollow instructions to install the latest version of nodejs for your platform in the [nodejs docs](https://nodejs.org/en/download)\n\n#### Dependencies\n\nOnce you have nodejs setup and running, install dependencies by navigating to the `/commute` directory and running:\n\n```bash\nyarn install\n```\n\n##### Key Dependencies\n\n- [Express](https://expressjs.com/) Express is a\n  Fast, unopinionated, minimalist web framework for Node.js\n\n- [Typescript](https://www.typescriptlang.org/) TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.\n\n- [Mongoose](https://mongoosejs.com/) elegant mongodb object modeling for node.js\n\n- [Joi](https://joi.dev/) The most powerful schema description language and data validator for JavaScript.\n\n### **Initialize development env using:**\n\n```bash\ntouch .env\necho -e \"MONGODB_URI=\\\"\\\"\\nMONGODB_NAME=\\\"\\\"\\nUSER_JWT=\\\"\\\"\\nADMIN_JWT=\\\"\\\"\" \u003e\u003e .env\n```\n\n### **Run the development server:**\n\n```bash\nyarn dev\n```\n\n### **Verify on the Browser**\u003cbr\u003e\n\nNavigate to project homepage [http://0.0.0.0:3000/](http://0.0.0.0:3000/) or [http://localhost:3000](http://localhost:3000)\n\n### Docker\n\nThis application is hosted as docker image. Docker is an open platform for developing, shipping, testing and running applications. [Docker](https://docs.docker.com/get-docker/)\n\n#### Pull image\n\n```bash\ndocker pull jefedcreator/commute:v1\n```\n\n#### Run container\n\n```bash\ndocker compose up\n```\n\n#### Test container\n\n```bash\ndocker compose run --rm app yarn test\n```\n\n## Testing\n\n```bash\nyarn test\n```\n\n## API walkthrough\n\n# Project: commute\n\nREST API for ride hailing SAAS within university campuses\n\n# 📁 Collection: admin\n\n## End-point: rides\n\nFetch rides\n\n### Method: GET\n\n\u003e ```\n\u003e {{local}}/v1/admin/rides?paymentType=cash\n\u003e ```\n\n### Headers\n\n| Content-Type | Value          |\n| ------------ | -------------- |\n| x-auth-token | {{adminToken}} |\n\n### Query Params\n\n| Param       | value |\n| ----------- | ----- |\n| paymentType | cash  |\n\n### Response: 200\n\n```json\n{\n  \"statusCode\": 200,\n  \"message\": \"fetch rides\",\n  \"data\": {\n    \"rides\": [\n      {\n        \"pickupPoint\": {\n          \"pickupName\": \"\",\n          \"pickupLat\": \"\",\n          \"pickupLng\": \"\"\n        },\n        \"destinationPoint\": {\n          \"destinationName\": \"\",\n          \"destinationLat\": \"\",\n          \"destinationLng\": \"\"\n        },\n        \"_id\": \"6641653dbc176bd5af0c657d\",\n        \"campusName\": \"university of lagos\",\n        \"paymentStatus\": \"completed\",\n        \"paymentType\": \"cash\",\n        \"status\": \"success\",\n        \"distance\": 0,\n        \"cost\": 10000,\n        \"duration\": 2,\n        \"userId\": \"663f297e2b717e890cf59bdb\",\n        \"riderId\": \"663f3b607f1090619a44dada\",\n        \"createdAt\": \"2024-05-13T00:56:29.084Z\",\n        \"updatedAt\": \"2024-05-13T00:58:55.879Z\",\n        \"__v\": 0\n      },\n      {\n        \"pickupPoint\": {\n          \"pickupName\": \"\",\n          \"pickupLat\": \"\",\n          \"pickupLng\": \"\"\n        },\n        \"destinationPoint\": {\n          \"destinationName\": \"\",\n          \"destinationLat\": \"\",\n          \"destinationLng\": \"\"\n        },\n        \"_id\": \"664161f6032db13c752b1f8c\",\n        \"campusName\": \"university of lagos\",\n        \"paymentStatus\": \"completed\",\n        \"paymentType\": \"cash\",\n        \"status\": \"success\",\n        \"distance\": 0,\n        \"cost\": 60000,\n        \"duration\": 12,\n        \"userId\": \"663f297e2b717e890cf59bdb\",\n        \"riderId\": \"663f3b607f1090619a44dada\",\n        \"createdAt\": \"2024-05-13T00:42:30.599Z\",\n        \"updatedAt\": \"2024-05-13T00:54:51.337Z\",\n        \"__v\": 0\n      },\n      {\n        \"pickupPoint\": {\n          \"pickupName\": \"\",\n          \"pickupLat\": \"\",\n          \"pickupLng\": \"\"\n        },\n        \"destinationPoint\": {\n          \"destinationName\": \"\",\n          \"destinationLat\": \"\",\n          \"destinationLng\": \"\"\n        },\n        \"_id\": \"66415fa2c4eeb2c30abc039c\",\n        \"campusName\": \"university of lagos\",\n        \"paymentStatus\": \"completed\",\n        \"paymentType\": \"cash\",\n        \"status\": \"success\",\n        \"distance\": 0,\n        \"cost\": 20000,\n        \"duration\": 400,\n        \"userId\": \"663f297e2b717e890cf59bdb\",\n        \"riderId\": \"663f3b607f1090619a44dada\",\n        \"createdAt\": \"2024-05-13T00:32:34.129Z\",\n        \"updatedAt\": \"2024-05-13T00:37:07.709Z\",\n        \"__v\": 0\n      },\n      {\n        \"pickupPoint\": {\n          \"pickupName\": \"\",\n          \"pickupLat\": \"\",\n          \"pickupLng\": \"\"\n        },\n        \"destinationPoint\": {\n          \"destinationName\": \"\",\n          \"destinationLat\": \"\",\n          \"destinationLng\": \"\"\n        },\n        \"_id\": \"663fd847bdbdf7ed1ba210c9\",\n        \"campusName\": \"university of lagos\",\n        \"paymentStatus\": \"completed\",\n        \"paymentType\": \"cash\",\n        \"status\": \"success\",\n        \"distance\": 0,\n        \"cost\": 8325000,\n        \"duration\": 0,\n        \"userId\": \"663f297e2b717e890cf59bdb\",\n        \"riderId\": \"663f3b607f1090619a44dada\",\n        \"createdAt\": \"2024-05-11T20:42:47.020Z\",\n        \"updatedAt\": \"2024-05-13T00:29:36.019Z\",\n        \"__v\": 0\n      },\n      {\n        \"pickupPoint\": {\n          \"pickupName\": \"\",\n          \"pickupLat\": \"\",\n          \"pickupLng\": \"\"\n        },\n        \"destinationPoint\": {\n          \"destinationName\": \"\",\n          \"destinationLat\": \"\",\n          \"destinationLng\": \"\"\n        },\n        \"_id\": \"663f4ca77f1090619a44dafe\",\n        \"campusName\": \"university of lagos\",\n        \"paymentStatus\": \"pending\",\n        \"paymentType\": \"cash\",\n        \"status\": \"cancelled\",\n        \"distance\": 0,\n        \"cost\": 0,\n        \"duration\": 0,\n        \"userId\": \"663f297e2b717e890cf59bdb\",\n        \"riderId\": \"663f3b607f1090619a44dada\",\n        \"createdAt\": \"2024-05-11T10:47:03.695Z\",\n        \"updatedAt\": \"2024-05-11T20:39:24.896Z\",\n        \"__v\": 0\n      },\n      {\n        \"pickupPoint\": {\n          \"pickupName\": \"\",\n          \"pickupLat\": \"\",\n          \"pickupLng\": \"\"\n        },\n        \"destinationPoint\": {\n          \"destinationName\": \"\",\n          \"destinationLat\": \"\",\n          \"destinationLng\": \"\"\n        },\n        \"_id\": \"663f4afe7f1090619a44daf9\",\n        \"campusName\": \"university of lagos\",\n        \"paymentStatus\": \"pending\",\n        \"paymentType\": \"cash\",\n        \"status\": \"pending\",\n        \"distance\": 0,\n        \"cost\": 0,\n        \"duration\": 0,\n        \"userId\": \"663f297e2b717e890cf59bdb\",\n        \"riderId\": \"663f3b607f1090619a44dada\",\n        \"createdAt\": \"2024-05-11T10:39:58.335Z\",\n        \"updatedAt\": \"2024-05-11T10:39:58.335Z\",\n        \"__v\": 0\n      },\n      {\n        \"pickupPoint\": {\n          \"pickupName\": \"\",\n          \"pickupLat\": \"\",\n          \"pickupLng\": \"\"\n        },\n        \"destinationPoint\": {\n          \"destinationName\": \"\",\n          \"destinationLat\": \"\",\n          \"destinationLng\": \"\"\n        },\n        \"_id\": \"663f48757f1090619a44daf2\",\n        \"campusName\": \"university of lagos\",\n        \"paymentStatus\": \"pending\",\n        \"paymentType\": \"cash\",\n        \"status\": \"pending\",\n        \"distance\": 0,\n        \"cost\": 0,\n        \"duration\": 0,\n        \"userId\": \"663f3b607f1090619a44dada\",\n        \"riderId\": \"663f3b607f1090619a44dada\",\n        \"createdAt\": \"2024-05-11T10:29:09.127Z\",\n        \"updatedAt\": \"2024-05-11T10:29:09.127Z\",\n        \"__v\": 0\n      },\n      {\n        \"pickupPoint\": {\n          \"pickupName\": \"\",\n          \"pickupLat\": \"\",\n          \"pickupLng\": \"\"\n        },\n        \"destinationPoint\": {\n          \"destinationName\": \"\",\n          \"destinationLat\": \"\",\n          \"destinationLng\": \"\"\n        },\n        \"_id\": \"6626d0f209056ec89017eae9\",\n        \"campusName\": \"university of lagos\",\n        \"paymentStatus\": \"pending\",\n        \"paymentType\": \"cash\",\n        \"status\": \"completed\",\n        \"distance\": 0,\n        \"cost\": 0,\n        \"duration\": 0,\n        \"userId\": \"6626d0f009056ec89017ead6\",\n        \"riderId\": \"6626d0f109056ec89017eade\",\n        \"createdAt\": \"2024-04-22T21:04:50.218Z\",\n        \"updatedAt\": \"2024-04-22T21:04:51.602Z\",\n        \"__v\": 0\n      },\n      {\n        \"pickupPoint\": {\n          \"pickupName\": \"\",\n          \"pickupLat\": \"\",\n          \"pickupLng\": \"\"\n        },\n        \"destinationPoint\": {\n          \"destinationName\": \"\",\n          \"destinationLat\": \"\",\n          \"destinationLng\": \"\"\n        },\n        \"_id\": \"66237aef62a2d42ea465a016\",\n        \"campusName\": \"university of lagos\",\n        \"paymentStatus\": \"pending\",\n        \"paymentType\": \"cash\",\n        \"status\": \"completed\",\n        \"distance\": 0,\n        \"cost\": 0,\n        \"duration\": 0,\n        \"userId\": \"66237aed62a2d42ea465a003\",\n        \"riderId\": \"66237aee62a2d42ea465a00b\",\n        \"createdAt\": \"2024-04-20T08:21:03.450Z\",\n        \"updatedAt\": \"2024-04-20T08:21:05.178Z\",\n        \"__v\": 0\n      },\n      {\n        \"pickupPoint\": {\n          \"pickupName\": \"\",\n          \"pickupLat\": \"\",\n          \"pickupLng\": \"\"\n        },\n        \"destinationPoint\": {\n          \"destinationName\": \"\",\n          \"destinationLat\": \"\",\n          \"destinationLng\": \"\"\n        },\n        \"_id\": \"6622f4decfda5ed24d1ce67c\",\n        \"campusName\": \"university of lagos\",\n        \"paymentStatus\": \"pending\",\n        \"paymentType\": \"cash\",\n        \"status\": \"completed\",\n        \"distance\": 0,\n        \"cost\": 0,\n        \"duration\": 0,\n        \"userId\": \"6622f4dccfda5ed24d1ce669\",\n        \"riderId\": \"6622f4dccfda5ed24d1ce671\",\n        \"createdAt\": \"2024-04-19T22:49:02.808Z\",\n        \"updatedAt\": \"2024-04-19T22:49:05.770Z\",\n        \"__v\": 0\n      }\n    ],\n    \"totalDocuments\": 11,\n    \"pageable\": {\n      \"page\": 1,\n      \"size\": 10\n    }\n  }\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: users\n\nFetch users\n\n### Method: GET\n\n\u003e ```\n\u003e {{local}}/v1/admin/users?role=users\n\u003e ```\n\n### Headers\n\n| Content-Type | Value          |\n| ------------ | -------------- |\n| x-auth-token | {{adminToken}} |\n\n### Query Params\n\n| Param | value |\n| ----- | ----- |\n| role  | users |\n\n### Response: 200\n\n```json\n{\n  \"statusCode\": 200,\n  \"message\": \"fetch users\",\n  \"data\": {\n    \"users\": [],\n    \"totalDocuments\": 0,\n    \"pageable\": {\n      \"page\": 1,\n      \"size\": 10\n    }\n  }\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: suspend user\n\nSuspend and unsuspend user\n\n### Method: PATCH\n\n\u003e ```\n\u003e {{local}}/v1/admin/users/:id\n\u003e ```\n\n### Headers\n\n| Content-Type | Value          |\n| ------------ | -------------- |\n| x-auth-token | {{adminToken}} |\n\n### Response: 200\n\n```json\n{\n  \"statusCode\": 200,\n  \"message\": \"user suspended\",\n  \"data\": {\n    \"_id\": \"663f3b607f1090619a44dadc\",\n    \"email\": \"jondoe12@email.com\",\n    \"password\": \"$2b$10$eL0GunqOv982r80bCya50uyICKb47Dpj5KNI5SvQHjcg60F9GgA7a\",\n    \"role\": \"rider\",\n    \"userId\": \"663f3b607f1090619a44dada\",\n    \"isActive\": false,\n    \"createdAt\": \"2024-05-11T09:33:20.199Z\",\n    \"updatedAt\": \"2024-05-13T16:06:49.440Z\",\n    \"__v\": 0\n  }\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: delete admin\n\nDelete admin account\n\n### Method: DELETE\n\n\u003e ```\n\u003e {{local}}/v1/admin/\n\u003e ```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: delete user\n\nDelete user account\n\n### Method: DELETE\n\n\u003e ```\n\u003e {{local}}/v1/admin/users/:id\n\u003e ```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: sign in\n\nsignin admin\n\n### Method: POST\n\n\u003e ```\n\u003e {{local}}/v1/admin/signin\n\u003e ```\n\n### Body (**raw**)\n\n```json\n{\n  \"email\": \"jondoe20@email.com\",\n  \"password\": \"notarealpassword10\"\n}\n```\n\n### Response: 201\n\n```json\n{\n  \"statusCode\": 201,\n  \"message\": \"logged in\",\n  \"data\": {\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY2NDIyYjhmMDJhMTRkYjc0NjQ4MDk3NCIsImlhdCI6MTcxNTYxMjgxNywiZXhwIjoxNzE2MDQ0ODE3fQ.kNQnGaZSmIPAXumdmhR_Yo3jDiah83VOY4REdx8mjJo\",\n    \"_id\": \"66422b8f02a14db746480974\",\n    \"email\": \"jondoe20@email.com\",\n    \"firstname\": \"Alfa 5\",\n    \"lastname\": \"Smart bot\"\n  }\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n# 📁 Collection: auth\n\n## End-point: sign up\n\nsignup user\n\n### Method: POST\n\n\u003e ```\n\u003e {{local}}/v1/auth/signup\n\u003e ```\n\n### Body (**raw**)\n\n```json\n{\n  \"email\": \"jondoe11@email.com\",\n  \"firstname\": \"Alfa 5\",\n  \"lastname\": \"Smart bot\",\n  \"password\": \"notarealpassword10\",\n  \"phone\": \"081234\",\n  \"gender\": \"male\",\n  \"role\": \"user\"\n}\n```\n\n### Response: 409\n\n```json\n{\n  \"status\": \"ERROR\",\n  \"statusCode\": 409,\n  \"message\": \"email already exists\"\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: signin\n\nsignin user\n\n### Method: POST\n\n\u003e ```\n\u003e {{local}}/v1/auth/signin\n\u003e ```\n\n### Body (**raw**)\n\n```json\n{\n  \"password\": \"notarealpassword10\",\n  \"email\": \"jondoe11@email.com\"\n}\n```\n\n### Response: 201\n\n```json\n{\n  \"statusCode\": 201,\n  \"message\": \"logged in\",\n  \"data\": {\n    \"_id\": \"663f3b607f1090619a44dada\",\n    \"email\": \"jondoe12@email.com\",\n    \"firstname\": \"Alfa 5\",\n    \"lastname\": \"Smart bot\",\n    \"role\": \"rider\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY2M2YzYjYwN2YxMDkwNjE5YTQ0ZGFkYSIsInJvbGUiOiJyaWRlciIsImlhdCI6MTcxNTQyMDM0NCwiZXhwIjoxNzE2MDI1MTQ0fQ.EFw6sxX3957foz-5b7wczoycZU-kCaQ_KpLwnTA36r0\"\n  }\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: reset password\n\nreset user password\n\n### Method: POST\n\n\u003e ```\n\u003e undefined\n\u003e ```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n# 📁 Collection: ride\n\n## End-point: create ride\n\ncreate a ride request\n\n### Method: POST\n\n\u003e ```\n\u003e {{local}}/v1/rides\n\u003e ```\n\n### Headers\n\n| Content-Type | Value          |\n| ------------ | -------------- |\n| x-auth-token | {{riderToken}} |\n\n### Body (**raw**)\n\n```json\n{\n  \"campusName\": \"university of lagos\",\n  \"paymentType\": \"cash\",\n  \"userId\": \"{{userId}}\",\n  \"riderId\": \"{{riderId}}\"\n}\n```\n\n### Response: 201\n\n```json\n{\n  \"statusCode\": 201,\n  \"message\": \"ride created\",\n  \"data\": {\n    \"campusName\": \"university of lagos\",\n    \"paymentStatus\": \"pending\",\n    \"paymentType\": \"cash\",\n    \"status\": \"pending\",\n    \"distance\": 0,\n    \"cost\": 0,\n    \"duration\": 0,\n    \"userId\": \"663f3b607f1090619a44dada\",\n    \"riderId\": \"663f3b607f1090619a44dada\",\n    \"pickupPoint\": {\n      \"pickupName\": \"\",\n      \"pickupLat\": \"\",\n      \"pickupLng\": \"\"\n    },\n    \"destinationPoint\": {\n      \"destinationName\": \"\",\n      \"destinationLat\": \"\",\n      \"destinationLng\": \"\"\n    },\n    \"_id\": \"663f48757f1090619a44daf2\",\n    \"createdAt\": \"2024-05-11T10:29:09.127Z\",\n    \"updatedAt\": \"2024-05-11T10:29:09.127Z\",\n    \"__v\": 0\n  }\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: get ride\n\nget individual ride\n\n### Method: GET\n\n\u003e ```\n\u003e {{local}}/v1/rides/:id\n\u003e ```\n\n### Headers\n\n| Content-Type | Value         |\n| ------------ | ------------- |\n| x-auth-token | {{userToken}} |\n\n### Response: 200\n\n```json\n{\n  \"statusCode\": 200,\n  \"message\": \"ride fetched\",\n  \"data\": {\n    \"pickupPoint\": {\n      \"pickupName\": \"\",\n      \"pickupLat\": \"\",\n      \"pickupLng\": \"\"\n    },\n    \"destinationPoint\": {\n      \"destinationName\": \"\",\n      \"destinationLat\": \"\",\n      \"destinationLng\": \"\"\n    },\n    \"_id\": \"663f4ca77f1090619a44dafe\",\n    \"campusName\": \"university of lagos\",\n    \"paymentStatus\": \"pending\",\n    \"paymentType\": \"cash\",\n    \"status\": \"pending\",\n    \"distance\": 0,\n    \"cost\": 0,\n    \"duration\": 0,\n    \"userId\": {\n      \"_id\": \"663f297e2b717e890cf59bdb\",\n      \"email\": \"jondoe11@email.com\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\"\n    },\n    \"riderId\": {\n      \"_id\": \"663f3b607f1090619a44dada\",\n      \"email\": \"jondoe12@email.com\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"__t\": \"rider\"\n    },\n    \"createdAt\": \"2024-05-11T10:47:03.695Z\",\n    \"updatedAt\": \"2024-05-11T10:47:03.695Z\",\n    \"__v\": 0\n  }\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: cancel\n\ncancel requested ride\n\n### Method: PATCH\n\n\u003e ```\n\u003e {{local}}/v1/rides/:id/cancel\n\u003e ```\n\n### Headers\n\n| Content-Type | Value          |\n| ------------ | -------------- |\n| x-auth-token | {{riderToken}} |\n\n### Response: 200\n\n```json\n{\n  \"statusCode\": 200,\n  \"message\": \"ride canceled\",\n  \"data\": true\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: approve\n\napprove requested ride\n\n### Method: PATCH\n\n\u003e ```\n\u003e {{local}}/v1/rides/:id/approve\n\u003e ```\n\n### Headers\n\n| Content-Type | Value          |\n| ------------ | -------------- |\n| x-auth-token | {{riderToken}} |\n\n### Body (**raw**)\n\n```json\n{\n  \"userId\": \"{{userId}}\"\n}\n```\n\n### Response: 200\n\n```json\n{\n  \"statusCode\": 200,\n  \"message\": \"ride accepted\",\n  \"data\": true\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: complete\n\ncomplete requested ride\n\n### Method: PATCH\n\n\u003e ```\n\u003e {{local}}/v1/rides/:id/complete\n\u003e ```\n\n### Headers\n\n| Content-Type | Value          |\n| ------------ | -------------- |\n| x-auth-token | {{riderToken}} |\n\n### Response: 200\n\n```json\n{\n  \"statusCode\": 200,\n  \"message\": \"ride completed\",\n  \"data\": true\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n# 📁 Collection: rider\n\n## End-point: get rider\n\nget rider detail\n\n### Method: GET\n\n\u003e ```\n\u003e {{local}}/v1/rider\n\u003e ```\n\n### Headers\n\n| Content-Type | Value          |\n| ------------ | -------------- |\n| x-auth-token | {{riderToken}} |\n\n### Response: 200\n\n```json\n{\n  \"statusCode\": 200,\n  \"message\": \"booking fetched\",\n  \"data\": {\n    \"vehicle\": {\n      \"vehicleName\": \"Toyota\",\n      \"vehicleId\": \"12345\"\n    },\n    \"walletInfo\": {\n      \"currentAmount\": 0\n    },\n    \"_id\": \"663f3b607f1090619a44dada\",\n    \"rating\": 0,\n    \"email\": \"jondoe12@email.com\",\n    \"firstname\": \"Alfa 5\",\n    \"lastname\": \"Smart bot\",\n    \"gender\": \"male\",\n    \"phone\": \"081234\",\n    \"avatar\": \"\",\n    \"role\": \"rider\",\n    \"totalPayments\": 0,\n    \"totalRides\": 4,\n    \"__t\": \"rider\",\n    \"createdAt\": \"2024-05-11T09:33:20.048Z\",\n    \"updatedAt\": \"2024-05-13T00:37:07.831Z\",\n    \"__v\": 0\n  }\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: update rider\n\nupdate rider\n\n### Method: PATCH\n\n\u003e ```\n\u003e {{local}}/v1/rider\n\u003e ```\n\n### Headers\n\n| Content-Type | Value          |\n| ------------ | -------------- |\n| x-auth-token | {{riderToken}} |\n\n### Body (**raw**)\n\n```json\n{\n  \"firstname\": \"Jon\",\n  \"lastname\": \"Doe\",\n  \"phone\": \"081234\"\n}\n```\n\n### Response: 200\n\n```json\n{\n  \"statusCode\": 200,\n  \"message\": \"rider updated\",\n  \"data\": {\n    \"vehicle\": {\n      \"vehicleName\": \"Toyota\",\n      \"vehicleId\": \"12345\"\n    },\n    \"walletInfo\": {\n      \"currentAmount\": 0\n    },\n    \"_id\": \"663f3b607f1090619a44dada\",\n    \"rating\": 0,\n    \"email\": \"jondoe12@email.com\",\n    \"firstname\": \"Jon\",\n    \"lastname\": \"Doe\",\n    \"gender\": \"male\",\n    \"phone\": \"081234\",\n    \"avatar\": \"\",\n    \"role\": \"rider\",\n    \"totalPayments\": 0,\n    \"totalRides\": 4,\n    \"__t\": \"rider\",\n    \"createdAt\": \"2024-05-11T09:33:20.048Z\",\n    \"updatedAt\": \"2024-05-13T00:45:49.124Z\",\n    \"__v\": 0\n  }\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: get transactions\n\nget rider transactions\n\n### Method: GET\n\n\u003e ```\n\u003e {{local}}/v1/rider/transactions?status=success\u0026size=5\n\u003e ```\n\n### Headers\n\n| Content-Type | Value          |\n| ------------ | -------------- |\n| x-auth-token | {{riderToken}} |\n\n### Query Params\n\n| Param  | value   |\n| ------ | ------- |\n| status | success |\n| size   | 5       |\n\n### Response: 200\n\n```json\n{\n  \"statusCode\": 200,\n  \"message\": \"user fetched\",\n  \"data\": [\n    {\n      \"_id\": \"6641668829f982741abc01a4\",\n      \"type\": \"payment\",\n      \"amount\": 50,\n      \"status\": \"success\",\n      \"firstname\": \"Jon\",\n      \"lastname\": \"Doe\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"6641668729f982741abc01a3\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790174453,\n      \"rideId\": \"6641661729f982741abc0198\",\n      \"createdAt\": \"2024-05-13T01:02:00.195Z\",\n      \"updatedAt\": \"2024-05-13T01:02:16.236Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"664165bcbc176bd5af0c6589\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"success\",\n      \"firstname\": \"Jon\",\n      \"lastname\": \"Doe\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"664165bbbc176bd5af0c6588\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790171666,\n      \"rideId\": \"6641653dbc176bd5af0c657d\",\n      \"createdAt\": \"2024-05-13T00:58:36.506Z\",\n      \"updatedAt\": \"2024-05-13T00:58:55.879Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"664164c9975fec7cabbecc3c\",\n      \"type\": \"payment\",\n      \"amount\": 600,\n      \"status\": \"success\",\n      \"firstname\": \"Jon\",\n      \"lastname\": \"Doe\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"664164c8975fec7cabbecc3b\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790169059,\n      \"rideId\": \"664161f6032db13c752b1f8c\",\n      \"createdAt\": \"2024-05-13T00:54:33.413Z\",\n      \"updatedAt\": \"2024-05-13T00:54:51.337Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"6641609fc4eeb2c30abc03b1\",\n      \"type\": \"payment\",\n      \"amount\": 200,\n      \"status\": \"success\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"6641609ec4eeb2c30abc03b0\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790155438,\n      \"rideId\": \"66415fa2c4eeb2c30abc039c\",\n      \"createdAt\": \"2024-05-13T00:36:47.287Z\",\n      \"updatedAt\": \"2024-05-13T00:37:07.594Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"66415eb2eace3164f453721e\",\n      \"type\": \"payment\",\n      \"amount\": 83250,\n      \"status\": \"success\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"66415eb1eace3164f453721d\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790147705,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-13T00:28:34.014Z\",\n      \"updatedAt\": \"2024-05-13T00:29:35.851Z\",\n      \"__v\": 0\n    }\n  ]\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: get rides\n\nget rider rides\n\n### Method: GET\n\n\u003e ```\n\u003e {{local}}/v1/rider/rides?status=success\u0026size=5\n\u003e ```\n\n### Headers\n\n| Content-Type | Value          |\n| ------------ | -------------- |\n| x-auth-token | {{riderToken}} |\n\n### Query Params\n\n| Param  | value   |\n| ------ | ------- |\n| status | success |\n| size   | 5       |\n\n### Response: 200\n\n```json\n{\n  \"statusCode\": 200,\n  \"message\": \"rides fetched\",\n  \"data\": [\n    {\n      \"pickupPoint\": {\n        \"pickupName\": \"\",\n        \"pickupLat\": \"\",\n        \"pickupLng\": \"\"\n      },\n      \"destinationPoint\": {\n        \"destinationName\": \"\",\n        \"destinationLat\": \"\",\n        \"destinationLng\": \"\"\n      },\n      \"_id\": \"6641661729f982741abc0198\",\n      \"campusName\": \"university of lagos\",\n      \"paymentStatus\": \"completed\",\n      \"paymentType\": \"card\",\n      \"status\": \"success\",\n      \"distance\": 0,\n      \"cost\": 5000,\n      \"duration\": 1,\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"createdAt\": \"2024-05-13T01:00:07.666Z\",\n      \"updatedAt\": \"2024-05-13T01:02:16.236Z\",\n      \"__v\": 0\n    },\n    {\n      \"pickupPoint\": {\n        \"pickupName\": \"\",\n        \"pickupLat\": \"\",\n        \"pickupLng\": \"\"\n      },\n      \"destinationPoint\": {\n        \"destinationName\": \"\",\n        \"destinationLat\": \"\",\n        \"destinationLng\": \"\"\n      },\n      \"_id\": \"6641653dbc176bd5af0c657d\",\n      \"campusName\": \"university of lagos\",\n      \"paymentStatus\": \"completed\",\n      \"paymentType\": \"cash\",\n      \"status\": \"success\",\n      \"distance\": 0,\n      \"cost\": 10000,\n      \"duration\": 2,\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"createdAt\": \"2024-05-13T00:56:29.084Z\",\n      \"updatedAt\": \"2024-05-13T00:58:55.879Z\",\n      \"__v\": 0\n    },\n    {\n      \"pickupPoint\": {\n        \"pickupName\": \"\",\n        \"pickupLat\": \"\",\n        \"pickupLng\": \"\"\n      },\n      \"destinationPoint\": {\n        \"destinationName\": \"\",\n        \"destinationLat\": \"\",\n        \"destinationLng\": \"\"\n      },\n      \"_id\": \"664161f6032db13c752b1f8c\",\n      \"campusName\": \"university of lagos\",\n      \"paymentStatus\": \"completed\",\n      \"paymentType\": \"cash\",\n      \"status\": \"success\",\n      \"distance\": 0,\n      \"cost\": 60000,\n      \"duration\": 12,\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"createdAt\": \"2024-05-13T00:42:30.599Z\",\n      \"updatedAt\": \"2024-05-13T00:54:51.337Z\",\n      \"__v\": 0\n    },\n    {\n      \"pickupPoint\": {\n        \"pickupName\": \"\",\n        \"pickupLat\": \"\",\n        \"pickupLng\": \"\"\n      },\n      \"destinationPoint\": {\n        \"destinationName\": \"\",\n        \"destinationLat\": \"\",\n        \"destinationLng\": \"\"\n      },\n      \"_id\": \"66415fa2c4eeb2c30abc039c\",\n      \"campusName\": \"university of lagos\",\n      \"paymentStatus\": \"completed\",\n      \"paymentType\": \"cash\",\n      \"status\": \"success\",\n      \"distance\": 0,\n      \"cost\": 20000,\n      \"duration\": 400,\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"createdAt\": \"2024-05-13T00:32:34.129Z\",\n      \"updatedAt\": \"2024-05-13T00:37:07.709Z\",\n      \"__v\": 0\n    },\n    {\n      \"pickupPoint\": {\n        \"pickupName\": \"\",\n        \"pickupLat\": \"\",\n        \"pickupLng\": \"\"\n      },\n      \"destinationPoint\": {\n        \"destinationName\": \"\",\n        \"destinationLat\": \"\",\n        \"destinationLng\": \"\"\n      },\n      \"_id\": \"663fd847bdbdf7ed1ba210c9\",\n      \"campusName\": \"university of lagos\",\n      \"paymentStatus\": \"completed\",\n      \"paymentType\": \"cash\",\n      \"status\": \"success\",\n      \"distance\": 0,\n      \"cost\": 8325000,\n      \"duration\": 0,\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"createdAt\": \"2024-05-11T20:42:47.020Z\",\n      \"updatedAt\": \"2024-05-13T00:29:36.019Z\",\n      \"__v\": 0\n    }\n  ]\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n# 📁 Collection: user\n\n## End-point: get user\n\nget user\n\n### Method: GET\n\n\u003e ```\n\u003e {{local}}/v1/user\n\u003e ```\n\n### Headers\n\n| Content-Type | Value         |\n| ------------ | ------------- |\n| x-auth-token | {{userToken}} |\n\n### Response: 200\n\n```json\n{\n  \"statusCode\": 200,\n  \"message\": \"user fetched\",\n  \"data\": {\n    \"_id\": \"663f297e2b717e890cf59bdd\",\n    \"email\": \"jondoe11@email.com\",\n    \"password\": \"$2b$10$.EyBXMmiKeA9vcDoEgXkRefMpoKCfeRaxz1Q52GdS1UghOoSljaRO\",\n    \"role\": \"user\",\n    \"userId\": {\n      \"_id\": \"663f297e2b717e890cf59bdb\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\"\n    },\n    \"isActive\": true,\n    \"createdAt\": \"2024-05-11T08:17:02.314Z\",\n    \"updatedAt\": \"2024-05-11T08:17:02.314Z\",\n    \"__v\": 0\n  }\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: update user\n\nupdate user\n\n### Method: PATCH\n\n\u003e ```\n\u003e {{local}}/v1/user\n\u003e ```\n\n### Body (**raw**)\n\n```json\n{\n  \"firstname\": \"Jon\",\n  \"lastname\": \"Doe\",\n  \"phone\": \"081234\"\n}\n```\n\n### Response: 200\n\n```json\n{\n  \"statusCode\": 200,\n  \"message\": \"user updated\",\n  \"data\": {\n    \"_id\": \"663f297e2b717e890cf59bdd\",\n    \"email\": \"jondoe11@email.com\",\n    \"password\": \"$2b$10$.EyBXMmiKeA9vcDoEgXkRefMpoKCfeRaxz1Q52GdS1UghOoSljaRO\",\n    \"role\": \"user\",\n    \"userId\": {\n      \"_id\": \"663f297e2b717e890cf59bdb\",\n      \"firstname\": \"Jon\",\n      \"lastname\": \"Doe\"\n    },\n    \"isActive\": true,\n    \"createdAt\": \"2024-05-11T08:17:02.314Z\",\n    \"updatedAt\": \"2024-05-11T08:17:02.314Z\",\n    \"__v\": 0\n  }\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: delete user\n\ndelete user\n\n### Method: DELETE\n\n\u003e ```\n\u003e {{local}}/v1/user\n\u003e ```\n\n### Headers\n\n| Content-Type | Value         |\n| ------------ | ------------- |\n| x-auth-token | {{userToken}} |\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: get transactions\n\nget user transactions\n\n### Method: GET\n\n\u003e ```\n\u003e {{local}}/v1/user/transactions?status=success\u0026size=5\n\u003e ```\n\n### Headers\n\n| Content-Type | Value         |\n| ------------ | ------------- |\n| x-auth-token | {{userToken}} |\n\n### Query Params\n\n| Param  | value   |\n| ------ | ------- |\n| status | success |\n| size   | 5       |\n\n### Response: 200\n\n```json\n{\n  \"statusCode\": 200,\n  \"message\": \"user fetched\",\n  \"data\": [\n    {\n      \"_id\": \"6641668829f982741abc01a4\",\n      \"type\": \"payment\",\n      \"amount\": 50,\n      \"status\": \"success\",\n      \"firstname\": \"Jon\",\n      \"lastname\": \"Doe\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"6641668729f982741abc01a3\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790174453,\n      \"rideId\": \"6641661729f982741abc0198\",\n      \"createdAt\": \"2024-05-13T01:02:00.195Z\",\n      \"updatedAt\": \"2024-05-13T01:02:16.236Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"664165bcbc176bd5af0c6589\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"success\",\n      \"firstname\": \"Jon\",\n      \"lastname\": \"Doe\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"664165bbbc176bd5af0c6588\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790171666,\n      \"rideId\": \"6641653dbc176bd5af0c657d\",\n      \"createdAt\": \"2024-05-13T00:58:36.506Z\",\n      \"updatedAt\": \"2024-05-13T00:58:55.879Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"664164c9975fec7cabbecc3c\",\n      \"type\": \"payment\",\n      \"amount\": 600,\n      \"status\": \"success\",\n      \"firstname\": \"Jon\",\n      \"lastname\": \"Doe\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"664164c8975fec7cabbecc3b\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790169059,\n      \"rideId\": \"664161f6032db13c752b1f8c\",\n      \"createdAt\": \"2024-05-13T00:54:33.413Z\",\n      \"updatedAt\": \"2024-05-13T00:54:51.337Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"6641609fc4eeb2c30abc03b1\",\n      \"type\": \"payment\",\n      \"amount\": 200,\n      \"status\": \"success\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"6641609ec4eeb2c30abc03b0\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790155438,\n      \"rideId\": \"66415fa2c4eeb2c30abc039c\",\n      \"createdAt\": \"2024-05-13T00:36:47.287Z\",\n      \"updatedAt\": \"2024-05-13T00:37:07.594Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"66415eb2eace3164f453721e\",\n      \"type\": \"payment\",\n      \"amount\": 83250,\n      \"status\": \"success\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"66415eb1eace3164f453721d\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790147705,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-13T00:28:34.014Z\",\n      \"updatedAt\": \"2024-05-13T00:29:35.851Z\",\n      \"__v\": 0\n    }\n  ]\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: get rides\n\nfetch user rides\n\n### Method: GET\n\n\u003e ```\n\u003e {{local}}/v1/user/rides?status=success\u0026size=5\u0026paymentType=cash\n\u003e ```\n\n### Headers\n\n| Content-Type | Value         |\n| ------------ | ------------- |\n| x-auth-token | {{userToken}} |\n\n### Query Params\n\n| Param       | value   |\n| ----------- | ------- |\n| status      | success |\n| size        | 5       |\n| paymentType | cash    |\n\n### Response: 200\n\n```json\n{\n  \"statusCode\": 200,\n  \"message\": \"rides fetched\",\n  \"data\": [\n    {\n      \"pickupPoint\": {\n        \"pickupName\": \"\",\n        \"pickupLat\": \"\",\n        \"pickupLng\": \"\"\n      },\n      \"destinationPoint\": {\n        \"destinationName\": \"\",\n        \"destinationLat\": \"\",\n        \"destinationLng\": \"\"\n      },\n      \"_id\": \"6641653dbc176bd5af0c657d\",\n      \"campusName\": \"university of lagos\",\n      \"paymentStatus\": \"completed\",\n      \"paymentType\": \"cash\",\n      \"status\": \"success\",\n      \"distance\": 0,\n      \"cost\": 10000,\n      \"duration\": 2,\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"createdAt\": \"2024-05-13T00:56:29.084Z\",\n      \"updatedAt\": \"2024-05-13T00:58:55.879Z\",\n      \"__v\": 0\n    },\n    {\n      \"pickupPoint\": {\n        \"pickupName\": \"\",\n        \"pickupLat\": \"\",\n        \"pickupLng\": \"\"\n      },\n      \"destinationPoint\": {\n        \"destinationName\": \"\",\n        \"destinationLat\": \"\",\n        \"destinationLng\": \"\"\n      },\n      \"_id\": \"664161f6032db13c752b1f8c\",\n      \"campusName\": \"university of lagos\",\n      \"paymentStatus\": \"completed\",\n      \"paymentType\": \"cash\",\n      \"status\": \"success\",\n      \"distance\": 0,\n      \"cost\": 60000,\n      \"duration\": 12,\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"createdAt\": \"2024-05-13T00:42:30.599Z\",\n      \"updatedAt\": \"2024-05-13T00:54:51.337Z\",\n      \"__v\": 0\n    },\n    {\n      \"pickupPoint\": {\n        \"pickupName\": \"\",\n        \"pickupLat\": \"\",\n        \"pickupLng\": \"\"\n      },\n      \"destinationPoint\": {\n        \"destinationName\": \"\",\n        \"destinationLat\": \"\",\n        \"destinationLng\": \"\"\n      },\n      \"_id\": \"66415fa2c4eeb2c30abc039c\",\n      \"campusName\": \"university of lagos\",\n      \"paymentStatus\": \"completed\",\n      \"paymentType\": \"cash\",\n      \"status\": \"success\",\n      \"distance\": 0,\n      \"cost\": 20000,\n      \"duration\": 400,\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"createdAt\": \"2024-05-13T00:32:34.129Z\",\n      \"updatedAt\": \"2024-05-13T00:37:07.709Z\",\n      \"__v\": 0\n    },\n    {\n      \"pickupPoint\": {\n        \"pickupName\": \"\",\n        \"pickupLat\": \"\",\n        \"pickupLng\": \"\"\n      },\n      \"destinationPoint\": {\n        \"destinationName\": \"\",\n        \"destinationLat\": \"\",\n        \"destinationLng\": \"\"\n      },\n      \"_id\": \"663fd847bdbdf7ed1ba210c9\",\n      \"campusName\": \"university of lagos\",\n      \"paymentStatus\": \"completed\",\n      \"paymentType\": \"cash\",\n      \"status\": \"success\",\n      \"distance\": 0,\n      \"cost\": 8325000,\n      \"duration\": 0,\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"createdAt\": \"2024-05-11T20:42:47.020Z\",\n      \"updatedAt\": \"2024-05-13T00:29:36.019Z\",\n      \"__v\": 0\n    }\n  ]\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n# 📁 Collection: transactions\n\n## End-point: get transactions\n\nFetch all transactions\n\n### Method: GET\n\n\u003e ```\n\u003e {{local}}/v1/transactions\n\u003e ```\n\n### Headers\n\n| Content-Type | Value         |\n| ------------ | ------------- |\n| x-auth-token | {{userToken}} |\n\n### Response: 200\n\n```json\n{\n  \"statusCode\": 200,\n  \"message\": \"transactions fetched\",\n  \"data\": [\n    {\n      \"_id\": \"6641668829f982741abc01a4\",\n      \"type\": \"payment\",\n      \"amount\": 50,\n      \"status\": \"success\",\n      \"firstname\": \"Jon\",\n      \"lastname\": \"Doe\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"6641668729f982741abc01a3\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790174453,\n      \"rideId\": \"6641661729f982741abc0198\",\n      \"createdAt\": \"2024-05-13T01:02:00.195Z\",\n      \"updatedAt\": \"2024-05-13T01:02:16.236Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"664165bcbc176bd5af0c6589\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"success\",\n      \"firstname\": \"Jon\",\n      \"lastname\": \"Doe\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"664165bbbc176bd5af0c6588\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790171666,\n      \"rideId\": \"6641653dbc176bd5af0c657d\",\n      \"createdAt\": \"2024-05-13T00:58:36.506Z\",\n      \"updatedAt\": \"2024-05-13T00:58:55.879Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"664164c9975fec7cabbecc3c\",\n      \"type\": \"payment\",\n      \"amount\": 600,\n      \"status\": \"success\",\n      \"firstname\": \"Jon\",\n      \"lastname\": \"Doe\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"664164c8975fec7cabbecc3b\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790169059,\n      \"rideId\": \"664161f6032db13c752b1f8c\",\n      \"createdAt\": \"2024-05-13T00:54:33.413Z\",\n      \"updatedAt\": \"2024-05-13T00:54:51.337Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"6641609fc4eeb2c30abc03b1\",\n      \"type\": \"payment\",\n      \"amount\": 200,\n      \"status\": \"success\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"6641609ec4eeb2c30abc03b0\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790155438,\n      \"rideId\": \"66415fa2c4eeb2c30abc039c\",\n      \"createdAt\": \"2024-05-13T00:36:47.287Z\",\n      \"updatedAt\": \"2024-05-13T00:37:07.594Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"66415eb2eace3164f453721e\",\n      \"type\": \"payment\",\n      \"amount\": 83250,\n      \"status\": \"success\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"66415eb1eace3164f453721d\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790147705,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-13T00:28:34.014Z\",\n      \"updatedAt\": \"2024-05-13T00:29:35.851Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"664159c02c36d5581d068866\",\n      \"type\": \"payment\",\n      \"amount\": 82200,\n      \"status\": \"success\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"664159bf2c36d5581d068865\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790131720,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-13T00:07:28.281Z\",\n      \"updatedAt\": \"2024-05-13T00:09:32.519Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"6641580245903e404e1f3449\",\n      \"type\": \"payment\",\n      \"amount\": 81850,\n      \"status\": \"success\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"6641580045903e404e1f3448\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790123222,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-13T00:00:02.338Z\",\n      \"updatedAt\": \"2024-05-13T00:03:53.446Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"664156fca7cbb5d5a4c0f3c2\",\n      \"type\": \"payment\",\n      \"amount\": 81600,\n      \"status\": \"pending\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 0,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T23:55:40.454Z\",\n      \"updatedAt\": \"2024-05-12T23:55:40.454Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"6641565c5a91aa8027e39d7e\",\n      \"type\": \"payment\",\n      \"amount\": 81500,\n      \"status\": \"pending\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 0,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T23:53:00.273Z\",\n      \"updatedAt\": \"2024-05-12T23:53:00.273Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"664155fe768a40280bef022d\",\n      \"type\": \"payment\",\n      \"amount\": 81400,\n      \"status\": \"pending\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 0,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T23:51:26.221Z\",\n      \"updatedAt\": \"2024-05-12T23:51:26.221Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"664155b52371694ab1dab707\",\n      \"type\": \"payment\",\n      \"amount\": 81350,\n      \"status\": \"pending\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 0,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T23:50:13.979Z\",\n      \"updatedAt\": \"2024-05-12T23:50:13.979Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"6641529c67f49c240ea59695\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"pending\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 0,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T23:37:00.579Z\",\n      \"updatedAt\": \"2024-05-12T23:37:00.579Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"66415243dd1bc79cf65038dd\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"pending\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 0,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T23:35:31.894Z\",\n      \"updatedAt\": \"2024-05-12T23:35:31.894Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"664151cfd67f75a579994e77\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"pending\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 0,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T23:33:35.224Z\",\n      \"updatedAt\": \"2024-05-12T23:33:35.224Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"66414e7fcd1c4d5f53f7086c\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"pending\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 0,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T23:19:27.227Z\",\n      \"updatedAt\": \"2024-05-12T23:19:27.227Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"66414e29831427da86c07ede\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"pending\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 0,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T23:18:01.193Z\",\n      \"updatedAt\": \"2024-05-12T23:18:01.193Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"66414ddd88b6892941c64a4f\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"pending\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 0,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T23:16:45.059Z\",\n      \"updatedAt\": \"2024-05-12T23:16:45.059Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"66414d9bd84d5d93ee5d87c0\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"pending\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 0,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T23:15:39.387Z\",\n      \"updatedAt\": \"2024-05-12T23:15:39.387Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"66414d65e82d42860f925306\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"pending\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 0,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T23:14:45.545Z\",\n      \"updatedAt\": \"2024-05-12T23:14:45.545Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"66414c81334c9eb016ff65c1\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"pending\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 0,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T23:10:57.846Z\",\n      \"updatedAt\": \"2024-05-12T23:10:57.846Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"66414b22ccd6c0f01300d33d\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"pending\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 0,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T23:05:06.579Z\",\n      \"updatedAt\": \"2024-05-12T23:05:06.579Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"66414aac1a9bbe506c607b85\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"pending\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 0,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T23:03:08.014Z\",\n      \"updatedAt\": \"2024-05-12T23:03:08.014Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"66414a7421416f9f73684c8a\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"pending\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 0,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T23:02:12.684Z\",\n      \"updatedAt\": \"2024-05-12T23:02:12.684Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"6641489dad786ae9ca63ac8c\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"pending\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 0,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T22:54:21.685Z\",\n      \"updatedAt\": \"2024-05-12T22:54:21.685Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"6640872e819490ca70512a69\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"pending\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 0,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T09:09:02.541Z\",\n      \"updatedAt\": \"2024-05-12T09:09:02.541Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"664086d5b4cb4e847cec3e3e\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"success\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3788329586,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T09:07:33.752Z\",\n      \"updatedAt\": \"2024-05-12T09:09:21.438Z\",\n      \"__v\": 0\n    }\n  ]\n}\n```\n\n### Response: 200\n\n```json\n{\n  \"statusCode\": 200,\n  \"message\": \"transactions fetched\",\n  \"data\": [\n    {\n      \"_id\": \"664159c02c36d5581d068866\",\n      \"type\": \"payment\",\n      \"amount\": 82200,\n      \"status\": \"success\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"664159bf2c36d5581d068865\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790131720,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-13T00:07:28.281Z\",\n      \"updatedAt\": \"2024-05-13T00:09:32.519Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"6641580245903e404e1f3449\",\n      \"type\": \"payment\",\n      \"amount\": 81850,\n      \"status\": \"success\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"6641580045903e404e1f3448\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3790123222,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-13T00:00:02.338Z\",\n      \"updatedAt\": \"2024-05-13T00:03:53.446Z\",\n      \"__v\": 0\n    },\n    {\n      \"_id\": \"664086d5b4cb4e847cec3e3e\",\n      \"type\": \"payment\",\n      \"amount\": 100,\n      \"status\": \"success\",\n      \"firstname\": \"Alfa 5\",\n      \"lastname\": \"Smart bot\",\n      \"email\": \"jondoe11@email.com\",\n      \"userId\": \"663f297e2b717e890cf59bdb\",\n      \"riderId\": \"663f3b607f1090619a44dada\",\n      \"reference\": \"663fd847bdbdf7ed1ba210c9\",\n      \"paymentChannel\": \"CARD\",\n      \"paymentProvider\": \"PAYSTACK\",\n      \"paymentId\": 3788329586,\n      \"rideId\": \"663fd847bdbdf7ed1ba210c9\",\n      \"createdAt\": \"2024-05-12T09:07:33.752Z\",\n      \"updatedAt\": \"2024-05-12T09:09:21.438Z\",\n      \"__v\": 0\n    }\n  ]\n}\n```\n\n⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃\n\n## End-point: get transaction\n\nFetch transaction detail\n\n### Method: GET\n\n\u003e ```\n\u003e {{local}}/v1/transactions/:id\n\u003e ```\n\n### Headers\n\n| Content-Type | Value         |\n| ------------ | ------------- |\n| x-auth-token | {{userToken}} |\n\n### Response: 200\n\n```json\n{\n  \"statusCode\": 200,\n  \"message\": \"transaction fetched\",\n  \"data\": {\n    \"_id\": \"6641580245903e404e1f3449\",\n    \"type\": \"payment\",\n    \"amount\": 81850,\n    \"status\": \"success\",\n    \"firstname\": \"Alfa 5\",\n    \"lastname\": \"Smart bot\",\n    \"email\": \"jondoe11@email.com\",\n    \"userId\": \"663f297e2b717e890cf59bdb\",\n    \"riderId\": \"663f3b607f1090619a44dada\",\n    \"reference\": \"6641580045903e404e1f3448\",\n    \"paymentChannel\": \"CARD\",\n    \"paymentProvider\": \"PAYSTACK\",\n    \"paymentId\": 3790123222,\n    \"rideId\": {\n      \"pickupPoint\": {\n        \"pickupName\": \"\",\n        \"pickupLat\": \"\",\n        \"pickupLng\": \"\"\n      },\n      \"destinationPoint\": {\n        \"destinationName\": \"\",\n        \"destinationLat\": \"\",\n        \"destinationLng\": \"\"\n      },\n      \"_id\": \"663fd847bdbdf7ed1ba210c9\"\n    },\n    \"createdAt\": \"2024-05-13T00:00:02.338Z\",\n    \"updatedAt\": \"2024-05-13T00:03:53.446Z\",\n    \"__v\": 0\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjefedcreator%2Fcommute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjefedcreator%2Fcommute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjefedcreator%2Fcommute/lists"}