Skip to main content

New appointment

POST{{server}}/api/v1/appointment/booking

This request books an appointment.

Request

  • branch (string, required): Branch key

  • language (string, required): Selected language key

  • service (string, required): Selected service key

  • start (number, required): The start time of the slot.

  • client.name (string, required): The name of the client.

  • client.email (string): The email of the client.

  • client.phone (string): The phone number of the client.

  • clerk (string): Selected clerk key in case of clerk selection

Response

  • start (number): The start time of the appointment.

  • language (string): Selected language key.

  • branch (string): Branch key.

  • service (string): Selected service key.

  • client.name (string): The name of the client.

  • client.email (string): The email of the client.

  • client.phone (string): The phone number of the client.

  • bookingCode (string): The unique code for the booking.

  • verified (boolean): Indicates whether the booking is verified. If it false, it should be confirmed. The server sent the confirmation message to the client.

  • length (number): The duration of the appointment.

Request​

Authorization​

HeaderValue
AuthorizationSmartToken {{smartToken}}

Headers​

KeyValue
Acceptapplication/json

Body (json)​

{
"branch": "{{branch}}",
"language": "00000000-0000-4000-0004-000000000001",
"service": "00000000-0000-4000-0007-000000000005",
"start": 1745850600000,
"client": {
"name": "John Node",
"email": "[email protected]",
"phone": "+36458754123"
}
}

Code snippets​

curl -X POST '{{server}}/api/v1/appointment/booking' \
-H 'Accept: application/json' \
-H 'Authorization: SmartToken {{smartToken}}' \
-H 'Content-Type: application/json' \
-d '{
"branch": "{{branch}}",
"language": "00000000-0000-4000-0004-000000000001",
"service": "00000000-0000-4000-0007-000000000005",
"start": 1745850600000,
"client": {
"name": "John Node",
"email": "[email protected]",
"phone": "+36458754123"
}
}'

Example​

Example request
POST{{server}}/api/v1/appointment/booking
Headers (1)
KeyValue
Acceptapplication/json
Body
{
"branch": "{{branch}}",
"language": "00000000-0000-4000-0004-000000000001",
"service": "00000000-0000-4000-0007-000000000005",
"start": 1745850600000,
"client": {
"name": "John Node",
"email": "[email protected]",
"phone": "+36458754123"
}
}
Example response 200 Ok
Response headers (9)
KeyValue
Access-Control-Expose-Headers*
Cache-Controlno-store, no-cache, must-revalidate
Access-Control-Allow-Origin*
Access-Control-Allow-MethodsPOST, PUT, GET, OPTIONS, DELETE
Access-Control-Allow-Credentialstrue
Content-Length327
Access-Control-Max-Age86400
Access-Control-Allow-HeadersContent-Type, Authorization, X-Requested-With
Content-Typeapplication/json;charset=utf-8
Body
{
"start": 1745850600000,
"language": "00000000-0000-4000-0004-000000000001",
"branch": "00000000-0000-4000-0003-000000000001",
"service": "00000000-0000-4000-0007-000000000005",
"client": {
"name": "John Node",
"email": "[email protected]",
"phone": "+36458754123"
},
"bookingCode": "918369",
"verified": false,
"length": 15,
"time": 1745842813085
}