Appointments
How to list, create, update and cancel appointments
List appointments
GET
https://api.daslab.app/locations/:id/appointments
Path Parameters
Name | Type | Description |
---|---|---|
id | string | ID of your location |
Query Parameters
Name | Type | Description |
---|---|---|
date | string | 15/04/2021 |
offset | string | These come 20 at a time, so use the offset to get several pages |
Headers
Name | Type | Description |
---|---|---|
x-api-key | string | Authentication token |
Create an appointment
POST
https://api.daslab.app/appointments
Attention: An appointment will get cancelled after 15 minutes if not paid for. You must create a transaction and add patients before you can add a sample.
Headers
Name | Type | Description |
---|---|---|
x-api-key | string |
Request Body
Name | Type | Description |
---|---|---|
newUser.phoneNumber | string | Required if not for your own user |
newUser.email | string | Required if not for your own user |
productId | number | Id of product appointment is for |
people | number | Number of customers eg: 1, min: 1 max: 6 |
locationId | number | Location id of sampling station |
datetime | string | Javascript date of slot eg "2021-07-06T09:00:00.000Z" |
Get an appointments
GET
https://api.daslab.app/appointments/:id
Path Parameters
Name | Type | Description |
---|---|---|
id | string |
Headers
Name | Type | Description |
---|---|---|
x-api-key | string |
Reschedule an appointment
PUT
https://api.daslab.app/appointments/:id
Path Parameters
Name | Type | Description |
---|---|---|
id | string |
Headers
Name | Type | Description |
---|---|---|
x-api-key | string |
Cancel an appointment
DELETE
https://api.daslab.app/appointments/:id
Path Parameters
Name | Type | Description |
---|---|---|
id | string |
Headers
Name | Type | Description |
---|---|---|
x-api-key | string |
Last updated