Skip to main content
GET
/
wp-json
/
latepoint-api
/
v1
/
services
List Services
curl --request GET \
  --url https://api.example.com/wp-json/latepoint-api/v1/services

Documentation Index

Fetch the complete documentation index at: https://docs-restapi.wplimit.com/llms.txt

Use this file to discover all available pages before exploring further.

Query Parameters

Search services by name, short description, or description
name
string
Filter by exact service name
status
string
Filter by service status (active, disabled)
category_id
integer
Filter by service category ID
location_id
integer
Filter services by location ID (shows only services available at this location)
agent_id
integer
Filter services by agent ID (shows only services provided by this agent)
visibility
string
Filter by visibility (visible, hidden)
price_min
number
Minimum price filter
price_max
number
Maximum price filter
duration_min
integer
Minimum duration in minutes
duration_max
integer
Maximum duration in minutes
created_after
string
Filter services created after this date (YYYY-MM-DD format)
created_before
string
Filter services created before this date (YYYY-MM-DD format)
updated_after
string
Filter services updated after this date (YYYY-MM-DD format)
updated_before
string
Filter services updated before this date (YYYY-MM-DD format)
per_page
integer
default:"10"
Number of services per page (1-100)
page
integer
default:"1"
Page number for pagination
order_by
string
default:"id"
Field to order by (id, name, price, duration, created_date, updated_date)
order
string
default:"ASC"
Sort direction (ASC, DESC)
include
string
Include related data (comma-separated: category, agents, locations)

Example Requests

Basic Request

GET /wp-json/latepoint-api/v1/services
X-API-Key: YOUR_API_KEY

Search Services

GET /wp-json/latepoint-api/v1/services?search=test&per_page=2
X-API-Key: YOUR_API_KEY

Filter with Multiple Parameters

GET /wp-json/latepoint-api/v1/services?status=active&per_page=3&include=category,agents
X-API-Key: YOUR_API_KEY

Price Range Filter

GET /wp-json/latepoint-api/v1/services?price_min=50&price_max=200&order_by=charge_amount&order=ASC
X-API-Key: YOUR_API_KEY

Duration and Date Filters

GET /wp-json/latepoint-api/v1/services?duration_min=30&duration_max=120&created_after=2024-01-01
X-API-Key: YOUR_API_KEY

Filter by Location

GET /wp-json/latepoint-api/v1/services?location_id=2
X-API-Key: YOUR_API_KEY

Filter by Agent

GET /wp-json/latepoint-api/v1/services?agent_id=1
X-API-Key: YOUR_API_KEY

Combined Location and Agent Filter

GET /wp-json/latepoint-api/v1/services?location_id=2&agent_id=1&status=active
X-API-Key: YOUR_API_KEY

Response Example

Basic Response

{
  "success": true,
  "data": [
    {
      "id": "2",
      "name": "General Consultation",
      "short_description": "Standard medical consultation",
      "description": null,
      "duration": "60",
      "price_min": "23.0000",
      "price_max": "23.0000",
      "charge_amount": "23.0000",
      "deposit_amount": "0.0000",
      "capacity_min": "1",
      "capacity_max": "1",
      "order_number": "2",
      "selection_image_id": "0",
      "status": "active",
      "visibility": "visible",
      "category_id": "0",
      "customer_limit": "visible",
      "created_at": "2025-08-18 07:58:53",
      "updated_at": "2025-08-18 07:58:53"
    }
  ],
  "pagination": {
    "page": 1,
    "per_page": 10,
    "total": 4,
    "total_pages": 1,
    "has_next_page": false,
    "has_previous_page": false
  }
}

With include=category,agents

{
  "success": true,
  "data": [
    {
      "id": "2",
      "name": "General Consultation",
      "charge_amount": "23.0000",
      "status": "active",
      "category": {
        "id": 1,
        "name": "Category Name",
        "short_description": "Category description"
      },
      "agents": [
        {
          "id": "1",
          "first_name": "Pao",
          "last_name": "Campo",
          "display_name": "Agente Pao"
        }
      ]
    }
  ],
  "pagination": {
    "page": 1,
    "per_page": 10,
    "total": 4,
    "total_pages": 1,
    "has_next_page": false,
    "has_previous_page": false
  }
}
The customer_limit field is always present in the response. Use include=category to embed category data and include=agents for agent data per service. Use include=categories to append all service categories to the root of the response.