# Create order with specified item purchased by virtual currency Creates item purchase using virtual currency. 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) Project ID. You can find this parameter in your Publisher Account next to the name of the project. Example: 44056 - `item_sku` (string, required) Item SKU. Example: "booster_mega_1" - `virtual_currency_sku` (string, required) Virtual currency SKU. Example: "crystal" ## Query parameters: - `platform` (string) Publishing platform the user plays on: xsolla (default), 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) Your custom parameters represented as a valid JSON set of key-value pairs. You can pass additional parameters through this field to configure anti-fraud filters. [See Pay Station documentation](https://developers.xsolla.com/doc/pay-station/features/antifraud/). Example: {"custom_parameters":{"string_param":"example","bool_param":true,"int_param":100,"null_param":null}} ## Response 200 fields (application/json): - `order_id` (integer) Order ID. ## Response 404 fields (application/json): - `statusCode` (integer) Example: 404 - `errorCode` (integer) Example: 4001 - `errorMessage` (string) Example: "[0401-4001]: Item with Project Id = 44056 and Sku = booster_mega_12222 not found" ## Response 422 fields (application/json): - `errorCode` (integer) Example: 5006 - `statusCode` (integer) Example: 422 - `errorMessage` (string) Example: "[0401-5006]: Not enough virtual currency"