Skip to main content

GET /api/sat/search

Searches the SAT (Servicio de Administración Tributaria) product and service catalog with filtering and pagination. Returns products/services matching the search criteria.

Authentication

This endpoint requires authentication. Include your access token in the request cookies.

Query Parameters

query
string
Search term to find products/services by description or keywords
incluir_iva_trasladado
string
Filter by IVA requirement. Options: , No, Opcional
incluir_ieps_trasladado
string
Filter by IEPS requirement. Options: , No, Opcional
limit
number
default:"20"
Number of results per page (1-100)
offset
number
default:"0"
Number of results to skip for pagination

Response

items
SATProductServiceAttributes[]
required
Array of SAT product/service objects
total
number
required
Total number of results matching the query
limit
number
required
Number of items returned in this response
offset
number
required
Offset used for this query

Example Request

curl -X GET "https://api.contafy.com/api/sat/search?query=consultoría&limit=10&offset=0" \
  -H "Cookie: access_token=your_access_token"

Example Response

{
  "items": [
    {
      "id": "80141600",
      "descripcion": "Servicios de consultoría de negocios y administración corporativa",
      "incluir_iva_trasladado": "Sí",
      "incluir_ieps_trasladado": "No",
      "complemento_que_debe_incluir": null,
      "fecha_inicio_vigencia": "2017-01-01T00:00:00Z",
      "fecha_fin_vigencia": null,
      "estimulo_franja_fronteriza": "No aplica",
      "palabras_similares": "consultoría empresarial asesoría negocios",
      "created_at": "2023-01-15T10:00:00Z",
      "updated_at": "2023-01-15T10:00:00Z"
    },
    {
      "id": "80141601",
      "descripcion": "Servicios de consultoría en administración de recursos humanos",
      "incluir_iva_trasladado": "Sí",
      "incluir_ieps_trasladado": "No",
      "complemento_que_debe_incluir": null,
      "fecha_inicio_vigencia": "2017-01-01T00:00:00Z",
      "fecha_fin_vigencia": null,
      "estimulo_franja_fronteriza": "No aplica",
      "palabras_similares": "recursos humanos rrhh personal",
      "created_at": "2023-01-15T10:00:00Z",
      "updated_at": "2023-01-15T10:00:00Z"
    }
  ],
  "total": 45,
  "limit": 10,
  "offset": 0
}

Error Responses

401 Unauthorized
error
Authentication required or token expired
{
  "error": "Unauthorized",
  "message": "Authentication required"
}
400 Bad Request
error
Invalid query parameters
{
  "error": "Bad Request",
  "message": "Invalid limit. Must be between 1 and 100"
}
429 Too Many Requests
error
Rate limit exceeded based on plan limits
{
  "error": "Too Many Requests",
  "message": "SAT search limit exceeded for your plan"
}
500 Internal Server Error
error
Server error occurred
{
  "error": "Internal Server Error",
  "message": "An unexpected error occurred"
}
Search limits vary by subscription plan. Check your plan’s satBasicSearchesPerMonth limit.