Make a POST request to this endpoint to upload a file. We currently support uploading PNG, JPG/JPEG, PDF files of less than 10 MB.
Purpose of the file being uploaded
The file
Successful operation
{
"id": "file-ec700c1c-db17-4496-b1fb-04ebe551b412",
"business_id": "ec700c1c-db17-4496-b1fb-04ebe551b412",
"purpose": "CHARGEBACK_EVIDENCE",
"created": "2020-10-08T06:38:33.479Z",
"updated": "2020-10-08T06:38:33.479Z",
"type": "image/png",
"size": 10000,
"url": "https://files.xendit.co/file-ec700c1c-db17-4496-b1fb-04ebe551b412"
}
Unique ID generated by Xendit for the particular file
Unique ID generated by Xendit for the particular file
Purpose of the file
UTC Timestamp of file upload in ISO format
UTC Timestamp of last file update in ISO format
Type of the file
Size of the file in bytes
URL to download the file
Inputs are failing validation. The errors field contains details about which fields are violating validation.
API key in use does not have necessary permissions to perform the request. Please assign proper permissions for the key.
The file size is greater than 2000000 bytes and exceeded size limits. Please compress the payload before retrying
The file format is not supported. Please review the file type before retrying
The file format is not supported. Please review the file type before retrying