Skip to navigation

Upload a file

View as Markdown
Uploads and stores a file in Zuora Mediation for use in meter processing. Supported formats include CSV, Excel, and JSON. You can specify metadata like headers, delimiters, sheets, and data ranges.

Authentication

AuthorizationBearer

Use Bearer {{token}} in the Authorization header for authentication.

Request

This endpoint expects a multipart form containing a file.
filefileRequired
The file to store
hasHeaderbooleanOptional

Indicates if the file has a header (for CSV/Excel)

firstRowintegerOptional

Indicates where the first row starts (for CSV format)

delimiterstringOptional

Delimiter to separate values (for CSV format)

sheetstringOptional

The sheet where data lives (for Excel)

dataRangestringOptional

The data range in the sheet (for Excel)

resolveFileNameConflictbooleanOptional
Whether to generate a UUID file name
targetFolderstringOptional
The target folder to store the file
overwriteExistingFilebooleanOptional
Whether to overwrite an existing file

Response

File successfully uploaded
idstringOptional
Internal file ID
namestringOptional
File name
resourceIdstringOptional
Resource ID of the file
formatstringOptional

File format (CSV, Excel, JSON)

hasHeaderbooleanOptional
Indicates if the file has a header
firstRowintegerOptional
The first row number in the CSV file
delimiterstringOptional
Delimiter used in the CSV file
sheetstringOptional
The sheet name in the Excel file
dataRangestringOptional
Data range in the Excel file
linesintegerOptional
Number of lines in the file
createdAtdatetimeOptional
Creation timestamp
updatedAtdatetimeOptional
Last update timestamp

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error