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
| Name | Type | Sample | Description |
|---|---|---|---|
| partner_id | int | 1 | Partner ID is assigned upon registration is successful. Required for all requests. |
| timestamp | timestamp | 1610000000 | This is to indicate the timestamp of the request. Required for all requests. Expires in 5 minutes. |
| sign | string | e318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2 | Signature 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
| Name | Type | Required | Sample | Description |
|---|---|---|---|---|
| image | file | True | image files. Max 10.0 MB each. Image format accepted: JPG, JPEG, PNG. image number should be less than 9 | |
| scene | string | False | The 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. | |
| ratio | string | False | 3:4 | only applicable to whitelisted sellers. only support 1:1 and 3:4; 1:1 by default. |
Response Parameters
| Name | Type | Sample | Description |
|---|---|---|---|
| error | string | Indicate error type if hit error. Empty if no error happened. | |
| message | string | Indicate error details if hit error. Empty if no error happened. | |
| warning | string | Indicate warning message you should take care. | |
| request_id | string | The identifier for an API request for error tracking. | |
| response | object | ||
| image_info | object | ||
| image_id | string | Id of image | |
| image_url_list | object[] | Image URL of each region | |
| image_url_region | string | Region of image url | |
| image_url | string | image url | |
| image_info_list | object[] | ||
| id | int32 | the index of images | |
| error | string | Indicate error type if this index's image upload processing hit error. Empty if no error happened for this index's image . | |
| message | string | Indicate error detail if this index's image upload processing hit error. Empty if no error happened for this index's image . | |
| image_info | object | ||
| image_id | string | Id of image | |
| image_url_list | object[] | Image URL of each region | |
| image_url_region | string | Region of image url | |
| image_url | string | image url |