Esta página se genera desde el contrato (data/gateway-v1.json): cada operación muestra su verbo, ruta, parámetros, cuerpo, respuestas, si lleva Idempotency-Key y el método equivalente en los cinco SDK. Para el flujo de punta a punta con ejemplos completos, ve a la guía de implementación.

Operaciones del tag health #

Descripción en el contrato: Health services for IPS / health-enabled entities: appointment catalog, availability, booking on behalf of a patient (identified by document), cancel / reschedule / attendance, health invoices (DIAN / radication status, XML, RIPS, glosas) with payer collections, and the patient’s vaccination card. Clinical records go through the separate FHIR B2B channel.

MétodoRutaOperaciónScopeIdem.
GET/v1/gateway/health-services/appointments/Appointments of a patientappointments:read—
POST/v1/gateway/health-services/appointments/Book an appointment for a patientappointments:writerecomendada
GET/v1/gateway/health-services/appointments/{appointment_id}/Appointment detailappointments:read—
POST/v1/gateway/health-services/appointments/{appointment_id}/cancel/Cancel an appointment (releases the slot)appointments:writerecomendada
POST/v1/gateway/health-services/appointments/{appointment_id}/reschedule/Reschedule to another slotappointments:writerecomendada
POST/v1/gateway/health-services/appointments/{appointment_id}/status/Record attendance (completed / no_show)appointments:writerecomendada
GET/v1/gateway/health-services/availability/Free appointment slotsappointments:read—
GET/v1/gateway/health-services/billing/glosas/Glosas (read only)health_billing:read—
GET/v1/gateway/health-services/billing/invoices/Health invoices with DIAN / radication statushealth_billing:read—
GET/v1/gateway/health-services/billing/invoices/{invoice_id}/Invoice detail (lines, payments, glosas, radications)health_billing:read—
POST/v1/gateway/health-services/billing/invoices/{invoice_id}/payments/Register a payer (EPS) payment on an invoicehealth_billing:collectrecomendada
GET/v1/gateway/health-services/billing/invoices/{invoice_id}/rips/RIPS JSON of the invoicehealth_billing:read—
GET/v1/gateway/health-services/billing/invoices/{invoice_id}/xml/Electronic invoice XML (wrapped in JSON)health_billing:read—
GET/v1/gateway/health-services/catalog/Booking catalog (specialties, services, sites, doctors)appointments:read—
GET/v1/gateway/health-services/vaccination/card/Patient vaccination card / schedulevaccination:read—

Appointments of a patient #

GET/v1/gateway/health-services/appointments/

  • operationId listHealthAppointments
  • Autenticación X-API-Key · scope appointments:read
  • Idempotency-Key no aplica

Parámetros

NombreEnTipoDescripción
document obligatorioquerystringPatient document (holder or family beneficiary). Ej.: 1032456789
statusquerystringComma-separated statuses.
whenquerystringupcoming | past | all.
pagequeryintegerPage (from 1).
page_sizequeryintegerItems per page (max 100).

Respuestas

CódigoDescripciónCuerpo
200Paginated appointments.object application/json
Errores posibles (400, 401, 403, 404, 409, 422, 429, 500, 502, 504) — application/problem+json
400Malformed request.about:blank
401Missing or invalid API key.about:blank
403The key is valid but lacks the required scope, or the source IP is not allow-listed.about:blank
404The requested resource does not exist.about:blank
409Idempotency conflict — same key, original still processing.https://errors.compense.co/gateway/idempotency-conflict
422Request body failed validation.https://errors.compense.co/gateway/validation
429Per-key rate limit or monthly quota exceeded; see Retry-After.https://errors.compense.co/gateway/rate-limited
500Unexpected gateway error; quote the trace_id to support.about:blank
502The processing engine returned an error.https://errors.compense.co/gateway/upstream-error
504The processing engine did not respond in time.https://errors.compense.co/gateway/upstream-error

Ver Errores problem+json para la excepción equivalente en cada SDK.

Ejemplo

Método del SDK y petición HTTP
client.health.appointments.list()

Los métodos de cada SDK salen de su suite de paridad con el contrato. El cURL va contra el sandbox; los valores <campo> son marcadores.

Book an appointment for a patient #

POST/v1/gateway/health-services/appointments/

  • operationId bookHealthAppointment
  • Autenticación X-API-Key · scope appointments:write
  • Idempotency-Key recomendada (el SDK la genera)
