QueryChildDivisionCode

Updated at:

Queries child division codes.

Operation description

Queries child division codes.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

linkedmall:QueryChildDivisionCode

get

*All Resource

*

None None

Request syntax

POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/division/commands/queryChildDivisionCode HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

body DivisionQuery

Yes

The parameters for querying child division codes.

{
  "divisionCode": "1"
}

Response elements

Element

Type

Description

Example

DivisionPageResult

The child division codes.

{
  "requestId": "85144A43-F418-1094-9A40-B8CE****8F30",
  "divisionList": [
    {
      "parentId": 1,
      "divisionCode": 310000,
      "divisionName": "Shanghai",
      "divisionLevel": 2,
      "pinyin": "shang hai"
    },
    {
      "parentId": 1,
      "divisionCode": 530000,
      "divisionName": "Yunnan Province",
      "divisionLevel": 2,
      "pinyin": "yun nan sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 150000,
      "divisionName": "Inner Mongolia Autonomous Region",
      "divisionLevel": 2,
      "pinyin": "nei meng gu zi zhi qu"
    },
    {
      "parentId": 1,
      "divisionCode": 110000,
      "divisionName": "Beijing",
      "divisionLevel": 2,
      "pinyin": "bei jing"
    },
    {
      "parentId": 1,
      "divisionCode": 220000,
      "divisionName": "Jilin Province",
      "divisionLevel": 2,
      "pinyin": "ji lin sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 510000,
      "divisionName": "Sichuan Province",
      "divisionLevel": 2,
      "pinyin": "si chuan sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 120000,
      "divisionName": "Tianjin",
      "divisionLevel": 2,
      "pinyin": "tian jin"
    },
    {
      "parentId": 1,
      "divisionCode": 640000,
      "divisionName": "Ningxia Hui Autonomous Region",
      "divisionLevel": 2,
      "pinyin": "ning xia hui zu zi zhi qu"
    },
    {
      "parentId": 1,
      "divisionCode": 340000,
      "divisionName": "Anhui Province",
      "divisionLevel": 2,
      "pinyin": "an hui sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 370000,
      "divisionName": "Shandong Province",
      "divisionLevel": 2,
      "pinyin": "shan dong sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 140000,
      "divisionName": "Shanxi Province",
      "divisionLevel": 2,
      "pinyin": "shan xi sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 440000,
      "divisionName": "Guangdong Province",
      "divisionLevel": 2,
      "pinyin": "guang dong sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 450000,
      "divisionName": "Guangxi Zhuang Autonomous Region",
      "divisionLevel": 2,
      "pinyin": "guang xi zhuang zu zi zhi qu"
    },
    {
      "parentId": 1,
      "divisionCode": 650000,
      "divisionName": "Xinjiang Uygur Autonomous Region",
      "divisionLevel": 2,
      "pinyin": "xin jiang wei wu er zi zhi qu"
    },
    {
      "parentId": 1,
      "divisionCode": 320000,
      "divisionName": "Jiangsu Province",
      "divisionLevel": 2,
      "pinyin": "jiang su sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 360000,
      "divisionName": "Jiangxi Province",
      "divisionLevel": 2,
      "pinyin": "jiang xi sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 130000,
      "divisionName": "Hebei Province",
      "divisionLevel": 2,
      "pinyin": "he bei sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 410000,
      "divisionName": "Henan Province",
      "divisionLevel": 2,
      "pinyin": "he nan sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 330000,
      "divisionName": "Zhejiang Province",
      "divisionLevel": 2,
      "pinyin": "zhe jiang sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 460000,
      "divisionName": "Hainan Province",
      "divisionLevel": 2,
      "pinyin": "hai nan sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 420000,
      "divisionName": "Hubei Province",
      "divisionLevel": 2,
      "pinyin": "hu bei sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 430000,
      "divisionName": "Hunan Province",
      "divisionLevel": 2,
      "pinyin": "hu nan sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 620000,
      "divisionName": "Gansu Province",
      "divisionLevel": 2,
      "pinyin": "gan su sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 350000,
      "divisionName": "Fujian Province",
      "divisionLevel": 2,
      "pinyin": "fu jian sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 540000,
      "divisionName": "Tibet Autonomous Region",
      "divisionLevel": 2,
      "pinyin": "xi zang zi zhi qu"
    },
    {
      "parentId": 1,
      "divisionCode": 520000,
      "divisionName": "Guizhou Province",
      "divisionLevel": 2,
      "pinyin": "gui zhou sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 210000,
      "divisionName": "Liaoning Province",
      "divisionLevel": 2,
      "pinyin": "liao ning sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 500000,
      "divisionName": "Chongqing",
      "divisionLevel": 2,
      "pinyin": "chong qing"
    },
    {
      "parentId": 1,
      "divisionCode": 610000,
      "divisionName": "Shaanxi Province",
      "divisionLevel": 2,
      "pinyin": "shan xi sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 630000,
      "divisionName": "Qinghai Province",
      "divisionLevel": 2,
      "pinyin": "qing hai sheng"
    },
    {
      "parentId": 1,
      "divisionCode": 230000,
      "divisionName": "Heilongjiang Province",
      "divisionLevel": 2,
      "pinyin": "hei long jiang sheng"
    }
  ]
}

Examples

Success response

JSON format

{
  "divisionList": [
    {
      "divisionName": "上海",
      "divisionCode": 310000,
      "divisionLevel": 2,
      "pinyin": "shang hai",
      "parentId": 1
    }
  ],
  "requestId": "841471F6-5D61-1331-8C38-2****B55"
}

Error codes

See Error CodesError Codes for a complete list.

Release notes

See Release NotesRelease Notes for a complete list.