Get usage csv by billing tag

You can retrieve the usage in csv format using the billing tag, as shown here. This example uses testtag as the billing tag.

Request

    GET https://usage.bam.api.here.com/v2/usage/realms/org123456789/csv?startDate=2021-07-01T10:39:51&endDate=2021-08-30T10:39:51&billingTag=testtag

Parameters

The parameters shown here are only necessary for this request. For a complete list of parameters, see the Usage API documentation.

realmId required string [ 5 .. 30 ] characters
Example: org123456789
Your org ID.
startTime
required
string
Example: startTime=yyyy-MM-dd'T'HH:mm:ss
Start date for history search.
endTime
required
string
Example: endTime=yyyy-MM-dd'T'HH:mm:ss
End date for history search.
billingTag string less than or equal to 500 characters
Example: billingTag=testtag
The billing tag.

Header parameters

X-Request-ID string
User-provided token that can be used to trace a request or a group of requests sent to the service.
X-Correlation-ID
required
string
Auto-generated ID, which uniquely identifies the request, available in the response. When contacting the support with an inquiry regarding a specific request, provide the value of this header; This assists with troubleshooting the issue.

Response: HTTP 200 OK

"Date and time (usageDateTime)","Org ID (realmId)","Category (category)","App ID (appId)","Item (featureId)","Subscription ID (billingSubscriptionId)","Resource ID (resourceHrn)","Item description (name)","Unit (valueDriver)","Project ID (projectHrn)","Billing tag (billingTag)","Usage Amount (billableValue)","Charge Number (billingChargeNumber)","Usage Amount (usageValue)"
"","org123456789","Location Services","","hrn:here:service::org123456789:feature1","","","Autocomplete","Transactions","","","144940.0000","","144940.0000"
"","org123456789","Location Services","","hrn:here:service::org123456789:feature2","","","Geocode & Reverse Geocode","Transactions","","","91932.0000","","91932.0000"

results matching ""

    No results matching ""