Upload a file

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.

SecuritybearerAuth
Request
Request Body schema: multipart/form-data
file
required
string <binary>

The file to store

hasHeader
boolean

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

firstRow
integer

Indicates where the first row starts (for CSV format)

delimiter
string

Delimiter to separate values (for CSV format)

sheet
string

The sheet where data lives (for Excel)

dataRange
string

The data range in the sheet (for Excel)

resolveFileNameConflict
boolean

Whether to generate a UUID file name

targetFolder
string

The target folder to store the file

overwriteExistingFile
boolean

Whether to overwrite an existing file

Responses
200

File successfully uploaded

400

Bad request

401

Unauthorized

500

Internal server error

post/meters/create-file
Request samples
Response samples
application/json
{
  • "id": "string",
  • "name": "string",
  • "resourceId": "string",
  • "format": "string",
  • "hasHeader": true,
  • "firstRow": 0,
  • "delimiter": "string",
  • "sheet": "string",
  • "dataRange": "string",
  • "lines": 0,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}