Import a file

Import a file from a URL. The file will be downloaded and optionally attached to an order.

Body Params
string
required
string
required

The ID of the order to which the file will be attached.

string
enum
required

The purpose of the file.

Allowed:
string

The name of the file. If not provided, the name of the file will be parsed from the URL path or Content-Disposition header..

string

The MIME type of the file. If not provided, the MIME type will be parsed from the URL response header.

string

The expected MD5 hash of the file. If provided, the file will be validated against the expected MD5 hash and not imported if the hash does not match.

number

The expected number of bytes to be downloaded. If provided, the file will be validated against the expected size and not imported if the size does not match.

Response

Language
Credentials
Basic
base64
:
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json