eBay Post-Order APIVersion 2.7.3
 

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:

Fields

data ( array of string ) [0..?]
The input for this field is a base64-encoded binary representation of the file you are uploading. Depending on the type of file you are uploading, you may need to encode the file twice.

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.
See the Field Index to learn which calls use data.

fileName ( string ) [0..?]
This field is used to name the file that is being uploaded. This field is optional, but 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.