Pular para o conteúdo principal
POST
/
api
/
v1
/
scheduling
/
{business_id}
/
bookings
Create a booking
curl --request POST \
  --url https://api.izap.ai/api/v1/scheduling/{business_id}/bookings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "establishment_id": "<string>",
  "customer_id": "<string>",
  "service_id": "<string>",
  "start_time": "2023-11-07T05:31:56Z",
  "duration": 123,
  "value": 123,
  "resource_type": "<string>"
}
'
{
  "id": "501",
  "establishment_id": "12",
  "provider_id": "7",
  "customer_id": "9001",
  "service_id": "42",
  "start_time": "2026-07-10 14:00:00",
  "end_time": "2026-07-10 14:30:00",
  "duration": 30,
  "value": 60,
  "status": "confirmed"
}

Autorizações

Authorization
string
header
obrigatório

JWT access token obtained from POST /api/v1/auth/jwt/login, the OAuth token endpoint, or a business-scoped API token. Some Business/Chat/Template/Scheduling endpoints alternatively accept HTTP Basic credentials scoped to the business slug.

Parâmetros de caminho

business_id
string<uuid>
obrigatório

Corpo

application/json
establishment_id
string
obrigatório
customer_id
string
obrigatório
service_id
string
obrigatório
start_time
string<date-time>
obrigatório
duration
integer
obrigatório

Minutes.

value
number
obrigatório
resource_type
string | null

Resposta

Booking created.

id
string
establishment_id
string | null
provider_id
string | null
customer_id
string | null
service_id
string | null
start_time
string
end_time
string | null
duration
integer
value
number
status
string | null