Returns a pre-formatted CSV template file for revenue batch uploads. The template includes all supported column headers with a single example row to illustrate the expected format.
Download this file, populate it with your revenue data, then submit it to the Upload Revenue Batch endpoint.
AuthorizationstringRequiredThe authorization token for accessing the API. The header value should be set to "Bearer {your-access-token}", where {your-access-token} is the access token assigned to the user.
siteIdstringRequiredThe unique identifier of the site.
Returns a 200 OK response with Content-Type: text/csv and a Content-Disposition header prompting a download of revenue_template.csv.
The template includes a header row with all supported columns and one example data row. Remove the example row before uploading real data.
curl -X GET \ 'https://rest.rulerapi.com/v1/{siteId}/revenue/template' \ -H 'Authorization: Bearer {your-access-token}' \ -o revenue_template.csv
200 OK Content-Type: text/csv Content-Disposition: attachment; filename="revenue_template.csv" RevenueClosedDate,CurrencyCode,Value,RaId,EmailAddress,PhoneNumber,PayloadValue,LeadDate,Label,Reference,AdditionalDataProperties 2024-01-15,GBP,1250.00,ra-example-id,example@email.com,01234567890,,2024-01-10,Deal,REF-001,"Name=Source,Value=Google"