Upload file

Upload the event or transaction data in a CSV file to Zuora Revenue in UTF-8.

Note: It is recommended to have up to 60k lines per request in this operation.

Request
header Parameters
token
required
string

The valid authentication token that is generated by the Authentication operation.

templatename
required
string

Name of the upload template that you want to use.

Content-Type
required
string

Must be set to "multipart/form-data".

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

The path to the CSV file that is to be uploaded.

Responses
200

The file is uploaded to Zuora Revenue.

400

Exception occurs. Please contact Zuora Revenue Support.

post/api/integration/v1/upload/file
Request samples
curl -X POST \
  https://yourHost/api/integration/v1/upload/file \
  -H 'cache-control: no-cache' \
  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  -H 'templatename: sample_upload_template.csv' \
  -H 'token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IlpJTkdBUEkiLCJpc3MiOiJSRVZQUk8gMy4wIFdlYnNlcnZpY2VzIiwicm9sZSI6IlJldnBybyBBUEkgUm9sZSIsImV4cCI6MTUwNDc0NTIxMywiaWF0IjoxNTA0NzQzNDEzLCJuYmYiOjE1MDQ3NDM0MTMsImNsaWVudG5hbWUiOiJEZWZhdWx0In0.umtarSxRc0KUld5RZkrZMwzIypQYdwFYBP5-d1Cbi1Q' \
  -F 'file=@/Users/user1/Downloads/Upload Template MO.csv'
Response samples
application/json; charset=utf-8
{
  • "message": "File received successfully",
  • "status": "Success"
}