Appointments
How to list, create, update and cancel appointments
List appointments
GET
https://api.daslab.app/locations/:id/appointments
Path Parameters
id
string
ID of your location
Query Parameters
date
string
15/04/2021
offset
string
These come 20 at a time, so use the offset to get several pages
Headers
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
x-api-key
string
Request Body
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
id
string
Headers
x-api-key
string
Reschedule an appointment
PUT
https://api.daslab.app/appointments/:id
Path Parameters
id
string
Headers
x-api-key
string
Cancel an appointment
DELETE
https://api.daslab.app/appointments/:id
Path Parameters
id
string
Headers
x-api-key
string
Last updated