Books slot_id for the patient identified by document. Unknown patient: send new_patient to quick-register them. Emits appointment.booked.

Parámetros

NombreEnTipoDescripción
Idempotency-KeycabecerastringClient-generated key that makes a write safely retryable. Replaying the same key returns the original result with idempotent_replay: true; a replay while the original is still in flight returns 409. Ej.: horizonte-2026-06-26-credit-000123

Cuerpo de la petición

Tipo de contenido: application/json · obligatorio

CampoTipoDescripción
appointment_typestringValores: first_time, follow_up, control, emergency.
channelstringValores: recepcion, telefono.
consultation_typestringValores: presencial, telemedicina.
document obligatoriostringEj.: "1032456789"
new_patientobject
notesstring
reasonstring
slot_id obligatoriostring

Respuestas

CódigoDescripciónCuerpo
200Processed; the engine result is in data.TransactionEnvelope application/json
Errores posibles (400, 401, 403, 404, 409, 422, 429, 500, 502, 504) — application/problem+json
400Malformed request.about:blank
401Missing or invalid API key.about:blank
403The key is valid but lacks the required scope, or the source IP is not allow-listed.about:blank
404The requested resource does not exist.about:blank
409Idempotency conflict — same key, original still processing.https://errors.compense.co/gateway/idempotency-conflict
422Request body failed validation.https://errors.compense.co/gateway/validation
429Per-key rate limit or monthly quota exceeded; see Retry-After.https://errors.compense.co/gateway/rate-limited
500Unexpected gateway error; quote the trace_id to support.about:blank
502The processing engine returned an error.https://errors.compense.co/gateway/upstream-error
504The processing engine did not respond in time.https://errors.compense.co/gateway/upstream-error

Ver Errores problem+json para la excepción equivalente en cada SDK.

Ejemplo

Método del SDK y petición HTTP
client.health.appointments.book()

Los métodos de cada SDK salen de su suite de paridad con el contrato. El cURL va contra el sandbox; los valores <campo> son marcadores.

Appointment detail #

GET/v1/gateway/health-services/appointments/{appointment_id}/

  • operationId getHealthAppointment
  • Autenticación X-API-Key · scope appointments:read
  • Idempotency-Key no aplica

Parámetros

NombreEnTipoDescripción
appointment_id obligatoriorutastringAppointment id (UUID) or appointment code. Ej.: CITA-2026-000123

Respuestas

CódigoDescripciónCuerpo
200Appointment.object application/json
Errores posibles (400, 401, 403, 404, 409, 422, 429, 500, 502, 504) — application/problem+json
400Malformed request.about:blank
401Missing or invalid API key.about:blank
403The key is valid but lacks the required scope, or the source IP is not allow-listed.about:blank
404The requested resource does not exist.about:blank
409Idempotency conflict — same key, original still processing.https://errors.compense.co/gateway/idempotency-conflict
422Request body failed validation.https://errors.compense.co/gateway/validation
429Per-key rate limit or monthly quota exceeded; see Retry-After.https://errors.compense.co/gateway/rate-limited
500Unexpected gateway error; quote the trace_id to support.about:blank
502The processing engine returned an error.https://errors.compense.co/gateway/upstream-error
504The processing engine did not respond in time.https://errors.compense.co/gateway/upstream-error

Ver Errores problem+json para la excepción equivalente en cada SDK.

Ejemplo

Método del SDK y petición HTTP
client.health.appointments.get()

Los métodos de cada SDK salen de su suite de paridad con el contrato. El cURL va contra el sandbox; los valores <campo> son marcadores.

Cancel an appointment (releases the slot) #

POST/v1/gateway/health-services/appointments/{appointment_id}/cancel/

  • operationId cancelHealthAppointment
  • Autenticación X-API-Key · scope appointments:write
  • Idempotency-Key recomendada (el SDK la genera)
IPS-level cancel. on_behalf_of_patient: true applies the patient rules (2-hour notice). Emits appointment.cancelled.

Parámetros

NombreEnTipoDescripción
appointment_id obligatoriorutastringAppointment id (UUID) or appointment code. Ej.: CITA-2026-000123
Idempotency-KeycabecerastringClient-generated key that makes a write safely retryable. Replaying the same key returns the original result with idempotent_replay: true; a replay while the original is still in flight returns 409. Ej.: horizonte-2026-06-26-credit-000123

