Create a listing
Changed onCreate a listing on your account. The address you supply is geocoded to resolve its coordinates. A new listing is unlisted until you publish it, and check-in and check-out default to 15:00 and 11:00 when defaultCheckInTime and defaultCheckOutTime are omitted.
Request
- Base URLhttps://open-api.guesty.com/v1
- URLhttps://open-api.guesty.com/v1/listings
- AuthAPI key in header authorization
Request body
Example request
{
"address": {
"full": "Kaplan St 2, Ramat Gan, Israel",
"lng": 34.8202173,
"lat": 32.0695525
},
"title": "Example listing title",
"origin": "company_name",
"originId": "67890234",
"prices": {
"guestsIncludedInRegularFee": 6,
"extraPersonFee": 55.5,
"monthlyPriceFactor": 0.9,
"weeklyPriceFactor": 0.9,
"weekendBasePrice": 150,
"securityDepositFee": 100,
"cleaningFee": 50
},
"terms": {
"minNights": 1,
"maxNights": 30,
"cancellation": "STANDARD"
},
"pictures": [
{
"thumbnail": "https://res.cloudinary.com/guesty/image/upload/c_fit,h_200/v1659982852/staging6/5213a2d206112710005d96ff/gglflnes8vodgkmtm08c.jpg",
"large": "https://res.cloudinary.com/guesty/image/upload/c_fit,w_756/v1659982852/staging6/5213a2d206112710005d96ff/gglflnes8vodgkmtm08c.jpg",
"caption": "Living room",
"height": 756,
"original": "https://res.cloudinary.com/guesty/image/upload/v1659982852/staging6/5213a2d206112710005d96ff/gglflnes8vodgkmtm08c.jpg",
"size": 39516,
"width": 756
}
],
"pms": {
"cleaningStatus": {
"updatedAt": "2019-08-24T14:15:22Z"
}
},
"mtl": {
"aas": "bc",
"aao": "f",
"bc": 3
}
}Response
Listing
Example response
{
"_id": "59ac245d27cb310f0017afe3",
"accountId": "59ac245d27cb310f0017afe3",
"createdAt": "2017-09-03T15:48:45.070Z",
"integrations": [
{
"_id": "5958c7e5884e961000817799",
"airbnb2": {
"ignored": {
"reservations": [],
"listings": []
},
"emailsFromSupport": []
},
"nickname": "naama",
"id": "naama@user.guesty.com",
"userId": "563e0b6a08a2710e00057b85",
"accountId": "563e0b6a08a2710e00057b82"
}
],
"address": {
"full": "Kaplan St 2, Ramat Gan, Israel",
"lng": 34.8202173,
"lat": 32.0695525
},
"publishedAddress": {
"full": "Kaplan St 2, Ramat Gan, Israel",
"lng": 34.8202173,
"lat": 32.0695525
},
"cleaningStatus": {
"updatedAt": "2019-08-24T14:15:22Z"
},
"picture": {
"thumbnail": "https://res.cloudinary.com/guesty/image/upload/c_fit,h_200/v1659982852/staging6/5213a2d206112710005d96ff/gglflnes8vodgkmtm08c.jpg",
"large": "https://res.cloudinary.com/guesty/image/upload/c_fit,w_756/v1659982852/staging6/5213a2d206112710005d96ff/gglflnes8vodgkmtm08c.jpg",
"caption": "Living room",
"height": 756,
"original": "https://res.cloudinary.com/guesty/image/upload/v1659982852/staging6/5213a2d206112710005d96ff/gglflnes8vodgkmtm08c.jpg",
"size": 39516,
"width": 756
},
"pictures": [
{
"thumbnail": "https://res.cloudinary.com/guesty/image/upload/c_fit,h_200/v1659982852/staging6/5213a2d206112710005d96ff/gglflnes8vodgkmtm08c.jpg",
"large": "https://res.cloudinary.com/guesty/image/upload/c_fit,w_756/v1659982852/staging6/5213a2d206112710005d96ff/gglflnes8vodgkmtm08c.jpg",
"caption": "Living room",
"height": 756,
"original": "https://res.cloudinary.com/guesty/image/upload/v1659982852/staging6/5213a2d206112710005d96ff/gglflnes8vodgkmtm08c.jpg",
"size": 39516,
"width": 756
}
],
"terms": {
"minNights": 1,
"maxNights": 30,
"cancellation": "STANDARD"
},
"prices": {
"guestsIncludedInRegularFee": 6,
"extraPersonFee": 55.5,
"monthlyPriceFactor": 0.9,
"weeklyPriceFactor": 0.9,
"weekendBasePrice": 150,
"securityDepositFee": 100,
"cleaningFee": 50
},
"pms": {
"cleaningStatus": {
"updatedAt": "2019-08-24T14:15:22Z"
}
}
}Changes
- breaking
added
subschema #1to therequest propertyallOflist - breaking
added
subschema #1to therequest propertyallOflist - breaking
added
subschema #1to therequest propertyallOflist - breaking
added
subschema #1to therequest propertyallOflist - breaking
added
subschema #1to therequest propertyallOflist - breaking
removed
subschema #1subschema #2from the/request propertyoneOflist - breaking
added the pattern
^([01]\d|2[0-3]):([0-5]\d)$to the request property - breaking
added the pattern
^([01]\d|2[0-3]):([0-5]\d)$to the request property - breaking
the
request property format changed from no format toint32 - breaking
the
request property type changed fromobjectto no type - breaking
the
request property format changed from no format tofloat - breaking
the
request property format changed from no format toint32 - breaking
the
request property type changed fromobjectto no type - breaking
the
request property format changed from no format toint32 - breaking
the
//request property format changed from no format toint32 - breaking
the
//request property format changed from no format touri - breaking
the
//request property format changed from no format touri - breaking
the
//request property format changed from no format toint32 - breaking
the
//request property format changed from no format touri - breaking
the
//request property format changed from no format toint32 - breaking
the
request property type changed fromobjectto no type - breaking
the
request property type changed fromobjectto no type - breaking
the
request property type changed fromobjectto no type - breaking
the
//response's property type changed fromintegertostringfor status - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - info
api operation id
propertiesListingCreatewas added - info
added
subschema #1subschema #2to the/request propertyoneOflist - info
added the optional property
to the response with the status - info
the
/response's property pattern^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$was added for the status
- breaking