InvoiceItem must reference an active bookable service — a product of type Service that has a duration configured and belongs to at least one category. A request whose services are not valid bookable services is rejected with Please Enter Valid Service.Invoice.convert to 1 to immediately convert the new booking into an invoice within the same request; the response then also returns invoice_id..json extension is optional and does not change the response.curl --location --globoff 'https://.daftara.com/api2/bookings/add' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Content-Type: application/json' \
--data '{
"Invoice": {
"client_id": 2,
"date": "15/07/2026",
"start_time": "10:00"
},
"InvoiceItem": [
{
"product_id": 13
}
]
}'{
"code": 200,
"message": "The Booking has been saved",
"id": "456",
"appointment_id": "4",
"invoice_id": "461"
}