Cuerpo de la petición

Tipo de contenido: application/json · obligatorio

CampoTipoDescripción
on_behalf_of_patientboolean
reason obligatoriostring

Respuestas

CódigoDescripciónCuerpo
200Processed; the engine result is in data.TransactionEnvelope application/json
Errores posibles (400, 401, 403, 404, 409, 422, 429, 500, 502, 504) — application/problem+json
400Malformed request.about:blank
401Missing or invalid API key.about:blank
403The key is valid but lacks the required scope, or the source IP is not allow-listed.about:blank
404The requested resource does not exist.about:blank
409Idempotency conflict — same key, original still processing.https://errors.compense.co/gateway/idempotency-conflict
422Request body failed validation.https://errors.compense.co/gateway/validation
429Per-key rate limit or monthly quota exceeded; see Retry-After.https://errors.compense.co/gateway/rate-limited
500Unexpected gateway error; quote the trace_id to support.about:blank
502The processing engine returned an error.https://errors.compense.co/gateway/upstream-error
504The processing engine did not respond in time.https://errors.compense.co/gateway/upstream-error

Ver Errores problem+json para la excepción equivalente en cada SDK.

Ejemplo

Método del SDK y petición HTTP
client.health.appointments.cancel()

Los métodos de cada SDK salen de su suite de paridad con el contrato. El cURL va contra el sandbox; los valores <campo> son marcadores.

Reschedule to another slot #

POST/v1/gateway/health-services/appointments/{appointment_id}/reschedule/

  • operationId rescheduleHealthAppointment
  • Autenticación X-API-Key · scope appointments:write
  • Idempotency-Key recomendada (el SDK la genera)
Same rules as the app (2-hour notice, locked slot, never in the past). Emits appointment.rescheduled.

Parámetros

NombreEnTipoDescripción
appointment_id obligatoriorutastringAppointment id (UUID) or appointment code. Ej.: CITA-2026-000123
Idempotency-KeycabecerastringClient-generated key that makes a write safely retryable. Replaying the same key returns the original result with idempotent_replay: true; a replay while the original is still in flight returns 409. Ej.: horizonte-2026-06-26-credit-000123

Cuerpo de la petición

Tipo de contenido: application/json · obligatorio

CampoTipoDescripción
new_slot_id obligatoriostring

Respuestas

CódigoDescripciónCuerpo
200Processed; the engine result is in data.TransactionEnvelope application/json
Errores posibles (400, 401, 403, 404, 409, 422, 429, 500, 502, 504) — application/problem+json
400Malformed request.about:blank
401Missing or invalid API key.about:blank
403The key is valid but lacks the required scope, or the source IP is not allow-listed.about:blank
404The requested resource does not exist.about:blank
409Idempotency conflict — same key, original still processing.https://errors.compense.co/gateway/idempotency-conflict
422Request body failed validation.https://errors.compense.co/gateway/validation
429Per-key rate limit or monthly quota exceeded; see Retry-After.https://errors.compense.co/gateway/rate-limited
500Unexpected gateway error; quote the trace_id to support.about:blank
502The processing engine returned an error.https://errors.compense.co/gateway/upstream-error
504The processing engine did not respond in time.https://errors.compense.co/gateway/upstream-error

Ver Errores problem+json para la excepción equivalente en cada SDK.

Ejemplo

Método del SDK y petición HTTP
client.health.appointments.reschedule()

Los métodos de cada SDK salen de su suite de paridad con el contrato. El cURL va contra el sandbox; los valores <campo> son marcadores.

Record attendance (completed / no_show) #

POST/v1/gateway/health-services/appointments/{appointment_id}/status/

  • operationId setHealthAppointmentAttendance
  • Autenticación X-API-Key · scope appointments:write
  • Idempotency-Key recomendada (el SDK la genera)
Only from confirmed/pending and from the appointment time on. Emits appointment.status_changed.

Parámetros

NombreEnTipoDescripción
appointment_id obligatoriorutastringAppointment id (UUID) or appointment code. Ej.: CITA-2026-000123
Idempotency-KeycabecerastringClient-generated key that makes a write safely retryable. Replaying the same key returns the original result with idempotent_replay: true; a replay while the original is still in flight returns 409. Ej.: horizonte-2026-06-26-credit-000123

