Retrieves key charge metrics about rate plan charges that have changes in a specified time range.
The purpose of fromTimestamp and toTimestamp is to synchronize charge metrics data incrementally.
Include the Accept-Encoding: gzip header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response.
If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a Content-Encoding header with the compression algorithm so that your client can decompress it.
A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.
The value of this field must use the US-ASCII character set and must not include any of the following characters: colon (:), semicolon (;), double quote ("), and quote (').
An entity ID. If you have Zuora Multi-entity enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header.
Expressed as MIME types that the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. The possible response MIME types are application/json-seq compatible with http://jsonlines.org/, and text/csv compatible with RFC 4180. application/json-seq is the default response MIME type. If the Accept header is not sepecified, or set /, the response body is returned in application/json-seq MIME type.
- https://rest.zuora.comhttps://rest.zuora.com/charge-metrics/data/charge-metrics
curl -i -X GET \
'https://rest.zuora.com/charge-metrics/data/charge-metrics?fromTimestamp=2019-08-24T14%3A15%3A22Z&toTimestamp=2019-08-24T14%3A15%3A22Z' \
-H 'Accept: string' \
-H 'Accept-Encoding: string' \
-H 'Authorization: string' \
-H 'Content-Encoding: string' \
-H 'Zuora-Entity-Ids: string' \
-H 'Zuora-Track-Id: string'This header is returned if you specify the Accept-Encoding: gzip request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
application/jsonapplication/xmltext/htmltext/csvtext/plain
The request limit quota for the time window closest to exhaustion. See rate limits for more information.
The number of requests remaining in the time window closest to quota exhaustion. See rate limits for more information.
The number of seconds until the quota resets for the time window closest to quota exhaustion. See rate limits for more information.
The Zuora internal identifier of the API call. You cannot control the value of this header.
The type of the corresponding amendment that results in the charge metrics record.
The date and time when the charge metrics record was created, in yyyy-mm-ddThh:mm:ssZ format.
The discount amount for the MRR.
See Monthly Recurring Revenue for more MRR information.
The Gross MRR amount before discounts charges are applied.
See Monthly Recurring Revenue for more MRR information.
The NET MRR amount after discounts charges are applied.
See Monthly Recurring Revenue for more MRR information.
The corresponding product rate plan charge ID of the charge metrics record.
{ "amendmentId": "string", "amendmentType": "string", "chargeNumber": "string", "createdOn": "2019-08-24T14:15:22Z", "currency": "string", "deleted": true, "endDate": "2019-08-24", "id": "string", "invoiceOwnerAccountNumber": "string", "mrrDiscountAmount": 0, "mrrGrossAmount": 0, "mrrNetAmount": 0, "productId": "string", "productRatePlanChargeId": "string", "productRatePlanId": "string", "ratePlanChargeId": "string", "startDate": "2019-08-24", "subscriptionName": "string", "subscriptionOwnerAccountNumber": "string", "tcvDiscountAmount": 0, "tcvGrossAmount": 0, "tcvNetAmount": 0, "updatedOn": "2019-08-24T14:15:22Z" }