ListSelectionProducts

Updated at:

Retrieves a list of products from a product selection pool.

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

list

*All Resource

*

None None

Request syntax

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

Request parameters

Parameter

Type

Required

Description

Example

pageSize

integer

Yes

The number of entries per page. Valid values: 1 to 20.

10

pageNumber

integer

Yes

The page number. The value must be 1 or greater.

1

purchaserId

string

Yes

The ID of the purchaser.

PID22000009

{
  "pageNumber": 1,
  "pageSize": 10,
  "purchaserId": "PID22000009"
}

Response elements

Element

Type

Description

Example

ProductPageResult

The product details.

{
  "requestId": "87C11800-27D4-1CF7-A544-D006AC4ADAD5",
  "total": 48,
  "pageNumber": 2,
  "pageSize": 20,
  "products": [
    {
      "requestId": null,
      "productId": "660460842235822080",
      "title": "Fortune Tree 5--I will use this Xiaoyi product-qhh, not your other products",
      "picUrl": "//img.alicdn.com/imgextra/i4/2216003305543/O1CN01NtbRbi1qokFAIsvNo_!!2216003305543.jpg",
      "descPath": "//itemcdn.tmall.com/desc/icoss!0724961349057!11733929840",
      "categoryLeafId": 50011150,
      "images": [
        "//img.alicdn.com/imgextra/i4/2216003305543/O1CN01NtbRbi1qokFAIsvNo_!!2216003305543.jpg",
        "//img.alicdn.com/imgextra/i2/2216003305543/O1CN010DEQCX1qokFYGRfPE_!!2216003305543.png",
        "//img.alicdn.com/imgextra/i4/2216003305543/O1CN01E6yC8z1qokFueiOI7_!!2216003305543.jpg",
        "//img.alicdn.com/imgextra/i3/2216003305543/O1CN01K3DLfJ1qokF5BPhVJ_!!2216003305543.jpg"
      ],
      "properties": [
        {
          "text": "Color",
          "values": [
            "Sky Blue",
            "Red",
            "Black"
          ]
        }
      ],
      "productSpecs": [
        {
          "keyId": 0,
          "key": "Color",
          "values": [
            {
              "valueId": 0,
              "value": "Sky Blue"
            },
            {
              "valueId": 0,
              "value": "Red"
            },
            {
              "valueId": 0,
              "value": "Black"
            }
          ]
        }
      ],
      "skus": [
        {
          "shopId": "21000019",
          "productId": "660460842235822080",
          "skuId": "660460842235822081",
          "title": "Sky Blue",
          "picUrl": "//img.alicdn.com/imgextra///img.alicdn.com/imgextra/i2/2216003305543/O1CN010DEQCX1qokFYGRfPE_!!2216003305543.png",
          "skuSpecs": [
            {
              "keyId": 0,
              "key": "Color",
              "valueId": 0,
              "value": "Sky Blue"
            }
          ],
          "skuSpecsCode": "",
          "skuStatus": "Online",
          "canSell": false,
          "quantity": -1,
          "fuzzyQuantity": "Out of stock",
          "price": 1,
          "markPrice": 999900,
          "platformPrice": 999900,
          "divisionCode": null
        },
        {
          "shopId": "21000019",
          "productId": "660460842235822080",
          "skuId": "660460842235822082",
          "title": "Red",
          "picUrl": "//img.alicdn.com/imgextra///img.alicdn.com/imgextra/i3/2216003305543/O1CN01EWJ8tO1qokF2BAhv3_!!2216003305543.jpg",
          "skuSpecs": [
            {
              "keyId": 0,
              "key": "Color",
              "valueId": 0,
              "value": "Red"
            }
          ],
          "skuSpecsCode": "",
          "skuStatus": "Online",
          "canSell": true,
          "quantity": -1,
          "fuzzyQuantity": "In stock",
          "price": 2,
          "markPrice": 999900,
          "platformPrice": 999900,
          "divisionCode": null
        },
        {
          "shopId": "21000019",
          "productId": "660460842235822080",
          "skuId": "660460842235822083",
          "title": "Black",
          "picUrl": "//img.alicdn.com/imgextra/i4/2216003305543/O1CN01NtbRbi1qokFAIsvNo_!!2216003305543.jpg",
          "skuSpecs": [
            {
              "keyId": 0,
              "key": "Color",
              "valueId": 0,
              "value": "Black"
            }
          ],
          "skuSpecsCode": "",
          "skuStatus": "Online",
          "canSell": false,
          "quantity": -1,
          "fuzzyQuantity": "Out of stock",
          "price": 1,
          "markPrice": 999900,
          "platformPrice": 999900,
          "divisionCode": null
        }
      ],
      "canSell": true,
      "productType": "Normal",
      "productStatus": "Online",
      "shopId": "21000019",
      "quantity": -1,
      "fuzzyQuantity": "In stock",
      "taxRate": null,
      "taxCode": null,
      "categoryChain": [
        {
          "categoryId": 50023724,
          "name": "Other",
          "parentId": 0,
          "level": 0,
          "isLeaf": false
        },
        {
          "categoryId": 50011150,
          "name": "Other",
          "parentId": 50023724,
          "level": 0,
          "isLeaf": true
        }
      ],
      "soldQuantity": "0",
      "divisionCode": null
    }
  ]
}

Examples

Success response

JSON format

{
  "pageSize": 10,
  "total": 24,
  "pageNumber": 1,
  "requestId": "3239281273464326823",
  "products": [
    {
      "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.