Cuerpo de la petición

Tipo de contenido: application/json · obligatorio

CampoTipoDescripción
reasonstring
status obligatoriostringValores: completed, no_show.

Respuestas

CódigoDescripciónCuerpo
200Processed; the engine result is in data.TransactionEnvelope application/json
Errores posibles (400, 401, 403, 404, 409, 422, 429, 500, 502, 504) — application/problem+json
400Malformed request.about:blank
401Missing or invalid API key.about:blank
403The key is valid but lacks the required scope, or the source IP is not allow-listed.about:blank
404The requested resource does not exist.about:blank
409Idempotency conflict — same key, original still processing.https://errors.compense.co/gateway/idempotency-conflict
422Request body failed validation.https://errors.compense.co/gateway/validation
429Per-key rate limit or monthly quota exceeded; see Retry-After.https://errors.compense.co/gateway/rate-limited
500Unexpected gateway error; quote the trace_id to support.about:blank
502The processing engine returned an error.https://errors.compense.co/gateway/upstream-error
504The processing engine did not respond in time.https://errors.compense.co/gateway/upstream-error

Ver Errores problem+json para la excepción equivalente en cada SDK.

Ejemplo

Método del SDK y petición HTTP
client.health.appointments.set_attendance()

Los métodos de cada SDK salen de su suite de paridad con el contrato. El cURL va contra el sandbox; los valores <campo> son marcadores.

Free appointment slots #

GET/v1/gateway/health-services/availability/

  • operationId listHealthAvailability
  • Autenticación X-API-Key · scope appointments:read
  • Idempotency-Key no aplica
Use date for one day, or start_date/end_date/asap for a range (no dates: next 30 days).

Parámetros

NombreEnTipoDescripción
datequerystring (date)One day (YYYY-MM-DD).
start_datequerystring (date)From (YYYY-MM-DD).
end_datequerystring (date)To (YYYY-MM-DD).
asapquerybooleanEarliest slots in the next 90 days.
doctor_idquerystringDoctor id.
location_idquerystringSite id.
specialty_idquerystringSpecialty id.
service_idquerystringService type id.
pagequeryintegerPage (from 1).
page_sizequeryintegerItems per page (max 100).

Respuestas

CódigoDescripciónCuerpo
200Paginated slots.object application/json
Errores posibles (400, 401, 403, 404, 409, 422, 429, 500, 502, 504) — application/problem+json
400Malformed request.about:blank
401Missing or invalid API key.about:blank
403The key is valid but lacks the required scope, or the source IP is not allow-listed.about:blank
404The requested resource does not exist.about:blank
409Idempotency conflict — same key, original still processing.https://errors.compense.co/gateway/idempotency-conflict
422Request body failed validation.https://errors.compense.co/gateway/validation
429Per-key rate limit or monthly quota exceeded; see Retry-After.https://errors.compense.co/gateway/rate-limited
500Unexpected gateway error; quote the trace_id to support.about:blank
502The processing engine returned an error.https://errors.compense.co/gateway/upstream-error
504The processing engine did not respond in time.https://errors.compense.co/gateway/upstream-error

Ver Errores problem+json para la excepción equivalente en cada SDK.

Ejemplo

Método del SDK y petición HTTP
client.health.availability()

Los métodos de cada SDK salen de su suite de paridad con el contrato. El cURL va contra el sandbox; los valores <campo> son marcadores.

Glosas (read only) #

GET/v1/gateway/health-services/billing/glosas/

  • operationId listHealthGlosas
  • Autenticación X-API-Key · scope health_billing:read
  • Idempotency-Key no aplica

Parámetros

NombreEnTipoDescripción
invoicequerystringInvoice id.
statusquerystringComma-separated statuses.
pagequeryintegerPage (from 1).
page_sizequeryintegerItems per page (max 100).

Respuestas

