Skip to main content

v2.media_space.upload_image

POST /api/v2/media_space/upload_image

Use this API to upload multiple image files (less than 9 images).

Endpoint URL

URL: https://partner.shopeemobile.com/api/v2/media_space/upload_image

Common Request Parameters

NameTypeSampleDescription
partner_idint1Partner ID is assigned upon registration is successful. Required for all requests.
timestamptimestamp1610000000This is to indicate the timestamp of the request. Required for all requests. Expires in 5 minutes.
signstringe318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2Signature generated by partner_id, api path, timestamp and partner_key via HMAC-SHA256 hashing algorithm. More details: https://open.shopee.com/documents?module=87&type=2&id=58&version=2

Request Parameters

NameTypeRequiredSampleDescription
imagefileTrueimage files. Max 10.0 MB each. Image format accepted: JPG, JPEG, PNG. image number should be less than 9
scenestringFalseThe scene where the picture is used, The value range is normal or desc; normal: we will process the image as a square image, it is recommended to use when uploading item image; desc: we will not process the image, it is recommended to use when uploading the image of extend_description, if you do not upload this field, it will be normal.
ratiostringFalse3:4only applicable to whitelisted sellers. only support 1:1 and 3:4; 1:1 by default.

Response Parameters

NameTypeSampleDescription
errorstringIndicate error type if hit error. Empty if no error happened.
messagestringIndicate error details if hit error. Empty if no error happened.
warningstringIndicate warning message you should take care.
request_idstringThe identifier for an API request for error tracking.
responseobject
image_infoobject
image_idstringId of image
image_url_listobject[]Image URL of each region
image_url_regionstringRegion of image url
image_urlstringimage url
image_info_listobject[]
idint32the index of images
errorstringIndicate error type if this index's image upload processing hit error. Empty if no error happened for this index's image .
messagestringIndicate error detail if this index's image upload processing hit error. Empty if no error happened for this index's image .
image_infoobject
image_idstringId of image
image_url_listobject[]Image URL of each region
image_url_regionstringRegion of image url
image_urlstringimage url