Skip to main content

Contacts

Overview

This resource represents the Contacts (people responsible for managing Rentals) that can be assigned to Rentals via Rental Contacts.

Parameters

GroupNameTypeRead/WriteDescription
accountIntegerReadAccount's ID related to the Client
idIntegerReadContact's id.
emailStringReadContact's email address.
websiteStringReadContact's website url.
private_notesStringReadContact's annotations.
genderStringReadContact's gender. List of possible values described in enums section.
firstnameStringReadContact's firstname
lastnameStringReadContact's lastname
fullnameStringReadContact's fullname
address1StringReadContact's address
address2StringReadextension of Contact's address
cityStringReadContact's city
country_codeStringReadContact's country code, list of codes is available at wikipedia.
stateStringReadContact's state
zipStringReadContact's zip code
spoken_languagesArrayReadList of all available languages is described in enums section.
phonesArrayReadArray of contacts's phone numbers.
labelStringReadPhone label.
numberStringReadClient's number.
created_atTimeReadContact's create time.
updated_atTimeReadContact's update time.
canceled_atTimeReadContact's cancel time.
forget_me_atTimeReadRefer to GDPR guide
processing_restricted_atTimeReadRefer to GDPR guide

List contacts

List all contacts for a given account(s).

GET /contacts
response.json
{
"links": {
"contacts.account": "https://www.bookingsync.com/api/v3/accounts/{contacts.account}"
},
"contacts": [
{
"links": {
"account": 1
},
"id": 1,
"fullname": "FirstName1 LastName1",
"spoken_languages": [
"en",
"fr"
],
"email": "cornelia@nienow.co.uk",
"phones": [
{
"label": "phone",
"number": "+33 (0)6 123.123.123"
},
{
"label": "mobile",
"number": "+33 (0)6 123.123.123"
},
{
"label": "fax",
"number": "+33 (0)6 123.123.123"
}
],
"website": "http://example.com",
"private_notes": "Lorem",
"address1": "Nilsa Crossroad",
"address2": null,
"city": "New Margarettafurt",
"state": "Nevada",
"zip": "44147",
"country_code": "US",
"firstname": "FirstName1",
"lastname": "LastName1",
"gender": "male",
"created_at": "2021-01-22T08:40:20Z",
"updated_at": "2021-01-22T08:40:20Z",
"canceled_at": null,
"forget_me_at": null,
"processing_restricted_at": null
}
],
"meta": {
"Link": {
"first": "https://www.bookingsync.com/api/v3/contacts?page=1",
"last": "https://www.bookingsync.com/api/v3/contacts?page=1"
},
"X-Total-Pages": "1",
"X-Total-Count": "1",
"X-Per-Page": "100"
}
}

Get a single contact

Returns a single contact identified by ID.

GET /contacts/:contact_id
response.json
{
"links": {
"contacts.account": "https://www.bookingsync.com/api/v3/accounts/{contacts.account}"
},
"contacts": [
{
"links": {
"account": 1
},
"id": 1,
"fullname": "FirstName1 LastName1",
"spoken_languages": [
"en",
"fr"
],
"email": "cornelia@nienow.co.uk",
"phones": [
{
"label": "phone",
"number": "+33 (0)6 123.123.123"
},
{
"label": "mobile",
"number": "+33 (0)6 123.123.123"
},
{
"label": "fax",
"number": "+33 (0)6 123.123.123"
}
],
"website": "http://example.com",
"private_notes": "Lorem",
"address1": "Nilsa Crossroad",
"address2": null,
"city": "New Margarettafurt",
"state": "Nevada",
"zip": "44147",
"country_code": "US",
"firstname": "FirstName1",
"lastname": "LastName1",
"gender": "male",
"created_at": "2021-01-22T08:40:20Z",
"updated_at": "2021-01-22T08:40:20Z",
"canceled_at": null,
"forget_me_at": null,
"processing_restricted_at": null
}
],
"meta": {
"Link": {
"first": "https://www.bookingsync.com/api/v3/contacts?page=1",
"last": "https://www.bookingsync.com/api/v3/contacts?page=1"
},
"X-Total-Pages": "1",
"X-Total-Count": "1",
"X-Per-Page": "100"
}
}

Create a new contact

Creates a contact

POST /contacts

Update a contact

Returns an updated contact identified by ID.

PUT /contact/:contact_id

Destroy a contact

Required OAuth scope: :rentals_write

Returns empty response with 204 No Content status code on success.

DELETE /contacts/:contact_id