Try in API Explorer
This endpoint returns an upload URL for uploading usage events files, allowing you to upload files in supported formats. The file is processed asynchronously, and its status can be tracked using the retrieve_file_processing_status endpoint.
Before uploading, review the following guidelines and constraints:
Sample Request
URL Format
POST https://[site].chargebee.com/api/v2/usage_files/upload_url
Input Parameters
required, string, max chars=150
Name of the file being uploaded.
Note:
No special characters are allowed in the file_name
except for underscores _
and hyphens -
.Example:
| Valid file name | Invalid file name |
| merchant_data.csv | merchant@data.csv |
| sales_report-2024.csv | sales&report-2024.csv |
| customer_details_file.csv | customer!details#file.csv |
Returns
usage_fileUsage file object
Resource object representing usage_file