Transaction usage endpoints allow you to review and export transaction usage data for your current Redox contract. This allows you to easily monitor your usage and limits as you go.
You can get details for all the Redox product(s) in your contract, retrieve metrics by product type, and export metrics.
Get transaction metrics
Retrieve transaction usage metrics of your organization's Redox product(s) for a particular time range or connection. Metrics include counts of total transactions or transactions over time.
You can modify the query by date range, duration (i.e., day or month), or connection.
cURL request example
Path Parameters
- organizationIdrequired, string
Identifies the Redox organization that you're operating in.
- productClassificationIdrequired, string
Contains the UUID of the product classification that you want to retrieve transaction counts for.
Query Parameters
- startDaterequired, string
Contains the date-time in ISO 8601 format to define the beginning of the date range for the transaction metrics you want to review.
- endDaterequired, string
Contains the date-time in ISO 8601 format to define the end of the date range for the transaction metrics you want to review. The end date-time is exclusive, which means results may be returned up to this date-time, but not including it.
- aggregateByrequired, string
Defines the period of time for transaction counts over time, whether by day or month.
- connectionIdnumber
Contains the connection ID for filtering counts and over-time data to a specific connection.
- metaobject
- versionstring
Lists the major and minor version number for the format of the returned payload. The payload format or shape may change between minor versions, like including additional or extended fields in later versions. We include the version data in each response so that you have the option to handle the signaled differences.
- payloadobject
- salesforceSubscriptionobject
Contains an object with key details about an organization's Redox product subscription in the CRM (i.e., Salesforce).
- productClassificationIdstring
Displays a UUID for the Redox ID for the product classification.
- productClassificationNamestring
Displays the human-readable, internal name in the CRM for the Redox product classification.
- limitnumber
Defines the number of transactions purchased for the Redox product within the selected limit type.
- consumptionPeriodstring
Defines the time window for the transaction limit.
Month
andAnnual
mean that transaction usage limit resets each calendar month or year respectively.Contract Term
means that the transaction usage doesn't reset; instead, the limit lasts for the duration of the contract.Possible Values:Annual
,Contract Term
,Month
- startDatestring
Contains the date-time in ISO 8601 format to define the start of the Redox product contract.
- endDatestring
Contains the date-time in ISO 8601 format to define the end of the Redox product contract.
- resetDatestring
Contains the date-time in ISO 8601 format to indicate the next time that the transaction limit window resets.
- startDatestring
Contains the date-time in ISO 8601 format to define the start of the date range for results.
- endDatestring
Contains the date-time in ISO 8601 format to define the end of the date range for results. The end date-time is exclusive, which means results may be returned up to this date-time, but not including it.
- totalProductTransactionsnumber
Lists the total number of transactions for the Redox product within the time range, regardless of any metadata filters or request parameters (e.g., connection ID).
- aggregateMetricsobject
Contains the properties for total count and over-time data points for log metrics.
- totalCountnumber
Displays the total number of transactions over the time range with all filters or request parameters applied (e.g., connection ID).
- dataPointsArray of object
Displays the over-time data points within the specified time range.
- startDateTimestring
Contains the date-time in ISO 8601 format to define the start of the date range for this data point.
- endDateTimestring
Contains the date-time in ISO 8601 format to define the end of the date range for this data point. The end date-time is exclusive, which means results may be returned up to this date-time, but not including it.
- countnumber
Defines the total count of logs that occurred within the specified date range of this data point.
- cumulativeSumnumber
Defines the total sum of logs that have occurred up to the end of this data point's date range, including all prior data points.
Contains the payload and metadata returned for Get transaction metrics
.