booking/form

This call can easily be cached if your configuration does not often change, but depending on your setup, a number of the fields returned in this request may be required to complete a booking.

You will receive an error indicating missing information if you attempt to call booking/create without the required fields, either those required by staff if you’re acting on behalf of a staff member, or by a customer otherwise.

GET /api/3.0/booking/form

Retrieve the customer details input form for the booking. Some fields may be required to call booking/create.

Response JSON Object:
 
  • booking_form_ui – An array of form field definitions
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
{
    "version": "3.0",
    "account_id": 1,
    "host_id": "your-company.checkfront.com",
    "name": "Your Company",
    "locale": {
        "id": "en_US",
        "lang": "en",
        "currency": "CAD"
    },
     "request": {
        "status": ""
    },
    "booking_form_ui": {
        "msg": [],
        "errors": 0,
        "mode": "html",
        "_cnf": [],
        "customer_name": {
            "value": "",
            "define": {
                "required": 1,
                "layout": {
                    "staff": {
                        "invoice": 1,
                        "form": 1,
                        "required": 1
                    },
                    "customer": {
                        "invoice": 1,
                        "form": 1,
                        "required": 1
                    },
                    "sys": 0,
                    "lbl": "Name",
                    "type": "text"
                }
            }
        },
        "booking_policy":{
            "body":"This is your <strong style='color: firebrick'>sample booking policy<\/strong>.  It's included in customer e-mails, your booking receipt page and in PDF print outs.\n\nYou can edit this policy by logging into your Checkfront account, and navigating to Manage \/ Layout \/ Invoice.",
            "fields":{
                "customer_tos_agree":{
                    "value":0,
                    "define":{
                        "required":1,
                        "layout":{
                            "staff":{
                                "invoice":1,
                                "form":1,
                                "required":0
                            },
                            "customer":{
                                "invoice":1,
                                "form":1,
                                "required":1
                            },
                            "lbl":"I have read and agreed to the Terms of Service",
                            "type":"checkbox"
                        }
                    }
                }
            }
        },
        "customer_email": {
            "value": "",
            "define": {
                "mask": "email",
                "layout": {
                    "staff": {
                        "invoice": 1,
                        "form": 1,
                        "required": 0
                    },
                    "customer": {
                        "invoice": 1,
                        "form": 1,
                        "required": 1
                    },
                    "sys": 0,
                    "lbl": "E-mail",
                    "type": "text"
                },
                "required": 0
            }
        },
        "customer_phone": {
            "value": "",
            "define": {
                "mask": "simple",
                "layout": {
                    "staff": {
                        "invoice": 1,
                        "form": 1,
                        "required": 0
                    },
                    "customer": {
                        "invoice": 1,
                        "form": 1,
                        "required": 0
                    },
                    "sys": 0,
                    "lbl": "Phone",
                    "type": "text",
                    "customer_address": true
                },
                "required": 0
            }
        },
        "customer_address": {
            "value": "",
            "define": {
                "layout": {
                    "staff": {
                        "invoice": 1,
                        "form": 1,
                        "required": 0
                    },
                    "customer": {
                        "invoice": 1,
                        "form": 1,
                        "required": 0
                    },
                    "sys": 0,
                    "lbl": "Address",
                    "type": "text",
                    "customer_address": true
                },
                "required": 0
            }
        },
        "customer_city": {
            "value": "",
            "define": {
                "layout": {
                    "staff": {
                        "invoice": 1,
                        "form": 1,
                        "required": 0
                    },
                    "customer": {
                        "invoice": 1,
                        "form": 1,
                        "required": 0
                    },
                    "sys": 0,
                    "lbl": "City",
                    "type": "text",
                    "customer_address": true
                },
                "required": 0
            }
        },
        "customer_country": {
            "value": "CA",
            "define": {
                "layout": {
                    "staff": {
                        "invoice": 1,
                        "form": 1,
                        "required": 0
                    },
                    "customer": {
                        "invoice": 1,
                        "form": 1,
                        "required": 0
                    },
                    "sys": 0,
                    "lbl": "Country",
                    "type": "select",
                    "customer_address": true,
                    "options": {
                        "AF": "Afghanistan",
                        "AL": "Albania",
                        "DZ": "Algeria",
                        "AS": "American Samoa",
                        "AD": "Andorra",
                        "AO": "Angola",
                        "AG": "Antigua And Barbuda",
                        "AR": "Argentina",
                        "AM": "Armenia",
                        "AU": "Australia",
                        "AT": "Austria",
                        "AZ": "Azerbaijan",
                        "BS": "Bahamas",
                        "BH": "Bahrain",
                        "BD": "Bangladesh",
                        "BB": "Barbados",
                        "BY": "Belarus",
                        "BE": "Belgium",
                        "BZ": "Belize",
                        "BJ": "Benin",
                        "BM": "Bermuda",
                        "BT": "Bhutan",
                        "BO": "Bolivia",
                        "BA": "Bosnia And Herzegovina",
                        "BW": "Botswana",
                        "BR": "Brazil",
                        "BN": "Brunei Darussalam",
                        "BG": "Bulgaria",
                        "BF": "Burkina Faso",
                        "BI": "Burundi",
                        "KH": "Cambodia",
                        "CM": "Cameroon",
                        "CA": "Canada",
                        "CV": "Cape Verde",
                        "KY": "Cayman Islands",
                        "CF": "Central African Republic",
                        "TD": "Chad",
                        "CL": "Chile",
                        "CN": "China",
                        "CO": "Colombia",
                        "KM": "Comoros",
                        "CD": "Congo (DC)",
                        "CG": "Congo (R)",
                        "CK": "Cook Islands",
                        "CR": "Costa Rica",
                        "HR": "Croatia",
                        "CU": "Cuba",
                        "CY": "Cyprus",
                        "CZ": "Czech Republic",
                        "DK": "Denmark",
                        "DJ": "Djibouti",
                        "DM": "Dominica",
                        "DO": "Dominican Republic",
                        "TP": "East Timor",
                        "EC": "Ecuador",
                        "EG": "Egypt",
                        "SV": "El Salvador",
                        "GQ": "Equatorial Guinea",
                        "ER": "Eritrea",
                        "EE": "Estonia",
                        "ET": "Ethiopia",
                        "FK": "Falkland Islands",
                        "FO": "Faroe Islands",
                        "FJ": "Fiji",
                        "FI": "Finland",
                        "FR": "France",
                        "PF": "French Polynesia",
                        "GA": "Gabon",
                        "GM": "Gambia",
                        "GE": "Georgia",
                        "DE": "Germany",
                        "GH": "Ghana",
                        "GI": "Gibraltar",
                        "GR": "Greece",
                        "GL": "Greenland",
                        "GD": "Grenada",
                        "GP": "Guadeloupe",
                        "GU": "Guam",
                        "GT": "Guatemala",
                        "GN": "Guinea",
                        "GW": "Guinea-bissau",
                        "HT": "Haiti",
                        "VA": "Holy See",
                        "HN": "Honduras",
                        "HK": "Hong Kong",
                        "HU": "Hungary",
                        "IS": "Iceland",
                        "IN": "India",
                        "ID": "Indonesia",
                        "IR": "Iran",
                        "IQ": "Iraq",
                        "IE": "Ireland",
                        "IL": "Israel",
                        "IT": "Italy",
                        "CI": "Ivory coast",
                        "JM": "Jamaica",
                        "JP": "Japan",
                        "JO": "Jordan",
                        "KZ": "Kazakhstan",
                        "KE": "Kenya",
                        "KI": "Kiribati",
                        "KW": "Kuwait",
                        "KG": "Kyrgyzstan",
                        "LA": "Laos",
                        "LV": "Latvia",
                        "LB": "Lebanon",
                        "LS": "Lesotho",
                        "LR": "Liberia",
                        "LI": "Liechtenstein",
                        "LT": "Lithuania",
                        "LU": "Luxembourg",
                        "LY": "Lybia",
                        "MO": "Macao",
                        "MK": "Macedonia",
                        "MG": "Madagascar",
                        "MW": "Malawi",
                        "MY": "Malaysia",
                        "MV": "Maldives",
                        "ML": "Mali",
                        "MT": "Malta",
                        "MQ": "Martinique",
                        "MR": "Mauritania",
                        "MU": "Mauritius",
                        "MX": "Mexico",
                        "MD": "Moldova",
                        "MC": "Monaco",
                        "MN": "Mongolia",
                        "MS": "Montserrat",
                        "MA": "Morocco",
                        "MZ": "Mozambique",
                        "MM": "Myanmar",
                        "NA": "Namibia",
                        "NR": "Nauru",
                        "NP": "Nepal",
                        "NL": "Netherlands",
                        "AN": "Netherlands Antilles",
                        "NC": "New Caledonia",
                        "NZ": "New Zealand",
                        "NI": "Nicaragua",
                        "NE": "Niger",
                        "NG": "Nigeria",
                        "KP": "North Korea",
                        "MP": "Northern Mariana Islands",
                        "NO": "Norway",
                        "OM": "Oman",
                        "PK": "Pakistan",
                        "PW": "Palau",
                        "PS": "Palestine",
                        "PA": "Panama",
                        "PG": "Papua New Guinea",
                        "PY": "Paraguay",
                        "PE": "Peru",
                        "PH": "Philippines",
                        "PL": "Poland",
                        "PT": "Portugal",
                        "PR": "Puerto Rico",
                        "QA": "Qatar",
                        "RE": "Reunion",
                        "RO": "Romania",
                        "RU": "Russian Federation",
                        "RW": "Rwanda",
                        "SPM": "Saint-Pierre et Miquelon",
                        "WS": "Samoa",
                        "SM": "San Marino",
                        "ST": "Sao Tome And Principe",
                        "SA": "Saudi Arabia",
                        "SN": "Senegal",
                        "YU": "Serbia and Montenegro",
                        "SC": "Seychelles",
                        "SL": "Sierra Leone",
                        "SG": "Singapore",
                        "SK": "Slovakia",
                        "SI": "Slovenia",
                        "SB": "Solomon Islands",
                        "SO": "Somalia",
                        "ZA": "South Africa",
                        "KR": "South Korea",
                        "ES": "Spain",
                        "LK": "Sri Lanka",
                        "VC": "St Vincent And The Grenadines",
                        "SD": "Sudan",
                        "SR": "Suriname",
                        "SZ": "Swaziland",
                        "SE": "Sweden",
                        "CH": "Switzerland",
                        "SY": "Syria",
                        "TW": "Taiwan",
                        "TJ": "Tajikistan",
                        "TZ": "Tanzania",
                        "TH": "Thailand",
                        "TG": "Togo",
                        "TO": "Tonga",
                        "TT": "Trinidad And Tobago",
                        "TN": "Tunisia",
                        "TR": "Turkey",
                        "TM": "Turkmenistan",
                        "TV": "Tuvalu",
                        "UG": "Uganda",
                        "UA": "Ukraine",
                        "AE": "United Arab Emirates",
                        "GB": "United Kingdom",
                        "US": "United States",
                        "UY": "Uruguay",
                        "UZ": "Uzbekistan",
                        "VU": "Vanuatu",
                        "VE": "Venezuela",
                        "VN": "Vietnam",
                        "VG": "Virgin Islands, British",
                        "VI": "Virgin Islands, U.S.",
                        "YE": "Yemen",
                        "ZM": "Zambia",
                        "ZW": "Zimbabwe"
                    }
                },
                "required": 0
            }
        },
        "customer_region": {
            "value": "BC",
            "define": {
                "layout": {
                    "staff": {
                        "invoice": 1,
                        "form": 1,
                        "required": 0
                    },
                    "customer": {
                        "invoice": 1,
                        "form": 1,
                        "required": 0
                    },
                    "sys": 0,
                    "lbl": "Province",
                    "type": "select",
                    "customer_address": true,
                    "options": {
                        "AB": "Alberta",
                        "BC": "British Columbia",
                        "MB": "Manitoba",
                        "NB": "New Brunswick",
                        "NF": "Newfoundland",
                        "NWT": "Northwest Territories",
                        "NS": "Nova Scotia",
                        "NU": "Nunavut",
                        "ON": "Ontario",
                        "PE": "Prince-Edward Island",
                        "QC": "Quebec",
                        "SK": "Saskatchewan",
                        "YK": "Yukon"
                    }
                },
                "required": 0
            }
        },
        "customer_postal_zip": {
            "value": "",
            "define": {
                "mask": "simple",
                "layout": {
                    "staff": {
                        "invoice": 1,
                        "form": 1,
                        "required": 0
                    },
                    "customer": {
                        "invoice": 1,
                        "form": 1,
                        "required": 0
                    },
                    "sys": 0,
                    "lbl": "Postal code",
                    "type": "text",
                    "customer_address": true
                },
                "required": 0
            }
        },
        "note": {
            "value": "",
            "define": {
                "layout": {
                    "staff": {
                        "invoice": 0,
                        "form": 1,
                        "required": 0
                    },
                    "customer": {
                        "invoice": 0,
                        "form": 1,
                        "required": 0
                    },
                    "sys": 1,
                    "lbl": "Note",
                    "type": "textarea"
                },
                "required": 0
            }
        }
    }
}