Pornește vizionările la apartamente
curl --request POST \
--url https://staging.housera.ro/api/v1/projects/{project}/flat-viewings \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.housera.ro/api/v1/projects/{project}/flat-viewings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://staging.housera.ro/api/v1/projects/{project}/flat-viewings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://staging.housera.ro/api/v1/projects/{project}/flat-viewings"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"data": {
"code": "<string>",
"title": "<string>",
"url": "<string>",
"status": "draft",
"stage": "launch",
"address": "<string>",
"delivery": {
"quarter": 123,
"year": 123
},
"price_from": {
"amount": 123,
"currency": "<string>"
},
"partners": {
"active": 123,
"pending": 123
},
"requests": {
"total": 123,
"unassigned": 123
},
"manages": true,
"sales_office": {
"address": "<string>",
"phone": "<string>",
"email": "<string>",
"opening_hours": {}
},
"team": [
{
"name": "<string>",
"email": "<string>",
"role": "<string>",
"all_projects": true
}
],
"viewings": {
"offer": {
"places": [
{
"place": "<string>",
"rooms": 123
}
],
"open_house": true,
"site_visit": true,
"flat_viewings": true,
"needs_start": true
},
"flat_viewings_started_at": "<string>",
"consultants": [
{
"name": "<string>",
"email": "<string>",
"role": "<string>"
}
],
"next_viewing": "<string>",
"next_open_house": "<string>"
},
"developer": {
"name": "<string>",
"country": "<string>",
"tax_id": "<string>",
"verified": true,
"url": "<string>"
},
"mandate": {
"status": "<string>",
"decided_via": "<string>",
"valid_until": "<string>",
"renewal_pending": true
},
"units": {
"available": 123,
"reserved": 123,
"sold": 123
}
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"detail": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}Proiecte
Pornește vizionările la apartamente
Pentru un proiect Finalizat, pornește vizionările la apartamente, ca butonul „Pornește vizionările” din portal: apartamentele primesc ore din programul lor, iar clienții aleg un apartament de văzut. Doar titularul, un administrator sau managerul proiectului; pentru oricine altcineva proiectul nu există (404). Apăsat din nou nu schimbă nimic. Un proiect care nu e Finalizat primește 422 stage_not_finished.
POST
/
projects
/
{project}
/
flat-viewings
Pornește vizionările la apartamente
curl --request POST \
--url https://staging.housera.ro/api/v1/projects/{project}/flat-viewings \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.housera.ro/api/v1/projects/{project}/flat-viewings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://staging.housera.ro/api/v1/projects/{project}/flat-viewings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://staging.housera.ro/api/v1/projects/{project}/flat-viewings"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"data": {
"code": "<string>",
"title": "<string>",
"url": "<string>",
"status": "draft",
"stage": "launch",
"address": "<string>",
"delivery": {
"quarter": 123,
"year": 123
},
"price_from": {
"amount": 123,
"currency": "<string>"
},
"partners": {
"active": 123,
"pending": 123
},
"requests": {
"total": 123,
"unassigned": 123
},
"manages": true,
"sales_office": {
"address": "<string>",
"phone": "<string>",
"email": "<string>",
"opening_hours": {}
},
"team": [
{
"name": "<string>",
"email": "<string>",
"role": "<string>",
"all_projects": true
}
],
"viewings": {
"offer": {
"places": [
{
"place": "<string>",
"rooms": 123
}
],
"open_house": true,
"site_visit": true,
"flat_viewings": true,
"needs_start": true
},
"flat_viewings_started_at": "<string>",
"consultants": [
{
"name": "<string>",
"email": "<string>",
"role": "<string>"
}
],
"next_viewing": "<string>",
"next_open_house": "<string>"
},
"developer": {
"name": "<string>",
"country": "<string>",
"tax_id": "<string>",
"verified": true,
"url": "<string>"
},
"mandate": {
"status": "<string>",
"decided_via": "<string>",
"valid_until": "<string>",
"renewal_pending": true
},
"units": {
"available": 123,
"reserved": 123,
"sold": 123
}
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"detail": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}Parametri cale
Parametri interogare
Limba răspunsului, ro sau en. Schimbă mesajele erorilor (title, detail), etichetele și, când anunțul are o traducere aprobată în limba cerută, titlul și descrierea lui. Codurile sunt aceleași în orice limbă. Are întâietate față de Accept-Language și de limba contului.
Opțiuni disponibile:
ro, en