CódigoDescripciónCuerpo
200Paginated glosas.object application/json
Errores posibles (400, 401, 403, 404, 409, 422, 429, 500, 502, 504) — application/problem+json
400Malformed request.about:blank
401Missing or invalid API key.about:blank
403The key is valid but lacks the required scope, or the source IP is not allow-listed.about:blank
404The requested resource does not exist.about:blank
409Idempotency conflict — same key, original still processing.https://errors.compense.co/gateway/idempotency-conflict
422Request body failed validation.https://errors.compense.co/gateway/validation
429Per-key rate limit or monthly quota exceeded; see Retry-After.https://errors.compense.co/gateway/rate-limited
500Unexpected gateway error; quote the trace_id to support.about:blank
502The processing engine returned an error.https://errors.compense.co/gateway/upstream-error
504The processing engine did not respond in time.https://errors.compense.co/gateway/upstream-error

Ver Errores problem+json para la excepción equivalente en cada SDK.

Ejemplo

Método del SDK y petición HTTP
client.health.billing.list_glosas()

Los métodos de cada SDK salen de su suite de paridad con el contrato. El cURL va contra el sandbox; los valores <campo> son marcadores.

Health invoices with DIAN / radication status #

GET/v1/gateway/health-services/billing/invoices/

  • operationId listHealthInvoices
  • Autenticación X-API-Key · scope health_billing:read
  • Idempotency-Key no aplica

Parámetros

NombreEnTipoDescripción
statusquerystringComma-separated statuses (e.g. CUV_OK,RADICADA).
payerquerystringPayer id.
qquerystringNumber, reference or CUV.
documentquerystringPatient document.
date_fromquerystring (date)Created from (YYYY-MM-DD).
date_toquerystring (date)Created to (YYYY-MM-DD).
pagequeryintegerPage (from 1).
page_sizequeryintegerItems per page (max 100).

Respuestas

CódigoDescripciónCuerpo
200Paginated invoices.object application/json
Errores posibles (400, 401, 403, 404, 409, 422, 429, 500, 502, 504) — application/problem+json
400Malformed request.about:blank
401Missing or invalid API key.about:blank
403The key is valid but lacks the required scope, or the source IP is not allow-listed.about:blank
404The requested resource does not exist.about:blank
409Idempotency conflict — same key, original still processing.https://errors.compense.co/gateway/idempotency-conflict
422Request body failed validation.https://errors.compense.co/gateway/validation
429Per-key rate limit or monthly quota exceeded; see Retry-After.https://errors.compense.co/gateway/rate-limited
500Unexpected gateway error; quote the trace_id to support.about:blank
502The processing engine returned an error.https://errors.compense.co/gateway/upstream-error
504The processing engine did not respond in time.https://errors.compense.co/gateway/upstream-error

Ver Errores problem+json para la excepción equivalente en cada SDK.

Ejemplo

Método del SDK y petición HTTP
client.health.billing.list_invoices()

Los métodos de cada SDK salen de su suite de paridad con el contrato. El cURL va contra el sandbox; los valores <campo> son marcadores.

Invoice detail (lines, payments, glosas, radications) #

GET/v1/gateway/health-services/billing/invoices/{invoice_id}/

  • operationId getHealthInvoice
  • Autenticación X-API-Key · scope health_billing:read
  • Idempotency-Key no aplica

Parámetros

NombreEnTipoDescripción
invoice_id obligatoriorutastringHealth invoice id. Ej.: 3f2b8c1e-0000-4a1b-9c2d-000000000001

Respuestas

CódigoDescripciónCuerpo
200Invoice.object application/json
Errores posibles (400, 401, 403, 404, 409, 422, 429, 500, 502, 504) — application/problem+json
400Malformed request.about:blank
401Missing or invalid API key.about:blank
403The key is valid but lacks the required scope, or the source IP is not allow-listed.about:blank
404The requested resource does not exist.about:blank
409Idempotency conflict — same key, original still processing.https://errors.compense.co/gateway/idempotency-conflict
422Request body failed validation.https://errors.compense.co/gateway/validation
429Per-key rate limit or monthly quota exceeded; see Retry-After.https://errors.compense.co/gateway/rate-limited
500Unexpected gateway error; quote the trace_id to support.about:blank
502The processing engine returned an error.https://errors.compense.co/gateway/upstream-error
504The processing engine did not respond in time.https://errors.compense.co/gateway/upstream-error

Ver Errores problem+json para la excepción equivalente en cada SDK.

Ejemplo

Método del SDK y petición HTTP
client.health.billing.get_invoice()

Los métodos de cada SDK salen de su suite de paridad con el contrato. El cURL va contra el sandbox; los valores <campo> son marcadores.

