GetSelectionProduct

Updated at:

Query the details of a product in the selection pool.

Operation description

Retrieve product details from the selection pool using the product ID. You can also specify a region code to check regional inventory.

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:GetSelectionProduct

get

*All Resource

*

None None

Request syntax

GET /opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/products/{productId} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

productId

string

Yes

Product ID

660460842235822080

Request parameters

Parameter

Type

Required

Description

Example

purchaserId

string

Yes

Purchaser ID

PID22000009

divisionCode

string

No

Region code (use a five-level township or subdistrict address code)

330106109

{
  "productId": "660057403063402509",
  "purchaserId": "PID22000009",
  "divisionCode": "330106109"
}

Response elements

Element

Type

Description

Example

Product

Product details

{
  "requestId": "EA2F57E7-94AF-1C51-B607-47EECC6CCAB2",
  "productId": "660057403063402509",
  "title": "Xi'an/Chengdu purchase-limited test item - yh - do not place order, edited via QianNiu and synced",
  "picUrl": "//img.alicdn.com/imgextra/i2/2214281521988/O1CN01mBXX711QYYFAxfNiX_!!2214281521988.jpg",
  "descPath": "//itemcdn.tmall.com/desc/icoss!0724961349057!11733929840",
  "categoryLeafId": 50022568,
  "images": [
    "//img.alicdn.com/imgextra/i2/2214281521988/O1CN01mBXX711QYYFAxfNiX_!!2214281521988.jpg",
    "//img.alicdn.com/imgextra/i1/2214281521988/O1CN011QYYFMQFeubcGuJ_!!2214281521988.jpg"
  ],
  "properties": [
    {
      "text": "Brand",
      "values": [
        "Qi Qing (Fresh Flowers)"
      ]
    },
    {
      "text": "Color classification",
      "values": [
        "Light gray",
        "Black",
        "Single SKU item why111, edited via QianNiu and synced"
      ]
    }
  ],
  "productSpecs": [
    {
      "keyId": 0,
      "key": "Color classification",
      "values": [
        {
          "valueId": 0,
          "value": "Light gray"
        },
        {
          "valueId": 0,
          "value": "Black"
        },
        {
          "valueId": 0,
          "value": "Single SKU item why111, edited via QianNiu and synced"
        }
      ]
    }
  ],
  "skus": [
    {
      "shopId": "21000017",
      "productId": "660057403063402509",
      "skuId": "660057403063402511",
      "title": "Light gray",
      "picUrl": "//img.alicdn.com/imgextra/i2/2214281521988/O1CN01mBXX711QYYFAxfNiX_!!2214281521988.jpg",
      "skuSpecs": [
        {
          "keyId": 0,
          "key": "Color classification",
          "valueId": 0,
          "value": "Light gray"
        }
      ],
      "skuSpecsCode": "",
      "skuStatus": "Online",
      "canSell": true,
      "quantity": -1,
      "fuzzyQuantity": "In stock",
      "price": 2,
      "markPrice": 777700,
      "platformPrice": 777700,
      "divisionCode": "330106109"
    },
    {
      "shopId": "21000017",
      "productId": "660057403063402509",
      "skuId": "660057403063402510",
      "title": "Single SKU item why111, edited via QianNiu and synced",
      "picUrl": "//img.alicdn.com/imgextra/i2/2214281521988/O1CN01mBXX711QYYFAxfNiX_!!2214281521988.jpg",
      "skuSpecs": [
        {
          "keyId": 0,
          "key": "Color classification",
          "valueId": 0,
          "value": "Single SKU item why111"
        }
      ],
      "skuSpecsCode": "",
      "skuStatus": "Online",
      "canSell": true,
      "quantity": -1,
      "fuzzyQuantity": "In stock",
      "price": 1,
      "markPrice": 777700,
      "platformPrice": 777700,
      "divisionCode": "330106109"
    },
    {
      "shopId": "21000017",
      "productId": "660057403063402509",
      "skuId": "660057403063402512",
      "title": "Black",
      "picUrl": "//img.alicdn.com/imgextra/i2/2214281521988/O1CN01mBXX711QYYFAxfNiX_!!2214281521988.jpg",
      "skuSpecs": [
        {
          "keyId": 0,
          "key": "Color classification",
          "valueId": 0,
          "value": "Black"
        }
      ],
      "skuSpecsCode": "",
      "skuStatus": "Online",
      "canSell": true,
      "quantity": -1,
      "fuzzyQuantity": "In stock",
      "price": 9,
      "markPrice": 777700,
      "platformPrice": 777700,
      "divisionCode": "330106109"
    }
  ],
  "canSell": true,
  "productType": "Normal",
  "productStatus": "Online",
  "shopId": "21000017",
  "quantity": -1,
  "fuzzyQuantity": "In stock",
  "taxRate": null,
  "taxCode": null,
  "categoryChain": [
    {
      "categoryId": 50020808,
      "name": "Home Decor",
      "parentId": 0,
      "level": 0,
      "isLeaf": false
    },
    {
      "categoryId": 50022568,
      "name": "Other Craft Decorations",
      "parentId": 50020808,
      "level": 0,
      "isLeaf": true
    }
  ],
  "soldQuantity": "2",
  "divisionCode": "330106109"
}

