- Import usage file
Note: This operation is available only if Active Rating is enabled. The Active Rating feature is in development. If you wish to have access to the feature, submit a request at Zuora Global Support.
Imports usage data by uploading a usage file.
A usage file can be in comma-separated value (.csv), Microsoft Excel (.xls), or ZIP format. The maximum size of a usage file in CSV, Excel, or ZIP format to be uploaded is 20 MB. If the size of a usage file exceeds 20 MB, zip the usage file before uploading it. One ZIP file can only contain one CSV or Excel file.
The name of a usage file cannot be longer than 50 characters, including the length of the file name extension.
For more information about the usage file format, see Usage Data Import.
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.
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 (').
- https://rest.zuora.comhttps://rest.zuora.com/usage-imports
{
"file": "string",
"description": "string"
}OK
The Zuora internal identifier of the API call. You cannot control the value of this header.
A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.
The processing status of the usage import file.
Possible values:
PENDING: The usage import file is waiting to be processed.PROCESSING: The usage import file is being processed.COMPLETED: The processing of the usage import file is completed successfully.VALIDATION_FAILED: The processing of the usage import file is completed with validation errors. If a validation error occurs in one usage record, no usage records will be imported from the usage import file.IMPORTED_WITH_ERRORS: The usage import file is imported with errors because of some exceptions. Not all usage records are imported from the usage import file. If this status is displayed, contact Zuora Global Support for help.FAILED: The usage import file fails to be processed.
{ "id": "string", "status": "PENDING" }