Register a payer (EPS) payment on an invoice #

POST/v1/gateway/health-services/billing/invoices/{invoice_id}/payments/

  • operationId registerHealthInvoicePayment
  • Autenticación X-API-Key · scope health_billing:collect
  • Idempotency-Key recomendada (el SDK la genera)
Idempotent by Idempotency-Key (or by method + reference). Never above the non-disputed balance. Emits health_billing.payment.registered.

Parámetros

NombreEnTipoDescripción
invoice_id obligatoriorutastringHealth invoice id. Ej.: 3f2b8c1e-0000-4a1b-9c2d-000000000001
Idempotency-KeycabecerastringClient-generated key that makes a write safely retryable. Replaying the same key returns the original result with idempotent_replay: true; a replay while the original is still in flight returns 409. Ej.: horizonte-2026-06-26-credit-000123

Cuerpo de la petición

Tipo de contenido: application/json · obligatorio

CampoTipoDescripción
amount obligatoriostringEj.: "53500.00"
method obligatoriostringValores: TRANSFERENCIA, CONSIGNACION, GIRO_DIRECTO, RETENCION.
paid_atstring (date)
reference obligatoriostring

Respuestas

CódigoDescripciónCuerpo
200Processed; the engine result is in data.TransactionEnvelope application/json
Errores posibles (400, 401, 403, 404, 409, 422, 429, 500, 502, 504) — application/problem+json
400Malformed request.about:blank
401Missing or invalid API key.about:blank
403The key is valid but lacks the required scope, or the source IP is not allow-listed.about:blank
404The requested resource does not exist.about:blank
409Idempotency conflict — same key, original still processing.https://errors.compense.co/gateway/idempotency-conflict
422Request body failed validation.https://errors.compense.co/gateway/validation
429Per-key rate limit or monthly quota exceeded; see Retry-After.https://errors.compense.co/gateway/rate-limited
500Unexpected gateway error; quote the trace_id to support.about:blank
502The processing engine returned an error.https://errors.compense.co/gateway/upstream-error
504The processing engine did not respond in time.https://errors.compense.co/gateway/upstream-error

Ver Errores problem+json para la excepción equivalente en cada SDK.

Ejemplo

Método del SDK y petición HTTP
client.health.billing.register_payment()

Los métodos de cada SDK salen de su suite de paridad con el contrato. El cURL va contra el sandbox; los valores <campo> son marcadores.

RIPS JSON of the invoice #

GET/v1/gateway/health-services/billing/invoices/{invoice_id}/rips/

  • operationId getHealthInvoiceRips
  • Autenticación X-API-Key · scope health_billing:read
  • Idempotency-Key no aplica

Parámetros

NombreEnTipoDescripción
invoice_id obligatoriorutastringHealth invoice id. Ej.: 3f2b8c1e-0000-4a1b-9c2d-000000000001

Respuestas

CódigoDescripciónCuerpo
200RIPS.object application/json
Errores posibles (400, 401, 403, 404, 409, 422, 429, 500, 502, 504) — application/problem+json
400Malformed request.about:blank
401Missing or invalid API key.about:blank
403The key is valid but lacks the required scope, or the source IP is not allow-listed.about:blank
404The requested resource does not exist.about:blank
409Idempotency conflict — same key, original still processing.https://errors.compense.co/gateway/idempotency-conflict
422Request body failed validation.https://errors.compense.co/gateway/validation
429Per-key rate limit or monthly quota exceeded; see Retry-After.https://errors.compense.co/gateway/rate-limited
500Unexpected gateway error; quote the trace_id to support.about:blank
502The processing engine returned an error.https://errors.compense.co/gateway/upstream-error
504The processing engine did not respond in time.https://errors.compense.co/gateway/upstream-error

Ver Errores problem+json para la excepción equivalente en cada SDK.

Ejemplo

Método del SDK y petición HTTP
client.health.billing.get_invoice_rips()

Los métodos de cada SDK salen de su suite de paridad con el contrato. El cURL va contra el sandbox; los valores <campo> son marcadores.

Electronic invoice XML (wrapped in JSON) #

GET/v1/gateway/health-services/billing/invoices/{invoice_id}/xml/

  • operationId getHealthInvoiceXml
  • Autenticación X-API-Key · scope health_billing:read
  • Idempotency-Key no aplica

