# 按指定组的外部ID获取捆绑包列表 获取组中的捆绑包列表以进行管理。 注意不要使用此端点来构建商店目录。 Endpoint: GET /v2/project/{project_id}/admin/items/bundle/group/external_id/{external_id} Version: 2.0.0 Security: basicAuth ## Path parameters: - `project_id` (integer, required) 项目ID。您可以在您的发布商帐户项目名称旁边找到。 Example: 44056 - `external_id` (string, required) 组外部ID。 ## Query parameters: - `limit` (integer) 页面上元素数量的限制。 Example: 50 - `offset` (integer) 元素编号,从该元素开始生成列表(从0开始数)。 ## Response 200 fields (application/json): - `items` (array) - `items.attributes` (array) 属性列表。 Example: [{"external_id":"attribute_external_id","name":{"de":"Attributname","en":"Attribute name"},"values":[{"external_id":"value_1","name":{"de":"wert 1","en":"value 1"}},{"external_id":"value_2","name":{"de":"wert 2","en":"value 2"}}]}] - `items.attributes.external_id` (string, required) 唯一属性ID。 external_id只能包含大小写英文字母和数字字符、破折号和下划线。 Example: "attribute_1" - `items.attributes.name` (object) 包含本地化属性名称的对象。编码按照ISO 3166-1的规定。 Example: {"de":"Genre","en":"Genre"} - `items.attributes.values` (array, required) Example: [{"external_id":"value_1","name":{"de":"wert 1","en":"value 1"}},{"external_id":"value_2","name":{"de":"wert 2","en":"value 2"}}] - `items.attributes.values.external_id` (string, required) 属性的唯一值ID。 external_id只能包含小写英文字母和数字字符、破折号和下划线。 Example: "attribute_value" - `items.attributes.values.value` (object, required) 包含本地化值名称的对象。编码按照ISO 3166-1的规定。 Example: {"de":"Strategie","en":"Strategy"} - `items.bundle_type` (string) 捆绑类型。商品类型是捆绑包时返回。 Enum: "standard", "virtual_currency_package", "partner_side_content" - `items.content` (array) - `items.content.description` (object,null) 包含本地化商品描述的对象。值接受以下两种格式之一:两个小写字母的语言代码(例如,en)或五个字符的区域设置代码(例如,en-US)。虽然两种格式都可作为输入接受,但响应会返回两个小写字母的语言代码。当为同一种语言提供了两种输入时(例如:en和en-US),将存储最后提供的值。您可以在[文档](/zh/doc/shop-builder/references/supported-languages/)中找到支持语言的完整列表。 - `items.content.image_url` (string,null) 图像URL。 Example: "https://image.example.com" - `items.content.name` (object,null) 包含商品本地化名称的对象。值接受以下两种格式之一:两个小写字母的语言代码(例如,en)或五个字符的语言代码(例如,en-US)。虽然两种格式都可作为输入接受,但响应会返回两个小写字母的语言代码。当为同一种语言提供了两种输入时(例如:en和en-US),将存储最后提供的值。您可以在[文档](/zh/doc/shop-builder/references/supported-languages/)中找到支持语言的完整列表。 - `items.content.quantity` (integer) 商品类型在捆绑包中的数量。 - `items.content.sku` (string) 唯一商品ID。 SKU只能包含大小写英文字母和数字字符、句点、破折号和下划线。 Example: "bundle_1" - `items.content.type` (string) 商品类型。 Example: "bundle" - `items.custom_attributes` (object) 包含商品属性和值的JSON对象。 - `items.groups` (array) 商品所属分组。 Example: [{"external_id":"horror","name":{"en":"Horror"}}] - `items.groups.external_id` (string) Example: "horror" - `items.groups.name` (object) 商品名称。应包含键/值对, 其中键是"^[a-z]{2}"格式的区域设置,值是字符串。 Example: {"de":"Horror","en":"Horror"} - `items.is_enabled` (boolean) 如果禁用,则无法找到和购买该商品。 Example: true - `items.is_free` (boolean) 如果为true,则该商品为免费。 - `items.is_show_in_store` (boolean) 商品可供购买。 Example: true - `items.item_id` (integer) 内部唯一物品ID。 Example: 1 - `items.limits` (object,null) 商品限制。 - `items.limits.per_item` (object,null) 全局商品限制。 - `items.limits.per_item.available` (integer) 所有用户可购买的剩余商品数量。 - `items.limits.per_item.reserved` (integer) - `items.limits.per_item.sold` (integer) - `items.limits.per_item.total` (integer) 所有用户可购买的最大商品数量。 - `items.limits.per_user` (object,null) 用于单独用户的商品限制。 - `items.limits.per_user.limit_exceeded_visibility` (string) 设定商品在达到购买限制后、下次限制重置前在目录中的可见性。 适用于在recurrent_schedule数组中配置了周期性重置数量限制的商品。 若未配置数量限制重置,则商品在达到购买限制后将不会出现在目录中,无论limit_exceeded_visibility值为何。 Enum: "show", "hide" - `items.limits.per_user.total` (integer) 单个用户可购买的最大商品数量。 - `items.limits.recurrent_schedule` (object,null) 限制次数刷新周期。 - `items.limits.recurrent_schedule.per_user` (object,null) 用户限制刷新周期。 - `items.long_description` (object,null) 包含商品详细本地化描述的对象。值接受以下两种格式之一:两个小写字母的语言代码(例如,en)或五个字符的区域设置代码(例如,en-US)。虽然两种格式都可作为输入接受,但响应会返回两个小写字母的语言代码。当为同一种语言提供了两种输入时(例如:en和en-US),将存储最后提供的值。您可以在[文档](/zh/doc/shop-builder/references/supported-languages/)中找到支持语言的完整列表。 - `items.media_list` (array,null) 捆绑包的附加资源。 Example: [{"type":"image","url":"https://cdn3.xsolla.com/img/misc/images/71ab1e12126f2103e1868076f0acb21a.jpg"}] - `items.media_list.type` (string) 媒体类型:image/video。 Enum: "image", "video" - `items.media_list.url` (string) 资源文件。 Example: "https://cdn3.xsolla.com/img/misc/images/71ab1e12126f2103e1868076f0acb21a.jpg" - `items.order` (integer) 列表中的捆绑包顺序优先级。 Example: 1 - `items.periods` (array) 商品促销时间段。 - `items.periods.date_from` (string,null) 指定商品促销开始的日期。 Example: "2020-08-11T10:00:00+03:00" - `items.periods.date_until` (string,null) 指定商品停止促销的日期。可以为null。 Example: "2020-08-11T20:00:00+03:00" - `items.prices` (array) 以真实货币表示的价格。 - `items.prices.amount` (string, required) 商品价格。 Example: "100.99" - `items.prices.country_iso` (string,null) 适用此价格的国家/地区。符合[ISO 3166-1 alpha 2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)的两字母代码。 Example: "US" - `items.prices.currency` (string, required) 商品价格货币。每[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)。 Example: "USD" - `items.prices.is_default` (boolean, required) 如果未指定用户货币下的价格,则使用默认价格来生成目录。 - `items.prices.is_enabled` (boolean, required) 价格已启用。 - `items.regions` (array) - `items.regions.id` (integer) Example: 1 - `items.total_content_price` (object,null) 捆绑包内容价格总和。 - `items.total_content_price.amount` (string) 折扣后的捆绑包内容价格总和。 Example: "100.99" - `items.total_content_price.amount_without_discount` (string) 捆绑包内容价格总和。 Example: "100.99" - `items.virtual_prices` (array) - `items.virtual_prices.amount` (string) 折扣后的商品价格。 Example: "100.99" - `items.virtual_prices.is_default` (boolean) 价格是否为商品的默认价格。 Example: true - `items.virtual_prices.type` (string) 虚拟货币类型。 Example: "virtual_currency" ## Response 401 fields (application/json): - `errorCode` (integer) Example: 1020 - `errorMessage` (string) Example: "[0401-1020]: Error in Authentication method occurred" - `statusCode` (integer) Example: 401