Parameters

super_type
number
Description
Seller type filter: 1 = tenant, 2 = seller.
account_id
number
Description
Account ID to fetch earnings for.
page
number
Description
Page number for pagination, starting from 1.
per_page
number
Description
Number of records per page. Default is 30, maximum is 100.
start_date
string
Description
Start date for the earnings range, in YYYY-MM-DD format.
end_date
string
Description
End date for the earnings range, in YYYY-MM-DD format.
GET/v1/earnings
curl https://api.tradly.app/v1/earnings \
  -H "Authorization: Bearer YOUR_PUBLISHABLE_OR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
RESPONSE
{
  "status": true,
  "data": {
    "transactions": [],
    "page": 1,
    "total_pages": 1,
    "total_records": 0
  }
}