Document Upload: Create
Parameters
'file'fileThe binary data of the file to upload. Only
png, jpg, jpeg, or pdf files are supported. The file must not exceed 4MB.'kind'multipleThe type of uploaded document. Value should always be EVIDENCE_DOCUMENT.
Examples
- Python
result = gateway.document_upload.create(
{
"kind": braintree.DocumentUpload.Kind.EvidenceDocument,
"file": open("path/to/file", "rb"),
}
)
result.is_success
# True
result.document_upload
# a braintree.DocumentUpload object