Skip to content

Get automation performance

Returns aggregated e-commerce revenue performance attributed to this workflow, combining data from all email and SMS steps. Revenue figures are converted to the account’s configured currency.

HTTP method: GET

https://api.sender.net/v2/workflows/{id}/ecommerce-report


ParameterTypeDescription
idstring requiredHashed workflow ID.

const url = new URL("https://api.sender.net/v2/workflows/{id}/ecommerce-report");
let headers = {
"Authorization": "Bearer [your-token]",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Example Response
{
"success": true,
"data": {
"revenue": 4250.75,
"number_of_orders": 87,
"roi": 3.42,
"currency": "USD",
"revenue_per_customer": 48.86
}
}