# 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.

 - [GET /api/integration/v1/fileupload/status/{file_request_id}](https://developer.zuora.com/other-api/revenue-api-3/file-upload/get_fileuploadstatus.md): Gets the status information about the specified file upload request.
 - [POST /api/integration/v1/upload/file](https://developer.zuora.com/other-api/revenue-api-3/file-upload/uploadfiles.md): Uploads a CSV file against the upload template named in the `templatename` header. **Asynchronous mode**(`async=true`): Supported only for templates of type `Transactions / Cost`, `Event` and `Consump
 - [GET /api/integration/v1/upload/file/status/{upload_id}](https://developer.zuora.com/other-api/revenue-api-3/file-upload/getasyncuploadfilestatus.md): Returns the status of an **asynchronous** file upload (`POST /v1/upload/file?async=true`). Use the `id` returned in the `202` response as `upload_id`. Poll until `status` is `Successfully Uploaded` or
 - [GET /api/integration/v1/upload/file/error/{upload_id}](https://developer.zuora.com/other-api/revenue-api-3/file-upload/getasyncuploadfileerrors.md): Returns the rows rejected during an asynchronous upload, streamed as newline-delimited JSON. Each line is an object `{"data": [ ... ]}` with up to `chunk_size` rows. Each row contains the original CSV
 - [GET /api/integration/v2/fileupload/status/{file_request_id}](https://developer.zuora.com/other-api/revenue-api-3/file-upload/getfileuploadstatusv2.md): Returns the status of a synchronous upload. If the file was rejected before any data was loaded, the load errors are returned as a list in `Message` with HTTP `400`. For asynchronous uploads, use the