Parámetros

NombreEnTipoDescripción
invoice_id obligatoriorutastringHealth invoice id. Ej.: 3f2b8c1e-0000-4a1b-9c2d-000000000001

Respuestas

CódigoDescripciónCuerpo
200XML document.object application/json
Errores posibles (400, 401, 403, 404, 409, 422, 429, 500, 502, 504) — application/problem+json
400Malformed request.about:blank
401Missing or invalid API key.about:blank
403The key is valid but lacks the required scope, or the source IP is not allow-listed.about:blank
404The requested resource does not exist.about:blank
409Idempotency conflict — same key, original still processing.https://errors.compense.co/gateway/idempotency-conflict
422Request body failed validation.https://errors.compense.co/gateway/validation
429Per-key rate limit or monthly quota exceeded; see Retry-After.https://errors.compense.co/gateway/rate-limited
500Unexpected gateway error; quote the trace_id to support.about:blank
502The processing engine returned an error.https://errors.compense.co/gateway/upstream-error
504The processing engine did not respond in time.https://errors.compense.co/gateway/upstream-error

Ver Errores problem+json para la excepción equivalente en cada SDK.

Ejemplo

Método del SDK y petición HTTP
client.health.billing.get_invoice_xml()

Los métodos de cada SDK salen de su suite de paridad con el contrato. El cURL va contra el sandbox; los valores <campo> son marcadores.

Booking catalog (specialties, services, sites, doctors) #

GET/v1/gateway/health-services/catalog/

  • operationId getHealthCatalog
  • Autenticación X-API-Key · scope appointments:read
  • Idempotency-Key no aplica

Respuestas

CódigoDescripciónCuerpo
200Catalog.object application/json
Errores posibles (400, 401, 403, 404, 409, 422, 429, 500, 502, 504) — application/problem+json
400Malformed request.about:blank
401Missing or invalid API key.about:blank
403The key is valid but lacks the required scope, or the source IP is not allow-listed.about:blank
404The requested resource does not exist.about:blank
409Idempotency conflict — same key, original still processing.https://errors.compense.co/gateway/idempotency-conflict
422Request body failed validation.https://errors.compense.co/gateway/validation
429Per-key rate limit or monthly quota exceeded; see Retry-After.https://errors.compense.co/gateway/rate-limited
500Unexpected gateway error; quote the trace_id to support.about:blank
502The processing engine returned an error.https://errors.compense.co/gateway/upstream-error
504The processing engine did not respond in time.https://errors.compense.co/gateway/upstream-error

Ver Errores problem+json para la excepción equivalente en cada SDK.

Ejemplo

Método del SDK y petición HTTP
client.health.catalog()

Los métodos de cada SDK salen de su suite de paridad con el contrato. El cURL va contra el sandbox; los valores <campo> son marcadores.

Patient vaccination card / schedule #

GET/v1/gateway/health-services/vaccination/card/

  • operationId getVaccinationCard
  • Autenticación X-API-Key · scope vaccination:read
  • Idempotency-Key no aplica

Parámetros

NombreEnTipoDescripción
document obligatorioquerystringPatient document. Ej.: 1032456789

Respuestas

CódigoDescripciónCuerpo
200Vaccination card.object application/json
Errores posibles (400, 401, 403, 404, 409, 422, 429, 500, 502, 504) — application/problem+json
400Malformed request.about:blank
401Missing or invalid API key.about:blank
403The key is valid but lacks the required scope, or the source IP is not allow-listed.about:blank
404The requested resource does not exist.about:blank
409Idempotency conflict — same key, original still processing.https://errors.compense.co/gateway/idempotency-conflict
422Request body failed validation.https://errors.compense.co/gateway/validation
429Per-key rate limit or monthly quota exceeded; see Retry-After.https://errors.compense.co/gateway/rate-limited
500Unexpected gateway error; quote the trace_id to support.about:blank
502The processing engine returned an error.https://errors.compense.co/gateway/upstream-error
504The processing engine did not respond in time.https://errors.compense.co/gateway/upstream-error

Ver Errores problem+json para la excepción equivalente en cada SDK.

Ejemplo

Método del SDK y petición HTTP
client.health.vaccination.card()

Los métodos de cada SDK salen de su suite de paridad con el contrato. El cURL va contra el sandbox; los valores <campo> son marcadores.