eBay Post-Order APIVersion 2

UploadFileRequest

This type defines the base request for the POST /post-order/v2/return/{returnId}/file/upload and POST /post-order/v2/return/draft/{draftId}/file/upload calls.

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, upload 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 call response) of each file.
See the Field Index to learn which calls use fileName.

filePurpose ( token ) [0..?]
Set this value to the type of file you're uploading, either ITEM_RELATED if the file is a BMP, GIF, JPEG, or PNG image file, or LABEL_RELATED if the file is a PDF shipping label file. See the FilePurposeEnum type for supported values for this field.
See the Field Index to learn which calls use filePurpose.