Seller Finance and Payout API
Base URL: http://localhost:8000/api/v1
Prefix: /sellers
Auth: Bearer token with seller role
Headers: Content-Type: application/json
1. Get Finance Summary
Returns the seller’s balances, earnings, fees, commissions, and property income.
/sellers/finance/summary/Auth: Required
Headers
Authorization: Bearer {{access_token}}Success Example
{
"success": true,
"message": "Seller finance summary retrieved successfully.",
"data": {
"summary": {
"currency": "USD",
"available_balance": "475000.00",
"pending_earnings": "150000.00",
"processing_payouts": "100000.00",
"total_paid": "1200000.00"
},
"earnings": {
"count": 2,
"next": null,
"previous": null,
"results": [
{
"source_type": "purchase",
"source_id": "9a76cc16-a995-47e5-853e-a59643464ddb",
"property": {
"id": "51040fcb-b837-4220-b43b-c414f9502bd5",
"title": "South Congress Luxury Villa"
},
"gross_amount": "500000.00",
"platform_fee": "15000.00",
"agent_commission": "10000.00",
"net_amount": "475000.00",
"currency": "USD",
"status": "available",
"available_at": "2026-09-18T10:00:00Z"
},
{
"source_type": "lease",
"source_id": "923089a0-69e0-4377-a107-2d0289831203",
"property": {
"id": "74b82f02-18bb-4823-9502-96df73bfa12e",
"title": "Downtown Family Apartment"
},
"gross_amount": "2250.00",
"platform_fee": "150.00",
"agent_commission": "0.00",
"net_amount": "2100.00",
"currency": "USD",
"status": "pending",
"available_at": null
}
]
}
}
}Notes
-
available_balanceis the maximum amount the seller may request for payout. -
pending_earningscontains verified customer payments that are not yet releasable. -
processing_payoutscontains funds locked in approved or processing payouts. -
total_paidis the total value of completed payouts. -
Seller net earnings are calculated as:
Gross amount − platform fee − agent commission
-
Earnings become available only after the required purchase or lease conditions are completed.
-
The seller cannot change calculated platform fees or agent commissions.
-
Supported earning statuses should include
pending,available,locked,paid, andheld. -
Supports pagination through
pageandpage_size. -
Suggested filters include
source_type,status, andproperty_id.
2. List Payouts
Returns the authenticated seller’s payout history.
/sellers/payouts/Auth: Required
Headers
Authorization: Bearer {{access_token}}Success Example
{
"success": true,
"message": "Payouts retrieved successfully.",
"data": {
"payouts": {
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": "43230f98-bef2-41f2-bf66-b74da805cdab",
"reference": "PAY-20260920-4821",
"payout_type": "seller_sale",
"gross_amount": "350000.00",
"fee_amount": "0.00",
"net_amount": "350000.00",
"currency": "USD",
"status": "pending",
"payout_account": {
"bank_name": "Example Community Bank",
"account_name": "Michael Carter",
"masked_account_number": "•••• 6789",
"branch_name": "South Congress"
},
"requested_at": "2026-09-20T05:20:00Z",
"approved_at": null,
"paid_at": null
},
{
"id": "098ae780-f9ed-4bf2-b6ea-b8da764d18db",
"reference": "PAY-20260815-3820",
"payout_type": "seller_sale",
"gross_amount": "250000.00",
"fee_amount": "0.00",
"net_amount": "250000.00",
"currency": "USD",
"status": "paid",
"payout_account": {
"bank_name": "Example Community Bank",
"account_name": "Michael Carter",
"masked_account_number": "•••• 6789",
"branch_name": "Downtown"
},
"requested_at": "2026-08-15T04:10:00Z",
"approved_at": "2026-08-16T06:30:00Z",
"paid_at": "2026-08-17T08:15:00Z"
}
]
}
}
}Notes
-
A seller can only view their own payouts.
-
Supported filters should include
status,payout_type, and date range. -
Supported statuses:
-
pending -
on_hold -
approved -
processing -
paid -
failed -
canceled
-
-
Supports pagination through
pageandpage_size. -
Bank account numbers must be masked in list responses.
-
Payout records must not be permanently deleted.
3. Request Payout
Creates a payout request against the seller’s available balance.
/sellers/payouts/Auth: Required
Headers
Authorization: Bearer {{access_token}}
Content-Type: application/jsonRequest Body
{
"amount": "350000.00",
"payout_account": {
"bank_name": "Example Community Bank",
"account_name": "Michael Carter",
"account_number": "000123456789",
"branch_name": "South Congress",
"routing_number": "000000000"
}
}Success Example
{
"success": true,
"message": "Payout requested successfully.",
"data": {
"payout": {
"id": "43230f98-bef2-41f2-bf66-b74da805cdab",
"reference": "PAY-20260920-4821",
"payout_type": "seller_sale",
"gross_amount": "350000.00",
"fee_amount": "0.00",
"net_amount": "350000.00",
"currency": "USD",
"status": "pending",
"payout_account": {
"bank_name": "Example Community Bank",
"account_name": "Michael Carter",
"masked_account_number": "•••• 6789",
"branch_name": "South Congress",
"routing_number": "000000000"
},
"requested_at": "2026-09-20T05:20:00Z",
"approved_at": null,
"paid_at": null
},
"remaining_available_balance": "125000.00",
"next_action": "Your payout request is awaiting admin review."
}
}Notes
-
amountis required and must be greater than zero. -
The amount cannot exceed the seller’s available balance.
-
The requested amount is locked immediately to prevent duplicate withdrawals.
-
Locked funds are not included in the available balance.
-
The initial payout status is
pending. -
bank_name,account_name, andaccount_numberare required. -
Branch and routing information may be required depending on the selected bank.
-
The backend stores a snapshot of the payout account in the payout record.
-
Later changes to the seller’s bank information must not alter an existing payout.
-
The full account number must not be returned in API responses.
-
Seller identity and business verification should be complete before requesting a payout.
-
A payout request may be blocked when the seller has an open dispute or payout hold.
-
A successful request returns HTTP
201 Created. -
HTTP
400 Bad Requestis returned for insufficient balance or invalid payout information. -
HTTP
401 Unauthorizedis returned when authentication is missing or invalid. -
HTTP
403 Forbiddenis returned when the authenticated user is not an eligible seller.
4. Get Payout Details
Returns complete information and progress for one seller payout.
/sellers/payouts/{payout_id}/Auth: Required
Headers
Authorization: Bearer {{access_token}}Success Example
{
"success": true,
"message": "Payout details retrieved successfully.",
"data": {
"payout": {
"id": "43230f98-bef2-41f2-bf66-b74da805cdab",
"reference": "PAY-20260920-4821",
"payout_type": "seller_sale",
"gross_amount": "350000.00",
"fee_amount": "0.00",
"net_amount": "350000.00",
"currency": "USD",
"status": "paid",
"payout_account": {
"bank_name": "Example Community Bank",
"account_name": "Michael Carter",
"masked_account_number": "•••• 6789",
"branch_name": "South Congress",
"routing_number": "000000000"
},
"requested_at": "2026-09-20T05:20:00Z",
"approved_at": "2026-09-21T06:10:00Z",
"paid_at": "2026-09-22T08:30:00Z",
"failure_reason": "",
"transfer_reference": "DBBL-PAYOUT-785421",
"receipt_url": "https://example.com/payout-receipts/DBBL-PAYOUT-785421.pdf",
"progress": [
{
"stage": "requested",
"label": "Request submitted",
"status": "completed",
"completed_at": "2026-09-20T05:20:00Z"
},
{
"stage": "approved",
"label": "Admin approved",
"status": "completed",
"completed_at": "2026-09-21T06:10:00Z"
},
{
"stage": "processing",
"label": "Transfer processing",
"status": "completed",
"completed_at": "2026-09-21T07:00:00Z"
},
{
"stage": "paid",
"label": "Payment completed",
"status": "completed",
"completed_at": "2026-09-22T08:30:00Z"
}
]
}
}
}Notes
-
A seller can only retrieve their own payout.
-
Bank account numbers must be masked.
-
A pending payout shows that it is waiting for admin review.
-
An
on_holdpayout should include the hold reason and required seller action. -
A failed payout should include the failure reason.
-
A paid payout should include the transfer reference, paid date, and receipt when available.
-
Paid and canceled payouts cannot be edited or deleted.
-
Returns HTTP
404 Not Foundwhen the payout does not exist or belongs to another seller.
Common Success Format
{
"success": true,
"message": "Operation completed successfully.",
"data": {}
}Common Error Format
{
"success": false,
"message": "Validation failed.",
"errors": {
"field_name": [
"Error description."
]
}
}