curl --request POST \
--url https://api.avest.fr/v1/external-integration/acquisition/{acquisitionId}/qualify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"activityId": "618a35a36d932054e195ca0a"
}
'import requests
url = "https://api.avest.fr/v1/external-integration/acquisition/{acquisitionId}/qualify"
payload = { "activityId": "618a35a36d932054e195ca0a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({activityId: '618a35a36d932054e195ca0a'})
};
fetch('https://api.avest.fr/v1/external-integration/acquisition/{acquisitionId}/qualify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.avest.fr/v1/external-integration/acquisition/{acquisitionId}/qualify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'activityId' => '618a35a36d932054e195ca0a'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.avest.fr/v1/external-integration/acquisition/{acquisitionId}/qualify"
payload := strings.NewReader("{\n \"activityId\": \"618a35a36d932054e195ca0a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.avest.fr/v1/external-integration/acquisition/{acquisitionId}/qualify")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"activityId\": \"618a35a36d932054e195ca0a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.avest.fr/v1/external-integration/acquisition/{acquisitionId}/qualify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"activityId\": \"618a35a36d932054e195ca0a\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"acquisition": {
"id": "618a35a36d932054e195ca0a",
"customId": "<string>",
"agency": "618a35a36d932054e195ca0a",
"agencyGroup": "618a35a36d932054e195ca0a",
"step": "AQUL",
"createdAt": "<string>",
"updatedAt": "<string>",
"stepUpdatedAt": "<string>",
"owner": {
"id": "618a35a36d932054e195ca0a",
"firstName": "<string>",
"lastName": "<string>",
"picture": "<string>"
},
"mainContact": "618a35a36d932054e195ca0a",
"project": "<string>",
"activityLevel": "hot",
"propertiesTypes": [
"<string>"
],
"areas": [
{
"type": "postalCode",
"postalCode": "<string>",
"inseeCode": "<string>",
"countryCode": "<string>",
"addresses": [
{}
],
"geometry": {},
"center": {},
"radius": 123
}
],
"priceRange": {
"low": 123,
"high": 123
},
"sizeRange": {
"low": 123,
"high": 123
},
"roomRange": {
"low": 123,
"high": 123
},
"bedroomRange": {
"low": 123,
"high": 123
},
"floorRange": {
"low": 123,
"high": 123
},
"fieldRange": {
"low": 123,
"high": 123
},
"elevator": "<string>",
"outdoor": "<string>",
"parking": "<string>",
"pool": "<string>",
"lastFloor": "<string>",
"groundFloor": "<string>",
"bikeShed": true,
"mortgageType": "relay",
"mortgage": true,
"purpose": "primaryResidence",
"mandate": {},
"parsingCustomId": "<string>",
"contacts": [
{
"id": "618a35a36d932054e195ca0a",
"title": "mr",
"firstName": "<string>",
"lastName": "<string>",
"commercialName": "<string>",
"corporateName": "<string>",
"isIndividual": true,
"contactDetails": [
{
"type": "email",
"data": "<string>"
}
]
}
]
}
}Qualifier un prospect acquéreur
Sort une fiche de l’étape « à qualifier » (AQUL) vers ASRC (en recherche) ou AARC (archivée).
Effets de bord : la séquence de relance de qualification est close, et originMatch peut faire évoluer la mise en relation à l’origine de la demande. Une fiche déjà en négociation / offre / achat signé est refusée (409).
Viser MVST dans originMatch exige originMatch.visitStartAt : sinon 400 avec errorCode: VISIT_DATE_REQUIRED, et rien n’est écrit.
curl --request POST \
--url https://api.avest.fr/v1/external-integration/acquisition/{acquisitionId}/qualify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"activityId": "618a35a36d932054e195ca0a"
}
'import requests
url = "https://api.avest.fr/v1/external-integration/acquisition/{acquisitionId}/qualify"
payload = { "activityId": "618a35a36d932054e195ca0a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({activityId: '618a35a36d932054e195ca0a'})
};
fetch('https://api.avest.fr/v1/external-integration/acquisition/{acquisitionId}/qualify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.avest.fr/v1/external-integration/acquisition/{acquisitionId}/qualify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'activityId' => '618a35a36d932054e195ca0a'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.avest.fr/v1/external-integration/acquisition/{acquisitionId}/qualify"
payload := strings.NewReader("{\n \"activityId\": \"618a35a36d932054e195ca0a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.avest.fr/v1/external-integration/acquisition/{acquisitionId}/qualify")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"activityId\": \"618a35a36d932054e195ca0a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.avest.fr/v1/external-integration/acquisition/{acquisitionId}/qualify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"activityId\": \"618a35a36d932054e195ca0a\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"acquisition": {
"id": "618a35a36d932054e195ca0a",
"customId": "<string>",
"agency": "618a35a36d932054e195ca0a",
"agencyGroup": "618a35a36d932054e195ca0a",
"step": "AQUL",
"createdAt": "<string>",
"updatedAt": "<string>",
"stepUpdatedAt": "<string>",
"owner": {
"id": "618a35a36d932054e195ca0a",
"firstName": "<string>",
"lastName": "<string>",
"picture": "<string>"
},
"mainContact": "618a35a36d932054e195ca0a",
"project": "<string>",
"activityLevel": "hot",
"propertiesTypes": [
"<string>"
],
"areas": [
{
"type": "postalCode",
"postalCode": "<string>",
"inseeCode": "<string>",
"countryCode": "<string>",
"addresses": [
{}
],
"geometry": {},
"center": {},
"radius": 123
}
],
"priceRange": {
"low": 123,
"high": 123
},
"sizeRange": {
"low": 123,
"high": 123
},
"roomRange": {
"low": 123,
"high": 123
},
"bedroomRange": {
"low": 123,
"high": 123
},
"floorRange": {
"low": 123,
"high": 123
},
"fieldRange": {
"low": 123,
"high": 123
},
"elevator": "<string>",
"outdoor": "<string>",
"parking": "<string>",
"pool": "<string>",
"lastFloor": "<string>",
"groundFloor": "<string>",
"bikeShed": true,
"mortgageType": "relay",
"mortgage": true,
"purpose": "primaryResidence",
"mandate": {},
"parsingCustomId": "<string>",
"contacts": [
{
"id": "618a35a36d932054e195ca0a",
"title": "mr",
"firstName": "<string>",
"lastName": "<string>",
"commercialName": "<string>",
"corporateName": "<string>",
"isIndividual": true,
"contactDetails": [
{
"type": "email",
"data": "<string>"
}
]
}
]
}
}Autorisations
Token LinkedAPI avec scope externalIntegration. La clé doit avoir un agencyGroup configuré (sinon 400 LinkedAPI agencyGroup is required). Fourni via l'en-tête Authorization: Bearer {linkedAPI_token}. Si la clé a secure === true, l'IP appelante doit être whitelistée (en-tête X-Real-IP), sinon 403 Not authorized to access this resource.
La clé porte aussi un niveau d'accès : en lecture seule, elle n'autorise que les GET ; un POST ou un PATCH renvoie alors 403 Not authorized to access this resource, soit la même réponse qu'une requête sans en-tête Authorization. Voir le guide Authentification.
Paramètres de chemin
Corps
Réponse
Acquisition qualifiée.