Document Upload

Document Upload: Create

Parameters
'file'file
The binary data of the file to upload. Only png, jpg, jpeg, or pdf files are supported.
'kind'multiple

The type of uploaded document. Value should always be EVIDENCE_DOCUMENT.

Examplesanchor

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