Property Address
Update Property Address
Updates the property address of a transaction. The transactionId is carried in the request body, not the URL.
Full replacement — omitted fields are set to null. To update a single field, GET the current address first, modify, then resubmit the whole object.
POST
/
v1.0
/
leads
/
{leadId}
/
transaction
/
property
/
address
Update Property Address
curl --request POST \
--url https://api.lofty.com/v1.0/leads/{leadId}/transaction/property/address \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"transactionId": 10001,
"unit": "1",
"label": "Investment",
"state": "CA",
"city": "Los Angeles",
"zipCode": "90012",
"streetAddress": "100 W 1st St",
"county": "Los Angeles"
}
'import requests
url = "https://api.lofty.com/v1.0/leads/{leadId}/transaction/property/address"
payload = {
"transactionId": 10001,
"unit": "1",
"label": "Investment",
"state": "CA",
"city": "Los Angeles",
"zipCode": "90012",
"streetAddress": "100 W 1st St",
"county": "Los Angeles"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'},
body: JSON.stringify({
transactionId: 10001,
unit: '1',
label: 'Investment',
state: 'CA',
city: 'Los Angeles',
zipCode: '90012',
streetAddress: '100 W 1st St',
county: 'Los Angeles'
})
};
fetch('https://api.lofty.com/v1.0/leads/{leadId}/transaction/property/address', 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.lofty.com/v1.0/leads/{leadId}/transaction/property/address",
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([
'transactionId' => 10001,
'unit' => '1',
'label' => 'Investment',
'state' => 'CA',
'city' => 'Los Angeles',
'zipCode' => '90012',
'streetAddress' => '100 W 1st St',
'county' => 'Los Angeles'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$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.lofty.com/v1.0/leads/{leadId}/transaction/property/address"
payload := strings.NewReader("{\n \"transactionId\": 10001,\n \"unit\": \"1\",\n \"label\": \"Investment\",\n \"state\": \"CA\",\n \"city\": \"Los Angeles\",\n \"zipCode\": \"90012\",\n \"streetAddress\": \"100 W 1st St\",\n \"county\": \"Los Angeles\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
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.lofty.com/v1.0/leads/{leadId}/transaction/property/address")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"transactionId\": 10001,\n \"unit\": \"1\",\n \"label\": \"Investment\",\n \"state\": \"CA\",\n \"city\": \"Los Angeles\",\n \"zipCode\": \"90012\",\n \"streetAddress\": \"100 W 1st St\",\n \"county\": \"Los Angeles\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/leads/{leadId}/transaction/property/address")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"transactionId\": 10001,\n \"unit\": \"1\",\n \"label\": \"Investment\",\n \"state\": \"CA\",\n \"city\": \"Los Angeles\",\n \"zipCode\": \"90012\",\n \"streetAddress\": \"100 W 1st St\",\n \"county\": \"Los Angeles\"\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"message": "success"
}"<string>""<string>""<string>""<string>"Body
application/json
Response
Envelope {code, message}. code=0 indicates success.
Simple envelope response used by Brokermint webhook and property-address endpoints. Business failures surface as HTTP 200 with a non-zero code; integrators must inspect the code field.
⌘I
Update Property Address
curl --request POST \
--url https://api.lofty.com/v1.0/leads/{leadId}/transaction/property/address \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"transactionId": 10001,
"unit": "1",
"label": "Investment",
"state": "CA",
"city": "Los Angeles",
"zipCode": "90012",
"streetAddress": "100 W 1st St",
"county": "Los Angeles"
}
'import requests
url = "https://api.lofty.com/v1.0/leads/{leadId}/transaction/property/address"
payload = {
"transactionId": 10001,
"unit": "1",
"label": "Investment",
"state": "CA",
"city": "Los Angeles",
"zipCode": "90012",
"streetAddress": "100 W 1st St",
"county": "Los Angeles"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'},
body: JSON.stringify({
transactionId: 10001,
unit: '1',
label: 'Investment',
state: 'CA',
city: 'Los Angeles',
zipCode: '90012',
streetAddress: '100 W 1st St',
county: 'Los Angeles'
})
};
fetch('https://api.lofty.com/v1.0/leads/{leadId}/transaction/property/address', 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.lofty.com/v1.0/leads/{leadId}/transaction/property/address",
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([
'transactionId' => 10001,
'unit' => '1',
'label' => 'Investment',
'state' => 'CA',
'city' => 'Los Angeles',
'zipCode' => '90012',
'streetAddress' => '100 W 1st St',
'county' => 'Los Angeles'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$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.lofty.com/v1.0/leads/{leadId}/transaction/property/address"
payload := strings.NewReader("{\n \"transactionId\": 10001,\n \"unit\": \"1\",\n \"label\": \"Investment\",\n \"state\": \"CA\",\n \"city\": \"Los Angeles\",\n \"zipCode\": \"90012\",\n \"streetAddress\": \"100 W 1st St\",\n \"county\": \"Los Angeles\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
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.lofty.com/v1.0/leads/{leadId}/transaction/property/address")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"transactionId\": 10001,\n \"unit\": \"1\",\n \"label\": \"Investment\",\n \"state\": \"CA\",\n \"city\": \"Los Angeles\",\n \"zipCode\": \"90012\",\n \"streetAddress\": \"100 W 1st St\",\n \"county\": \"Los Angeles\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/leads/{leadId}/transaction/property/address")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"transactionId\": 10001,\n \"unit\": \"1\",\n \"label\": \"Investment\",\n \"state\": \"CA\",\n \"city\": \"Los Angeles\",\n \"zipCode\": \"90012\",\n \"streetAddress\": \"100 W 1st St\",\n \"county\": \"Los Angeles\"\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"message": "success"
}"<string>""<string>""<string>""<string>"