Del objeto Cita destacan los siguientes atributos:
Recuperar cita
https://developers.gadaca.com/#api-Appointments-AppointmentGet
Obtener información de la cita por su ID.
Respuesta de ejemplo:
HTTP/1.1 200 OK
{
   "data": {
        "object": "Appointment",
        "id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "doctor_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "appointable_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "appointable_type": "doctor",
        "domain_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "type_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "datetime_at": {
            "date": "2017-11-11 12:00:00.000000",
            "timezone_type": 3,
            "timezone": "Europe/Madrid"
        },
        "date_at": "2017-11-10",
        "time_at": "12:00:00",
        "datetime_to": {
            "date": "2017-11-11 12:10:00.000000",
            "timezone_type": 3,
            "timezone": "Europe/Madrid"
        },
        "time_to": "12:10:00",
        "duration": "10",
        "address": "Calle Marques de Monteagudo, 22",
        "room": "5",
        "is_reserved": 1,
        "user_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "booked_at": {
            "date": "2017-05-07 11:10:00.000000",
            "timezone_type": 3,
            "timezone": "Europe/Madrid"
        },
        "user_domain_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "user_speciality_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "user_type_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "cie10": "Dolor abdominal",
        "comments": null,
        "coverage_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "subscription_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "created_at": {
            "date": "2017-04-09 12:02:46.000000",
            "timezone_type": 3,
            "timezone": "Europe/Madrid"
        },
        "updated_at": {
            "date": "2017-06-26 21:00:02.000000",
            "timezone_type": 3,
            "timezone": "Europe/Madrid"
        },
        "type": {
            "data": {
                "object": "Category",
                "id": "xopxon45qlekj78m9gzy0avdbr96m37n",
                "code": "at-video",
                "name": "Video Consulta"
            }
        },
        "user_type": {
            "data": {
                "object": "Category",
                "id": "xopxon45qlekj78m9gzy0avdbr96m37n",
                "code": "at-video",
                "name": "Video Consulta"
            }
        },
        "user": {
            "data": {
                "object": "User",
                "id": "xopxon45qlekj78m9gzy0avdbr96m37n"
            }
        },
        "doctor": {
            "data": {
                "object": "Doctor",
                "id": "xopxon45qlekj78m9gzy0avdbr96m37n"
            }
        }
    }
}
Recuperar listado de citas
https://developers.gadaca.com/#api-Appointments-AppointmentListGet
Recupera un listado de citas basandose en los parámetros de búsqueda.
Los principales parámetros de búsqueda para este endpoint serán:
La respuesta será un listado de objectos Appointment referidos en el anterior endpoint.
HTTP/1.1 200 OK
{
    "data": [
        {
            "object": "Appointment",
            "id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "doctor_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "appointable_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "appointable_type": "doctor",
            "domain_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "type_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "datetime_at": {
                "date": "2017-11-11 12:00:00.000000",
                "timezone_type": 3,
                "timezone": "Europe/Madrid"
            },
            "date_at": "2017-11-10",
            "time_at": "12:00:00",
            "datetime_to": {
                "date": "2017-11-11 12:10:00.000000",
                "timezone_type": 3,
                "timezone": "Europe/Madrid"
            },
            "time_to": "12:10:00",
            "duration": "10",
            "address": "Calle Marques de Monteagudo, 22",
            "room": "5",
            "is_reserved": 1,
            "user_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "booked_at": {
                "date": "2017-05-07 11:10:00.000000",
                "timezone_type": 3,
                "timezone": "Europe/Madrid"
            },
            "user_domain_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "user_speciality_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "user_type_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "cie10": "Dolor abdominal",
            "comments": null,
            "coverage_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "subscription_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "created_at": {
                "date": "2017-04-09 12:02:46.000000",
                "timezone_type": 3,
                "timezone": "Europe/Madrid"
            },
            "updated_at": {
                "date": "2017-06-26 21:00:02.000000",
                "timezone_type": 3,
                "timezone": "Europe/Madrid"
            },
            "type": {
                "data": {
                    "object": "Category",
                    "id": "xopxon45qlekj78m9gzy0avdbr96m37n",
                    "code": "at-video",
                    "name": "Video Consulta"
                }
            },
            "user_type": {
                "data": {
                    "object": "Category",
                    "id": "xopxon45qlekj78m9gzy0avdbr96m37n",
                    "code": "at-video",
                    "name": "Video Consulta"
                }
            },
            "user": {
                "data": {
                    "object": "User",
                    "id": "xopxon45qlekj78m9gzy0avdbr96m37n"
                }
            },
            "doctor": {
                "data": {
                    "object": "Doctor",
                    "id": "xopxon45qlekj78m9gzy0avdbr96m37n"
                }
            }
        },
        {
            "object": "Appointment",
            "id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "doctor_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "appointable_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "appointable_type": "doctor",
            "domain_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "type_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "datetime_at": {
                "date": "2017-11-11 12:00:00.000000",
                "timezone_type": 3,
                "timezone": "Europe/Madrid"
            },
            "date_at": "2017-11-10",
            "time_at": "12:00:00",
            "datetime_to": {
                "date": "2017-11-11 12:10:00.000000",
                "timezone_type": 3,
                "timezone": "Europe/Madrid"
            },
            "time_to": "12:10:00",
            "duration": "10",
            "address": "Calle Marques de Monteagudo, 22",
            "room": "5",
            "is_reserved": 1,
            "user_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "booked_at": {
                "date": "2017-05-07 11:10:00.000000",
                "timezone_type": 3,
                "timezone": "Europe/Madrid"
            },
            "user_domain_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "user_speciality_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "user_type_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
            "cie10": "Dolor abdominal",
            "comments": null,
            "coverage_id": null,
            "subscription_id": null,
            "created_at": {
                "date": "2017-04-09 12:02:46.000000",
                "timezone_type": 3,
                "timezone": "Europe/Madrid"
            },
            "updated_at": {
                "date": "2017-06-26 21:00:02.000000",
                "timezone_type": 3,
                "timezone": "Europe/Madrid"
            },
            "type": {
                "data": {
                    "object": "Category",
                    "id": "xopxon45qlekj78m9gzy0avdbr96m37n",
                    "code": "at-video",
                    "name": "Video Consulta"
                }
            },
            "user_type": {
                "data": {
                    "object": "Category",
                    "id": "xopxon45qlekj78m9gzy0avdbr96m37n",
                    "code": "at-video",
                    "name": "Video Consulta"
                }
            },
            "user": {
                "data": {
                    "object": "User",
                    "id": "xopxon45qlekj78m9gzy0avdbr96m37n"
                }
            },
            "doctor": {
                "data": {
                    "object": "Doctor",
                    "id": "xopxon45qlekj78m9gzy0avdbr96m37n"
                }
            }
        }
    ],
    "meta": {
        "pagination": {
            "total": 2,
            "count": 2,
            "per_page": 20,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}
Reservar cita
https://developers.gadaca.com/#api-Appointments-AppointmentBookPut
Reserva una cita a un usuario de la plataforma.
Los parámetros más relevantes de este endpoint son
La Respuesta es la siguiente:
HTTP/1.1 200 OK
{
   "data": {
        "object": "Appointment",
        "id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "doctor_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "appointable_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "appointable_type": "doctor",
        "domain_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "type_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "datetime_at": {
            "date": "2017-11-11 12:00:00.000000",
            "timezone_type": 3,
            "timezone": "Europe/Madrid"
        },
        "date_at": "2017-11-10",
        "time_at": "12:00:00",
        "datetime_to": {
            "date": "2017-11-11 12:10:00.000000",
            "timezone_type": 3,
            "timezone": "Europe/Madrid"
        },
        "time_to": "12:10:00",
        "duration": "10",
        "address": "Calle Marques de Monteagudo, 22",
        "room": "5",
        "is_reserved": 1,
        "user_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "booked_at": {
            "date": "2017-05-07 11:10:00.000000",
            "timezone_type": 3,
            "timezone": "Europe/Madrid"
        },
        "user_domain_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "user_speciality_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "user_type_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "cie10": "Dolor abdominal",
        "comments": null,
        "coverage_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "subscription_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "created_at": {
            "date": "2017-04-09 12:02:46.000000",
            "timezone_type": 3,
            "timezone": "Europe/Madrid"
        },
        "updated_at": {
            "date": "2017-06-26 21:00:02.000000",
            "timezone_type": 3,
            "timezone": "Europe/Madrid"
        },
        "type": {
            "data": {
                "object": "Category",
                "id": "xopxon45qlekj78m9gzy0avdbr96m37n",
                "code": "at-video",
                "name": "Video Consulta"
            }
        },
        "user_type": {
            "data": {
                "object": "Category",
                "id": "xopxon45qlekj78m9gzy0avdbr96m37n",
                "code": "at-video",
                "name": "Video Consulta"
            }
        },
        "user": {
            "data": {
                "object": "User",
                "id": "xopxon45qlekj78m9gzy0avdbr96m37n"
            }
        },
        "doctor": {
            "data": {
                "object": "Doctor",
                "id": "xopxon45qlekj78m9gzy0avdbr96m37n"
            }
        }
    }
}
Cancelar cita
https://developers.gadaca.com/#api-Appointments-AppointmentCancelPut
Cancelar una cita de un usuario de la plataforma.
No requiere ningún parámetro extra, pero como opcional se puede enviar una razón para la cancelación.
La Respuesta es la siguiente:
HTTP/1.1 200 OK
{
   "data": {
        "object": "Appointment",
        "id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "doctor_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "appointable_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "appointable_type": "doctor",
        "domain_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "type_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "datetime_at": {
            "date": "2017-11-11 12:00:00.000000",
            "timezone_type": 3,
            "timezone": "Europe/Madrid"
        },
        "date_at": "2017-11-10",
        "time_at": "12:00:00",
        "datetime_to": {
            "date": "2017-11-11 12:10:00.000000",
            "timezone_type": 3,
            "timezone": "Europe/Madrid"
        },
        "time_to": "12:10:00",
        "duration": "10",
        "address": "Calle Marques de Monteagudo, 22",
        "room": "5",
        "is_reserved": 1,
        "user_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "booked_at": {
            "date": "2017-05-07 11:10:00.000000",
            "timezone_type": 3,
            "timezone": "Europe/Madrid"
        },
        "user_domain_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "user_speciality_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "user_type_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "cie10": "Dolor abdominal",
        "comments": null,
        "coverage_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "subscription_id": "xopxon45qlekj78m9gzy0avdbr96m37n",
        "created_at": {
            "date": "2017-04-09 12:02:46.000000",
            "timezone_type": 3,
            "timezone": "Europe/Madrid"
        },
        "updated_at": {
            "date": "2017-06-26 21:00:02.000000",
            "timezone_type": 3,
            "timezone": "Europe/Madrid"
        },
        "type": {
            "data": {
                "object": "Category",
                "id": "xopxon45qlekj78m9gzy0avdbr96m37n",
                "code": "at-video",
                "name": "Video Consulta"
            }
        },
        "user_type": {
            "data": {
                "object": "Category",
                "id": "xopxon45qlekj78m9gzy0avdbr96m37n",
                "code": "at-video",
                "name": "Video Consulta"
            }
        },
        "user": {
            "data": {
                "object": "User",
                "id": "xopxon45qlekj78m9gzy0avdbr96m37n"
            }
        },
        "doctor": {
            "data": {
                "object": "Doctor",
                "id": "xopxon45qlekj78m9gzy0avdbr96m37n"
            }
        }
    }
}