UploadFileRequest
The base request type for the POST /post-order/v2/return/{returnId}/file/upload and POST /post-order/v2/return/draft/{draftId}/file/upload methods.
Calls that use UploadFileRequest:
/post-order/v2/return/draft/{draftId}/file/upload POST, /post-order/v2/return/{returnId}/file/upload POST
Fields
The input for this field is a base64-encoded binary representation of the file you are uploading.
For images, the system accepts BMP, GIF, JPEG, and PNG files. For shipping labels, the system accepts either an image (BMP, GIF, JPEG, and PNG files) or a PDF file.
For images, the system accepts BMP, GIF, JPEG, and PNG files. For shipping labels, the system accepts either an image (BMP, GIF, JPEG, and PNG files) or a PDF file.
Note: The data field supports single-time base64 encoding. For backward compatibility, the data field also presently supports double base64 encoding.
See the Field Index to learn which calls use data.
This field is used to name the file that is being uploaded. Naming a file may make it easier for the buyer or seller to keep track of their files, instead of having to remember the fileId value (which is returned in the response) of each file.
See the Field Index to learn which calls use fileName.
filePurpose ( FilePurposeEnum ) [0..?]
The enumeration value supplied in this required field indicates the purpose of the file that you're uploading. One of the values defined in the FilePurposeEnum type definition must be used in this field.
See the Field Index to learn which calls use filePurpose.