Examples

Success response

JSON format

{
  "categoryChain": [
    {
      "name": "名称测试",
      "isLeaf": false,
      "level": 0,
      "categoryId": 201792301,
      "parentId": 0
    }
  ],
  "skus": [
    {
      "quantity": -1,
      "productId": "660460842235822080",
      "canSell": true,
      "fuzzyQuantity": "有货\n无货\n库存紧张",
      "skuStatus": "Online",
      "skuSpecsCode": "颜色分类:天蓝色",
      "platformPrice": 999900,
      "title": "天蓝色",
      "divisionCode": "110000",
      "picUrl": "https:////img.alicdn.com/imgextra///img.alicdn.com/imgextra/i2/2216003305543/O1CN010DEQCX1qokFYGRfPE_!!2216003305543.png",
      "markPrice": 999900,
      "skuSpecs": [
        {
          "keyId": 1000,
          "valueId": 1000,
          "value": "天蓝色",
          "key": "颜色分类",
          "valueAlias": "秘色"
        }
      ],
      "price": 19800,
      "shopId": "21000017",
      "skuId": "660460842235822081",
      "barcode": "6922454329176",
      "rankValue": 3,
      "suggestedRetailPrice": 0,
      "discountRetailPrice": 0,
      "skuAlias": ""
    }
  ],
  "lmItemId": "2100****7-458****812",
  "canSell": true,
  "fuzzyQuantity": "有货",
  "title": "发财树",
  "extendProperties": [
    {
      "key": "ss_picture_scene",
      "value": "场景图"
    }
  ],
  "servicePromises": [
    ""
  ],
  "soldQuantity": "100+",
  "picUrl": "https://img.alicdn.com/imgextra/i3/221*******988/O1CN01w4vomR1QYYEx6nyr5_!!221******988.jpg",
  "categoryLeafId": 0,
  "requestId": "3239281273******823",
  "shopId": "210*****7",
  "inGroup": true,
  "productType": "Normal",
  "images": [
    "[]"
  ],
  "brandName": "Apple/苹果",
  "quantity": -1,
  "productId": "660460842******080",
  "productSpecs": [
    {
      "keyId": 1000,
      "key": "颜色分类",
      "values": [
        {
          "value": "白色",
          "valueId": 1000,
          "valueAlias": "秘色"
        }
      ]
    }
  ],
  "productStatus": "Online",
  "taxCode": "3040203000*******000",
  "divisionCode": "110000",
  "taxRate": 600,
  "limitRules": [
    {
      "ruleType": "UpperNumberPerUser",
      "limitNum": 1,
      "beginTime": 1724947200000,
      "endTime": 1724947200000,
      "condcase": "day"
    }
  ],
  "descPath": "https://img.alicdn.com/descpath/O1CN01wciRDp22AEU1*******f34",
  "properties": [
    {
      "text": "颜色",
      "values": [
        "白色"
      ]
    }
  ]
}

Error codes

See Error CodesError Codes for a complete list.

Release notes

See Release NotesRelease Notes for a complete list.