Get performance reports at the product/date/source granularity within a date range [start, end]. Filter by brand IDs and ASINs.

Method: GET

Parameters:

Response:

[
  {
    "date": "string",
    "amount": 0,
    "currency": "AED"
  }
]

Errors:

Example:

const API_KEY = "LEVANTA_API_KEY"
const ENDPOINT = "<https://app.levanta.io/api/seller/v1/reports/brb>"

// Set up query parameters
const parameters = new URLSearchParams();
// Get reports from January 15, 2023 to February 15, 2023
parameters.set("start", "2023-01-15T00:00:00.000Z");
parameters.set("end", "2023-02-15T00:00:00.000Z");

const response = await fetch(`${ENDPOINT}?${parameters.toString()}`, {
	method: "GET",
	headers: {
		Authorization: `Bearer ${API_KEY}`
	}
});
const reports = await response.json();
console.log(reports);