# Get virtual currency package list by specified group Retrieves a list of virtual currency packages from the specified group for building a catalog. 注意 すべてのプロジェクトには、応答で取得できるアイテム数に制限があります。デフォルトおよび最大値は1応答あたり50アイテムです。ページごとにデータを取得するには、制限とオフセットフィールドを使用してください。 注意 認証なしで使用した場合、このAPIコールは一般的なアイテムカタログデータを返します。認証を使用して、アイテムに関連する制限やプロモーションなどのパーソナライズされたユーザーデータを取得します。これを行うには、ユーザーのJWTをAuthorizationヘッダーに渡してください。ユーザーJWTの詳細については、このコールのセキュリティブロックを参照してください。 Endpoint: GET /v2/project/{project_id}/items/virtual_currency/package/group/{external_id} Version: 2.0.0 Security: XsollaLoginUserJWT ## Path parameters: - `project_id` (integer, required) プロジェクトID。このパラメータは、パブリッシャーアカウントのプロジェクト名の横、またはプロジェクトの作業中にブラウザのアドレスバーで確認できます。URLの形式は以下の通りです:https://publisher.xsolla.com//projects/。 Example: 44056 - `external_id` (string, required) External item group ID specified during creation. Example: "weapons" ## Query parameters: - `limit` (integer) ページでの要素数の制限。 Example: 50 - `offset` (integer) リストが生成される要素番号(カウントは0から始まります)。 - `locale` (string) 応答言語。ISO 639-1に準拠した2文字の小文字の言語コード(例:en)。nameやdescriptionなどのローカリゼーションフィールドでは5文字のロケールコード(例:en-US)がサポートされていますが、応答内では2文字のコードに正規化されます。サポートされている言語の完全なリストは、ドキュメントで確認できます。 - `additional_fields[]` (array) Additional fields to include in the response. By default, these fields are not returned. Pass the required values to include them. Enum: "media_list", "order", "long_description", "custom_attributes", "item_order_in_group" - `country` (string) ISO 3166-1 alpha-2に従った2文字の大文字の国名コード。エクソーラがサポートする国と国を決定するプロセスに関する詳細情報については、ドキュメントを確認してください。 Example: "US" - `promo_code` (string) 大文字と小文字を区別する一意のコードです。文字と数字が含まれます。 Example: "WINTER2021" - `show_inactive_time_limited_items` (integer) ユーザーに利用可能でない、期限付きアイテムを表示します。このようなアイテムの有効期間はまだ開始されていないか、すでに期限切れです。 Example: 1 ## Response 200 fields (application/json): - `has_more` (boolean) ページ数がもっとあることを示す指標として使用されます。 - `items` (array) - `items.item_id` (integer) Unique item ID assigned by Xsolla. - `items.sku` (string) 一意のアイテムID。SKUには、小文字と大文字のラテン英数字、ピリオド、ダッシュ、およびアンダースコアのみが含まれます。 Example: "crystal-pack" - `items.name` (string) アイテム名。 Example: "Crystal Pack" - `items.groups` (array) アイテムが所属するグループ。 - `items.groups.external_id` (string) [External item group ID](/ja/api/catalog/item-groups-admin/admin-create-item-group#item-groups-admin/admin-create-item-group/t=request&path=external_id) specified during creation. Example: "exclusive" - `items.groups.name` (string) グループ名。 Example: "Exclusive" - `items.groups.item_order_in_group` (integer) The item's position within the group that determines its display order. Returned only if requested via the additional_fields[] query parameter. Example: 1 - `items.attributes` (array) アイテムに対応する属性と値のリスト。カタログのフィルタリングに使用できます。 - `items.attributes.external_id` (string) 一意の属性ID。external_idには、小文字と大文字のラテン英数字、ダッシュ、およびアンダースコアのみが含まれます。 - `items.attributes.name` (object) 属性名。 Example: "Genre" - `items.attributes.values` (array) - `items.attributes.values.external_id` (string) 属性の一意の値ID。external_idには、半角小文字の英数字、ハイフン、アンダースコアのみを含めることができます。 - `items.attributes.values.value` (string) 属性値。 Example: "Strategy" - `items.type` (string) アイテムタイプ:virtual_good/virtual_currency/bundle。 Example: "bundle" - `items.bundle_type` (string) Bundle type. Always virtual_currency_package for virtual currency packages. Example: "virtual_currency_package" - `items.description` (string) アイテムの説明。 Example: "Crystal Pack Description" - `items.image_url` (string) 画像URL。 Example: "https://cdn.xsolla.net/items/crystal-pack.png" - `items.is_free` (boolean) アイテムが無料かどうか。 - `items.price` (object) アイテム価格。 - `items.price.amount` (string) 割引後のアイテム価格。 Example: "100.99" - `items.price.amount_without_discount` (string) Item price without discount. Example: "100.99" - `items.price.currency` (string) 商品価格の通貨。3文字のコード[ISO4217 規格](https://en.wikipedia.org/wiki/ISO_4217)詳細については、ドキュメントを参照してください。[エクソーラでサポートされている通貨](https://developers.xsolla.com/ja/doc/pay-station/references/supported-currencies/)。 Example: "USD" - `items.virtual_prices` (array) Virtual prices. - `items.virtual_prices.amount` (integer) 仮想通貨建てのアイテム価格。 Example: 100 - `items.virtual_prices.amount_without_discount` (integer) Item price in virtual currency without discount. Always equal to amount since discounts are not applied to prices in virtual currency. Example: 200 - `items.virtual_prices.sku` (string) 仮想通貨SKU。 Example: "vc_gold" - `items.virtual_prices.is_default` (boolean) 仮想通貨でのデフォルト価格であるかどうか。 Example: true - `items.virtual_prices.image_url` (string,null) Virtual currency image URL. Example: "http://image.png" - `items.virtual_prices.name` (string) Virtual currency name. Example: "Gold" - `items.virtual_prices.type` (string) Item type. For virtual currency, it is virtual_currency. Example: "virtual_currency" - `items.virtual_prices.description` (string,null) Virtual currency description. Example: "In-game currency used to purchase weapons and upgrades" - `items.can_be_bought` (boolean) trueの場合、ユーザーはアイテムを購入することができます。 - `items.content` (array) 仮想通貨パッケージの内容。 Example: [{"description":"Crystal - short description","image_url":"https://cdn.xsolla.net/items/crystal-pack.png","sku":"com.xsolla.crystal_1","name":"Crystals","type":"virtual_currency","quantity":100}] - `items.content.sku` (string) 一意のアイテムID。SKUには、小文字と大文字のラテン英数字、ダッシュ、およびアンダースコアのみが含まれます。 Example: "com.xsolla.crystal_1" - `items.content.quantity` (integer) パッケージ内の仮想通貨の数量。 Example: 250 - `items.content.limits` (object,null) アイテム制限。 - `items.content.limits.per_user` (object,null) ユーザーのアイテム制限。 - `items.content.limits.per_user.total` (integer) 1ユーザーあたりのユーザーが購入できるアイテムの最大数。 Example: 5 - `items.content.limits.per_user.available` (integer) 現在のユーザーが購入できるアイテムの残り数。 Example: 3 - `items.content.limits.per_user.recurrent_schedule` (any) - `items.content.limits.per_user.limit_exceeded_visibility` (string) 購入制限に達してから次回の制限リセットまでの間、カタログ内でのアイテムの表示・非表示を決定します。 これは、recurrent_schedule配列で定期的な制限リセットが設定されているアイテムに適用されます。 購入制限のリセットが設定されていない場合、購入制限に達した後は、limit_exceeded_visibilityの値に関わらず、そのアイテムはカタログに表示されなくなります。 指定可能な値: - show — 購入制限に達した後も、カタログ取得用のAPIコールに対してアイテム情報が返却されます。クライアントサイドのカタログ取得APIコールにおいては、制限に達した時点でアイテムにcan_be_bought: falseフラグが付与されて返されます。次回のリセット日時はreset_next_dateに格納されて返却されます。 - hide — 購入制限に達した時点から、制限値がリセットされるまでの間、カタログ取得用のAPIコールにおいてアイテムは返されなくなります。 Enum: "show", "hide" - `items.content.limits.per_item` (object,null) アイテムのアイテム制限。 - `items.content.limits.per_item.total` (integer) すべてのユーザーが購入できるアイテムの最大数。 Example: 5 - `items.content.limits.per_item.available` (integer) すべてのユーザーが購入できるアイテムの残り数。 Example: 3 - `items.promotions` (array) カート内の特定アイテムに適用されるプロモーション。この配列は、以下のケースで返されます: * 特定のアイテムに対して、割引キャンペーンが構成されている場合。 * 選択されたアイテムの割引設定を持つプロモーションコードが適用された場合。 アイテムレベルのプロモーションが適用されない場合は、空の配列が返されます。 - `items.promotions.name` (string) - `items.promotions.date_start` (string,null) - `items.promotions.date_end` (string,null) - `items.promotions.discount` (object,null) - `items.promotions.discount.percent` (string,null) - `items.promotions.discount.value` (string,null) - `items.promotions.bonus` (array) - `items.promotions.bonus.sku` (string) - `items.promotions.bonus.quantity` (integer) - `items.promotions.bonus.type` (string) ボーナスアイテムタイプ。 Enum: "virtual_good", "virtual_currency", "bundle", "physical_good", "game_key", "nft" - `items.promotions.bonus.name` (string) ボーナスアイテムの名前です。ボーナスアイテムのタイプphysical_goodでは使用できません。 - `items.promotions.bonus.image_url` (string) ボーナスアイテムの画像URLです。ボーナスアイテムのタイプ physical_good では使用できません。ー - `items.promotions.bonus.bundle_type` (string) ボーナスバンドルアイテムタイプ。ボーナスアイテムタイプbundleのみで利用可能です。 Enum: "standard", "virtual_currency_package" - `items.promotions.limits` (object) - `items.promotions.limits.per_user` (object) - `items.promotions.limits.per_user.available` (integer) - `items.promotions.limits.per_user.total` (integer) - `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.custom_attributes` (object) アイテムの属性と値を含むJSONオブジェクト。 - `items.vp_rewards` (array) List of value point rewards for the item. - `items.vp_rewards.item_id` (integer) 内部の一意のアイテムID。 - `items.vp_rewards.sku` (string) 一意のバリューポイントID。 - `items.vp_rewards.amount` (integer) バリューポイントの量。 - `items.vp_rewards.name` (string) バリューポイント名。 - `items.vp_rewards.is_clan` (boolean) バリューポイントがクランリワードチェーンで使用されるかどうか。 ## Response 404 fields (application/json): - `statusCode` (integer) HTTP response status code. Example: 404 - `errorCode` (integer) Xsolla error code Example: 4403 - `errorMessage` (string) エラーの簡潔な説明。 Example: "[0401-4403]: Item group not found"