Gives you a list of all forms populated for the client
/clients/{contact_id}/medical-forms
https://api.oauth.pabau.com/{api_key}/clients/{contact_id}/medical-forms
Request
Query Parameters: | |
api_key * | |
contact_id * | System ID of the client |
per_page | (int) If not sent, the default is 20. Maximum 50 |
page | (int) If not sent, the first 20 result will be sent |
order | ASC or DESC. Default DESC |
Response Samples
application/json
{
"token": "{token}",
"expiration": "2024-05-01T06:46:40.939Z",
"tenant": "{tenant}",
"catalog": {
},
"per_page": 2,
"total": 25,
"success": true,
"medical_forms": [
{
"id": {form_contact_id},
"created_at": "2024-02-21 07:03:36",
"updated_at": "2024-03-20 07:03:36",
"created_by": {user_id},
"related_to_booking_id": {booking_id},
"form": {
"id": {form_id},
"name": {form_name}
},
"questions": [
{
"question": "question1",
"answer": "answer1"
},
{
"question": "question2",
"answer": "answer2"
},
{
"question": "question3",
"answer": "answer3"
}
]
},
{
"id": {form_contact_id},
"created_at": "2024-02-21 07:32:05",
"updated_at": null,
"created_by": {user_id},
"related_to_booking_id": {booking_id},
"form": {
"id": {form_id},
"name": {form_name}
},
"questions": [
{
"question": "question1",
"answer": "answer1"
},
{
"question": "question2",
"answer": "answer2"
}
]
}
]
}
Responses
200 Successful operation