POST /v1/account/usage/report

Export the credit usage details as csv for the specific period of time given as input in the form of a start and end date with a specific grouping according to day, week, month, Note that this API will work only for credits plan customers.

Servers

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
endDate String No

End date, without the time, of usage data to fetch. If no value is provided endDate is used as the end of the subscription. The end date cannot be after the end of the subscription.

groupBy String No

Perform a groupBy operation on the usage details. If no value is provided data is grouped by Day - day: Aggregate the data by day - week: Aggregate the data by week. Week starts at Monday and ends at sunday night. - month: Aggregate the data by calendar month.

Default value: "day"

includeDeploymentCharge Boolean No

Deployment charges will be applied to the returned usages csv if this is set to true and the organization is a part of Sumo Organizations as a child organization.

Default value: false

startDate String No

Start date, without the time, of the usage data to fetch. If no value is provided startDate is used as the start of the subscription. The start date cannot be before the start of the subscription.

reportType String No

Specifies the type of report to be exported. Available types are standard and detailed. An additional childDetailed type is available for Sumo Orgs parents. Detailed report will have raw consumption along with the credits breakdown. If no value is provided Standard reports will be exported.

Default value: "standard"

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.