Generate a report
Changed onSanity catalog only. Generate a report of transactions or commissions for a given date range. Supports JSON and CSV output formats.
The clicks report type is currently unavailable on this endpoint and returns a 400.
Request
- Base URLhttps://api.cashbackhive.com
- AuthAPI key in header x-publisher-key
Request body
Example request
{
"start_date": "2026-01-01",
"end_date": "2026-01-31",
"type": "transactions",
"format": "json"
}Response
Report generated successfully. Returns JSON by default, or a CSV file when format is "csv".
Example response
{
"report_id": "rpt_001abc",
"total_records": 128,
"data": [
{
"transaction_id": "txn_001abc",
"amount": 49.99,
"commission": 2.5,
"status": "pending",
"currency": "USD"
}
]
}Changes
- warning
added the new
approvedenum value to the//////response property for the response status (media type: application/json) - warning
added the new
approvedenum value to the//////response property for the response status (media type: application/json) - warning
added the new
cancelledenum value to the//////response property for the response status (media type: application/json) - warning
added the new
cancelledenum value to the//////response property for the response status (media type: application/json) - warning
added the new
pendingenum value to the//////response property for the response status (media type: application/json) - warning
added the new
pendingenum value to the//////response property for the response status (media type: application/json) - warning
added the new
unknownenum value to the//////response property for the response status (media type: application/json) - warning
added the new
unknownenum value to the//////response property for the response status (media type: application/json)
- warning