system
August 13, 2021, 7:15pm
1
Migrated from Redmine #759 | Author: Alex Filippov
Status: Feedback | Priority: Normal | Created: 2021-08-13
Hello, when i creating a booking via API it become visible in dashboard but i do not receive any notification via email. Can you please help to figure out how to make it work?
system
August 16, 2021, 7:42am
2
Dmytro Bondarev wrote:
Please provide full http request and response.
system
August 16, 2021, 8:24am
3
Alex Filippov wrote:
Here you are, can this happen due payment required field set to true?
Request:
{
“jsonrpc”: “2.0”,
“method”: “book”,
“params”: [
“5”,
“1”,
“2021-08-16”,
“17:15:00”,
{
“name”: “ALEKSEI FILIPPOV”,
“email”: “alex.filippov@gmail.com ”,
“phone”: “89218656877”
},
{},
1
],
“id”: 13
}
Response:
{
“result”:{
“require_confirm”:true,
“bookings”:[
{
“id”:“100”,
“event_id”:“5”,
“unit_id”:“1”,
“client_id”:“62”,
“client_hash”:“3f8be18dbe649a7f10bc5445d4e3e18a”,
“start_date_time”:“2021-08-16 17:15:00”,
“end_date_time”:“2021-08-16 17:30:00”,
“time_offset”:“0”,
“is_confirmed”:“1”,
“require_payment”:true,
“code”:“05t2r6px”,
“hash”:“a2c4b30bea1d1e87892bd8b553022e81”
}
],
“invoice”:null
},
“id”:“13”,
“jsonrpc”:“2.0”
}
system
August 16, 2021, 9:00am
4
Dmytro Bondarev wrote:
Hi! It seems you are using Accept payments.
You need to pass @“handle_invoice”: true@ and then accept payment via admin api.