Skip to main content

Documentation

Usage Record Errors

Error Code

Description

ERROR_DELETE_SUBSCRIPTION_ITEM_USAGE_RECORD

The request tried to delete a subscription usage record, but the operation failed. Corrective action: Determine whether the subscription usage record was already deleted, and why there were multiple requests to delete it.

ERROR_UPDATE_USAGE_RECORDS

The request tried to update subscriptions usage records. The request was rejected.

ERROR_USAGE_RECORD_ACTION_NOT_VALID

The request tried to create a usage record, but the action was not recognized. The request was rejected. Corrective action: Define the 'action' body parameter as 'increment' or 'set'.

ERROR_USAGE_RECORD_TIMESTAMP_NOT_VALID

The request tried to create a usage record for a subscription item, but the timestamp was not valid. The request was rejected. Corrective action: Provide a valid Unix timestamp for a time in the current billing period for the relevant subscription.

INVALID_GET_USAGE_RECORD_SUMMARIES_ENDING_BEFORE

The request tried to get a list of usage record summaries, but the query was not valid. The request was rejected. Corrective action: For the 'ending_before' query parameter, use a valid Unix timestamp.

INVALID_GET_USAGE_RECORD_SUMMARIES_LIMIT

The request tried to get a list of usage record summaries, but the query was not valid. The request was rejected. Corrective action: Set the 'limit' query parameter to an integer between 1 and 100.

INVALID_GET_USAGE_RECORD_SUMMARIES_STARTING_AFTER

The request tried to get a list of usage record summaries, but the query was not valid. The request was rejected. Corrective action: For the 'starting_after' query parameter, use a valid Unix timestamp.

INVALID_GET_USAGE_RECORD_SUMMARIES_SUBSCRIPTION_ITEM_ID

The request tried to get a list of usage record summaries, but the relevant subscription item was not found. The request was rejected. Corrective action: Provide the ID of a valid subscription item, which is a string starting with 'subi'.

INVALID_SUBSCRIPTION_ITEM_USAGE_RECORD_QUANTITY

The request tried to create a usage record, but the quantity was in incorrect format or a negative number. The quantity must be a positive number. The request was rejected. Corrective action: Use a positive number for the quantity.

INVALID_SUBSCRIPTION_ITEM_USAGE_RECORD_TIMESTAMP

The request tried to create a usage record, but the value for the 'timestamp' body parameter was not in the correct format. The request was rejected. Corrective action: Use a valid Unix timestamp.