批量创建门店组信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求头

该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。

请求语法

POST /BatchCreateShopGroup HTTP/1.1

请求参数

名称 类型 位置 是否必选 示例值 描述
Country String FormData CN

国家字段,CN:中国,SG:新加坡

ShopGroupList Array of Item FormData

门店组列表,限制20个门店组以内

ShopGroupId String FormData ShopGroupId

门店组编号(ID)

ShopGroupName String FormData ShopGroupName

门店组名称

返回数据

名称 类型 示例值 描述
Success Boolean true

成功标志

Message String success

说明

Code String success

状态码

HttpStatusCode Integer 200

http状态码

RequestId String RequestId

请求ID

Data Array of Data

出错门店组列表

ShopGroupId String ShopGroupId

门店组ID

Code String Code

错误码

Message String Message

错误信息

示例

请求示例

POST /BatchCreateShopGroup HTTP/1.1
Host:cd.aliyuncs.com
Content-Type:application/json

Country=CN&ShopGroupList=[{"ShopGroupId":"ShopGroupId","ShopGroupName":"ShopGroupName"}]

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<BatchCreateShopGroupResponse>
    <Success>true</Success>
    <Message>success</Message>
    <Code>success</Code>
    <HttpStatusCode>200</HttpStatusCode>
    <RequestId>RequestId</RequestId>
    <Data>
        <ShopGroupId>ShopGroupId</ShopGroupId>
        <Code>Code</Code>
        <Message>Message</Message>
    </Data>
</BatchCreateShopGroupResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Success" : true,
  "Message" : "success",
  "Code" : "success",
  "HttpStatusCode" : 200,
  "RequestId" : "RequestId",
  "Data" : {
    "ShopGroupId" : "ShopGroupId",
    "Code" : "Code",
    "Message" : "Message"
  }
}

错误码

HttpCode 错误码 错误信息 描述
400 Params.Illegal The request parameters are invalid. 请求入参非法
401 Unauthorized You are not authorized to perform this operation. 未授权的请求
403 Forbidden This request is prohibited. 请求被禁止
503 Service.Unavailable The service is unavailable. Please try again later. 服务当前暂不可用,请稍后重试

访问错误中心查看更多错误码。