API: Get Specific Customer

Request

Retrieve a specific customer by Mobile:

GET /customers/{mobile}/by-mobile

Sample Response:

                    
{
    "status": "success",
    "message": "Customer retrieved successfully",
    "data": {
        "id": 1
        "mobile": "01XXXXXXXX",
        "name": "John Doe",
        "gender": null,
        "age": null,
        "address": null,
        "passport_no": null,
        "nationality": null,
        "email": null,
        "total_trips": 0,
        "total_tickets": 0,
        "total_cancelled_tickets": 0,
    }
}
                    
                

Notes:

  • The customer mobile number is required in the URL to specify which customers to retrieve.
  • If the customer does not exist, the API will return an error response.