Transactions API¶
Work with live transactions, manage participants, and handle financial operations.
Overview¶
Transactions API Features
- Transaction Management: Get and update live transactions
- Participant Management: Add and modify transaction participants
- Financial Operations: Process payments and commission splits
- Document Management: Generate reports and handle transaction documents
- Agent Transactions: Retrieve agent-specific transaction lists
- Termination: Request transaction termination
Quick Start¶
from rezen import RezenClient
client = RezenClient()
# Get transaction details
transaction = client.transactions.get_transaction("tx-12345")
# Get agent's current transactions
agent_transactions = client.transactions.get_agent_current_transactions("agent-uuid")
# Add participant to existing transaction
participant = {
"type": "LENDER",
"first_name": "Bank",
"last_name": "Officer",
"company": "First National Bank"
}
client.transactions.create_participant(transaction_id, participant)
Core Methods¶
Transaction Operations¶
Get a specific transaction by ID.
Parameters:
Show table
| Name | Type | Description | Default |
|---|---|---|---|
transaction_id | str | Transaction ID | required |
Returns:
Show table
| Type | Description |
|---|---|
Dict[str, Any] | Transaction data |
Normalized Transaction View¶
Get a transaction and return a normalized, typed view.
This helps downstream systems answer common questions with stable semantics: - Is the transaction closed? - What is the best closing date (actual vs estimated)? - What is the under-contract date? - What is the street-line address?
Parameters:
Show table
| Name | Type | Description | Default |
|---|---|---|---|
transaction_id | str | Transaction ID. | required |
Returns:
Show table
| Type | Description |
|---|---|
NormalizedTransaction | NormalizedTransaction view. |
Raises:
Show table
| Type | Description |
|---|---|
ValueError | If the API response is not a dict payload. |
Downstream-friendly fields
get_transaction_normalized() returns a NormalizedTransaction that makes common questions easy:
- status:
"active" | "closed" | "terminated" - closing_date: best-effort close date (actual preferred, falls back to estimated)
- under_contract_date: contract acceptance / under-contract date
- address.street_line: street + street2 (no city/state/zip)
Agent Transaction Methods¶
Get agent's transactions (wrapper for get_participant_transactions).
Parameters:
Show table
| Name | Type | Description | Default |
|---|---|---|---|
yenta_id | str | Agent's user ID | required |
Returns:
Show table
| Type | Description |
|---|---|
Dict[str, Any] | Agent's transactions data |
Get agent's current transactions (wrapper for get_participant_current_transactions).
Parameters:
Show table
| Name | Type | Description | Default |
|---|---|---|---|
yenta_id | str | Agent's user ID | required |
Returns:
Show table
| Type | Description |
|---|---|
Dict[str, Any] | Agent's current transactions data |
Get agent's current listings.
Parameters:
Show table
| Name | Type | Description | Default |
|---|---|---|---|
yenta_id | str | Agent's user ID | required |
Returns:
Show table
| Type | Description |
|---|---|
Dict[str, Any] | Agent's current listings data |
Wrapper Methods
The agent transaction methods are convenience wrappers around the participant transaction methods for backward compatibility.
Transaction Termination¶
Request termination for a transaction.
Parameters:
Show table
| Name | Type | Description | Default |
|---|---|---|---|
transaction_id | str | Transaction ID | required |
Returns:
Show table
| Type | Description |
|---|---|
Dict[str, Any] | Termination request response data |
Participant Management¶
Create transaction participant.
Parameters:
Show table
| Name | Type | Description | Default |
|---|---|---|---|
transaction_id | str | Transaction ID | required |
participant_data | Dict[str, Any] | Participant creation data | required |
Returns:
Show table
| Type | Description |
|---|---|
Dict[str, Any] | Created participant data |
Get transactions for participant.
Parameters:
Show table
| Name | Type | Description | Default |
|---|---|---|---|
yenta_id | str | Participant (user) ID | required |
Returns:
Show table
| Type | Description |
|---|---|
Dict[str, Any] | Participant transactions data |
Get participant's current transactions.
Parameters:
Show table
| Name | Type | Description | Default |
|---|---|---|---|
yenta_id | str | User/participant ID | required |
Returns:
Show table
| Type | Description |
|---|---|
Dict[str, Any] | Current transactions data |
Financial Operations¶
Get payment information for agent.
Parameters:
Show table
| Name | Type | Description | Default |
|---|---|---|---|
transaction_id | str | Transaction ID | required |
agent_id | str | Agent ID | required |
Returns:
Show table
| Type | Description |
|---|---|
Dict[str, Any] | Payment information data |
Get money transfers for transaction.
Parameters:
Show table
| Name | Type | Description | Default |
|---|---|---|---|
transaction_id | str | Transaction ID | required |
Returns:
Show table
| Type | Description |
|---|---|
Dict[str, Any] | Money transfers data |
Set participant payouts on an existing transaction in place.
Wraps PUT /transactions/{transactionId}/payouts (Arrakis operation setPayouts). The transaction keeps its ID; no builder is created and nothing is resubmitted.
Each payment names a participant already on the transaction and one paymentValue holding exactly one of money ({"amount": 2992.5, "currency": "USD"}), percentage ({"value": 70}) or zero (True). Decimal amounts are sent as JSON numbers.
Parameters:
Show table
| Name | Type | Description | Default |
|---|---|---|---|
transaction_id | str | Transaction ID | required |
payments | List[Dict[str, Any]] |
| required |
payments_from_other_participants | Optional[List[Dict[str, Any]]] | Optional | None |
Returns:
Show table
| Type | Description |
|---|---|
Dict[str, Any] | The updated transaction ( |
Dict[str, Any] |
|
Raises:
Show table
| Type | Description |
|---|---|
ValidationError | If a payment is missing a participant ID, its |
Document Operations¶
Get transaction summary PDF.
Parameters:
Show table
| Name | Type | Description | Default |
|---|---|---|---|
transaction_id | str | Transaction ID | required |
Returns:
Show table
| Type | Description |
|---|---|
Dict[str, Any] | PDF download information |
Usage Examples¶
Transaction Management
# Get all agent transactions
all_transactions = client.transactions.get_agent_transactions("agent-uuid")
# Get current active transactions
current_transactions = client.transactions.get_agent_current_transactions("agent-uuid")
# Get current listings only
current_listings = client.transactions.get_agent_current_listings("agent-uuid")
for listing in current_listings:
print(f"Listing: {listing['address']} - Status: {listing['status']}")
Agent Transaction Retrieval¶
Transaction Filtering
The library provides several methods to retrieve agent-specific transactions:
- All Transactions: Get complete transaction history
- Current Transactions: Get only active/current transactions
- Current Listings: Get only listing-type transactions that are current
Agent Transaction Examples
from rezen import RezenClient
client = RezenClient()
agent_id = "agent-uuid-here"
# Get all transactions for an agent
all_transactions = client.transactions.get_agent_transactions(agent_id)
print(f"Total transactions: {len(all_transactions)}")
# Get only current/active transactions
current = client.transactions.get_agent_current_transactions(agent_id)
print(f"Active transactions: {len(current)}")
# Get only current listings
listings = client.transactions.get_agent_current_listings(agent_id)
for listing in listings:
print(f"Property: {listing['property']['address']}")
print(f"List price: ${listing['listPrice']:,}")
Document Management¶
Document Types
Available document operations include:
- Summary PDFs: Generate transaction summary reports
- Document Lists: Get all transaction-related documents
- Status Reports: Track transaction progress
Document Operations
Next Steps¶
-
Create new transactions from scratch
-
Find agents to add to transactions
-
Manage transaction checklists and documents
-
Handle transaction-related errors