Skip to content

File Upload

The File Upload operations are used to upload data as a CSV file to Zuora Revenue, in synchronous or asynchronous mode, and to get status information about the file upload.

  • Asynchronous (async=true) - Transactions / Cost, Event and Consumption templates. Recommended 250,000 - 300,000 records per CSV file for Transactions / Cost and Event, and up to 500,000 records per CSV file for Consumption. Supports partial upload: records with a valid format and data type are ingested; records with an invalid format or data type are rejected.
  • Synchronous - Bundle, Custom, Variable Consideration, Forecast and all other templates. Recommended up to 60,000 records per CSV file. Ingestion is all or none: either all records are ingested or all records are rejected.

For asynchronous uploads, use "Retrieve the asynchronous file upload status" operation to track the upload and "Retrieve the asynchronous file upload errors" operation to download the rejected records.

Retrieve the file upload status

Request

Gets the status information about the specified file upload request.

Security
bearerAuth
Path
file_request_idintegerrequired

The request ID of the file upload to be queried.

Headers
tokenstringrequired

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

cURL
curl -i -X GET \
  'https://one.zuora.com/api/integration/v1/fileupload/status/{file_request_id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'token: string'

Responses

The status information is returned for the requested file upload.

Bodyapplication/json; charset=utf-8
ResultArray of objects(uploadStatus)
messagestring

Response Message

Default:"Data Staged Successfully"
statusstring

Response Status

Default:"Success"
Response
{ "Result": [ { … } ], "message": "Data Staged Successfully", "status": "Success" }