Skip to main content
POST
Spree Seller SDK

Authorizations

Authorization
string
header
required

JWT token for an authenticated seller session (seller_api audience)

Headers

X-Spree-Seller-Id
string
required

Body

filename
string
required
Example:

"registration.pdf"

content_type
string
required
Example:

"application/pdf"

byte_size
integer
Example:

51234

checksum
string

Base64-encoded MD5 digest of the file; the storage service checks the bytes against it.

Example:

"rL0Y20zC+Fzt72VPzMSk2A=="

visibility
enum<string>

public (the default) for images, videos and CSV files anyone may fetch, private for any type.

Available options:
public,
private
file
file

The bytes, for a multipart upload.

Response

201 - application/json

upload target created

signed_id
string
required
filename
string
required
content_type
string
required
byte_size
number
required
visibility
enum<string>
required
Available options:
public,
private
expires_at
string
required
upload
object | null
required