Integrations
Brokermint — Sync Transaction
Callback endpoint for Brokermint integration to sync transaction updates into Lofty.
The transaction must be linked to Brokermint via the Lofty UI before this endpoint can update it. See the request body schema for supported fields.
PUT
/
v1.0
/
brokermint
/
transaction
Brokermint — Sync Transaction
curl --request PUT \
--url https://api.lofty.com/v1.0/brokermint/transaction \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"id": 10001,
"agentId": 100001,
"agentName": "Jane Doe",
"address": "123 Main St",
"city": "Los Angeles",
"state": "CA",
"zip": "90012",
"status": "Closed",
"transactionType": "Purchase",
"price": 1000000,
"representing": "Buyer",
"acceptanceDate": "2023-11-07T05:31:56Z",
"expirationDate": "2023-11-07T05:31:56Z",
"closedAt": "2023-11-07T05:31:56Z",
"closingDate": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.lofty.com/v1.0/brokermint/transaction"
payload = {
"id": 10001,
"agentId": 100001,
"agentName": "Jane Doe",
"address": "123 Main St",
"city": "Los Angeles",
"state": "CA",
"zip": "90012",
"status": "Closed",
"transactionType": "Purchase",
"price": 1000000,
"representing": "Buyer",
"acceptanceDate": "2023-11-07T05:31:56Z",
"expirationDate": "2023-11-07T05:31:56Z",
"closedAt": "2023-11-07T05:31:56Z",
"closingDate": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'},
body: JSON.stringify({
id: 10001,
agentId: 100001,
agentName: 'Jane Doe',
address: '123 Main St',
city: 'Los Angeles',
state: 'CA',
zip: '90012',
status: 'Closed',
transactionType: 'Purchase',
price: 1000000,
representing: 'Buyer',
acceptanceDate: '2023-11-07T05:31:56Z',
expirationDate: '2023-11-07T05:31:56Z',
closedAt: '2023-11-07T05:31:56Z',
closingDate: '2023-11-07T05:31:56Z'
})
};
fetch('https://api.lofty.com/v1.0/brokermint/transaction', 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/brokermint/transaction",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => 10001,
'agentId' => 100001,
'agentName' => 'Jane Doe',
'address' => '123 Main St',
'city' => 'Los Angeles',
'state' => 'CA',
'zip' => '90012',
'status' => 'Closed',
'transactionType' => 'Purchase',
'price' => 1000000,
'representing' => 'Buyer',
'acceptanceDate' => '2023-11-07T05:31:56Z',
'expirationDate' => '2023-11-07T05:31:56Z',
'closedAt' => '2023-11-07T05:31:56Z',
'closingDate' => '2023-11-07T05:31:56Z'
]),
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/brokermint/transaction"
payload := strings.NewReader("{\n \"id\": 10001,\n \"agentId\": 100001,\n \"agentName\": \"Jane Doe\",\n \"address\": \"123 Main St\",\n \"city\": \"Los Angeles\",\n \"state\": \"CA\",\n \"zip\": \"90012\",\n \"status\": \"Closed\",\n \"transactionType\": \"Purchase\",\n \"price\": 1000000,\n \"representing\": \"Buyer\",\n \"acceptanceDate\": \"2023-11-07T05:31:56Z\",\n \"expirationDate\": \"2023-11-07T05:31:56Z\",\n \"closedAt\": \"2023-11-07T05:31:56Z\",\n \"closingDate\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.lofty.com/v1.0/brokermint/transaction")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"id\": 10001,\n \"agentId\": 100001,\n \"agentName\": \"Jane Doe\",\n \"address\": \"123 Main St\",\n \"city\": \"Los Angeles\",\n \"state\": \"CA\",\n \"zip\": \"90012\",\n \"status\": \"Closed\",\n \"transactionType\": \"Purchase\",\n \"price\": 1000000,\n \"representing\": \"Buyer\",\n \"acceptanceDate\": \"2023-11-07T05:31:56Z\",\n \"expirationDate\": \"2023-11-07T05:31:56Z\",\n \"closedAt\": \"2023-11-07T05:31:56Z\",\n \"closingDate\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/brokermint/transaction")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"id\": 10001,\n \"agentId\": 100001,\n \"agentName\": \"Jane Doe\",\n \"address\": \"123 Main St\",\n \"city\": \"Los Angeles\",\n \"state\": \"CA\",\n \"zip\": \"90012\",\n \"status\": \"Closed\",\n \"transactionType\": \"Purchase\",\n \"price\": 1000000,\n \"representing\": \"Buyer\",\n \"acceptanceDate\": \"2023-11-07T05:31:56Z\",\n \"expirationDate\": \"2023-11-07T05:31:56Z\",\n \"closedAt\": \"2023-11-07T05:31:56Z\",\n \"closingDate\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"message": "success"
}"<string>""<string>"Body
application/json
Brokermint-sourced transaction payload.
Response
Envelope {code, message}. code=0 indicates applied; code=200060 indicates the transaction was not found (either the Brokermint link is missing or the transaction was deleted). HTTP status is 200 in both cases.
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
Brokermint — Sync Transaction
curl --request PUT \
--url https://api.lofty.com/v1.0/brokermint/transaction \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"id": 10001,
"agentId": 100001,
"agentName": "Jane Doe",
"address": "123 Main St",
"city": "Los Angeles",
"state": "CA",
"zip": "90012",
"status": "Closed",
"transactionType": "Purchase",
"price": 1000000,
"representing": "Buyer",
"acceptanceDate": "2023-11-07T05:31:56Z",
"expirationDate": "2023-11-07T05:31:56Z",
"closedAt": "2023-11-07T05:31:56Z",
"closingDate": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.lofty.com/v1.0/brokermint/transaction"
payload = {
"id": 10001,
"agentId": 100001,
"agentName": "Jane Doe",
"address": "123 Main St",
"city": "Los Angeles",
"state": "CA",
"zip": "90012",
"status": "Closed",
"transactionType": "Purchase",
"price": 1000000,
"representing": "Buyer",
"acceptanceDate": "2023-11-07T05:31:56Z",
"expirationDate": "2023-11-07T05:31:56Z",
"closedAt": "2023-11-07T05:31:56Z",
"closingDate": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'},
body: JSON.stringify({
id: 10001,
agentId: 100001,
agentName: 'Jane Doe',
address: '123 Main St',
city: 'Los Angeles',
state: 'CA',
zip: '90012',
status: 'Closed',
transactionType: 'Purchase',
price: 1000000,
representing: 'Buyer',
acceptanceDate: '2023-11-07T05:31:56Z',
expirationDate: '2023-11-07T05:31:56Z',
closedAt: '2023-11-07T05:31:56Z',
closingDate: '2023-11-07T05:31:56Z'
})
};
fetch('https://api.lofty.com/v1.0/brokermint/transaction', 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/brokermint/transaction",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => 10001,
'agentId' => 100001,
'agentName' => 'Jane Doe',
'address' => '123 Main St',
'city' => 'Los Angeles',
'state' => 'CA',
'zip' => '90012',
'status' => 'Closed',
'transactionType' => 'Purchase',
'price' => 1000000,
'representing' => 'Buyer',
'acceptanceDate' => '2023-11-07T05:31:56Z',
'expirationDate' => '2023-11-07T05:31:56Z',
'closedAt' => '2023-11-07T05:31:56Z',
'closingDate' => '2023-11-07T05:31:56Z'
]),
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/brokermint/transaction"
payload := strings.NewReader("{\n \"id\": 10001,\n \"agentId\": 100001,\n \"agentName\": \"Jane Doe\",\n \"address\": \"123 Main St\",\n \"city\": \"Los Angeles\",\n \"state\": \"CA\",\n \"zip\": \"90012\",\n \"status\": \"Closed\",\n \"transactionType\": \"Purchase\",\n \"price\": 1000000,\n \"representing\": \"Buyer\",\n \"acceptanceDate\": \"2023-11-07T05:31:56Z\",\n \"expirationDate\": \"2023-11-07T05:31:56Z\",\n \"closedAt\": \"2023-11-07T05:31:56Z\",\n \"closingDate\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.lofty.com/v1.0/brokermint/transaction")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"id\": 10001,\n \"agentId\": 100001,\n \"agentName\": \"Jane Doe\",\n \"address\": \"123 Main St\",\n \"city\": \"Los Angeles\",\n \"state\": \"CA\",\n \"zip\": \"90012\",\n \"status\": \"Closed\",\n \"transactionType\": \"Purchase\",\n \"price\": 1000000,\n \"representing\": \"Buyer\",\n \"acceptanceDate\": \"2023-11-07T05:31:56Z\",\n \"expirationDate\": \"2023-11-07T05:31:56Z\",\n \"closedAt\": \"2023-11-07T05:31:56Z\",\n \"closingDate\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/brokermint/transaction")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"id\": 10001,\n \"agentId\": 100001,\n \"agentName\": \"Jane Doe\",\n \"address\": \"123 Main St\",\n \"city\": \"Los Angeles\",\n \"state\": \"CA\",\n \"zip\": \"90012\",\n \"status\": \"Closed\",\n \"transactionType\": \"Purchase\",\n \"price\": 1000000,\n \"representing\": \"Buyer\",\n \"acceptanceDate\": \"2023-11-07T05:31:56Z\",\n \"expirationDate\": \"2023-11-07T05:31:56Z\",\n \"closedAt\": \"2023-11-07T05:31:56Z\",\n \"closingDate\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"message": "success"
}"<string>""<string>"