Modify Store

Last Updated on : 2023-06-21 07:12:57download

Modify the information about a specified store.

API address

PUT: /v1.0/iot-03/retail/shops/{shop_id}

Request parameter

Parameter name Type IN Required Description
shop_id String uri true The ID of a specified store.

Description of body

Parameter name Type IN Required Description
shop_name String false The name of a specified store.
province_code Integer false The code of a specified province.
province_name String false The name of a specified province.
city_code Integer false The code of a specified city.
city_name String false The name of a specified city.
district_code Integer false The code of a specified district.
district_name String false The name of a specified district.
address String false The detailed address.
business_hours List false The business hours.
shop_layout_plan String false The layout plan of a specified store.

Description of business_hours

Parameter name Type IN Required Description
opening_time Long false The 10 or 13-bit timestamp of the start time.
closing_time Long false The 10 or 13-bit timestamp of the end time.

Return parameter

Parameter name Type Description
result Boolean The returned result.

Request example

PUT: /v1.0/iot-03/retail/shops/123456***
{ "shop_name": "xxx Store" "address": "xxx Center", }

Return example

{ "result": true, "t": 1623835234825, "success": true }

Error code

For more information, see error code.

Description of province_code, city_code, and district_code For more information about Chinese cities, see [Administrative Division Code of the People’s Republic of China] (http://www.mca.gov.cn/article/sj/xzqh/2020/2020/202101041104.html).