GET
/
wp-json
/
latepoint-api
/
v1
/
services
/
categories
{
  "id": "<string>",
  "name": "<string>",
  "short_description": "<string>",
  "parent_id": "<string>",
  "selection_image_id": "<string>",
  "order_number": "<string>",
  "services_count": 123,
  "pagination": {}
}

Query Parameters

per_page
integer
default:"10"
Number of categories per page (1-100)
page
integer
default:"1"
Page number for pagination

Example Requests

Basic Request

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

Paginated Request

GET /wp-json/latepoint-api/v1/services/categories?page=1&per_page=5
X-API-Key: YOUR_API_KEY

Response Example

{
  "success": true,
  "data": [
    {
      "id": "1",
      "name": "Consultas Médicas",
      "short_description": "Consultas médicas generales y especializadas",
      "parent_id": "0",
      "selection_image_id": "0",
      "order_number": "1",
      "services_count": 5
    },
    {
      "id": "2",
      "name": "Terapias",
      "short_description": "Diferentes tipos de terapias",
      "parent_id": "0",
      "selection_image_id": "0",
      "order_number": "2",
      "services_count": 3
    },
    {
      "id": "3",
      "name": "Exámenes",
      "short_description": "Exámenes médicos y diagnósticos",
      "parent_id": "0",
      "selection_image_id": "0",
      "order_number": "3",
      "services_count": 2
    }
  ],
  "pagination": {
    "current_page": 1,
    "per_page": 10,
    "total_items": 3,
    "total_pages": 1
  }
}

Response Fields

id
string
Unique identifier for the category
name
string
Category name
short_description
string
Brief description of the category
parent_id
string
ID of parent category (0 for top-level categories)
selection_image_id
string
ID of the selection image for the category
order_number
string
Display order number for sorting
services_count
integer
Number of active services in this category
pagination
object
Pagination information including current page, items per page, total items, and total pages

Notes

  • Only active service categories are returned
  • The services_count field shows the number of active services associated with each category
  • Categories are ordered by their order_number field in ascending order
  • This endpoint supports standard pagination parameters for large datasets
  • Authentication is required via API key in headers or query parameters