v2.product.register_brand
POST /api/v2/product/register_brand
Use this call to register a brand.
Đường dẫn Endpoint
URL: https://partner.shopeemobile.com/api/v2/product/register_brand
Tham số chung
| Tên | Kiểu | Mẫu | Mô tả |
|---|---|---|---|
| partner_id | int | 1 | Partner ID được gán khi đăng ký thành công. Bắt buộc cho tất cả các yêu cầu. |
| timestamp | timestamp | 1610000000 | Dùng để chỉ định thời gian của yêu cầu. Bắt buộc cho tất cả các yêu cầu. Hết hạn sau 5 phút. |
| access_token | string | c09222e3fc40ffb25fc947f738b1abf1 | Token truy cập API, dùng để xác định quyền của bạn đối với API. Có thể sử dụng nhiều lần và hết hạn sau 4 giờ. |
| shop_id | int | 600000 | Mã định danh duy nhất của Shopee cho một cửa hàng. Tham số bắt buộc cho hầu hết các API. |
| sign | string | e318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2 | Signature generated by partner_id, api path, timestamp, access_token, shop_id and partner_key via HMAC-SHA256 hashing algorithm. More details: https://open.shopee.com/documents?module=87&type=2&id=58&version=2 |
Tham số Request
| Tên | Kiểu | Bắt buộc | Mẫu | Mô tả |
|---|---|---|---|---|
| original_brand_name | string | True | Nike | Tên thương hiệu, length<=254. |
| category_list | int[] | True | [16521,16522] | Category_id list for this brand, please input category in L1 or L2. Max input num of category_id is 50. |
| product_image | object | True | ||
| image_id_list | string[] | True | Image Id of product image for this brand, max input num of file = 10 ,each file's length<=498. ID market is optional. | |
| app_logo_image_id | string | False | 6373157f9408b42c8aacda1d63d3a209 | Image_id of logo for app client,please input hashcode of this picture. |
| brand_website | string | False | www.nike.com | Official website of brand, length<=254. |
| brand_description | string | False | Our mission is what drives us to do everything possible to expand human potential. We do that by creating groundbreaking sport innovations, by making our products more sustainably, by building a creative and diverse global team and by making a positive impact in communities where we live and work | Mô tả về this brand, can input the information, length<=254. |
| additional_information | string | False | additional notes or comment can seller can add | Additional notes or comment can seller can add, length<=254. |
| pc_logo_image_id | string | False | 6373157f9408b42c8aacda1d63d3a209 | Image_id of logo for pc client,please input hashcode of this picture. |
| brand_region | string | True | US | origin region of brand. |
| licenses | object[] | False | For appeal blacklisted brand data | |
| file_name | string | False | image.jpg | Brand registration certificate image name, len < 254 |
| file_hash | string | False | 6373157f9408b42c8aacda1d63d3a209 | Image id of brand registration certificate image , max input num of file = 1 , each file's length<=498 |
| brand_registration_website | string | False | https://www.jumbomark.com/indonesia/trademark-registration/mischief-DID2019017755 | The link to brand registration website, It is mandatory when tên thương hiệu hit blacklist.len<254 |
Tham số Response
| Tên | Kiểu | Mẫu | Mô tả |
|---|---|---|---|
| request_id | string | 3e0976b06baa4e059b278ef1fdae1f01 | Mã định danh của yêu cầu API dùng để theo dõi lỗi. |
| error | string | product.duplicate_request | Loại lỗi nếu có lỗi xảy ra. Trống nếu không có lỗi. |
| message | string | You has replied this comment already. | Chi tiết lỗi nếu có lỗi xảy ra. Trống nếu không có lỗi. |
| response | object | ||
| brand_id | int | The identity of brand. | |
| original_brand_name | string | Tên thương hiệu |
Dữ liệu gửi
,
"app_logo_image_id": "6373157f9408b42c8aacda1d63d3a209",
"brand_website": "www.nike.com",
"brand_description": "Our mission is what drives us to do everything possible to expand human potential. We do that by creating groundbreaking sport innovations, by making our products more sustainably, by building a creative and diverse global team and by making a positive impact in communities where we live and work",
"additional_information": "additional notes or comment can seller can add",
"pc_logo_image_id": "6373157f9408b42c8aacda1d63d3a209",
"brand_region": "US"
}Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.post("https://partner.shopeemobile.com/api/v2/product/register\_brand?shop\_id=shop\_id&partner\_id=partner\_id&sign=sign&access\_token=access\_token×tamp=timestamp")
.header("Content-Type","application/json")
.body("{
"additional_information": "additional notes or comment can seller can add",
"app_logo_image_id": "6373157f9408b42c8aacda1d63d3a209",
"brand_country": "US",
"brand_description": "Our mission is what drives us to do everything possible to expand human potential. We do that by creating groundbreaking sport innovations, by making our products more sustainably, by building a creative and diverse global team and by making a positive impact in communities where we live and work",
"brand_website": "www.nike.com",
"category_list": [
16521,
16522
],
"original_brand_name": "Nike",
"pc_logo_image_id": "6373157f9408b42c8aacda1d63d3a209",
"product_image": {
"image_id_list": [
"-"
]
}
}")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://partner.shopeemobile.com/api/v2/product/register\_brand?access\_token=access\_token&partner\_id=partner\_id&shop\_id=shop\_id&sign=sign×tamp=timestamp',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => '{
"additional_information": "additional notes or comment can seller can add",
"app_logo_image_id": "6373157f9408b42c8aacda1d63d3a209",
"brand_country": "US",
"brand_description": "Our mission is what drives us to do everything possible to expand human potential. We do that by creating groundbreaking sport innovations, by making our products more sustainably, by building a creative and diverse global team and by making a positive impact in communities where we live and work",
"brand_website": "www.nike.com",
"category_list": [
16521,
16522
],
"original_brand_name": "Nike",
"pc_logo_image_id": "6373157f9408b42c8aacda1d63d3a209",
"product_image": {
"image_id_list": [
"-"
]
}
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
curl --location --request POST 'https://partner.shopeemobile.com/api/v2/product/register\_brand?shop\_id=shop\_id&partner\_id=partner\_id&sign=sign&access\_token=access\_token×tamp=timestamp'
--header 'Content-Type: application/json'
--data-raw '{
"additional_information": "additional notes or comment can seller can add",
"app_logo_image_id": "6373157f9408b42c8aacda1d63d3a209",
"brand_country": "US",
"brand_description": "Our mission is what drives us to do everything possible to expand human potential. We do that by creating groundbreaking sport innovations, by making our products more sustainably, by building a creative and diverse global team and by making a positive impact in communities where we live and work",
"brand_website": "www.nike.com",
"category_list": [
16521,
16522
],
"original_brand_name": "Nike",
"pc_logo_image_id": "6373157f9408b42c8aacda1d63d3a209",
"product_image": {
"image_id_list": [
"-"
]
}
}'
import requests
import json
url = "https://partner.shopeemobile.com/api/v2/product/register\_brand?access\_token=access\_token&partner\_id=partner\_id&shop\_id=shop\_id&sign=sign×tamp=timestamp"
payload=json.dumps({
"additional_information": "additional notes or comment can seller can add",
"app_logo_image_id": "6373157f9408b42c8aacda1d63d3a209",
"brand_country": "US",
"brand_description": "Our mission is what drives us to do everything possible to expand human potential. We do that by creating groundbreaking sport innovations, by making our products more sustainably, by building a creative and diverse global team and by making a positive impact in communities where we live and work",
"brand_website": "www.nike.com",
"category_list": [
16521,
16522
],
"original_brand_name": "Nike",
"pc_logo_image_id": "6373157f9408b42c8aacda1d63d3a209",
"product_image": {
"image_id_list": [
"-"
]
}
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST",url,headers=headers, data=payload, allow_redirects=False)
print(response.text)
}