Core
Get Transaction
Fetches a single transaction that belongs to the given lead.
Prerequisites:
- leadId must be manageable by the caller; otherwise 404 LEAD_NOT_EXIST.
- transactionId must exist, not be deleted, AND belong to leadId; otherwise 404 TRANSACTION_NOT_EXIST. For security, cross-lead transactionIds are treated as ‘not exist’ rather than ‘forbidden’.
GET
/
v1.0
/
leads
/
{leadId}
/
transaction
/
{transactionId}
Get Transaction
curl --request GET \
--url https://api.lofty.com/v1.0/leads/{leadId}/transaction/{transactionId} \
--header 'Authorization: <authorization>'import requests
url = "https://api.lofty.com/v1.0/leads/{leadId}/transaction/{transactionId}"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lofty.com/v1.0/leads/{leadId}/transaction/{transactionId}', 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/{transactionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lofty.com/v1.0/leads/{leadId}/transaction/{transactionId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lofty.com/v1.0/leads/{leadId}/transaction/{transactionId}")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/leads/{leadId}/transaction/{transactionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"transactionName": "123 Main St",
"created": 1518078026000,
"updated": 1518078026000,
"transactionId": 10001,
"leadName": "Bob",
"assignedAgent": 100001,
"transactionType": "Purchase",
"homePrice": 1000000,
"transactionStatus": "Pre-contract",
"expectedCloseDate": 1508580010000,
"closeDate": 1508580010000,
"commissionRate": 3,
"gci": 5000,
"teamRevenue": 1000,
"agentRevenue": 4000,
"appointmentDate": 1508580010000,
"agreementSignedDate": 1508580010000,
"offerDate": 1508580010000,
"contractDate": 1508580010000,
"appraisalDate": 1508580010000,
"homeInspectionDate": 1508580010000,
"escrowDate": 1508580010000,
"expiration": 1508580010000,
"customFields": [
{
"id": 123,
"value": "<string>"
}
],
"commissions": {
"preSplit": [
{
"id": 123,
"splitPayType": "TEAM",
"splitPayTo": 123,
"splitPayToName": "<string>",
"payType": "TEAM",
"payTo": 123,
"payToName": "<string>",
"value": 123,
"calculateType": "PERCENT",
"desc": "<string>"
}
],
"split": [
{
"id": 123,
"splitPayType": "TEAM",
"splitPayTo": 123,
"splitPayToName": "<string>",
"payType": "TEAM",
"payTo": 123,
"payToName": "<string>",
"value": 123,
"calculateType": "PERCENT",
"desc": "<string>"
}
],
"postSplit": [
{
"id": 123,
"splitPayType": "TEAM",
"splitPayTo": 123,
"splitPayToName": "<string>",
"payType": "TEAM",
"payTo": 123,
"payToName": "<string>",
"value": 123,
"calculateType": "PERCENT",
"desc": "<string>"
}
]
}
}"<string>""<string>""<string>"Path Parameters
Response
The requested transaction.
Transaction type. Case-sensitive; must be one of the supported values. Values not matching the team's configured pipeline types fall back silently to the first pipeline (typically 'Purchase / Pre-contract'); always pass a valid type to avoid this silent behavior.
Available options:
Purchase, Listing, Lease, Other Example:
"Purchase"
⌘I
Get Transaction
curl --request GET \
--url https://api.lofty.com/v1.0/leads/{leadId}/transaction/{transactionId} \
--header 'Authorization: <authorization>'import requests
url = "https://api.lofty.com/v1.0/leads/{leadId}/transaction/{transactionId}"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lofty.com/v1.0/leads/{leadId}/transaction/{transactionId}', 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/{transactionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lofty.com/v1.0/leads/{leadId}/transaction/{transactionId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lofty.com/v1.0/leads/{leadId}/transaction/{transactionId}")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/leads/{leadId}/transaction/{transactionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"transactionName": "123 Main St",
"created": 1518078026000,
"updated": 1518078026000,
"transactionId": 10001,
"leadName": "Bob",
"assignedAgent": 100001,
"transactionType": "Purchase",
"homePrice": 1000000,
"transactionStatus": "Pre-contract",
"expectedCloseDate": 1508580010000,
"closeDate": 1508580010000,
"commissionRate": 3,
"gci": 5000,
"teamRevenue": 1000,
"agentRevenue": 4000,
"appointmentDate": 1508580010000,
"agreementSignedDate": 1508580010000,
"offerDate": 1508580010000,
"contractDate": 1508580010000,
"appraisalDate": 1508580010000,
"homeInspectionDate": 1508580010000,
"escrowDate": 1508580010000,
"expiration": 1508580010000,
"customFields": [
{
"id": 123,
"value": "<string>"
}
],
"commissions": {
"preSplit": [
{
"id": 123,
"splitPayType": "TEAM",
"splitPayTo": 123,
"splitPayToName": "<string>",
"payType": "TEAM",
"payTo": 123,
"payToName": "<string>",
"value": 123,
"calculateType": "PERCENT",
"desc": "<string>"
}
],
"split": [
{
"id": 123,
"splitPayType": "TEAM",
"splitPayTo": 123,
"splitPayToName": "<string>",
"payType": "TEAM",
"payTo": 123,
"payToName": "<string>",
"value": 123,
"calculateType": "PERCENT",
"desc": "<string>"
}
],
"postSplit": [
{
"id": 123,
"splitPayType": "TEAM",
"splitPayTo": 123,
"splitPayToName": "<string>",
"payType": "TEAM",
"payTo": 123,
"payToName": "<string>",
"value": 123,
"calculateType": "PERCENT",
"desc": "<string>"
}
]
}
}"<string>""<string>""<string>"