# 仮想通貨で購入した指定商品で注文を作成する 仮想通貨を利用したアイテム購入を構築します。 Endpoint: POST /v2/project/{project_id}/payment/item/{item_sku}/virtual/{virtual_currency_sku} Version: 2.0.0 Security: XsollaLoginUserJWT ## Path parameters: - `project_id` (integer, required) プロジェクトID。このパラメータは、パブリッシャーアカウントのプロジェクト名の横にあります。 Example: 44056 - `item_sku` (string, required) アイテムSKU。 Example: "booster_mega_1" - `virtual_currency_sku` (string, required) 仮想通貨SKU。 Example: "crystal" ## Query parameters: - `platform` (string) ユーザーがプレイするパブリッシングプラットフォーム:xsolla(デフォルト)、playstation_network、xbox_live、pc_standalone、nintendo_shop、google_play、app_store_ios、android_standalone、ios_standalone、android_other、ios_other、pc_other。 Enum: "playstation_network", "xbox_live", "xsolla", "pc_standalone", "nintendo_shop", "google_play", "app_store_ios", "android_standalone", "ios_standalone", "android_other", "ios_other", "pc_other" ## Request fields (application/json): - `custom_parameters` (object,null) キーと値のペアの有効なJSONセットとして表されたカスタムパラメータ。 このフィールドを通じて追加のパラメータを渡すことで、不正対策フィルターを設定することができます。[ペイステーションに関するドキュメントンをご覧ください](https://developers.xsolla.com/ja/doc/pay-station/features/antifraud/)。 Example: {"custom_parameters":{"bool_param":true,"int_param":100,"null_param":null,"string_param":"example"}} ## Response 200 fields (application/json): - `order_id` (integer) 注文ID。 ## Response 404 fields (application/json): - `errorCode` (integer) Example: 4001 - `errorMessage` (string) Example: "[0401-4001]: Item with Project Id = 44056 and Sku = booster_mega_12222 not found" - `statusCode` (integer) Example: 404 ## Response 422 fields (application/json): - `errorCode` (integer) Example: 5006 - `errorMessage` (string) Example: "[0401-5006]: Not enough virtual currency" - `statusCode` (integer) Example: 422