Get Service Details

This API endpoint is used to get a list of service providers with their details based on the specified district and user location.

Endpoint #

The Voomerr Get Service Details endpoint is GET https://admin.voomerr.com/api/get_service_details.php

Request Parameters #

Parameter Required Type Description
user_id Yes string The ID of the user requesting the service details.
district_id Yes string The ID of the district where the user wants the service
currency No string The currency in which the service price is displayed
latitude No string The latitude of the user’s location
longitude No string The longitude of the user’s location

Response Parameters #

Parameter Type Description
service_details Array An array of service details with the following fields: id, user_id, service_name, description, price, currency, image, delivery_time, delivery_type, ratings, reviews.
message String A message about the status of the API request.
status Integer The HTTP status code of the API request.

Request Example #

javascript
GET https://admin.voomerr.com/get_service_details.php?user_id=123&district_id=5&currency=USD&latitude=37.7749&longitude=-122.4194

Response Example #

json
{
"service_details": [
{
"id": "1",
"user_id": "123",
"service_name": "Plumbing Service",
"description": "We provide high-quality plumbing services at affordable prices.",
"price": "50",
"currency": "USD",
"image": "https://example.com/images/plumbing.jpg",
"delivery_time": "1 day",
"delivery_type": "Local pickup",
"ratings": "4.5",
"reviews": "30"
},
{
"id": "2",
"user_id": "124",
"service_name": "Electrician Service",
"description": "We provide high-quality electrician services at affordable prices.",
"price": "75",
"currency": "USD",
"image": "https://example.com/images/electrician.jpg",
"delivery_time": "2 days",
"delivery_type": "Local pickup",
"ratings": "4.0",
"reviews": "20"
}
],
"message": "Success",
"status": 200
}

Powered by BetterDocs