David Saenz wrote:
Redmine Admin wrote:
yes, it should be ‘59953ee728fc870866f831637b795eef’:‘12345678B’ for additional fields
Well, I keep saying that the ‘document’ field is mandatory.
This is the request.
General
Request URL: https://user-api.simplybook.me/
Request Method: POST
Status Code: 200
Remote Address: 158.69.26.11:443
Referrer Policy: no-referrer-when-downgrade
Response header
access-control-allow-headers: content-type, x-company-login, x-application-token, x-user-token, x-token, x-requested-with
access-control-allow-methods: POST, GET, OPTIONS
access-control-allow-origin: *
content-length: 120
content-type: application/json; charset=UTF-8
date: Mon, 22 Oct 2018 15:17:51 GMT
server: nginx
status: 200
x-xss-protection: 1; mode=block
Provisional headers are shown
Request header
Accept: application/json, text/javascript, /; q=0.01
Content-Type: application/json
Origin: http://dev.etronroom:3000
Referer: http://dev.etronroom:3000/booking?treatment=Sr&name=David&surname=Saenz&phone=654654654&document=38138131B&email=david%40herokidstudio.es&companions=2
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
X-Company-Login: audietrontest
X-Token: f3d265a8ea362de72041bdcd764f91b236db8922d76c67343ff025fea5c33edd
Request payload
{jsonrpc: “2.0”, method: “book”, params: [1, 1, “2018-10-23”, “10:00:00”,…], id: 4}
id: 4
jsonrpc: “2.0”
method: “book”
params: [1, 1, “2018-10-23”, “10:00:00”,…]
0: 1
1: 1
2: “2018-10-23”
3: “10:00:00”
4: {name: “Sr Lorem ipsum”, email: “lorem@ipsum.com”, phone: “654654654”, require_confirm: true,…}
59953ee728fc870866f831637b795eef: “12345678B”
email: “david@herokidstudio.es”
name: “Sr David Saenz”
phone: “654654654”
require_confirm: true