# 使用以虚拟货币购买的指定商品创建订单 使用虚拟货币创建商品购买。 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/zh/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