Store API v1.0

Overview

This section describes methods for working with Buy Button modules. Use basic authentication to call methods. To open the Store UI and enable secure payments, you first need to get a token.

Endpoint path: https://api.xsolla.com.

Store UI

Opening Store

Use the following link to open the store UI in a new window: https://secure.xsolla.com/paystation3/?access_token=ACCESS_TOKEN, where ACCESS_TOKEN is the token received via API.

Use the following URL for testing purposes: https://sandbox-secure.xsolla.com/paystation3/?access_token=ACCESS_TOKEN.

Notice: Parameter access_token contains private user data. Make sure that you use server-to-server communication when getting this parameter.

Test Cards List

In the Sandbox you can use these cards to simulate successful payments:

Card3-D Secure
Card number: 4111111111111111
Exp. date: 12/40
CVV2: 123
Card type: VISA
No
Card number: 5555555555554444
Exp. date: 11/40
CVV2: 321
Card type: MasterCard
No
Card number: 4000000000000010
Exp. date: 12/40
CVV2: 123
Card type: VISA
Yes
Card number: 5200000000000114
Exp. date: 11/40
CVV2: 321
Card type: MasterCard
Yes
Card number: 6759649826438453
Exp. date: 12/40
CVV2: 321
Card type: Maestro
Yes

In addition, you can use the following data to simulate declined transactions:

Card3-D SecureDescription
Card number: 4000000000000002
Exp. date: 12/40
CVV2: 123
Card type: VISA
NoInsufficient funds
Card number: 5200000000000007
Exp. date: 11/40
CVV2: 321
Card type: MasterCard
NoInsufficient funds
Card number: 4000000000000036
Exp. date: 12/40
CVV2: 123
Card type: VISA
YesDeclined
Card number: 5200000000000031
Exp. date: 11/40
CVV2: 321
Card type: MasterCard
YesDeclined
Note: The country of issue for the 5555555555554444 card is Brazil. Use it to test payments that follow Brazilian law.

Errors List

CodeDescription
0004-0001Token expired or incorrect.
0004-0008Wrong URL (trying to access sandbox mode at secure.xsolla.com or live mode at sandbox-secure.xsolla.com).
0002-0004Agreement not signed.
0004-0010Tokenless integration prohibited.
0010-0001Package not found.
0010-0003Package has no DRM configured.
1000-0003No modules turned on for the project.
0004-0003Project ID is not passed.
0004-0009Invalid JSON of access_data.
0003-0001Payment is forbidden for the chosen country.
1000-0002Network error. API response is not received during initialization.
0007-0009Cannot change the subscription plan via the token. The currency of a new subscription plan is different from the one set for the existing plan.
0004-0002Digital signature is incorrect.
0005-0001Error retrieving user data from billing.
1000-0004No data for the status page received.
1000-0001Network error. API does not respond.
1004-0001The subscription plan change is forbidden.
0002-0002Project does not exist.

Virtual Currency

Get Package

Gets a virtual currency package by ID.

HTTP REQUEST

Copy
Full screen
Small screen
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency/packages/{package_id}

ParameterTypeDescription
project_id
integerProject ID.
package_id
integerVirtual currency package ID.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency/packages/{package_id}

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency/packages/{package_id} \
  --header 'authorization: Basic <your_authorization_basic_key>'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency/packages/{package_id}');
$request->setRequestMethod('GET');
$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency/packages/{package_id}");
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

headers = { 'authorization': "Basic <your_authorization_basic_key>" }

conn.request("GET", "/merchant/v1/projects/{project_id}/virtual_currency/packages/{package_id}", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency/packages/{package_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["authorization"] = 'Basic <your_authorization_basic_key>'

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency/packages/{package_id}")
  .get()
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency/packages/{package_id}");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response
{
  "advertisement_type": null,
  "advertisement_type_custom": null,
  "amount": 100,
  "bonus": 1,
  "description": null,
  "enabled": true,
  "id": 37702,
  "image_url": "//cdn.xsolla.net/img/misc/images/19a38b51403c3ab389fabfacdabc43df.png",
  "label": null,
  "prices_array": [
    {
      "name": "EUR",
      "value": 0.99
    }
  ],
  "sku": null
}
{
  "advertisement_type": null,
  "advertisement_type_custom": null,
  "amount": 100,
  "bonus": 1,
  "description": null,
  "enabled": true,
  "id": 37702,
  "image_url": "//cdn.xsolla.net/img/misc/images/19a38b51403c3ab389fabfacdabc43df.png",
  "label": null,
  "prices_array": [
    {
      "name": "EUR",
      "value": 0.99
    }
  ],
  "sku": null
}
{
  "advertisement_type": null,
  "advertisement_type_custom": null,
  "amount": 100,
  "bonus": 1,
  "description": null,
  "enabled": true,
  "id": 37702,
  "image_url": "//cdn.xsolla.net/img/misc/images/19a38b51403c3ab389fabfacdabc43df.png",
  "label": null,
  "prices_array": [
    {
      "name": "EUR",
      "value": 0.99
    }
  ],
  "sku": null
}
{
  "advertisement_type": null,
  "advertisement_type_custom": null,
  "amount": 100,
  "bonus": 1,
  "description": null,
  "enabled": true,
  "id": 37702,
  "image_url": "//cdn.xsolla.net/img/misc/images/19a38b51403c3ab389fabfacdabc43df.png",
  "label": null,
  "prices_array": [
    {
      "name": "EUR",
      "value": 0.99
    }
  ],
  "sku": null
}
{
  "advertisement_type": null,
  "advertisement_type_custom": null,
  "amount": 100,
  "bonus": 1,
  "description": null,
  "enabled": true,
  "id": 37702,
  "image_url": "//cdn.xsolla.net/img/misc/images/19a38b51403c3ab389fabfacdabc43df.png",
  "label": null,
  "prices_array": [
    {
      "name": "EUR",
      "value": 0.99
    }
  ],
  "sku": null
}
{
  "advertisement_type": null,
  "advertisement_type_custom": null,
  "amount": 100,
  "bonus": 1,
  "description": null,
  "enabled": true,
  "id": 37702,
  "image_url": "//cdn.xsolla.net/img/misc/images/19a38b51403c3ab389fabfacdabc43df.png",
  "label": null,
  "prices_array": [
    {
      "name": "EUR",
      "value": 0.99
    }
  ],
  "sku": null
}
{
  "advertisement_type": null,
  "advertisement_type_custom": null,
  "amount": 100,
  "bonus": 1,
  "description": null,
  "enabled": true,
  "id": 37702,
  "image_url": "//cdn.xsolla.net/img/misc/images/19a38b51403c3ab389fabfacdabc43df.png",
  "label": null,
  "prices_array": [
    {
      "name": "EUR",
      "value": 0.99
    }
  ],
  "sku": null
}
{
  "advertisement_type": null,
  "advertisement_type_custom": null,
  "amount": 100,
  "bonus": 1,
  "description": null,
  "enabled": true,
  "id": 37702,
  "image_url": "//cdn.xsolla.net/img/misc/images/19a38b51403c3ab389fabfacdabc43df.png",
  "label": null,
  "prices_array": [
    {
      "name": "EUR",
      "value": 0.99
    }
  ],
  "sku": null
}

Update Package

Updates a project's virtual currency package.

HTTP REQUEST

Copy
Full screen
Small screen
PUT https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency/packages/{package_id}

ParameterTypeDescription
project_id
integerProject ID.
package_id
integerVirtual currency package ID.
vc_name
array of stringsProduct name. Value consists of pairs "localization":"product name".
base
arrayMain product currency (object). Key = currency name (3 letters per ISO 4217); value = amount in that currency.
default_currency
stringDefault currency.
min
floatMinimum purchase amount.
max
floatMaximum purchase amount.
is_currency_discrete
booleanWhether to enable decimal units for the virtual currency.
allow_user_sum
booleanWhether the user can pay an arbitrary amount for the package.
amount
floatQuantity of the virtual currency in the package.
sku
stringUnique ID of the virtual currency package. When updating SKU, you will need to configure all widgets from scratch. Already installed widgets will stop working.
price
floatPrice of the package.
image_url
stringImage URL.
description
array of stringsArray with localized package names. Value consists of pairs "localization":"package description".
label
array of stringsLocalized package labels (array). Value consists of pairs "localization":"package description".
bonus
floatDiscount for the package (%).
advertisement_type
stringType of label to be used for the package. Can be 'recommended', 'best_deal', 'special_offer', or 'null'.
enabled
booleanEnables the virtual currency package.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
PUT https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency/packages/{package_id}

Headers:
  Authorization: Basic <your_authorization_basic_key>
Content-Type: application/json

Body:
  {
  "advertisement_type": null,
  "advertisement_type_custom": null,
  "amount": 1010,
  "bonus": 40.01,
  "description": null,
  "enabled": true,
  "image_url": "//cdn.xsolla.net/img/misc/images/e69ec3dee89b51237aa01a60b4374c23.png",
  "label": null,
  "prices_array": [
    {
      "name": "RUB",
      "value": 59.99
    }
  ],
  "sku": null
}
curl --request PUT \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency/packages/{package_id} \
  --header 'authorization: Basic <your_authorization_basic_key>' \
  --header 'content-type: application/json' \
  --data '{"advertisement_type":null,"advertisement_type_custom":null,"amount":1010,"bonus":40.01,"description":null,"enabled":true,"image_url":"//cdn.xsolla.net/img/misc/images/e69ec3dee89b51237aa01a60b4374c23.png","label":null,"prices_array":[{"name":"RUB","value":59.99}],"sku":null}'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append('{"advertisement_type":null,"advertisement_type_custom":null,"amount":1010,"bonus":40.01,"description":null,"enabled":true,"image_url":"//cdn.xsolla.net/img/misc/images/e69ec3dee89b51237aa01a60b4374c23.png","label":null,"prices_array":[{"name":"RUB","value":59.99}],"sku":null}');

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency/packages/{package_id}');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>',
  'content-type' => 'application/json'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency/packages/{package_id}");
var request = new RestRequest(Method.PUT);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\"advertisement_type\":null,\"advertisement_type_custom\":null,\"amount\":1010,\"bonus\":40.01,\"description\":null,\"enabled\":true,\"image_url\":\"//cdn.xsolla.net/img/misc/images/e69ec3dee89b51237aa01a60b4374c23.png\",\"label\":null,\"prices_array\":[{\"name\":\"RUB\",\"value\":59.99}],\"sku\":null}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

payload = "{\"advertisement_type\":null,\"advertisement_type_custom\":null,\"amount\":1010,\"bonus\":40.01,\"description\":null,\"enabled\":true,\"image_url\":\"//cdn.xsolla.net/img/misc/images/e69ec3dee89b51237aa01a60b4374c23.png\",\"label\":null,\"prices_array\":[{\"name\":\"RUB\",\"value\":59.99}],\"sku\":null}"

headers = {
    'content-type': "application/json",
    'authorization': "Basic <your_authorization_basic_key>"
    }

conn.request("PUT", "/merchant/v1/projects/{project_id}/virtual_currency/packages/{package_id}", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency/packages/{package_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request["authorization"] = 'Basic <your_authorization_basic_key>'
request.body = "{\"advertisement_type\":null,\"advertisement_type_custom\":null,\"amount\":1010,\"bonus\":40.01,\"description\":null,\"enabled\":true,\"image_url\":\"//cdn.xsolla.net/img/misc/images/e69ec3dee89b51237aa01a60b4374c23.png\",\"label\":null,\"prices_array\":[{\"name\":\"RUB\",\"value\":59.99}],\"sku\":null}"

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"advertisement_type\":null,\"advertisement_type_custom\":null,\"amount\":1010,\"bonus\":40.01,\"description\":null,\"enabled\":true,\"image_url\":\"//cdn.xsolla.net/img/misc/images/e69ec3dee89b51237aa01a60b4374c23.png\",\"label\":null,\"prices_array\":[{\"name\":\"RUB\",\"value\":59.99}],\"sku\":null}");
Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency/packages/{package_id}")
  .put(body)
  .addHeader("content-type", "application/json")
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = JSON.stringify({
  "advertisement_type": null,
  "advertisement_type_custom": null,
  "amount": 1010,
  "bonus": 40.01,
  "description": null,
  "enabled": true,
  "image_url": "//cdn.xsolla.net/img/misc/images/e69ec3dee89b51237aa01a60b4374c23.png",
  "label": null,
  "prices_array": [
    {
      "name": "RUB",
      "value": 59.99
    }
  ],
  "sku": null
});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("PUT", "https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency/packages/{package_id}");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response


Get Packages

Lists virtual currency info and available packages.

HTTP REQUEST

Copy
Full screen
Small screen
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency

ParameterTypeDescription
project_id
integerProject ID.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency \
  --header 'authorization: Basic <your_authorization_basic_key>'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency');
$request->setRequestMethod('GET');
$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency");
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

headers = { 'authorization': "Basic <your_authorization_basic_key>" }

conn.request("GET", "/merchant/v1/projects/{project_id}/virtual_currency", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["authorization"] = 'Basic <your_authorization_basic_key>'

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency")
  .get()
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_currency");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response
{
  "allow_user_sum": true,
  "base": {
    "EUR": 0.01,
    "USD": 0.01
  },
  "default_currency": "USD",
  "id": 40123,
  "image_url": "//cdn.xsolla.net/img/misc/images/91d3aecf770347428c8c6abdc8a260b8.png",
  "is_currency_discrete": true,
  "max": 0,
  "min": 0,
  "packets": {
    "EUR": [
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 100,
        "bonus": 1,
        "description": [],
        "enabled": true,
        "id": 37702,
        "image_url": "//cdn.xsolla.net/img/misc/images/19a38b51403c3ab389fabfacdabc43df.png",
        "label": [],
        "price": 0.99,
        "sku": null
      },
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 500,
        "bonus": 0.2,
        "description": [],
        "enabled": true,
        "id": 37708,
        "image_url": "//cdn.xsolla.net/img/misc/images/fec4d08a1258582d94d50f25c92c125e.png",
        "label": [],
        "price": 4.99,
        "sku": null
      }
    ],
    "USD": [
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 100,
        "bonus": 1,
        "description": [],
        "enabled": false,
        "id": 37701,
        "image_url": "//cdn.xsolla.net/img/misc/images/5eb27983d6a7005a59b1b1b8191e3712.png",
        "label": [],
        "price": 0.99,
        "sku": null
      },
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 500,
        "bonus": 0,
        "description": [],
        "enabled": true,
        "id": 37707,
        "image_url": "//cdn.xsolla.net/img/misc/images/8574e6bb25b8fa6adac2b73250369646.png",
        "label": [],
        "price": 5.99,
        "sku": null
      }
    ]
  },
  "type": "discounts",
  "vc_name": {
    "de": null,
    "en": "Coins",
    "es": "Monedas",
    "fr": "Monnaies",
    "ko": "코인",
    "ru": "Coins"
  }
}
{
  "allow_user_sum": true,
  "base": {
    "EUR": 0.01,
    "USD": 0.01
  },
  "default_currency": "USD",
  "id": 40123,
  "image_url": "//cdn.xsolla.net/img/misc/images/91d3aecf770347428c8c6abdc8a260b8.png",
  "is_currency_discrete": true,
  "max": 0,
  "min": 0,
  "packets": {
    "EUR": [
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 100,
        "bonus": 1,
        "description": [],
        "enabled": true,
        "id": 37702,
        "image_url": "//cdn.xsolla.net/img/misc/images/19a38b51403c3ab389fabfacdabc43df.png",
        "label": [],
        "price": 0.99,
        "sku": null
      },
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 500,
        "bonus": 0.2,
        "description": [],
        "enabled": true,
        "id": 37708,
        "image_url": "//cdn.xsolla.net/img/misc/images/fec4d08a1258582d94d50f25c92c125e.png",
        "label": [],
        "price": 4.99,
        "sku": null
      }
    ],
    "USD": [
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 100,
        "bonus": 1,
        "description": [],
        "enabled": false,
        "id": 37701,
        "image_url": "//cdn.xsolla.net/img/misc/images/5eb27983d6a7005a59b1b1b8191e3712.png",
        "label": [],
        "price": 0.99,
        "sku": null
      },
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 500,
        "bonus": 0,
        "description": [],
        "enabled": true,
        "id": 37707,
        "image_url": "//cdn.xsolla.net/img/misc/images/8574e6bb25b8fa6adac2b73250369646.png",
        "label": [],
        "price": 5.99,
        "sku": null
      }
    ]
  },
  "type": "discounts",
  "vc_name": {
    "de": null,
    "en": "Coins",
    "es": "Monedas",
    "fr": "Monnaies",
    "ko": "코인",
    "ru": "Coins"
  }
}
{
  "allow_user_sum": true,
  "base": {
    "EUR": 0.01,
    "USD": 0.01
  },
  "default_currency": "USD",
  "id": 40123,
  "image_url": "//cdn.xsolla.net/img/misc/images/91d3aecf770347428c8c6abdc8a260b8.png",
  "is_currency_discrete": true,
  "max": 0,
  "min": 0,
  "packets": {
    "EUR": [
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 100,
        "bonus": 1,
        "description": [],
        "enabled": true,
        "id": 37702,
        "image_url": "//cdn.xsolla.net/img/misc/images/19a38b51403c3ab389fabfacdabc43df.png",
        "label": [],
        "price": 0.99,
        "sku": null
      },
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 500,
        "bonus": 0.2,
        "description": [],
        "enabled": true,
        "id": 37708,
        "image_url": "//cdn.xsolla.net/img/misc/images/fec4d08a1258582d94d50f25c92c125e.png",
        "label": [],
        "price": 4.99,
        "sku": null
      }
    ],
    "USD": [
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 100,
        "bonus": 1,
        "description": [],
        "enabled": false,
        "id": 37701,
        "image_url": "//cdn.xsolla.net/img/misc/images/5eb27983d6a7005a59b1b1b8191e3712.png",
        "label": [],
        "price": 0.99,
        "sku": null
      },
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 500,
        "bonus": 0,
        "description": [],
        "enabled": true,
        "id": 37707,
        "image_url": "//cdn.xsolla.net/img/misc/images/8574e6bb25b8fa6adac2b73250369646.png",
        "label": [],
        "price": 5.99,
        "sku": null
      }
    ]
  },
  "type": "discounts",
  "vc_name": {
    "de": null,
    "en": "Coins",
    "es": "Monedas",
    "fr": "Monnaies",
    "ko": "코인",
    "ru": "Coins"
  }
}
{
  "allow_user_sum": true,
  "base": {
    "EUR": 0.01,
    "USD": 0.01
  },
  "default_currency": "USD",
  "id": 40123,
  "image_url": "//cdn.xsolla.net/img/misc/images/91d3aecf770347428c8c6abdc8a260b8.png",
  "is_currency_discrete": true,
  "max": 0,
  "min": 0,
  "packets": {
    "EUR": [
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 100,
        "bonus": 1,
        "description": [],
        "enabled": true,
        "id": 37702,
        "image_url": "//cdn.xsolla.net/img/misc/images/19a38b51403c3ab389fabfacdabc43df.png",
        "label": [],
        "price": 0.99,
        "sku": null
      },
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 500,
        "bonus": 0.2,
        "description": [],
        "enabled": true,
        "id": 37708,
        "image_url": "//cdn.xsolla.net/img/misc/images/fec4d08a1258582d94d50f25c92c125e.png",
        "label": [],
        "price": 4.99,
        "sku": null
      }
    ],
    "USD": [
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 100,
        "bonus": 1,
        "description": [],
        "enabled": false,
        "id": 37701,
        "image_url": "//cdn.xsolla.net/img/misc/images/5eb27983d6a7005a59b1b1b8191e3712.png",
        "label": [],
        "price": 0.99,
        "sku": null
      },
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 500,
        "bonus": 0,
        "description": [],
        "enabled": true,
        "id": 37707,
        "image_url": "//cdn.xsolla.net/img/misc/images/8574e6bb25b8fa6adac2b73250369646.png",
        "label": [],
        "price": 5.99,
        "sku": null
      }
    ]
  },
  "type": "discounts",
  "vc_name": {
    "de": null,
    "en": "Coins",
    "es": "Monedas",
    "fr": "Monnaies",
    "ko": "코인",
    "ru": "Coins"
  }
}
{
  "allow_user_sum": true,
  "base": {
    "EUR": 0.01,
    "USD": 0.01
  },
  "default_currency": "USD",
  "id": 40123,
  "image_url": "//cdn.xsolla.net/img/misc/images/91d3aecf770347428c8c6abdc8a260b8.png",
  "is_currency_discrete": true,
  "max": 0,
  "min": 0,
  "packets": {
    "EUR": [
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 100,
        "bonus": 1,
        "description": [],
        "enabled": true,
        "id": 37702,
        "image_url": "//cdn.xsolla.net/img/misc/images/19a38b51403c3ab389fabfacdabc43df.png",
        "label": [],
        "price": 0.99,
        "sku": null
      },
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 500,
        "bonus": 0.2,
        "description": [],
        "enabled": true,
        "id": 37708,
        "image_url": "//cdn.xsolla.net/img/misc/images/fec4d08a1258582d94d50f25c92c125e.png",
        "label": [],
        "price": 4.99,
        "sku": null
      }
    ],
    "USD": [
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 100,
        "bonus": 1,
        "description": [],
        "enabled": false,
        "id": 37701,
        "image_url": "//cdn.xsolla.net/img/misc/images/5eb27983d6a7005a59b1b1b8191e3712.png",
        "label": [],
        "price": 0.99,
        "sku": null
      },
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 500,
        "bonus": 0,
        "description": [],
        "enabled": true,
        "id": 37707,
        "image_url": "//cdn.xsolla.net/img/misc/images/8574e6bb25b8fa6adac2b73250369646.png",
        "label": [],
        "price": 5.99,
        "sku": null
      }
    ]
  },
  "type": "discounts",
  "vc_name": {
    "de": null,
    "en": "Coins",
    "es": "Monedas",
    "fr": "Monnaies",
    "ko": "코인",
    "ru": "Coins"
  }
}
{
  "allow_user_sum": true,
  "base": {
    "EUR": 0.01,
    "USD": 0.01
  },
  "default_currency": "USD",
  "id": 40123,
  "image_url": "//cdn.xsolla.net/img/misc/images/91d3aecf770347428c8c6abdc8a260b8.png",
  "is_currency_discrete": true,
  "max": 0,
  "min": 0,
  "packets": {
    "EUR": [
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 100,
        "bonus": 1,
        "description": [],
        "enabled": true,
        "id": 37702,
        "image_url": "//cdn.xsolla.net/img/misc/images/19a38b51403c3ab389fabfacdabc43df.png",
        "label": [],
        "price": 0.99,
        "sku": null
      },
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 500,
        "bonus": 0.2,
        "description": [],
        "enabled": true,
        "id": 37708,
        "image_url": "//cdn.xsolla.net/img/misc/images/fec4d08a1258582d94d50f25c92c125e.png",
        "label": [],
        "price": 4.99,
        "sku": null
      }
    ],
    "USD": [
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 100,
        "bonus": 1,
        "description": [],
        "enabled": false,
        "id": 37701,
        "image_url": "//cdn.xsolla.net/img/misc/images/5eb27983d6a7005a59b1b1b8191e3712.png",
        "label": [],
        "price": 0.99,
        "sku": null
      },
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 500,
        "bonus": 0,
        "description": [],
        "enabled": true,
        "id": 37707,
        "image_url": "//cdn.xsolla.net/img/misc/images/8574e6bb25b8fa6adac2b73250369646.png",
        "label": [],
        "price": 5.99,
        "sku": null
      }
    ]
  },
  "type": "discounts",
  "vc_name": {
    "de": null,
    "en": "Coins",
    "es": "Monedas",
    "fr": "Monnaies",
    "ko": "코인",
    "ru": "Coins"
  }
}
{
  "allow_user_sum": true,
  "base": {
    "EUR": 0.01,
    "USD": 0.01
  },
  "default_currency": "USD",
  "id": 40123,
  "image_url": "//cdn.xsolla.net/img/misc/images/91d3aecf770347428c8c6abdc8a260b8.png",
  "is_currency_discrete": true,
  "max": 0,
  "min": 0,
  "packets": {
    "EUR": [
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 100,
        "bonus": 1,
        "description": [],
        "enabled": true,
        "id": 37702,
        "image_url": "//cdn.xsolla.net/img/misc/images/19a38b51403c3ab389fabfacdabc43df.png",
        "label": [],
        "price": 0.99,
        "sku": null
      },
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 500,
        "bonus": 0.2,
        "description": [],
        "enabled": true,
        "id": 37708,
        "image_url": "//cdn.xsolla.net/img/misc/images/fec4d08a1258582d94d50f25c92c125e.png",
        "label": [],
        "price": 4.99,
        "sku": null
      }
    ],
    "USD": [
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 100,
        "bonus": 1,
        "description": [],
        "enabled": false,
        "id": 37701,
        "image_url": "//cdn.xsolla.net/img/misc/images/5eb27983d6a7005a59b1b1b8191e3712.png",
        "label": [],
        "price": 0.99,
        "sku": null
      },
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 500,
        "bonus": 0,
        "description": [],
        "enabled": true,
        "id": 37707,
        "image_url": "//cdn.xsolla.net/img/misc/images/8574e6bb25b8fa6adac2b73250369646.png",
        "label": [],
        "price": 5.99,
        "sku": null
      }
    ]
  },
  "type": "discounts",
  "vc_name": {
    "de": null,
    "en": "Coins",
    "es": "Monedas",
    "fr": "Monnaies",
    "ko": "코인",
    "ru": "Coins"
  }
}
{
  "allow_user_sum": true,
  "base": {
    "EUR": 0.01,
    "USD": 0.01
  },
  "default_currency": "USD",
  "id": 40123,
  "image_url": "//cdn.xsolla.net/img/misc/images/91d3aecf770347428c8c6abdc8a260b8.png",
  "is_currency_discrete": true,
  "max": 0,
  "min": 0,
  "packets": {
    "EUR": [
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 100,
        "bonus": 1,
        "description": [],
        "enabled": true,
        "id": 37702,
        "image_url": "//cdn.xsolla.net/img/misc/images/19a38b51403c3ab389fabfacdabc43df.png",
        "label": [],
        "price": 0.99,
        "sku": null
      },
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 500,
        "bonus": 0.2,
        "description": [],
        "enabled": true,
        "id": 37708,
        "image_url": "//cdn.xsolla.net/img/misc/images/fec4d08a1258582d94d50f25c92c125e.png",
        "label": [],
        "price": 4.99,
        "sku": null
      }
    ],
    "USD": [
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 100,
        "bonus": 1,
        "description": [],
        "enabled": false,
        "id": 37701,
        "image_url": "//cdn.xsolla.net/img/misc/images/5eb27983d6a7005a59b1b1b8191e3712.png",
        "label": [],
        "price": 0.99,
        "sku": null
      },
      {
        "advertisement_type": null,
        "advertisement_type_custom": [],
        "amount": 500,
        "bonus": 0,
        "description": [],
        "enabled": true,
        "id": 37707,
        "image_url": "//cdn.xsolla.net/img/misc/images/8574e6bb25b8fa6adac2b73250369646.png",
        "label": [],
        "price": 5.99,
        "sku": null
      }
    ]
  },
  "type": "discounts",
  "vc_name": {
    "de": null,
    "en": "Coins",
    "es": "Monedas",
    "fr": "Monnaies",
    "ko": "코인",
    "ru": "Coins"
  }
}

Virtual Items

Create Item

Creates a virtual item.

HTTP REQUEST

Copy
Full screen
Small screen
POST https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items

ParameterTypeDescription
project_id
integerProject ID.
sku
stringUnique item ID. The SKU may only contain lowercase Latin alphanumeric characters, dashes, and underscores.
item_code
stringAdditional item code. Optional.
name
array of stringsLocalized item names (array).
description
array of stringsLocalized item descriptions (array).
long_description
array of stringsLocalized extended descriptions of the item (array).
prices
arrayItem prices (array).
default_currency
stringDefault purchase currency. Three-letter code per ISO 4217.
enabled
booleanEnables the item.
permanent
booleanIf true, the item can only be purchased once.
image_url
stringImage URL.
item_type
stringType of Item: Consumable/Expiration/Permanent/Lootboxes/Physical.
expiration
integerLifetime in seconds. For Expiration-type items only.
groups
array of integersGroups the item belongs to (array).
deleted
booleanWhether the item was deleted.
user_attribute_conditions
array of objectsList of conditions on the user attribute.
user_attribute_conditions.right_operand
arrayValues to compare the user attribute to.
user_attribute_conditions.user_attribute_key
stringKey of the user attribute condition.
user_attribute_conditions.operation
stringType of operation. Can be 'greater', 'greaterOrEqual', 'equal', 'notEqual', 'less', 'lessOrEqual', 'between', 'in', 'notIn'.
user_attribute_conditions.action
stringType of action. Can be 'hide', 'block', 'warning'.
advertisement_type
stringType of a special banner to show for the item in the payment UI. Can be 'recommended', 'best_deal', 'special_offer', 'null'.
virtual_currency_price
integerPrice in the in-game currency. If 'null', the item can only be purchased for real currency.
purchase_limit
integerNumber of times the item can be purchased. If 'null', there is no limit on the number of purchases.
keywords
arrayKeywords that can be used to find the item in the payment UI.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
POST https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items

Headers:
  Authorization: Basic <your_authorization_basic_key>
Content-Type: application/json

Body:
  {
  "advertisement_type": null,
  "default_currency": "USD",
  "description": {
    "en": "Chinese Tier VIII medium tank."
  },
  "enabled": true,
  "expiration": null,
  "groups": [],
  "image_url": "",
  "item_code": "chinese-medium-tank",
  "item_type": null,
  "keywords": {},
  "long_description": {
    "en": "This Chinese Tier VIII medium tank is a real beast in its class."
  },
  "name": {
    "en": "T-34-3"
  },
  "permanent": true,
  "prices": {
    "EUR": "1",
    "USD": "2"
  },
  "sku": "1234",
  "user_attribute_conditions": [
    {},
    {},
    {}
  ]
}
curl --request POST \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items \
  --header 'authorization: Basic <your_authorization_basic_key>' \
  --header 'content-type: application/json' \
  --data '{"name":{"en":"T-34-3"},"description":{"en":"Chinese Tier VIII medium tank."},"long_description":{"en":"This Chinese Tier VIII medium tank is a real beast in its class."},"enabled":true,"item_code":"chinese-medium-tank","advertisement_type":null,"item_type":null,"keywords":{},"groups":[],"default_currency":"USD","expiration":null,"image_url":"","permanent":true,"prices":{"USD":"2","EUR":"1"},"sku":"1234","user_attribute_conditions":[{},{},{}]}'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append('{"name":{"en":"T-34-3"},"description":{"en":"Chinese Tier VIII medium tank."},"long_description":{"en":"This Chinese Tier VIII medium tank is a real beast in its class."},"enabled":true,"item_code":"chinese-medium-tank","advertisement_type":null,"item_type":null,"keywords":{},"groups":[],"default_currency":"USD","expiration":null,"image_url":"","permanent":true,"prices":{"USD":"2","EUR":"1"},"sku":"1234","user_attribute_conditions":[{},{},{}]}');

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>',
  'content-type' => 'application/json'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items");
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\"name\":{\"en\":\"T-34-3\"},\"description\":{\"en\":\"Chinese Tier VIII medium tank.\"},\"long_description\":{\"en\":\"This Chinese Tier VIII medium tank is a real beast in its class.\"},\"enabled\":true,\"item_code\":\"chinese-medium-tank\",\"advertisement_type\":null,\"item_type\":null,\"keywords\":{},\"groups\":[],\"default_currency\":\"USD\",\"expiration\":null,\"image_url\":\"\",\"permanent\":true,\"prices\":{\"USD\":\"2\",\"EUR\":\"1\"},\"sku\":\"1234\",\"user_attribute_conditions\":[{},{},{}]}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

payload = "{\"name\":{\"en\":\"T-34-3\"},\"description\":{\"en\":\"Chinese Tier VIII medium tank.\"},\"long_description\":{\"en\":\"This Chinese Tier VIII medium tank is a real beast in its class.\"},\"enabled\":true,\"item_code\":\"chinese-medium-tank\",\"advertisement_type\":null,\"item_type\":null,\"keywords\":{},\"groups\":[],\"default_currency\":\"USD\",\"expiration\":null,\"image_url\":\"\",\"permanent\":true,\"prices\":{\"USD\":\"2\",\"EUR\":\"1\"},\"sku\":\"1234\",\"user_attribute_conditions\":[{},{},{}]}"

headers = {
    'content-type': "application/json",
    'authorization': "Basic <your_authorization_basic_key>"
    }

conn.request("POST", "/merchant/v1/projects/{project_id}/virtual_items/items", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request["authorization"] = 'Basic <your_authorization_basic_key>'
request.body = "{\"name\":{\"en\":\"T-34-3\"},\"description\":{\"en\":\"Chinese Tier VIII medium tank.\"},\"long_description\":{\"en\":\"This Chinese Tier VIII medium tank is a real beast in its class.\"},\"enabled\":true,\"item_code\":\"chinese-medium-tank\",\"advertisement_type\":null,\"item_type\":null,\"keywords\":{},\"groups\":[],\"default_currency\":\"USD\",\"expiration\":null,\"image_url\":\"\",\"permanent\":true,\"prices\":{\"USD\":\"2\",\"EUR\":\"1\"},\"sku\":\"1234\",\"user_attribute_conditions\":[{},{},{}]}"

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"name\":{\"en\":\"T-34-3\"},\"description\":{\"en\":\"Chinese Tier VIII medium tank.\"},\"long_description\":{\"en\":\"This Chinese Tier VIII medium tank is a real beast in its class.\"},\"enabled\":true,\"item_code\":\"chinese-medium-tank\",\"advertisement_type\":null,\"item_type\":null,\"keywords\":{},\"groups\":[],\"default_currency\":\"USD\",\"expiration\":null,\"image_url\":\"\",\"permanent\":true,\"prices\":{\"USD\":\"2\",\"EUR\":\"1\"},\"sku\":\"1234\",\"user_attribute_conditions\":[{},{},{}]}");
Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items")
  .post(body)
  .addHeader("content-type", "application/json")
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = JSON.stringify({
  "name": {
    "en": "T-34-3"
  },
  "description": {
    "en": "Chinese Tier VIII medium tank."
  },
  "long_description": {
    "en": "This Chinese Tier VIII medium tank is a real beast in its class."
  },
  "enabled": true,
  "item_code": "chinese-medium-tank",
  "advertisement_type": null,
  "item_type": null,
  "keywords": {},
  "groups": [],
  "default_currency": "USD",
  "expiration": null,
  "image_url": "",
  "permanent": true,
  "prices": {
    "USD": "2",
    "EUR": "1"
  },
  "sku": "1234",
  "user_attribute_conditions": [
    {},
    {},
    {}
  ]
});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response
{
  "item_id": 163099
}
{
  "item_id": 163099
}
{
  "item_id": 163099
}
{
  "item_id": 163099
}
{
  "item_id": 163099
}
{
  "item_id": 163099
}
{
  "item_id": 163099
}
{
  "item_id": 163099
}

Get Item

Retrieves a virtual item.

HTTP REQUEST

Copy
Full screen
Small screen
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items/{item_id}

ParameterTypeDescription
item_id
integerItem ID.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items/{item_id}

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items/{item_id} \
  --header 'authorization: Basic <your_authorization_basic_key>'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items/{item_id}');
$request->setRequestMethod('GET');
$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items/{item_id}");
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

headers = { 'authorization': "Basic <your_authorization_basic_key>" }

conn.request("GET", "/merchant/v1/projects/{project_id}/virtual_items/items/{item_id}", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items/{item_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["authorization"] = 'Basic <your_authorization_basic_key>'

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items/{item_id}")
  .get()
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items/{item_id}");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response
{
  "advertisement_type": null,
  "default_currency": "USD",
  "deleted": false,
  "description": {
    "en": "Chinese Tier VIII medium tank."
  },
  "enabled": true,
  "expiration": null,
  "groups": [],
  "id": 163099,
  "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
  "item_code": "chinese-medium-tank",
  "item_type": null,
  "keywords": [],
  "long_description": {
    "en": "This Chinese Tier VIII medium tank is a real beast in its class."
  },
  "name": {
    "en": "T-34-3"
  },
  "permanent": true,
  "prices": {
    "EUR": 1,
    "USD": 2
  },
  "purchase_limit": null,
  "secondary_market": [],
  "sku": "1234",
  "user_attribute_conditions": [],
  "virtual_currency_price": null
}
{
  "advertisement_type": null,
  "default_currency": "USD",
  "deleted": false,
  "description": {
    "en": "Chinese Tier VIII medium tank."
  },
  "enabled": true,
  "expiration": null,
  "groups": [],
  "id": 163099,
  "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
  "item_code": "chinese-medium-tank",
  "item_type": null,
  "keywords": [],
  "long_description": {
    "en": "This Chinese Tier VIII medium tank is a real beast in its class."
  },
  "name": {
    "en": "T-34-3"
  },
  "permanent": true,
  "prices": {
    "EUR": 1,
    "USD": 2
  },
  "purchase_limit": null,
  "secondary_market": [],
  "sku": "1234",
  "user_attribute_conditions": [],
  "virtual_currency_price": null
}
{
  "advertisement_type": null,
  "default_currency": "USD",
  "deleted": false,
  "description": {
    "en": "Chinese Tier VIII medium tank."
  },
  "enabled": true,
  "expiration": null,
  "groups": [],
  "id": 163099,
  "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
  "item_code": "chinese-medium-tank",
  "item_type": null,
  "keywords": [],
  "long_description": {
    "en": "This Chinese Tier VIII medium tank is a real beast in its class."
  },
  "name": {
    "en": "T-34-3"
  },
  "permanent": true,
  "prices": {
    "EUR": 1,
    "USD": 2
  },
  "purchase_limit": null,
  "secondary_market": [],
  "sku": "1234",
  "user_attribute_conditions": [],
  "virtual_currency_price": null
}
{
  "advertisement_type": null,
  "default_currency": "USD",
  "deleted": false,
  "description": {
    "en": "Chinese Tier VIII medium tank."
  },
  "enabled": true,
  "expiration": null,
  "groups": [],
  "id": 163099,
  "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
  "item_code": "chinese-medium-tank",
  "item_type": null,
  "keywords": [],
  "long_description": {
    "en": "This Chinese Tier VIII medium tank is a real beast in its class."
  },
  "name": {
    "en": "T-34-3"
  },
  "permanent": true,
  "prices": {
    "EUR": 1,
    "USD": 2
  },
  "purchase_limit": null,
  "secondary_market": [],
  "sku": "1234",
  "user_attribute_conditions": [],
  "virtual_currency_price": null
}
{
  "advertisement_type": null,
  "default_currency": "USD",
  "deleted": false,
  "description": {
    "en": "Chinese Tier VIII medium tank."
  },
  "enabled": true,
  "expiration": null,
  "groups": [],
  "id": 163099,
  "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
  "item_code": "chinese-medium-tank",
  "item_type": null,
  "keywords": [],
  "long_description": {
    "en": "This Chinese Tier VIII medium tank is a real beast in its class."
  },
  "name": {
    "en": "T-34-3"
  },
  "permanent": true,
  "prices": {
    "EUR": 1,
    "USD": 2
  },
  "purchase_limit": null,
  "secondary_market": [],
  "sku": "1234",
  "user_attribute_conditions": [],
  "virtual_currency_price": null
}
{
  "advertisement_type": null,
  "default_currency": "USD",
  "deleted": false,
  "description": {
    "en": "Chinese Tier VIII medium tank."
  },
  "enabled": true,
  "expiration": null,
  "groups": [],
  "id": 163099,
  "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
  "item_code": "chinese-medium-tank",
  "item_type": null,
  "keywords": [],
  "long_description": {
    "en": "This Chinese Tier VIII medium tank is a real beast in its class."
  },
  "name": {
    "en": "T-34-3"
  },
  "permanent": true,
  "prices": {
    "EUR": 1,
    "USD": 2
  },
  "purchase_limit": null,
  "secondary_market": [],
  "sku": "1234",
  "user_attribute_conditions": [],
  "virtual_currency_price": null
}
{
  "advertisement_type": null,
  "default_currency": "USD",
  "deleted": false,
  "description": {
    "en": "Chinese Tier VIII medium tank."
  },
  "enabled": true,
  "expiration": null,
  "groups": [],
  "id": 163099,
  "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
  "item_code": "chinese-medium-tank",
  "item_type": null,
  "keywords": [],
  "long_description": {
    "en": "This Chinese Tier VIII medium tank is a real beast in its class."
  },
  "name": {
    "en": "T-34-3"
  },
  "permanent": true,
  "prices": {
    "EUR": 1,
    "USD": 2
  },
  "purchase_limit": null,
  "secondary_market": [],
  "sku": "1234",
  "user_attribute_conditions": [],
  "virtual_currency_price": null
}
{
  "advertisement_type": null,
  "default_currency": "USD",
  "deleted": false,
  "description": {
    "en": "Chinese Tier VIII medium tank."
  },
  "enabled": true,
  "expiration": null,
  "groups": [],
  "id": 163099,
  "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
  "item_code": "chinese-medium-tank",
  "item_type": null,
  "keywords": [],
  "long_description": {
    "en": "This Chinese Tier VIII medium tank is a real beast in its class."
  },
  "name": {
    "en": "T-34-3"
  },
  "permanent": true,
  "prices": {
    "EUR": 1,
    "USD": 2
  },
  "purchase_limit": null,
  "secondary_market": [],
  "sku": "1234",
  "user_attribute_conditions": [],
  "virtual_currency_price": null
}

Update Item

Updates a virtual item.

HTTP REQUEST

Copy
Full screen
Small screen
PUT https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items/{item_id}

ParameterTypeDescription
item_id
integerItem ID.
sku
stringUnique item ID. The SKU may only contain lowercase Latin alphanumeric characters, dashes, and underscores. When updating SKU, you will need to configure all widgets from scratch. Already installed widgets will stop working.
item_code
stringAdditional item code. Optional.
name
array of stringsLocalized item names (array).
description
array of stringsLocalized item descriptions (array).
long_description
array of stringsLocalized extended descriptions of the item (array).
prices
arrayItem prices (array).
default_currency
stringDefault purchase currency. Three-letter code per ISO 4217.
enabled
booleanEnables the item.
permanent
booleanIf true, the item can only be purchased once.
image_url
stringImage URL.
item_type
stringType of Item: Consumable/Expiration/Permanent/Lootboxes/Physical.
expiration
integerLifetime in seconds. For Expiration-type items only.
groups
array of integersGroups the item belongs to (array).
deleted
booleanWhether the item was deleted.
user_attribute_conditions
array of objectsList of conditions on the user attribute.
user_attribute_conditions.right_operand
arrayValues to compare the user attribute to.
user_attribute_conditions.user_attribute_key
stringKey of the user attribute condition.
user_attribute_conditions.operation
stringType of operation. Can be 'greater', 'greaterOrEqual', 'equal', 'notEqual', 'less', 'lessOrEqual', 'between', 'in', 'notIn'.
user_attribute_conditions.action
stringType of action. Can be 'hide', 'block', 'warning'.
advertisement_type
stringType of a special banner to show for the item in the payment UI. Can be 'recommended', 'best_deal', 'special_offer', 'null'.
virtual_currency_price
integerPrice in the in-game currency. If 'null', the item can only be purchased for real currency.
purchase_limit
integerNumber of times the item can be purchased. If 'null', there is no limit on the number of purchases.
keywords
arrayKeywords that can be used to find the item in the payment UI.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
PUT https://api.xsolla.com/merchant/v1/projects/{project_id}virtual_items/items/{item_id}

Headers:
  Authorization: Basic <your_authorization_basic_key>
Content-Type: application/json

Body:
  {
  "advertisement_type": null,
  "default_currency": "USD",
  "description": {
    "en": "Chinese Tier VIII medium tank."
  },
  "enabled": true,
  "expiration": null,
  "groups": [],
  "image_url": "",
  "item_code": "ut et",
  "item_type": null,
  "keywords": {},
  "long_description": {
    "en": "This Chinese Tier VIII medium tank is a real beast in its class."
  },
  "name": {
    "en": "T-34-3"
  },
  "permanent": true,
  "prices": {
    "EUR": "4",
    "USD": "2"
  },
  "sku": "12394",
  "user_attribute_conditions": [
    {},
    {},
    {}
  ]
}
curl --request PUT \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}virtual_items/items/{item_id} \
  --header 'authorization: Basic <your_authorization_basic_key>' \
  --header 'content-type: application/json' \
  --data '{"name":{"en":"T-34-3"},"description":{"en":"Chinese Tier VIII medium tank."},"long_description":{"en":"This Chinese Tier VIII medium tank is a real beast in its class."},"enabled":true,"item_code":"ut et","advertisement_type":null,"item_type":null,"keywords":{},"groups":[],"default_currency":"USD","expiration":null,"image_url":"","permanent":true,"prices":{"USD":"2","EUR":"4"},"sku":"12394","user_attribute_conditions":[{},{},{}]}'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append('{"name":{"en":"T-34-3"},"description":{"en":"Chinese Tier VIII medium tank."},"long_description":{"en":"This Chinese Tier VIII medium tank is a real beast in its class."},"enabled":true,"item_code":"ut et","advertisement_type":null,"item_type":null,"keywords":{},"groups":[],"default_currency":"USD","expiration":null,"image_url":"","permanent":true,"prices":{"USD":"2","EUR":"4"},"sku":"12394","user_attribute_conditions":[{},{},{}]}');

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}virtual_items/items/{item_id}');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>',
  'content-type' => 'application/json'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}virtual_items/items/{item_id}");
var request = new RestRequest(Method.PUT);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\"name\":{\"en\":\"T-34-3\"},\"description\":{\"en\":\"Chinese Tier VIII medium tank.\"},\"long_description\":{\"en\":\"This Chinese Tier VIII medium tank is a real beast in its class.\"},\"enabled\":true,\"item_code\":\"ut et\",\"advertisement_type\":null,\"item_type\":null,\"keywords\":{},\"groups\":[],\"default_currency\":\"USD\",\"expiration\":null,\"image_url\":\"\",\"permanent\":true,\"prices\":{\"USD\":\"2\",\"EUR\":\"4\"},\"sku\":\"12394\",\"user_attribute_conditions\":[{},{},{}]}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

payload = "{\"name\":{\"en\":\"T-34-3\"},\"description\":{\"en\":\"Chinese Tier VIII medium tank.\"},\"long_description\":{\"en\":\"This Chinese Tier VIII medium tank is a real beast in its class.\"},\"enabled\":true,\"item_code\":\"ut et\",\"advertisement_type\":null,\"item_type\":null,\"keywords\":{},\"groups\":[],\"default_currency\":\"USD\",\"expiration\":null,\"image_url\":\"\",\"permanent\":true,\"prices\":{\"USD\":\"2\",\"EUR\":\"4\"},\"sku\":\"12394\",\"user_attribute_conditions\":[{},{},{}]}"

headers = {
    'content-type': "application/json",
    'authorization': "Basic <your_authorization_basic_key>"
    }

conn.request("PUT", "/merchant/v1/projects/{project_id}virtual_items/items/{item_id}", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}virtual_items/items/{item_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request["authorization"] = 'Basic <your_authorization_basic_key>'
request.body = "{\"name\":{\"en\":\"T-34-3\"},\"description\":{\"en\":\"Chinese Tier VIII medium tank.\"},\"long_description\":{\"en\":\"This Chinese Tier VIII medium tank is a real beast in its class.\"},\"enabled\":true,\"item_code\":\"ut et\",\"advertisement_type\":null,\"item_type\":null,\"keywords\":{},\"groups\":[],\"default_currency\":\"USD\",\"expiration\":null,\"image_url\":\"\",\"permanent\":true,\"prices\":{\"USD\":\"2\",\"EUR\":\"4\"},\"sku\":\"12394\",\"user_attribute_conditions\":[{},{},{}]}"

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"name\":{\"en\":\"T-34-3\"},\"description\":{\"en\":\"Chinese Tier VIII medium tank.\"},\"long_description\":{\"en\":\"This Chinese Tier VIII medium tank is a real beast in its class.\"},\"enabled\":true,\"item_code\":\"ut et\",\"advertisement_type\":null,\"item_type\":null,\"keywords\":{},\"groups\":[],\"default_currency\":\"USD\",\"expiration\":null,\"image_url\":\"\",\"permanent\":true,\"prices\":{\"USD\":\"2\",\"EUR\":\"4\"},\"sku\":\"12394\",\"user_attribute_conditions\":[{},{},{}]}");
Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}virtual_items/items/{item_id}")
  .put(body)
  .addHeader("content-type", "application/json")
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = JSON.stringify({
  "name": {
    "en": "T-34-3"
  },
  "description": {
    "en": "Chinese Tier VIII medium tank."
  },
  "long_description": {
    "en": "This Chinese Tier VIII medium tank is a real beast in its class."
  },
  "enabled": true,
  "item_code": "ut et",
  "advertisement_type": null,
  "item_type": null,
  "keywords": {},
  "groups": [],
  "default_currency": "USD",
  "expiration": null,
  "image_url": "",
  "permanent": true,
  "prices": {
    "USD": "2",
    "EUR": "4"
  },
  "sku": "12394",
  "user_attribute_conditions": [
    {},
    {},
    {}
  ]
});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("PUT", "https://api.xsolla.com/merchant/v1/projects/{project_id}virtual_items/items/{item_id}");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response


Delete Item

Deletes a virtual item.

HTTP REQUEST

Copy
Full screen
Small screen
DELETE https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items/{item_id}

ParameterTypeDescription
item_id
integerItem ID.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
DELETE https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items/{item_id}

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request DELETE \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items/{item_id} \
  --header 'authorization: Basic <your_authorization_basic_key>'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items/{item_id}');
$request->setRequestMethod('DELETE');
$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items/{item_id}");
var request = new RestRequest(Method.DELETE);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

headers = { 'authorization': "Basic <your_authorization_basic_key>" }

conn.request("DELETE", "/merchant/v1/projects/{project_id}/virtual_items/items/{item_id}", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items/{item_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Delete.new(url)
request["authorization"] = 'Basic <your_authorization_basic_key>'

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items/{item_id}")
  .delete(null)
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("DELETE", "https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items/{item_id}");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response


Get Items List

Lists all virtual items.

HTTP REQUEST

Copy
Full screen
Small screen
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items

ParameterTypeDescription
project_id
integerProject ID.
offset
integerNumber of the element from which the list is generated (the count starts from 0).
limit
integerLimit for the number of elements on the page.
has_price
stringPrice type: 'virtual_currency' or 'real_currency' if the item can be purchased for virtual or real currency, respectively.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items \
  --header 'authorization: Basic <your_authorization_basic_key>'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items');
$request->setRequestMethod('GET');
$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items");
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

headers = { 'authorization': "Basic <your_authorization_basic_key>" }

conn.request("GET", "/merchant/v1/projects/{project_id}/virtual_items/items", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["authorization"] = 'Basic <your_authorization_basic_key>'

response = http.request(request)
puts response.read_body
HttpResponse<String> response = Unirest.get("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items")
  .header("authorization", "Basic <your_authorization_basic_key>")
  .asString();
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/items");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response
[
  {
    "advertisement_type": "recommended",
    "default_currency": "USD",
    "enabled": false,
    "groups": [
      9196
    ],
    "id": 163076,
    "localized_name": "Rabbit",
    "permanent": false,
    "prices": {
      "CNY": 5.99,
      "EUR": 1,
      "KRW": 999,
      "RUB": 59.99,
      "USD": 1
    },
    "sku": "1468",
    "virtual_currency_price": 400
  },
  {
    "advertisement_type": null,
    "default_currency": "USD",
    "enabled": true,
    "groups": [
      9196
    ],
    "id": 163077,
    "localized_name": "Chicken",
    "permanent": false,
    "prices": {
      "CNY": 5.99,
      "EUR": 1,
      "KRW": 999,
      "RUB": 59.99,
      "USD": 1
    },
    "sku": "1469",
    "virtual_currency_price": 600
  }
]
[
  {
    "advertisement_type": "recommended",
    "default_currency": "USD",
    "enabled": false,
    "groups": [
      9196
    ],
    "id": 163076,
    "localized_name": "Rabbit",
    "permanent": false,
    "prices": {
      "CNY": 5.99,
      "EUR": 1,
      "KRW": 999,
      "RUB": 59.99,
      "USD": 1
    },
    "sku": "1468",
    "virtual_currency_price": 400
  },
  {
    "advertisement_type": null,
    "default_currency": "USD",
    "enabled": true,
    "groups": [
      9196
    ],
    "id": 163077,
    "localized_name": "Chicken",
    "permanent": false,
    "prices": {
      "CNY": 5.99,
      "EUR": 1,
      "KRW": 999,
      "RUB": 59.99,
      "USD": 1
    },
    "sku": "1469",
    "virtual_currency_price": 600
  }
]
[
  {
    "advertisement_type": "recommended",
    "default_currency": "USD",
    "enabled": false,
    "groups": [
      9196
    ],
    "id": 163076,
    "localized_name": "Rabbit",
    "permanent": false,
    "prices": {
      "CNY": 5.99,
      "EUR": 1,
      "KRW": 999,
      "RUB": 59.99,
      "USD": 1
    },
    "sku": "1468",
    "virtual_currency_price": 400
  },
  {
    "advertisement_type": null,
    "default_currency": "USD",
    "enabled": true,
    "groups": [
      9196
    ],
    "id": 163077,
    "localized_name": "Chicken",
    "permanent": false,
    "prices": {
      "CNY": 5.99,
      "EUR": 1,
      "KRW": 999,
      "RUB": 59.99,
      "USD": 1
    },
    "sku": "1469",
    "virtual_currency_price": 600
  }
]
[
  {
    "advertisement_type": "recommended",
    "default_currency": "USD",
    "enabled": false,
    "groups": [
      9196
    ],
    "id": 163076,
    "localized_name": "Rabbit",
    "permanent": false,
    "prices": {
      "CNY": 5.99,
      "EUR": 1,
      "KRW": 999,
      "RUB": 59.99,
      "USD": 1
    },
    "sku": "1468",
    "virtual_currency_price": 400
  },
  {
    "advertisement_type": null,
    "default_currency": "USD",
    "enabled": true,
    "groups": [
      9196
    ],
    "id": 163077,
    "localized_name": "Chicken",
    "permanent": false,
    "prices": {
      "CNY": 5.99,
      "EUR": 1,
      "KRW": 999,
      "RUB": 59.99,
      "USD": 1
    },
    "sku": "1469",
    "virtual_currency_price": 600
  }
]
[
  {
    "advertisement_type": "recommended",
    "default_currency": "USD",
    "enabled": false,
    "groups": [
      9196
    ],
    "id": 163076,
    "localized_name": "Rabbit",
    "permanent": false,
    "prices": {
      "CNY": 5.99,
      "EUR": 1,
      "KRW": 999,
      "RUB": 59.99,
      "USD": 1
    },
    "sku": "1468",
    "virtual_currency_price": 400
  },
  {
    "advertisement_type": null,
    "default_currency": "USD",
    "enabled": true,
    "groups": [
      9196
    ],
    "id": 163077,
    "localized_name": "Chicken",
    "permanent": false,
    "prices": {
      "CNY": 5.99,
      "EUR": 1,
      "KRW": 999,
      "RUB": 59.99,
      "USD": 1
    },
    "sku": "1469",
    "virtual_currency_price": 600
  }
]
[
  {
    "advertisement_type": "recommended",
    "default_currency": "USD",
    "enabled": false,
    "groups": [
      9196
    ],
    "id": 163076,
    "localized_name": "Rabbit",
    "permanent": false,
    "prices": {
      "CNY": 5.99,
      "EUR": 1,
      "KRW": 999,
      "RUB": 59.99,
      "USD": 1
    },
    "sku": "1468",
    "virtual_currency_price": 400
  },
  {
    "advertisement_type": null,
    "default_currency": "USD",
    "enabled": true,
    "groups": [
      9196
    ],
    "id": 163077,
    "localized_name": "Chicken",
    "permanent": false,
    "prices": {
      "CNY": 5.99,
      "EUR": 1,
      "KRW": 999,
      "RUB": 59.99,
      "USD": 1
    },
    "sku": "1469",
    "virtual_currency_price": 600
  }
]
[
  {
    "advertisement_type": "recommended",
    "default_currency": "USD",
    "enabled": false,
    "groups": [
      9196
    ],
    "id": 163076,
    "localized_name": "Rabbit",
    "permanent": false,
    "prices": {
      "CNY": 5.99,
      "EUR": 1,
      "KRW": 999,
      "RUB": 59.99,
      "USD": 1
    },
    "sku": "1468",
    "virtual_currency_price": 400
  },
  {
    "advertisement_type": null,
    "default_currency": "USD",
    "enabled": true,
    "groups": [
      9196
    ],
    "id": 163077,
    "localized_name": "Chicken",
    "permanent": false,
    "prices": {
      "CNY": 5.99,
      "EUR": 1,
      "KRW": 999,
      "RUB": 59.99,
      "USD": 1
    },
    "sku": "1469",
    "virtual_currency_price": 600
  }
]
[
  {
    "advertisement_type": "recommended",
    "default_currency": "USD",
    "enabled": false,
    "groups": [
      9196
    ],
    "id": 163076,
    "localized_name": "Rabbit",
    "permanent": false,
    "prices": {
      "CNY": 5.99,
      "EUR": 1,
      "KRW": 999,
      "RUB": 59.99,
      "USD": 1
    },
    "sku": "1468",
    "virtual_currency_price": 400
  },
  {
    "advertisement_type": null,
    "default_currency": "USD",
    "enabled": true,
    "groups": [
      9196
    ],
    "id": 163077,
    "localized_name": "Chicken",
    "permanent": false,
    "prices": {
      "CNY": 5.99,
      "EUR": 1,
      "KRW": 999,
      "RUB": 59.99,
      "USD": 1
    },
    "sku": "1469",
    "virtual_currency_price": 600
  }
]

Create Items Group

Creates a virtual item group.

HTTP REQUEST

Copy
Full screen
Small screen
POST https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups

ParameterTypeDescription
project_id
integerProject ID.
name
array of stringsLocalized group names (array).
description
array of stringsLocalized group descriptions (array).
enabled
booleanEnables the group.
parent_id
integerParent group ID.
code
integerGroup's unique code.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
POST https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups

Headers:
  Authorization: Basic <your_authorization_basic_key>
Content-Type: application/json

Body:
  {
  "code": "2",
  "description": {
    "en": "Farm animals"
  },
  "enabled": true,
  "name": {
    "en": "Animals"
  },
  "parent_id": "9182"
}
curl --request POST \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups \
  --header 'authorization: Basic <your_authorization_basic_key>' \
  --header 'content-type: application/json' \
  --data '{"name":{"en":"Animals"},"description":{"en":"Farm animals"},"enabled":true,"code":"2","parent_id":"9182"}'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append('{"name":{"en":"Animals"},"description":{"en":"Farm animals"},"enabled":true,"code":"2","parent_id":"9182"}');

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>',
  'content-type' => 'application/json'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups");
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\"name\":{\"en\":\"Animals\"},\"description\":{\"en\":\"Farm animals\"},\"enabled\":true,\"code\":\"2\",\"parent_id\":\"9182\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

payload = "{\"name\":{\"en\":\"Animals\"},\"description\":{\"en\":\"Farm animals\"},\"enabled\":true,\"code\":\"2\",\"parent_id\":\"9182\"}"

headers = {
    'content-type': "application/json",
    'authorization': "Basic <your_authorization_basic_key>"
    }

conn.request("POST", "/merchant/v1/projects/{project_id}/virtual_items/groups", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request["authorization"] = 'Basic <your_authorization_basic_key>'
request.body = "{\"name\":{\"en\":\"Animals\"},\"description\":{\"en\":\"Farm animals\"},\"enabled\":true,\"code\":\"2\",\"parent_id\":\"9182\"}"

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"name\":{\"en\":\"Animals\"},\"description\":{\"en\":\"Farm animals\"},\"enabled\":true,\"code\":\"2\",\"parent_id\":\"9182\"}");
Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups")
  .post(body)
  .addHeader("content-type", "application/json")
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = JSON.stringify({
  "name": {
    "en": "Animals"
  },
  "description": {
    "en": "Farm animals"
  },
  "enabled": true,
  "code": "2",
  "parent_id": "9182"
});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response
{
  "group_id": 9208
}
{
  "group_id": 9208
}
{
  "group_id": 9208
}
{
  "group_id": 9208
}
{
  "group_id": 9208
}
{
  "group_id": 9208
}
{
  "group_id": 9208
}
{
  "group_id": 9208
}

Get Items Group

Retrieves details on a virtual item group.

HTTP REQUEST

Copy
Full screen
Small screen
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}

ParameterTypeDescription
group_id
stringGroup ID.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id} \
  --header 'authorization: Basic <your_authorization_basic_key>'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}');
$request->setRequestMethod('GET');
$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}");
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

headers = { 'authorization': "Basic <your_authorization_basic_key>" }

conn.request("GET", "/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["authorization"] = 'Basic <your_authorization_basic_key>'

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}")
  .get()
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response
{
  "code": "2",
  "description": {
    "en": "Farm animals"
  },
  "enabled": true,
  "id": 9208,
  "name": {
    "en": "Animals"
  },
  "parent_id": 9182
}
{
  "code": "2",
  "description": {
    "en": "Farm animals"
  },
  "enabled": true,
  "id": 9208,
  "name": {
    "en": "Animals"
  },
  "parent_id": 9182
}
{
  "code": "2",
  "description": {
    "en": "Farm animals"
  },
  "enabled": true,
  "id": 9208,
  "name": {
    "en": "Animals"
  },
  "parent_id": 9182
}
{
  "code": "2",
  "description": {
    "en": "Farm animals"
  },
  "enabled": true,
  "id": 9208,
  "name": {
    "en": "Animals"
  },
  "parent_id": 9182
}
{
  "code": "2",
  "description": {
    "en": "Farm animals"
  },
  "enabled": true,
  "id": 9208,
  "name": {
    "en": "Animals"
  },
  "parent_id": 9182
}
{
  "code": "2",
  "description": {
    "en": "Farm animals"
  },
  "enabled": true,
  "id": 9208,
  "name": {
    "en": "Animals"
  },
  "parent_id": 9182
}
{
  "code": "2",
  "description": {
    "en": "Farm animals"
  },
  "enabled": true,
  "id": 9208,
  "name": {
    "en": "Animals"
  },
  "parent_id": 9182
}
{
  "code": "2",
  "description": {
    "en": "Farm animals"
  },
  "enabled": true,
  "id": 9208,
  "name": {
    "en": "Animals"
  },
  "parent_id": 9182
}

Update Items Group

Updates a virtual item group.

HTTP REQUEST

Copy
Full screen
Small screen
PUT https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}

ParameterTypeDescription
group_id
stringGroup ID.
name
array of stringsLocalized group names (array).
description
array of stringsLocalized group descriptions (array).
enabled
booleanEnables the group.
parent_id
integerParent group ID.
code
integerGroup's unique code.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
PUT https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}

Headers:
  Authorization: Basic <your_authorization_basic_key>
Content-Type: application/json

Body:
  {
  "code": "2",
  "description": {
    "en": "Farm animals and plants"
  },
  "enabled": true,
  "name": {
    "en": "Animals and plants"
  },
  "parent_id": "9182"
}
curl --request PUT \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id} \
  --header 'authorization: Basic <your_authorization_basic_key>' \
  --header 'content-type: application/json' \
  --data '{"name":{"en":"Animals and plants"},"description":{"en":"Farm animals and plants"},"enabled":true,"code":"2","parent_id":"9182"}'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append('{"name":{"en":"Animals and plants"},"description":{"en":"Farm animals and plants"},"enabled":true,"code":"2","parent_id":"9182"}');

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>',
  'content-type' => 'application/json'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}");
var request = new RestRequest(Method.PUT);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\"name\":{\"en\":\"Animals and plants\"},\"description\":{\"en\":\"Farm animals and plants\"},\"enabled\":true,\"code\":\"2\",\"parent_id\":\"9182\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

payload = "{\"name\":{\"en\":\"Animals and plants\"},\"description\":{\"en\":\"Farm animals and plants\"},\"enabled\":true,\"code\":\"2\",\"parent_id\":\"9182\"}"

headers = {
    'content-type': "application/json",
    'authorization': "Basic <your_authorization_basic_key>"
    }

conn.request("PUT", "/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request["authorization"] = 'Basic <your_authorization_basic_key>'
request.body = "{\"name\":{\"en\":\"Animals and plants\"},\"description\":{\"en\":\"Farm animals and plants\"},\"enabled\":true,\"code\":\"2\",\"parent_id\":\"9182\"}"

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"name\":{\"en\":\"Animals and plants\"},\"description\":{\"en\":\"Farm animals and plants\"},\"enabled\":true,\"code\":\"2\",\"parent_id\":\"9182\"}");
Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}")
  .put(body)
  .addHeader("content-type", "application/json")
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = JSON.stringify({
  "name": {
    "en": "Animals and plants"
  },
  "description": {
    "en": "Farm animals and plants"
  },
  "enabled": true,
  "code": "2",
  "parent_id": "9182"
});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("PUT", "https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response


Delete Items Group

Deletes a virtual item group.

HTTP REQUEST

Copy
Full screen
Small screen
DELETE https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}

ParameterTypeDescription
group_id
stringGroup ID.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
DELETE https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request DELETE \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id} \
  --header 'authorization: Basic <your_authorization_basic_key>'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}');
$request->setRequestMethod('DELETE');
$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}");
var request = new RestRequest(Method.DELETE);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

headers = { 'authorization': "Basic <your_authorization_basic_key>" }

conn.request("DELETE", "/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Delete.new(url)
request["authorization"] = 'Basic <your_authorization_basic_key>'

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}")
  .delete(null)
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("DELETE", "https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups/{group_id}");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response


Get Items Groups List

Lists all virtual item groups.

HTTP REQUEST

Copy
Full screen
Small screen
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups

ParameterTypeDescription
project_id
integerProject ID.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups \
  --header 'authorization: Basic <your_authorization_basic_key>'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups');
$request->setRequestMethod('GET');
$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups");
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

headers = { 'authorization': "Basic <your_authorization_basic_key>" }

conn.request("GET", "/merchant/v1/projects/{project_id}/virtual_items/groups", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["authorization"] = 'Basic <your_authorization_basic_key>'

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups")
  .get()
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://api.xsolla.com/merchant/v1/projects/{project_id}/virtual_items/groups");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response
[
  {
    "code": null,
    "enabled": true,
    "has_groups": false,
    "has_virtual_items": true,
    "id": 9196,
    "localized_name": "Pets",
    "parent_id": null,
    "virtual_items_count": 8
  },
  {
    "code": null,
    "enabled": true,
    "has_groups": false,
    "has_virtual_items": true,
    "id": 9197,
    "localized_name": "Food",
    "parent_id": null,
    "virtual_items_count": 7
  }
]
[
  {
    "code": null,
    "enabled": true,
    "has_groups": false,
    "has_virtual_items": true,
    "id": 9196,
    "localized_name": "Pets",
    "parent_id": null,
    "virtual_items_count": 8
  },
  {
    "code": null,
    "enabled": true,
    "has_groups": false,
    "has_virtual_items": true,
    "id": 9197,
    "localized_name": "Food",
    "parent_id": null,
    "virtual_items_count": 7
  }
]
[
  {
    "code": null,
    "enabled": true,
    "has_groups": false,
    "has_virtual_items": true,
    "id": 9196,
    "localized_name": "Pets",
    "parent_id": null,
    "virtual_items_count": 8
  },
  {
    "code": null,
    "enabled": true,
    "has_groups": false,
    "has_virtual_items": true,
    "id": 9197,
    "localized_name": "Food",
    "parent_id": null,
    "virtual_items_count": 7
  }
]
[
  {
    "code": null,
    "enabled": true,
    "has_groups": false,
    "has_virtual_items": true,
    "id": 9196,
    "localized_name": "Pets",
    "parent_id": null,
    "virtual_items_count": 8
  },
  {
    "code": null,
    "enabled": true,
    "has_groups": false,
    "has_virtual_items": true,
    "id": 9197,
    "localized_name": "Food",
    "parent_id": null,
    "virtual_items_count": 7
  }
]
[
  {
    "code": null,
    "enabled": true,
    "has_groups": false,
    "has_virtual_items": true,
    "id": 9196,
    "localized_name": "Pets",
    "parent_id": null,
    "virtual_items_count": 8
  },
  {
    "code": null,
    "enabled": true,
    "has_groups": false,
    "has_virtual_items": true,
    "id": 9197,
    "localized_name": "Food",
    "parent_id": null,
    "virtual_items_count": 7
  }
]
[
  {
    "code": null,
    "enabled": true,
    "has_groups": false,
    "has_virtual_items": true,
    "id": 9196,
    "localized_name": "Pets",
    "parent_id": null,
    "virtual_items_count": 8
  },
  {
    "code": null,
    "enabled": true,
    "has_groups": false,
    "has_virtual_items": true,
    "id": 9197,
    "localized_name": "Food",
    "parent_id": null,
    "virtual_items_count": 7
  }
]
[
  {
    "code": null,
    "enabled": true,
    "has_groups": false,
    "has_virtual_items": true,
    "id": 9196,
    "localized_name": "Pets",
    "parent_id": null,
    "virtual_items_count": 8
  },
  {
    "code": null,
    "enabled": true,
    "has_groups": false,
    "has_virtual_items": true,
    "id": 9197,
    "localized_name": "Food",
    "parent_id": null,
    "virtual_items_count": 7
  }
]
[
  {
    "code": null,
    "enabled": true,
    "has_groups": false,
    "has_virtual_items": true,
    "id": 9196,
    "localized_name": "Pets",
    "parent_id": null,
    "virtual_items_count": 8
  },
  {
    "code": null,
    "enabled": true,
    "has_groups": false,
    "has_virtual_items": true,
    "id": 9197,
    "localized_name": "Food",
    "parent_id": null,
    "virtual_items_count": 7
  }
]

User Attributes

Create Attribute

Creates a user attribute.

HTTP REQUEST

Copy
Full screen
Small screen
POST https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes

ParameterTypeDescription
project_id
integerProject ID. Required.
key
stringKey of the user attribute. Required.
name
array of stringsLocalized attribute names. Required.
type
stringKey type. Can be 'int', 'string', 'enum', or 'date'. Required.
list_of_values
arrayArray of possible values for enum type. Required.
skip_condition_on_nonexistent_key
booleanWhether to skip the condition if key doesn't exist.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
POST https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes

Headers:
  Authorization: Basic <your_authorization_basic_key>
Content-Type: application/json

Body:
  {
  "key": "13",
  "list_of_values": [
    {},
    {},
    {},
    {}
  ],
  "name": {
    "en": "Rating",
    "ru": "Рейтинг"
  },
  "skip_condition_on_nonexistent_key": true,
  "type": "int",
  "visible": false
}
curl --request POST \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes \
  --header 'authorization: Basic <your_authorization_basic_key>' \
  --header 'content-type: application/json' \
  --data '{"key":"13","name":{"en":"Rating","ru":"Рейтинг"},"type":"int","list_of_values":[{},{},{},{}],"visible":false,"skip_condition_on_nonexistent_key":true}'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append('{"key":"13","name":{"en":"Rating","ru":"Рейтинг"},"type":"int","list_of_values":[{},{},{},{}],"visible":false,"skip_condition_on_nonexistent_key":true}');

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>',
  'content-type' => 'application/json'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes");
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\"key\":\"13\",\"name\":{\"en\":\"Rating\",\"ru\":\"Рейтинг\"},\"type\":\"int\",\"list_of_values\":[{},{},{},{}],\"visible\":false,\"skip_condition_on_nonexistent_key\":true}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

payload = "{\"key\":\"13\",\"name\":{\"en\":\"Rating\",\"ru\":\"Рейтинг\"},\"type\":\"int\",\"list_of_values\":[{},{},{},{}],\"visible\":false,\"skip_condition_on_nonexistent_key\":true}"

headers = {
    'content-type': "application/json",
    'authorization': "Basic <your_authorization_basic_key>"
    }

conn.request("POST", "/merchant/v1/projects/{project_id}/user_attributes", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request["authorization"] = 'Basic <your_authorization_basic_key>'
request.body = "{\"key\":\"13\",\"name\":{\"en\":\"Rating\",\"ru\":\"Рейтинг\"},\"type\":\"int\",\"list_of_values\":[{},{},{},{}],\"visible\":false,\"skip_condition_on_nonexistent_key\":true}"

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"key\":\"13\",\"name\":{\"en\":\"Rating\",\"ru\":\"Рейтинг\"},\"type\":\"int\",\"list_of_values\":[{},{},{},{}],\"visible\":false,\"skip_condition_on_nonexistent_key\":true}");
Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes")
  .post(body)
  .addHeader("content-type", "application/json")
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = JSON.stringify({
  "key": "13",
  "name": {
    "en": "Rating",
    "ru": "Рейтинг"
  },
  "type": "int",
  "list_of_values": [
    {},
    {},
    {},
    {}
  ],
  "visible": false,
  "skip_condition_on_nonexistent_key": true
});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response
{
  "id": 11427
}
{
  "id": 11427
}
{
  "id": 11427
}
{
  "id": 11427
}
{
  "id": 11427
}
{
  "id": 11427
}
{
  "id": 11427
}
{
  "id": 11427
}

Get Attribute

Gets details on a specific user attribute.

HTTP REQUEST

Copy
Full screen
Small screen
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/{user_attribute_id}

ParameterTypeDescription
project_id
integerProject ID.
user_attribute_id
integerUser attribute ID.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/11425

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/11425 \
  --header 'authorization: Basic <your_authorization_basic_key>'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/11425');
$request->setRequestMethod('GET');
$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/11425");
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

headers = { 'authorization': "Basic <your_authorization_basic_key>" }

conn.request("GET", "/merchant/v1/projects/{project_id}/user_attributes/11425", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/11425")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["authorization"] = 'Basic <your_authorization_basic_key>'

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/11425")
  .get()
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/11425");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response
{
  "id": 11425,
  "key": "12",
  "list_of_values": [],
  "localized_name": "Level",
  "name": {
    "en": "Level",
    "ru": "Уровень"
  },
  "skip_condition_on_nonexistent_key": true,
  "type": "int",
  "visible": false
}
{
  "id": 11425,
  "key": "12",
  "list_of_values": [],
  "localized_name": "Level",
  "name": {
    "en": "Level",
    "ru": "Уровень"
  },
  "skip_condition_on_nonexistent_key": true,
  "type": "int",
  "visible": false
}
{
  "id": 11425,
  "key": "12",
  "list_of_values": [],
  "localized_name": "Level",
  "name": {
    "en": "Level",
    "ru": "Уровень"
  },
  "skip_condition_on_nonexistent_key": true,
  "type": "int",
  "visible": false
}
{
  "id": 11425,
  "key": "12",
  "list_of_values": [],
  "localized_name": "Level",
  "name": {
    "en": "Level",
    "ru": "Уровень"
  },
  "skip_condition_on_nonexistent_key": true,
  "type": "int",
  "visible": false
}
{
  "id": 11425,
  "key": "12",
  "list_of_values": [],
  "localized_name": "Level",
  "name": {
    "en": "Level",
    "ru": "Уровень"
  },
  "skip_condition_on_nonexistent_key": true,
  "type": "int",
  "visible": false
}
{
  "id": 11425,
  "key": "12",
  "list_of_values": [],
  "localized_name": "Level",
  "name": {
    "en": "Level",
    "ru": "Уровень"
  },
  "skip_condition_on_nonexistent_key": true,
  "type": "int",
  "visible": false
}
{
  "id": 11425,
  "key": "12",
  "list_of_values": [],
  "localized_name": "Level",
  "name": {
    "en": "Level",
    "ru": "Уровень"
  },
  "skip_condition_on_nonexistent_key": true,
  "type": "int",
  "visible": false
}
{
  "id": 11425,
  "key": "12",
  "list_of_values": [],
  "localized_name": "Level",
  "name": {
    "en": "Level",
    "ru": "Уровень"
  },
  "skip_condition_on_nonexistent_key": true,
  "type": "int",
  "visible": false
}

Update Attribute

Updates a user attribute.

HTTP REQUEST

Copy
Full screen
Small screen
PUT https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/{user_attribute_id}

ParameterTypeDescription
project_id
integerProject ID.
user_attribute_id
integerUser attribute ID.
key
stringKey of the user attribute. Required.
name
array of stringsLocalized attribute names. Required.
type
stringKey type. Can be 'int', 'string', 'enum', or 'date'. Required.
list_of_values
arrayArray of possible values for enum type. Required.
skip_condition_on_nonexistent_key
booleanWhether to skip the condition if key doesn't exist.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
PUT https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/{attribute_id}

Headers:
  Authorization: Basic <your_authorization_basic_key>
Content-Type: application/json

Body:
  {
  "key": "13",
  "list_of_values": [
    {},
    {},
    {},
    {}
  ],
  "name": {
    "en": "User rating",
    "ru": "Рейтинг пользователя"
  },
  "skip_condition_on_nonexistent_key": true,
  "type": "int",
  "visible": true
}
curl --request PUT \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/{attribute_id} \
  --header 'authorization: Basic <your_authorization_basic_key>' \
  --header 'content-type: application/json' \
  --data '{"key":"13","name":{"en":"User rating","ru":"Рейтинг пользователя"},"type":"int","list_of_values":[{},{},{},{}],"visible":true,"skip_condition_on_nonexistent_key":true}'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append('{"key":"13","name":{"en":"User rating","ru":"Рейтинг пользователя"},"type":"int","list_of_values":[{},{},{},{}],"visible":true,"skip_condition_on_nonexistent_key":true}');

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/{attribute_id}');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>',
  'content-type' => 'application/json'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/{attribute_id}");
var request = new RestRequest(Method.PUT);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\"key\":\"13\",\"name\":{\"en\":\"User rating\",\"ru\":\"Рейтинг пользователя\"},\"type\":\"int\",\"list_of_values\":[{},{},{},{}],\"visible\":true,\"skip_condition_on_nonexistent_key\":true}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

payload = "{\"key\":\"13\",\"name\":{\"en\":\"User rating\",\"ru\":\"Рейтинг пользователя\"},\"type\":\"int\",\"list_of_values\":[{},{},{},{}],\"visible\":true,\"skip_condition_on_nonexistent_key\":true}"

headers = {
    'content-type': "application/json",
    'authorization': "Basic <your_authorization_basic_key>"
    }

conn.request("PUT", "/merchant/v1/projects/{project_id}/user_attributes/{attribute_id}", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/{attribute_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request["authorization"] = 'Basic <your_authorization_basic_key>'
request.body = "{\"key\":\"13\",\"name\":{\"en\":\"User rating\",\"ru\":\"Рейтинг пользователя\"},\"type\":\"int\",\"list_of_values\":[{},{},{},{}],\"visible\":true,\"skip_condition_on_nonexistent_key\":true}"

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"key\":\"13\",\"name\":{\"en\":\"User rating\",\"ru\":\"Рейтинг пользователя\"},\"type\":\"int\",\"list_of_values\":[{},{},{},{}],\"visible\":true,\"skip_condition_on_nonexistent_key\":true}");
Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/{attribute_id}")
  .put(body)
  .addHeader("content-type", "application/json")
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = JSON.stringify({
  "key": "13",
  "name": {
    "en": "User rating",
    "ru": "Рейтинг пользователя"
  },
  "type": "int",
  "list_of_values": [
    {},
    {},
    {},
    {}
  ],
  "visible": true,
  "skip_condition_on_nonexistent_key": true
});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("PUT", "https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/{attribute_id}");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response


Delete Attribute

Deletes a user attribute.

HTTP REQUEST

Copy
Full screen
Small screen
DELETE https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/{user_attribute_id}

ParameterTypeDescription
project_id
integerProject ID.
user_attribute_id
integerUser attribute ID.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
DELETE https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/{attribute_id}

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request DELETE \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/{attribute_id} \
  --header 'authorization: Basic <your_authorization_basic_key>'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/{attribute_id}');
$request->setRequestMethod('DELETE');
$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/{attribute_id}");
var request = new RestRequest(Method.DELETE);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

headers = { 'authorization': "Basic <your_authorization_basic_key>" }

conn.request("DELETE", "/merchant/v1/projects/{project_id}/user_attributes/{attribute_id}", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/{attribute_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Delete.new(url)
request["authorization"] = 'Basic <your_authorization_basic_key>'

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/{attribute_id}")
  .delete(null)
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("DELETE", "https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes/{attribute_id}");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response


Get Attributes List

Lists all user attributes.

HTTP REQUEST

Copy
Full screen
Small screen
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes

ParameterTypeDescription
project_id
integerProject ID.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes \
  --header 'authorization: Basic <your_authorization_basic_key>'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes');
$request->setRequestMethod('GET');
$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes");
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

headers = { 'authorization': "Basic <your_authorization_basic_key>" }

conn.request("GET", "/merchant/v1/projects/{project_id}/user_attributes", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["authorization"] = 'Basic <your_authorization_basic_key>'

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes")
  .get()
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://api.xsolla.com/merchant/v1/projects/{project_id}/user_attributes");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response
[
  {
    "id": 11425,
    "key": "12",
    "list_of_values": [],
    "localized_name": "Level",
    "name": {
      "en": "Level",
      "ru": "Уровень"
    },
    "skip_condition_on_nonexistent_key": true,
    "type": "int",
    "visible": false
  },
  {
    "id": 11426,
    "key": "11",
    "list_of_values": [],
    "localized_name": "Class",
    "name": {
      "en": "Class",
      "ru": "Класс"
    },
    "skip_condition_on_nonexistent_key": true,
    "type": "string",
    "visible": false
  }
]
[
  {
    "id": 11425,
    "key": "12",
    "list_of_values": [],
    "localized_name": "Level",
    "name": {
      "en": "Level",
      "ru": "Уровень"
    },
    "skip_condition_on_nonexistent_key": true,
    "type": "int",
    "visible": false
  },
  {
    "id": 11426,
    "key": "11",
    "list_of_values": [],
    "localized_name": "Class",
    "name": {
      "en": "Class",
      "ru": "Класс"
    },
    "skip_condition_on_nonexistent_key": true,
    "type": "string",
    "visible": false
  }
]
[
  {
    "id": 11425,
    "key": "12",
    "list_of_values": [],
    "localized_name": "Level",
    "name": {
      "en": "Level",
      "ru": "Уровень"
    },
    "skip_condition_on_nonexistent_key": true,
    "type": "int",
    "visible": false
  },
  {
    "id": 11426,
    "key": "11",
    "list_of_values": [],
    "localized_name": "Class",
    "name": {
      "en": "Class",
      "ru": "Класс"
    },
    "skip_condition_on_nonexistent_key": true,
    "type": "string",
    "visible": false
  }
]
[
  {
    "id": 11425,
    "key": "12",
    "list_of_values": [],
    "localized_name": "Level",
    "name": {
      "en": "Level",
      "ru": "Уровень"
    },
    "skip_condition_on_nonexistent_key": true,
    "type": "int",
    "visible": false
  },
  {
    "id": 11426,
    "key": "11",
    "list_of_values": [],
    "localized_name": "Class",
    "name": {
      "en": "Class",
      "ru": "Класс"
    },
    "skip_condition_on_nonexistent_key": true,
    "type": "string",
    "visible": false
  }
]
[
  {
    "id": 11425,
    "key": "12",
    "list_of_values": [],
    "localized_name": "Level",
    "name": {
      "en": "Level",
      "ru": "Уровень"
    },
    "skip_condition_on_nonexistent_key": true,
    "type": "int",
    "visible": false
  },
  {
    "id": 11426,
    "key": "11",
    "list_of_values": [],
    "localized_name": "Class",
    "name": {
      "en": "Class",
      "ru": "Класс"
    },
    "skip_condition_on_nonexistent_key": true,
    "type": "string",
    "visible": false
  }
]
[
  {
    "id": 11425,
    "key": "12",
    "list_of_values": [],
    "localized_name": "Level",
    "name": {
      "en": "Level",
      "ru": "Уровень"
    },
    "skip_condition_on_nonexistent_key": true,
    "type": "int",
    "visible": false
  },
  {
    "id": 11426,
    "key": "11",
    "list_of_values": [],
    "localized_name": "Class",
    "name": {
      "en": "Class",
      "ru": "Класс"
    },
    "skip_condition_on_nonexistent_key": true,
    "type": "string",
    "visible": false
  }
]
[
  {
    "id": 11425,
    "key": "12",
    "list_of_values": [],
    "localized_name": "Level",
    "name": {
      "en": "Level",
      "ru": "Уровень"
    },
    "skip_condition_on_nonexistent_key": true,
    "type": "int",
    "visible": false
  },
  {
    "id": 11426,
    "key": "11",
    "list_of_values": [],
    "localized_name": "Class",
    "name": {
      "en": "Class",
      "ru": "Класс"
    },
    "skip_condition_on_nonexistent_key": true,
    "type": "string",
    "visible": false
  }
]
[
  {
    "id": 11425,
    "key": "12",
    "list_of_values": [],
    "localized_name": "Level",
    "name": {
      "en": "Level",
      "ru": "Уровень"
    },
    "skip_condition_on_nonexistent_key": true,
    "type": "int",
    "visible": false
  },
  {
    "id": 11426,
    "key": "11",
    "list_of_values": [],
    "localized_name": "Class",
    "name": {
      "en": "Class",
      "ru": "Класс"
    },
    "skip_condition_on_nonexistent_key": true,
    "type": "string",
    "visible": false
  }
]

Game Keys

Create Entity

Creates a game delivery entity.

HTTP REQUEST

Copy
Full screen
Small screen
POST https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery

ParameterTypeDescription
project_id
integerProject ID.
sku
stringUnique ID. The SKU may only contain lowercase Latin alphanumeric characters, dashes, and underscores.
name
objectArray of localized names of the game delivery entity.
description
objectArray of localized descriptions of the game delivery entity.
system_requirements
stringSystem requirements for the game.
image_url
stringImage URL. Optional.
long_description
stringExtended description of the game delivery entity. Optional.
locales_list
stringComma-separated list of localizations. Optional.
publisher
stringGame publisher. Optional.
developer
stringGame developer. Optional.
stringLink to a video featuring the game. Optional.
genre
stringGame genre. Optional.
additional_info
stringAdditional info about the game. Optional.
stringLink to a discussion forum. Optional.
stringLink to a support page. Optional.
old_price
stringOld price of the game. Optional.
parent_id
integerID of a parent game. Optional.
default_currency
stringDefault purchase currency. Three-letter currency code per ISO 4217.
delivery
objectData on the delivery of preordered keys.
delivery.release_date_type
stringType of release date. Can be set to a specific UTC date or a quarter & year. In the latter case, 'delivery.release_date_type' is set to the last day of the specified quarter.
delivery.delivery_method
stringKey delivery method.
delivery.delivery_method.default
stringDefault key delivery method.
delivery.delivery_method.exception
stringExceptions to key delivery methods.
release_date
stringExpected date of release. Optional.
drm
arrayArray with DRM data.
drm.id
integerID of an available DRM.
drm.name
integerDRM name.
drm.prices
arrayArray of game prices for DRM. Optional.
drm.codes
arrayKey array for DRM. Optional.
drm.codes.total
stringTotal number of keys. Optional.
drm.codes.active
stringNumber of active keys. Optional.
drm.codes.used
stringNumber of used keys. Optional.
drm.platforms
arrayArray with data about DRM platforms.
drm.platforms.id
integerPlatform ID for that DRM.
drm.enabled
booleanWhether DRM is in use for this game.
obtain_code_from_db
booleanWhether to use game keys from Xsolla database. Optional.
obtain_code_from_api
booleanWhether to use game keys received via API. Optional.
files
arrayArray of installation files for downloading. Optional.
files.name
stringFile name. Optional.
files.url
stringURL for download. Optional.
tips_enabled
booleanWhether to enable tips for developers. Optional.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
POST https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery

Headers:
  Authorization: Basic <your_authorization_basic_key>
Content-Type: application/json

Body:
  {
  "default_currency": "USD",
  "delivery": {
    "delivery_method": {
      "default": [
        "key"
      ],
      "exceptions": {}
    },
    "is_partner_side_processing": true,
    "is_pre_order": true,
    "release_date_type": "quarter"
  },
  "description": {
    "en": "A good new game"
  },
  "drm": [
    {
      "enabled": true,
      "id": 1,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "name": "Steam",
      "platforms": [
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "enabled": true,
      "id": 2,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "name": "Playstation",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        }
      ]
    },
    {
      "enabled": true,
      "id": 3,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "name": "XBox",
      "platforms": [
        {
          "id": 7,
          "name": "XBox 360"
        }
      ]
    },
    {
      "enabled": false,
      "id": 4,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "name": "Uplay",
      "platforms": []
    },
    {
      "enabled": false,
      "id": 5,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "name": "Origin",
      "platforms": []
    },
    {
      "enabled": true,
      "id": 6,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "is_autoredeem_enabled": false,
      "name": "DRM Free",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        }
      ]
    },
    {
      "enabled": false,
      "id": 7,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "name": "GOG",
      "platforms": []
    }
  ],
  "files": [],
  "name": {
    "en": "New game"
  },
  "obtain_code_from_api": false,
  "obtain_code_from_db": true,
  "release_date": "2019-09-30T05:00:00+05:00",
  "sales_exist": false,
  "sku": "134",
  "system_requirements": "Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU"
}
curl --request POST \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery \
  --header 'authorization: Basic <your_authorization_basic_key>' \
  --header 'content-type: application/json' \
  --data '{"name":{"en":"New game"},"description":{"en":"A good new game"},"default_currency":"USD","system_requirements":"Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU","release_date":"2019-09-30T05:00:00+05:00","delivery":{"release_date_type":"quarter","is_pre_order":true,"is_partner_side_processing":true,"delivery_method":{"default":["key"],"exceptions":{}}},"files":[],"obtain_code_from_api":false,"obtain_code_from_db":true,"sales_exist":false,"drm":[{"id":1,"name":"Steam","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg","platforms":[{"id":6,"name":"Mac"}],"enabled":true},{"id":2,"name":"Playstation","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg","platforms":[{"id":3,"name":"Playstation 3"}],"enabled":true},{"id":3,"name":"XBox","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg","platforms":[{"id":7,"name":"XBox 360"}],"enabled":true},{"id":4,"name":"Uplay","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg","platforms":[],"enabled":false},{"id":5,"name":"Origin","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg","platforms":[],"enabled":false},{"id":6,"name":"DRM Free","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg","platforms":[{"id":1,"name":"Windows"}],"enabled":true,"is_autoredeem_enabled":false},{"id":7,"name":"GOG","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg","platforms":[],"enabled":false}],"sku":"134"}'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append('{"name":{"en":"New game"},"description":{"en":"A good new game"},"default_currency":"USD","system_requirements":"Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU","release_date":"2019-09-30T05:00:00+05:00","delivery":{"release_date_type":"quarter","is_pre_order":true,"is_partner_side_processing":true,"delivery_method":{"default":["key"],"exceptions":{}}},"files":[],"obtain_code_from_api":false,"obtain_code_from_db":true,"sales_exist":false,"drm":[{"id":1,"name":"Steam","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg","platforms":[{"id":6,"name":"Mac"}],"enabled":true},{"id":2,"name":"Playstation","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg","platforms":[{"id":3,"name":"Playstation 3"}],"enabled":true},{"id":3,"name":"XBox","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg","platforms":[{"id":7,"name":"XBox 360"}],"enabled":true},{"id":4,"name":"Uplay","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg","platforms":[],"enabled":false},{"id":5,"name":"Origin","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg","platforms":[],"enabled":false},{"id":6,"name":"DRM Free","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg","platforms":[{"id":1,"name":"Windows"}],"enabled":true,"is_autoredeem_enabled":false},{"id":7,"name":"GOG","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg","platforms":[],"enabled":false}],"sku":"134"}');

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>',
  'content-type' => 'application/json'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery");
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\"name\":{\"en\":\"New game\"},\"description\":{\"en\":\"A good new game\"},\"default_currency\":\"USD\",\"system_requirements\":\"Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU\",\"release_date\":\"2019-09-30T05:00:00+05:00\",\"delivery\":{\"release_date_type\":\"quarter\",\"is_pre_order\":true,\"is_partner_side_processing\":true,\"delivery_method\":{\"default\":[\"key\"],\"exceptions\":{}}},\"files\":[],\"obtain_code_from_api\":false,\"obtain_code_from_db\":true,\"sales_exist\":false,\"drm\":[{\"id\":1,\"name\":\"Steam\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg\",\"platforms\":[{\"id\":6,\"name\":\"Mac\"}],\"enabled\":true},{\"id\":2,\"name\":\"Playstation\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg\",\"platforms\":[{\"id\":3,\"name\":\"Playstation 3\"}],\"enabled\":true},{\"id\":3,\"name\":\"XBox\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg\",\"platforms\":[{\"id\":7,\"name\":\"XBox 360\"}],\"enabled\":true},{\"id\":4,\"name\":\"Uplay\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg\",\"platforms\":[],\"enabled\":false},{\"id\":5,\"name\":\"Origin\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg\",\"platforms\":[],\"enabled\":false},{\"id\":6,\"name\":\"DRM Free\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg\",\"platforms\":[{\"id\":1,\"name\":\"Windows\"}],\"enabled\":true,\"is_autoredeem_enabled\":false},{\"id\":7,\"name\":\"GOG\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg\",\"platforms\":[],\"enabled\":false}],\"sku\":\"134\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

payload = "{\"name\":{\"en\":\"New game\"},\"description\":{\"en\":\"A good new game\"},\"default_currency\":\"USD\",\"system_requirements\":\"Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU\",\"release_date\":\"2019-09-30T05:00:00+05:00\",\"delivery\":{\"release_date_type\":\"quarter\",\"is_pre_order\":true,\"is_partner_side_processing\":true,\"delivery_method\":{\"default\":[\"key\"],\"exceptions\":{}}},\"files\":[],\"obtain_code_from_api\":false,\"obtain_code_from_db\":true,\"sales_exist\":false,\"drm\":[{\"id\":1,\"name\":\"Steam\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg\",\"platforms\":[{\"id\":6,\"name\":\"Mac\"}],\"enabled\":true},{\"id\":2,\"name\":\"Playstation\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg\",\"platforms\":[{\"id\":3,\"name\":\"Playstation 3\"}],\"enabled\":true},{\"id\":3,\"name\":\"XBox\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg\",\"platforms\":[{\"id\":7,\"name\":\"XBox 360\"}],\"enabled\":true},{\"id\":4,\"name\":\"Uplay\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg\",\"platforms\":[],\"enabled\":false},{\"id\":5,\"name\":\"Origin\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg\",\"platforms\":[],\"enabled\":false},{\"id\":6,\"name\":\"DRM Free\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg\",\"platforms\":[{\"id\":1,\"name\":\"Windows\"}],\"enabled\":true,\"is_autoredeem_enabled\":false},{\"id\":7,\"name\":\"GOG\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg\",\"platforms\":[],\"enabled\":false}],\"sku\":\"134\"}"

headers = {
    'content-type': "application/json",
    'authorization': "Basic <your_authorization_basic_key>"
    }

conn.request("POST", "/merchant/v1/projects/{project_id}/game_delivery", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request["authorization"] = 'Basic <your_authorization_basic_key>'
request.body = "{\"name\":{\"en\":\"New game\"},\"description\":{\"en\":\"A good new game\"},\"default_currency\":\"USD\",\"system_requirements\":\"Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU\",\"release_date\":\"2019-09-30T05:00:00+05:00\",\"delivery\":{\"release_date_type\":\"quarter\",\"is_pre_order\":true,\"is_partner_side_processing\":true,\"delivery_method\":{\"default\":[\"key\"],\"exceptions\":{}}},\"files\":[],\"obtain_code_from_api\":false,\"obtain_code_from_db\":true,\"sales_exist\":false,\"drm\":[{\"id\":1,\"name\":\"Steam\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg\",\"platforms\":[{\"id\":6,\"name\":\"Mac\"}],\"enabled\":true},{\"id\":2,\"name\":\"Playstation\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg\",\"platforms\":[{\"id\":3,\"name\":\"Playstation 3\"}],\"enabled\":true},{\"id\":3,\"name\":\"XBox\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg\",\"platforms\":[{\"id\":7,\"name\":\"XBox 360\"}],\"enabled\":true},{\"id\":4,\"name\":\"Uplay\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg\",\"platforms\":[],\"enabled\":false},{\"id\":5,\"name\":\"Origin\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg\",\"platforms\":[],\"enabled\":false},{\"id\":6,\"name\":\"DRM Free\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg\",\"platforms\":[{\"id\":1,\"name\":\"Windows\"}],\"enabled\":true,\"is_autoredeem_enabled\":false},{\"id\":7,\"name\":\"GOG\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg\",\"platforms\":[],\"enabled\":false}],\"sku\":\"134\"}"

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"name\":{\"en\":\"New game\"},\"description\":{\"en\":\"A good new game\"},\"default_currency\":\"USD\",\"system_requirements\":\"Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU\",\"release_date\":\"2019-09-30T05:00:00+05:00\",\"delivery\":{\"release_date_type\":\"quarter\",\"is_pre_order\":true,\"is_partner_side_processing\":true,\"delivery_method\":{\"default\":[\"key\"],\"exceptions\":{}}},\"files\":[],\"obtain_code_from_api\":false,\"obtain_code_from_db\":true,\"sales_exist\":false,\"drm\":[{\"id\":1,\"name\":\"Steam\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg\",\"platforms\":[{\"id\":6,\"name\":\"Mac\"}],\"enabled\":true},{\"id\":2,\"name\":\"Playstation\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg\",\"platforms\":[{\"id\":3,\"name\":\"Playstation 3\"}],\"enabled\":true},{\"id\":3,\"name\":\"XBox\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg\",\"platforms\":[{\"id\":7,\"name\":\"XBox 360\"}],\"enabled\":true},{\"id\":4,\"name\":\"Uplay\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg\",\"platforms\":[],\"enabled\":false},{\"id\":5,\"name\":\"Origin\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg\",\"platforms\":[],\"enabled\":false},{\"id\":6,\"name\":\"DRM Free\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg\",\"platforms\":[{\"id\":1,\"name\":\"Windows\"}],\"enabled\":true,\"is_autoredeem_enabled\":false},{\"id\":7,\"name\":\"GOG\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg\",\"platforms\":[],\"enabled\":false}],\"sku\":\"134\"}");
Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery")
  .post(body)
  .addHeader("content-type", "application/json")
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = JSON.stringify({
  "name": {
    "en": "New game"
  },
  "description": {
    "en": "A good new game"
  },
  "default_currency": "USD",
  "system_requirements": "Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU",
  "release_date": "2019-09-30T05:00:00+05:00",
  "delivery": {
    "release_date_type": "quarter",
    "is_pre_order": true,
    "is_partner_side_processing": true,
    "delivery_method": {
      "default": [
        "key"
      ],
      "exceptions": {}
    }
  },
  "files": [],
  "obtain_code_from_api": false,
  "obtain_code_from_db": true,
  "sales_exist": false,
  "drm": [
    {
      "id": 1,
      "name": "Steam",
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "platforms": [
        {
          "id": 6,
          "name": "Mac"
        }
      ],
      "enabled": true
    },
    {
      "id": 2,
      "name": "Playstation",
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        }
      ],
      "enabled": true
    },
    {
      "id": 3,
      "name": "XBox",
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "platforms": [
        {
          "id": 7,
          "name": "XBox 360"
        }
      ],
      "enabled": true
    },
    {
      "id": 4,
      "name": "Uplay",
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "platforms": [],
      "enabled": false
    },
    {
      "id": 5,
      "name": "Origin",
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "platforms": [],
      "enabled": false
    },
    {
      "id": 6,
      "name": "DRM Free",
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        }
      ],
      "enabled": true,
      "is_autoredeem_enabled": false
    },
    {
      "id": 7,
      "name": "GOG",
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "platforms": [],
      "enabled": false
    }
  ],
  "sku": "134"
});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response
{
  "id": 4241
}
{
  "id": 4241
}
{
  "id": 4241
}
{
  "id": 4241
}
{
  "id": 4241
}
{
  "id": 4241
}
{
  "id": 4241
}
{
  "id": 4241
}

Get Entity

Gets a game delivery entity.

HTTP REQUEST

Copy
Full screen
Small screen
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery/{game_delivery_id}

ParameterTypeDescription
project_id
integerProject ID.
game_delivery_id
integerID of the game delivery entity.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery/{game_delivery_id}

Headers:
Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery/{game_delivery_id} \
  --header 'authorization: Basic <your_authorization_basic_key>'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery/{game_delivery_id}');
$request->setRequestMethod('GET');
$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery/{game_delivery_id}");
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

headers = { 'authorization': "Basic <your_authorization_basic_key>" }

conn.request("GET", "/merchant/v1/projects/{project_id}/game_delivery/{game_delivery_id}", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery/{game_delivery_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["authorization"] = 'Basic <your_authorization_basic_key>'

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery/{game_delivery_id}")
  .get()
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery/{game_delivery_id}");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response
{
  "additional_info": null,
  "default_currency": "USD",
  "delivery": {
    "delivery_method": {
      "default": [
        "key"
      ],
      "exceptions": {
        "drmfree": [
          "link"
        ]
      }
    },
    "is_partner_side_processing": true,
    "is_pre_order": true,
    "release_date_type": "quarter"
  },
  "description": {
    "en": "A brief summary of your game Updadated brief| English"
  },
  "developer": null,
  "drm": [
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 1,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "is_autoredeem_enabled": false,
      "name": "Steam",
      "platforms": [
        {
          "id": 6,
          "name": "Mac"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 2,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "is_autoredeem_enabled": false,
      "name": "Playstation",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 5,
        "total": 5,
        "used": 0
      },
      "enabled": true,
      "id": 3,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "XBox",
      "platforms": [
        {
          "id": 7,
          "name": "XBox 360"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 4,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "Uplay",
      "platforms": [],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 5,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "Origin",
      "platforms": [],
      "prices": []
    },
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 6,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "is_autoredeem_enabled": false,
      "name": "DRM Free",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 7,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "is_autoredeem_enabled": false,
      "name": "GOG",
      "platforms": [],
      "prices": []
    }
  ],
  "files": [
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 1,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Fwindows%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGd2luZG93cyUyRkluc3RhbGxIYW5nb3V0c0NoYXQuZG1nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNTQ5NDQwMzU4fX19XX0_&Signature=bTVBhDCIKPpnkQYj0LlaTPeGvbhiFtRhrj~Opzk-a2F0w1OFhtCUZrNunjFZkwF8ehQIQlxlKNjvne1Djurvyz4hHHT8x2lU0Ns~jBu2Hf7FuCyun~pxmrI2qU1ReJXCP971rMjJqy9VcQnaD4i0IQ~CKPkoWE-QqPGZhH87hqRGw9HQCsriXilpVBLWf~9EFP97JghvobvMDXF3F-CHTmDnaSk-nGt~Lqhz1lXPhWCJupuYuYFPALpHPb7wnOl4GQfzq3sIEgUmMe2MnpjhUT1k~mDMwXSHhcUPL~QooRsxrP5XfzLPX8weiyG6l5bUpvEd~mVAe8WXeezy~s76Qg__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    },
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 2,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Flinux%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGbGludXglMkZJbnN0YWxsSGFuZ291dHNDaGF0LmRtZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTU0OTQ0MDM1OH19fV19&Signature=RhIxAxFSEb0vMYD~CnINwGInCRArTskQuA9OUOn3vMRY0VRCCXuzQIiTKxYYa2rX3S0NN0STeFCAYv-hqyc4tEXZj0FXpYiOIxgx1wZ1tv9HxloOQfGwejDMCg48XQeupbZM9biC-KgDNCIjKpIvKbc0NTYGpnBE4YO-f7-UbIiNBynjMQdVSTtLKrUxYdUW0lazXbb-BJSK5Sq~IaZubf7BMsoTOn67eeFLZX3EH7ntXs0NyPw~-bsx-YI8tgHQ5SXXiZtQ~2VKB4VjgsaZn7Tzx-tOTlWnvW3WYbFqjixhdN-jDwo-XwPMghR354440hau3Ncf3GCv4Vu3it880g__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    },
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 6,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Fmac%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGbWFjJTJGSW5zdGFsbEhhbmdvdXRzQ2hhdC5kbWciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1NDk0NDAzNTh9fX1dfQ__&Signature=bcLMaQ3jxffu82tUsw96B7SqS5p2Zva4vp~le8OGpgKdEdXA0eRrud8moelyBZ2RRhfF9hwPBNxenwOjPQWrsCHQVS9faRZgMQPBzyCeZj1SsgnnOpdK~auIv4ltTt5twI6flkcUJqpEbCn8v5rViJg2pYctwxUPMJHNy~yV3K9-y4rnPNdl3vHzgZLT-Q9qjvzsR5G4oiW5ubGLkL~3nlBesLNSNyqY~fHKmDzwhvCLgQhD7W3pZ3QzO0D66UNUmgaKu8Ly-kwW3hKop4nveKEIvLUnN91JOf~ja30HMPfVCrVt-cP-E1W78Q~rMxSSnJ8xMI8Z7a9VqyvbCn3ntQ__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    }
  ],
  "forum_link": null,
  "genre": null,
  "id": 4223,
  "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
  "locales_list": null,
  "long_description": null,
  "name": {
    "en": "test Entity"
  },
  "obtain_code_from_api": false,
  "obtain_code_from_db": true,
  "old_price": null,
  "parent_id": null,
  "publisher": null,
  "release_date": "2019-09-30T05:00:00+05:00",
  "sales_exist": false,
  "sku": "1234",
  "support_link": null,
  "system_requirements": "Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU",
  "tips_enabled": false,
  "video_link": null,
  "widget_settings": {
    "description_enabled": false,
    "image_enabled": false
  }
}
{
  "additional_info": null,
  "default_currency": "USD",
  "delivery": {
    "delivery_method": {
      "default": [
        "key"
      ],
      "exceptions": {
        "drmfree": [
          "link"
        ]
      }
    },
    "is_partner_side_processing": true,
    "is_pre_order": true,
    "release_date_type": "quarter"
  },
  "description": {
    "en": "A brief summary of your game Updadated brief| English"
  },
  "developer": null,
  "drm": [
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 1,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "is_autoredeem_enabled": false,
      "name": "Steam",
      "platforms": [
        {
          "id": 6,
          "name": "Mac"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 2,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "is_autoredeem_enabled": false,
      "name": "Playstation",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 5,
        "total": 5,
        "used": 0
      },
      "enabled": true,
      "id": 3,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "XBox",
      "platforms": [
        {
          "id": 7,
          "name": "XBox 360"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 4,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "Uplay",
      "platforms": [],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 5,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "Origin",
      "platforms": [],
      "prices": []
    },
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 6,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "is_autoredeem_enabled": false,
      "name": "DRM Free",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 7,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "is_autoredeem_enabled": false,
      "name": "GOG",
      "platforms": [],
      "prices": []
    }
  ],
  "files": [
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 1,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Fwindows%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGd2luZG93cyUyRkluc3RhbGxIYW5nb3V0c0NoYXQuZG1nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNTQ5NDQwMzU4fX19XX0_&Signature=bTVBhDCIKPpnkQYj0LlaTPeGvbhiFtRhrj~Opzk-a2F0w1OFhtCUZrNunjFZkwF8ehQIQlxlKNjvne1Djurvyz4hHHT8x2lU0Ns~jBu2Hf7FuCyun~pxmrI2qU1ReJXCP971rMjJqy9VcQnaD4i0IQ~CKPkoWE-QqPGZhH87hqRGw9HQCsriXilpVBLWf~9EFP97JghvobvMDXF3F-CHTmDnaSk-nGt~Lqhz1lXPhWCJupuYuYFPALpHPb7wnOl4GQfzq3sIEgUmMe2MnpjhUT1k~mDMwXSHhcUPL~QooRsxrP5XfzLPX8weiyG6l5bUpvEd~mVAe8WXeezy~s76Qg__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    },
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 2,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Flinux%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGbGludXglMkZJbnN0YWxsSGFuZ291dHNDaGF0LmRtZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTU0OTQ0MDM1OH19fV19&Signature=RhIxAxFSEb0vMYD~CnINwGInCRArTskQuA9OUOn3vMRY0VRCCXuzQIiTKxYYa2rX3S0NN0STeFCAYv-hqyc4tEXZj0FXpYiOIxgx1wZ1tv9HxloOQfGwejDMCg48XQeupbZM9biC-KgDNCIjKpIvKbc0NTYGpnBE4YO-f7-UbIiNBynjMQdVSTtLKrUxYdUW0lazXbb-BJSK5Sq~IaZubf7BMsoTOn67eeFLZX3EH7ntXs0NyPw~-bsx-YI8tgHQ5SXXiZtQ~2VKB4VjgsaZn7Tzx-tOTlWnvW3WYbFqjixhdN-jDwo-XwPMghR354440hau3Ncf3GCv4Vu3it880g__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    },
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 6,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Fmac%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGbWFjJTJGSW5zdGFsbEhhbmdvdXRzQ2hhdC5kbWciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1NDk0NDAzNTh9fX1dfQ__&Signature=bcLMaQ3jxffu82tUsw96B7SqS5p2Zva4vp~le8OGpgKdEdXA0eRrud8moelyBZ2RRhfF9hwPBNxenwOjPQWrsCHQVS9faRZgMQPBzyCeZj1SsgnnOpdK~auIv4ltTt5twI6flkcUJqpEbCn8v5rViJg2pYctwxUPMJHNy~yV3K9-y4rnPNdl3vHzgZLT-Q9qjvzsR5G4oiW5ubGLkL~3nlBesLNSNyqY~fHKmDzwhvCLgQhD7W3pZ3QzO0D66UNUmgaKu8Ly-kwW3hKop4nveKEIvLUnN91JOf~ja30HMPfVCrVt-cP-E1W78Q~rMxSSnJ8xMI8Z7a9VqyvbCn3ntQ__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    }
  ],
  "forum_link": null,
  "genre": null,
  "id": 4223,
  "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
  "locales_list": null,
  "long_description": null,
  "name": {
    "en": "test Entity"
  },
  "obtain_code_from_api": false,
  "obtain_code_from_db": true,
  "old_price": null,
  "parent_id": null,
  "publisher": null,
  "release_date": "2019-09-30T05:00:00+05:00",
  "sales_exist": false,
  "sku": "1234",
  "support_link": null,
  "system_requirements": "Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU",
  "tips_enabled": false,
  "video_link": null,
  "widget_settings": {
    "description_enabled": false,
    "image_enabled": false
  }
}
{
  "additional_info": null,
  "default_currency": "USD",
  "delivery": {
    "delivery_method": {
      "default": [
        "key"
      ],
      "exceptions": {
        "drmfree": [
          "link"
        ]
      }
    },
    "is_partner_side_processing": true,
    "is_pre_order": true,
    "release_date_type": "quarter"
  },
  "description": {
    "en": "A brief summary of your game Updadated brief| English"
  },
  "developer": null,
  "drm": [
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 1,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "is_autoredeem_enabled": false,
      "name": "Steam",
      "platforms": [
        {
          "id": 6,
          "name": "Mac"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 2,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "is_autoredeem_enabled": false,
      "name": "Playstation",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 5,
        "total": 5,
        "used": 0
      },
      "enabled": true,
      "id": 3,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "XBox",
      "platforms": [
        {
          "id": 7,
          "name": "XBox 360"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 4,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "Uplay",
      "platforms": [],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 5,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "Origin",
      "platforms": [],
      "prices": []
    },
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 6,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "is_autoredeem_enabled": false,
      "name": "DRM Free",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 7,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "is_autoredeem_enabled": false,
      "name": "GOG",
      "platforms": [],
      "prices": []
    }
  ],
  "files": [
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 1,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Fwindows%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGd2luZG93cyUyRkluc3RhbGxIYW5nb3V0c0NoYXQuZG1nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNTQ5NDQwMzU4fX19XX0_&Signature=bTVBhDCIKPpnkQYj0LlaTPeGvbhiFtRhrj~Opzk-a2F0w1OFhtCUZrNunjFZkwF8ehQIQlxlKNjvne1Djurvyz4hHHT8x2lU0Ns~jBu2Hf7FuCyun~pxmrI2qU1ReJXCP971rMjJqy9VcQnaD4i0IQ~CKPkoWE-QqPGZhH87hqRGw9HQCsriXilpVBLWf~9EFP97JghvobvMDXF3F-CHTmDnaSk-nGt~Lqhz1lXPhWCJupuYuYFPALpHPb7wnOl4GQfzq3sIEgUmMe2MnpjhUT1k~mDMwXSHhcUPL~QooRsxrP5XfzLPX8weiyG6l5bUpvEd~mVAe8WXeezy~s76Qg__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    },
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 2,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Flinux%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGbGludXglMkZJbnN0YWxsSGFuZ291dHNDaGF0LmRtZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTU0OTQ0MDM1OH19fV19&Signature=RhIxAxFSEb0vMYD~CnINwGInCRArTskQuA9OUOn3vMRY0VRCCXuzQIiTKxYYa2rX3S0NN0STeFCAYv-hqyc4tEXZj0FXpYiOIxgx1wZ1tv9HxloOQfGwejDMCg48XQeupbZM9biC-KgDNCIjKpIvKbc0NTYGpnBE4YO-f7-UbIiNBynjMQdVSTtLKrUxYdUW0lazXbb-BJSK5Sq~IaZubf7BMsoTOn67eeFLZX3EH7ntXs0NyPw~-bsx-YI8tgHQ5SXXiZtQ~2VKB4VjgsaZn7Tzx-tOTlWnvW3WYbFqjixhdN-jDwo-XwPMghR354440hau3Ncf3GCv4Vu3it880g__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    },
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 6,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Fmac%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGbWFjJTJGSW5zdGFsbEhhbmdvdXRzQ2hhdC5kbWciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1NDk0NDAzNTh9fX1dfQ__&Signature=bcLMaQ3jxffu82tUsw96B7SqS5p2Zva4vp~le8OGpgKdEdXA0eRrud8moelyBZ2RRhfF9hwPBNxenwOjPQWrsCHQVS9faRZgMQPBzyCeZj1SsgnnOpdK~auIv4ltTt5twI6flkcUJqpEbCn8v5rViJg2pYctwxUPMJHNy~yV3K9-y4rnPNdl3vHzgZLT-Q9qjvzsR5G4oiW5ubGLkL~3nlBesLNSNyqY~fHKmDzwhvCLgQhD7W3pZ3QzO0D66UNUmgaKu8Ly-kwW3hKop4nveKEIvLUnN91JOf~ja30HMPfVCrVt-cP-E1W78Q~rMxSSnJ8xMI8Z7a9VqyvbCn3ntQ__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    }
  ],
  "forum_link": null,
  "genre": null,
  "id": 4223,
  "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
  "locales_list": null,
  "long_description": null,
  "name": {
    "en": "test Entity"
  },
  "obtain_code_from_api": false,
  "obtain_code_from_db": true,
  "old_price": null,
  "parent_id": null,
  "publisher": null,
  "release_date": "2019-09-30T05:00:00+05:00",
  "sales_exist": false,
  "sku": "1234",
  "support_link": null,
  "system_requirements": "Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU",
  "tips_enabled": false,
  "video_link": null,
  "widget_settings": {
    "description_enabled": false,
    "image_enabled": false
  }
}
{
  "additional_info": null,
  "default_currency": "USD",
  "delivery": {
    "delivery_method": {
      "default": [
        "key"
      ],
      "exceptions": {
        "drmfree": [
          "link"
        ]
      }
    },
    "is_partner_side_processing": true,
    "is_pre_order": true,
    "release_date_type": "quarter"
  },
  "description": {
    "en": "A brief summary of your game Updadated brief| English"
  },
  "developer": null,
  "drm": [
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 1,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "is_autoredeem_enabled": false,
      "name": "Steam",
      "platforms": [
        {
          "id": 6,
          "name": "Mac"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 2,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "is_autoredeem_enabled": false,
      "name": "Playstation",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 5,
        "total": 5,
        "used": 0
      },
      "enabled": true,
      "id": 3,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "XBox",
      "platforms": [
        {
          "id": 7,
          "name": "XBox 360"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 4,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "Uplay",
      "platforms": [],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 5,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "Origin",
      "platforms": [],
      "prices": []
    },
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 6,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "is_autoredeem_enabled": false,
      "name": "DRM Free",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 7,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "is_autoredeem_enabled": false,
      "name": "GOG",
      "platforms": [],
      "prices": []
    }
  ],
  "files": [
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 1,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Fwindows%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGd2luZG93cyUyRkluc3RhbGxIYW5nb3V0c0NoYXQuZG1nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNTQ5NDQwMzU4fX19XX0_&Signature=bTVBhDCIKPpnkQYj0LlaTPeGvbhiFtRhrj~Opzk-a2F0w1OFhtCUZrNunjFZkwF8ehQIQlxlKNjvne1Djurvyz4hHHT8x2lU0Ns~jBu2Hf7FuCyun~pxmrI2qU1ReJXCP971rMjJqy9VcQnaD4i0IQ~CKPkoWE-QqPGZhH87hqRGw9HQCsriXilpVBLWf~9EFP97JghvobvMDXF3F-CHTmDnaSk-nGt~Lqhz1lXPhWCJupuYuYFPALpHPb7wnOl4GQfzq3sIEgUmMe2MnpjhUT1k~mDMwXSHhcUPL~QooRsxrP5XfzLPX8weiyG6l5bUpvEd~mVAe8WXeezy~s76Qg__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    },
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 2,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Flinux%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGbGludXglMkZJbnN0YWxsSGFuZ291dHNDaGF0LmRtZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTU0OTQ0MDM1OH19fV19&Signature=RhIxAxFSEb0vMYD~CnINwGInCRArTskQuA9OUOn3vMRY0VRCCXuzQIiTKxYYa2rX3S0NN0STeFCAYv-hqyc4tEXZj0FXpYiOIxgx1wZ1tv9HxloOQfGwejDMCg48XQeupbZM9biC-KgDNCIjKpIvKbc0NTYGpnBE4YO-f7-UbIiNBynjMQdVSTtLKrUxYdUW0lazXbb-BJSK5Sq~IaZubf7BMsoTOn67eeFLZX3EH7ntXs0NyPw~-bsx-YI8tgHQ5SXXiZtQ~2VKB4VjgsaZn7Tzx-tOTlWnvW3WYbFqjixhdN-jDwo-XwPMghR354440hau3Ncf3GCv4Vu3it880g__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    },
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 6,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Fmac%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGbWFjJTJGSW5zdGFsbEhhbmdvdXRzQ2hhdC5kbWciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1NDk0NDAzNTh9fX1dfQ__&Signature=bcLMaQ3jxffu82tUsw96B7SqS5p2Zva4vp~le8OGpgKdEdXA0eRrud8moelyBZ2RRhfF9hwPBNxenwOjPQWrsCHQVS9faRZgMQPBzyCeZj1SsgnnOpdK~auIv4ltTt5twI6flkcUJqpEbCn8v5rViJg2pYctwxUPMJHNy~yV3K9-y4rnPNdl3vHzgZLT-Q9qjvzsR5G4oiW5ubGLkL~3nlBesLNSNyqY~fHKmDzwhvCLgQhD7W3pZ3QzO0D66UNUmgaKu8Ly-kwW3hKop4nveKEIvLUnN91JOf~ja30HMPfVCrVt-cP-E1W78Q~rMxSSnJ8xMI8Z7a9VqyvbCn3ntQ__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    }
  ],
  "forum_link": null,
  "genre": null,
  "id": 4223,
  "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
  "locales_list": null,
  "long_description": null,
  "name": {
    "en": "test Entity"
  },
  "obtain_code_from_api": false,
  "obtain_code_from_db": true,
  "old_price": null,
  "parent_id": null,
  "publisher": null,
  "release_date": "2019-09-30T05:00:00+05:00",
  "sales_exist": false,
  "sku": "1234",
  "support_link": null,
  "system_requirements": "Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU",
  "tips_enabled": false,
  "video_link": null,
  "widget_settings": {
    "description_enabled": false,
    "image_enabled": false
  }
}
{
  "additional_info": null,
  "default_currency": "USD",
  "delivery": {
    "delivery_method": {
      "default": [
        "key"
      ],
      "exceptions": {
        "drmfree": [
          "link"
        ]
      }
    },
    "is_partner_side_processing": true,
    "is_pre_order": true,
    "release_date_type": "quarter"
  },
  "description": {
    "en": "A brief summary of your game Updadated brief| English"
  },
  "developer": null,
  "drm": [
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 1,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "is_autoredeem_enabled": false,
      "name": "Steam",
      "platforms": [
        {
          "id": 6,
          "name": "Mac"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 2,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "is_autoredeem_enabled": false,
      "name": "Playstation",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 5,
        "total": 5,
        "used": 0
      },
      "enabled": true,
      "id": 3,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "XBox",
      "platforms": [
        {
          "id": 7,
          "name": "XBox 360"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 4,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "Uplay",
      "platforms": [],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 5,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "Origin",
      "platforms": [],
      "prices": []
    },
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 6,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "is_autoredeem_enabled": false,
      "name": "DRM Free",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 7,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "is_autoredeem_enabled": false,
      "name": "GOG",
      "platforms": [],
      "prices": []
    }
  ],
  "files": [
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 1,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Fwindows%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGd2luZG93cyUyRkluc3RhbGxIYW5nb3V0c0NoYXQuZG1nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNTQ5NDQwMzU4fX19XX0_&Signature=bTVBhDCIKPpnkQYj0LlaTPeGvbhiFtRhrj~Opzk-a2F0w1OFhtCUZrNunjFZkwF8ehQIQlxlKNjvne1Djurvyz4hHHT8x2lU0Ns~jBu2Hf7FuCyun~pxmrI2qU1ReJXCP971rMjJqy9VcQnaD4i0IQ~CKPkoWE-QqPGZhH87hqRGw9HQCsriXilpVBLWf~9EFP97JghvobvMDXF3F-CHTmDnaSk-nGt~Lqhz1lXPhWCJupuYuYFPALpHPb7wnOl4GQfzq3sIEgUmMe2MnpjhUT1k~mDMwXSHhcUPL~QooRsxrP5XfzLPX8weiyG6l5bUpvEd~mVAe8WXeezy~s76Qg__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    },
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 2,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Flinux%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGbGludXglMkZJbnN0YWxsSGFuZ291dHNDaGF0LmRtZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTU0OTQ0MDM1OH19fV19&Signature=RhIxAxFSEb0vMYD~CnINwGInCRArTskQuA9OUOn3vMRY0VRCCXuzQIiTKxYYa2rX3S0NN0STeFCAYv-hqyc4tEXZj0FXpYiOIxgx1wZ1tv9HxloOQfGwejDMCg48XQeupbZM9biC-KgDNCIjKpIvKbc0NTYGpnBE4YO-f7-UbIiNBynjMQdVSTtLKrUxYdUW0lazXbb-BJSK5Sq~IaZubf7BMsoTOn67eeFLZX3EH7ntXs0NyPw~-bsx-YI8tgHQ5SXXiZtQ~2VKB4VjgsaZn7Tzx-tOTlWnvW3WYbFqjixhdN-jDwo-XwPMghR354440hau3Ncf3GCv4Vu3it880g__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    },
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 6,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Fmac%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGbWFjJTJGSW5zdGFsbEhhbmdvdXRzQ2hhdC5kbWciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1NDk0NDAzNTh9fX1dfQ__&Signature=bcLMaQ3jxffu82tUsw96B7SqS5p2Zva4vp~le8OGpgKdEdXA0eRrud8moelyBZ2RRhfF9hwPBNxenwOjPQWrsCHQVS9faRZgMQPBzyCeZj1SsgnnOpdK~auIv4ltTt5twI6flkcUJqpEbCn8v5rViJg2pYctwxUPMJHNy~yV3K9-y4rnPNdl3vHzgZLT-Q9qjvzsR5G4oiW5ubGLkL~3nlBesLNSNyqY~fHKmDzwhvCLgQhD7W3pZ3QzO0D66UNUmgaKu8Ly-kwW3hKop4nveKEIvLUnN91JOf~ja30HMPfVCrVt-cP-E1W78Q~rMxSSnJ8xMI8Z7a9VqyvbCn3ntQ__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    }
  ],
  "forum_link": null,
  "genre": null,
  "id": 4223,
  "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
  "locales_list": null,
  "long_description": null,
  "name": {
    "en": "test Entity"
  },
  "obtain_code_from_api": false,
  "obtain_code_from_db": true,
  "old_price": null,
  "parent_id": null,
  "publisher": null,
  "release_date": "2019-09-30T05:00:00+05:00",
  "sales_exist": false,
  "sku": "1234",
  "support_link": null,
  "system_requirements": "Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU",
  "tips_enabled": false,
  "video_link": null,
  "widget_settings": {
    "description_enabled": false,
    "image_enabled": false
  }
}
{
  "additional_info": null,
  "default_currency": "USD",
  "delivery": {
    "delivery_method": {
      "default": [
        "key"
      ],
      "exceptions": {
        "drmfree": [
          "link"
        ]
      }
    },
    "is_partner_side_processing": true,
    "is_pre_order": true,
    "release_date_type": "quarter"
  },
  "description": {
    "en": "A brief summary of your game Updadated brief| English"
  },
  "developer": null,
  "drm": [
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 1,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "is_autoredeem_enabled": false,
      "name": "Steam",
      "platforms": [
        {
          "id": 6,
          "name": "Mac"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 2,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "is_autoredeem_enabled": false,
      "name": "Playstation",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 5,
        "total": 5,
        "used": 0
      },
      "enabled": true,
      "id": 3,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "XBox",
      "platforms": [
        {
          "id": 7,
          "name": "XBox 360"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 4,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "Uplay",
      "platforms": [],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 5,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "Origin",
      "platforms": [],
      "prices": []
    },
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 6,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "is_autoredeem_enabled": false,
      "name": "DRM Free",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 7,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "is_autoredeem_enabled": false,
      "name": "GOG",
      "platforms": [],
      "prices": []
    }
  ],
  "files": [
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 1,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Fwindows%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGd2luZG93cyUyRkluc3RhbGxIYW5nb3V0c0NoYXQuZG1nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNTQ5NDQwMzU4fX19XX0_&Signature=bTVBhDCIKPpnkQYj0LlaTPeGvbhiFtRhrj~Opzk-a2F0w1OFhtCUZrNunjFZkwF8ehQIQlxlKNjvne1Djurvyz4hHHT8x2lU0Ns~jBu2Hf7FuCyun~pxmrI2qU1ReJXCP971rMjJqy9VcQnaD4i0IQ~CKPkoWE-QqPGZhH87hqRGw9HQCsriXilpVBLWf~9EFP97JghvobvMDXF3F-CHTmDnaSk-nGt~Lqhz1lXPhWCJupuYuYFPALpHPb7wnOl4GQfzq3sIEgUmMe2MnpjhUT1k~mDMwXSHhcUPL~QooRsxrP5XfzLPX8weiyG6l5bUpvEd~mVAe8WXeezy~s76Qg__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    },
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 2,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Flinux%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGbGludXglMkZJbnN0YWxsSGFuZ291dHNDaGF0LmRtZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTU0OTQ0MDM1OH19fV19&Signature=RhIxAxFSEb0vMYD~CnINwGInCRArTskQuA9OUOn3vMRY0VRCCXuzQIiTKxYYa2rX3S0NN0STeFCAYv-hqyc4tEXZj0FXpYiOIxgx1wZ1tv9HxloOQfGwejDMCg48XQeupbZM9biC-KgDNCIjKpIvKbc0NTYGpnBE4YO-f7-UbIiNBynjMQdVSTtLKrUxYdUW0lazXbb-BJSK5Sq~IaZubf7BMsoTOn67eeFLZX3EH7ntXs0NyPw~-bsx-YI8tgHQ5SXXiZtQ~2VKB4VjgsaZn7Tzx-tOTlWnvW3WYbFqjixhdN-jDwo-XwPMghR354440hau3Ncf3GCv4Vu3it880g__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    },
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 6,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Fmac%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGbWFjJTJGSW5zdGFsbEhhbmdvdXRzQ2hhdC5kbWciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1NDk0NDAzNTh9fX1dfQ__&Signature=bcLMaQ3jxffu82tUsw96B7SqS5p2Zva4vp~le8OGpgKdEdXA0eRrud8moelyBZ2RRhfF9hwPBNxenwOjPQWrsCHQVS9faRZgMQPBzyCeZj1SsgnnOpdK~auIv4ltTt5twI6flkcUJqpEbCn8v5rViJg2pYctwxUPMJHNy~yV3K9-y4rnPNdl3vHzgZLT-Q9qjvzsR5G4oiW5ubGLkL~3nlBesLNSNyqY~fHKmDzwhvCLgQhD7W3pZ3QzO0D66UNUmgaKu8Ly-kwW3hKop4nveKEIvLUnN91JOf~ja30HMPfVCrVt-cP-E1W78Q~rMxSSnJ8xMI8Z7a9VqyvbCn3ntQ__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    }
  ],
  "forum_link": null,
  "genre": null,
  "id": 4223,
  "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
  "locales_list": null,
  "long_description": null,
  "name": {
    "en": "test Entity"
  },
  "obtain_code_from_api": false,
  "obtain_code_from_db": true,
  "old_price": null,
  "parent_id": null,
  "publisher": null,
  "release_date": "2019-09-30T05:00:00+05:00",
  "sales_exist": false,
  "sku": "1234",
  "support_link": null,
  "system_requirements": "Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU",
  "tips_enabled": false,
  "video_link": null,
  "widget_settings": {
    "description_enabled": false,
    "image_enabled": false
  }
}
{
  "additional_info": null,
  "default_currency": "USD",
  "delivery": {
    "delivery_method": {
      "default": [
        "key"
      ],
      "exceptions": {
        "drmfree": [
          "link"
        ]
      }
    },
    "is_partner_side_processing": true,
    "is_pre_order": true,
    "release_date_type": "quarter"
  },
  "description": {
    "en": "A brief summary of your game Updadated brief| English"
  },
  "developer": null,
  "drm": [
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 1,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "is_autoredeem_enabled": false,
      "name": "Steam",
      "platforms": [
        {
          "id": 6,
          "name": "Mac"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 2,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "is_autoredeem_enabled": false,
      "name": "Playstation",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 5,
        "total": 5,
        "used": 0
      },
      "enabled": true,
      "id": 3,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "XBox",
      "platforms": [
        {
          "id": 7,
          "name": "XBox 360"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 4,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "Uplay",
      "platforms": [],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 5,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "Origin",
      "platforms": [],
      "prices": []
    },
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 6,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "is_autoredeem_enabled": false,
      "name": "DRM Free",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 7,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "is_autoredeem_enabled": false,
      "name": "GOG",
      "platforms": [],
      "prices": []
    }
  ],
  "files": [
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 1,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Fwindows%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGd2luZG93cyUyRkluc3RhbGxIYW5nb3V0c0NoYXQuZG1nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNTQ5NDQwMzU4fX19XX0_&Signature=bTVBhDCIKPpnkQYj0LlaTPeGvbhiFtRhrj~Opzk-a2F0w1OFhtCUZrNunjFZkwF8ehQIQlxlKNjvne1Djurvyz4hHHT8x2lU0Ns~jBu2Hf7FuCyun~pxmrI2qU1ReJXCP971rMjJqy9VcQnaD4i0IQ~CKPkoWE-QqPGZhH87hqRGw9HQCsriXilpVBLWf~9EFP97JghvobvMDXF3F-CHTmDnaSk-nGt~Lqhz1lXPhWCJupuYuYFPALpHPb7wnOl4GQfzq3sIEgUmMe2MnpjhUT1k~mDMwXSHhcUPL~QooRsxrP5XfzLPX8weiyG6l5bUpvEd~mVAe8WXeezy~s76Qg__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    },
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 2,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Flinux%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGbGludXglMkZJbnN0YWxsSGFuZ291dHNDaGF0LmRtZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTU0OTQ0MDM1OH19fV19&Signature=RhIxAxFSEb0vMYD~CnINwGInCRArTskQuA9OUOn3vMRY0VRCCXuzQIiTKxYYa2rX3S0NN0STeFCAYv-hqyc4tEXZj0FXpYiOIxgx1wZ1tv9HxloOQfGwejDMCg48XQeupbZM9biC-KgDNCIjKpIvKbc0NTYGpnBE4YO-f7-UbIiNBynjMQdVSTtLKrUxYdUW0lazXbb-BJSK5Sq~IaZubf7BMsoTOn67eeFLZX3EH7ntXs0NyPw~-bsx-YI8tgHQ5SXXiZtQ~2VKB4VjgsaZn7Tzx-tOTlWnvW3WYbFqjixhdN-jDwo-XwPMghR354440hau3Ncf3GCv4Vu3it880g__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    },
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 6,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Fmac%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGbWFjJTJGSW5zdGFsbEhhbmdvdXRzQ2hhdC5kbWciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1NDk0NDAzNTh9fX1dfQ__&Signature=bcLMaQ3jxffu82tUsw96B7SqS5p2Zva4vp~le8OGpgKdEdXA0eRrud8moelyBZ2RRhfF9hwPBNxenwOjPQWrsCHQVS9faRZgMQPBzyCeZj1SsgnnOpdK~auIv4ltTt5twI6flkcUJqpEbCn8v5rViJg2pYctwxUPMJHNy~yV3K9-y4rnPNdl3vHzgZLT-Q9qjvzsR5G4oiW5ubGLkL~3nlBesLNSNyqY~fHKmDzwhvCLgQhD7W3pZ3QzO0D66UNUmgaKu8Ly-kwW3hKop4nveKEIvLUnN91JOf~ja30HMPfVCrVt-cP-E1W78Q~rMxSSnJ8xMI8Z7a9VqyvbCn3ntQ__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    }
  ],
  "forum_link": null,
  "genre": null,
  "id": 4223,
  "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
  "locales_list": null,
  "long_description": null,
  "name": {
    "en": "test Entity"
  },
  "obtain_code_from_api": false,
  "obtain_code_from_db": true,
  "old_price": null,
  "parent_id": null,
  "publisher": null,
  "release_date": "2019-09-30T05:00:00+05:00",
  "sales_exist": false,
  "sku": "1234",
  "support_link": null,
  "system_requirements": "Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU",
  "tips_enabled": false,
  "video_link": null,
  "widget_settings": {
    "description_enabled": false,
    "image_enabled": false
  }
}
{
  "additional_info": null,
  "default_currency": "USD",
  "delivery": {
    "delivery_method": {
      "default": [
        "key"
      ],
      "exceptions": {
        "drmfree": [
          "link"
        ]
      }
    },
    "is_partner_side_processing": true,
    "is_pre_order": true,
    "release_date_type": "quarter"
  },
  "description": {
    "en": "A brief summary of your game Updadated brief| English"
  },
  "developer": null,
  "drm": [
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 1,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "is_autoredeem_enabled": false,
      "name": "Steam",
      "platforms": [
        {
          "id": 6,
          "name": "Mac"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 2,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "is_autoredeem_enabled": false,
      "name": "Playstation",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 5,
        "total": 5,
        "used": 0
      },
      "enabled": true,
      "id": 3,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "XBox",
      "platforms": [
        {
          "id": 7,
          "name": "XBox 360"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 4,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "Uplay",
      "platforms": [],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 5,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "is_autoredeem_enabled": false,
      "name": "Origin",
      "platforms": [],
      "prices": []
    },
    {
      "codes": {
        "active": 3,
        "total": 3,
        "used": 0
      },
      "enabled": true,
      "id": 6,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "is_autoredeem_enabled": false,
      "name": "DRM Free",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        }
      ],
      "prices": []
    },
    {
      "codes": {
        "active": 0,
        "total": 0,
        "used": 0
      },
      "enabled": false,
      "id": 7,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "is_autoredeem_enabled": false,
      "name": "GOG",
      "platforms": [],
      "prices": []
    }
  ],
  "files": [
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 1,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Fwindows%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGd2luZG93cyUyRkluc3RhbGxIYW5nb3V0c0NoYXQuZG1nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNTQ5NDQwMzU4fX19XX0_&Signature=bTVBhDCIKPpnkQYj0LlaTPeGvbhiFtRhrj~Opzk-a2F0w1OFhtCUZrNunjFZkwF8ehQIQlxlKNjvne1Djurvyz4hHHT8x2lU0Ns~jBu2Hf7FuCyun~pxmrI2qU1ReJXCP971rMjJqy9VcQnaD4i0IQ~CKPkoWE-QqPGZhH87hqRGw9HQCsriXilpVBLWf~9EFP97JghvobvMDXF3F-CHTmDnaSk-nGt~Lqhz1lXPhWCJupuYuYFPALpHPb7wnOl4GQfzq3sIEgUmMe2MnpjhUT1k~mDMwXSHhcUPL~QooRsxrP5XfzLPX8weiyG6l5bUpvEd~mVAe8WXeezy~s76Qg__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    },
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 2,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Flinux%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGbGludXglMkZJbnN0YWxsSGFuZ291dHNDaGF0LmRtZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTU0OTQ0MDM1OH19fV19&Signature=RhIxAxFSEb0vMYD~CnINwGInCRArTskQuA9OUOn3vMRY0VRCCXuzQIiTKxYYa2rX3S0NN0STeFCAYv-hqyc4tEXZj0FXpYiOIxgx1wZ1tv9HxloOQfGwejDMCg48XQeupbZM9biC-KgDNCIjKpIvKbc0NTYGpnBE4YO-f7-UbIiNBynjMQdVSTtLKrUxYdUW0lazXbb-BJSK5Sq~IaZubf7BMsoTOn67eeFLZX3EH7ntXs0NyPw~-bsx-YI8tgHQ5SXXiZtQ~2VKB4VjgsaZn7Tzx-tOTlWnvW3WYbFqjixhdN-jDwo-XwPMghR354440hau3Ncf3GCv4Vu3it880g__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    },
    {
      "name": "InstallHangoutsChat.dmg",
      "platform_id": 6,
      "url": "http://d2snhz4ugmmjtp.cloudfront.net/digital-content%2Fgame-files%2F4223%2Fmac%2FInstallHangoutsChat.dmg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDpcL1wvZDJzbmh6NHVnbW1qdHAuY2xvdWRmcm9udC5uZXRcL2RpZ2l0YWwtY29udGVudCUyRmdhbWUtZmlsZXMlMkY0MjIzJTJGbWFjJTJGSW5zdGFsbEhhbmdvdXRzQ2hhdC5kbWciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1NDk0NDAzNTh9fX1dfQ__&Signature=bcLMaQ3jxffu82tUsw96B7SqS5p2Zva4vp~le8OGpgKdEdXA0eRrud8moelyBZ2RRhfF9hwPBNxenwOjPQWrsCHQVS9faRZgMQPBzyCeZj1SsgnnOpdK~auIv4ltTt5twI6flkcUJqpEbCn8v5rViJg2pYctwxUPMJHNy~yV3K9-y4rnPNdl3vHzgZLT-Q9qjvzsR5G4oiW5ubGLkL~3nlBesLNSNyqY~fHKmDzwhvCLgQhD7W3pZ3QzO0D66UNUmgaKu8Ly-kwW3hKop4nveKEIvLUnN91JOf~ja30HMPfVCrVt-cP-E1W78Q~rMxSSnJ8xMI8Z7a9VqyvbCn3ntQ__&Key-Pair-Id=APKAI42XVMVSXXOJUDWQ"
    }
  ],
  "forum_link": null,
  "genre": null,
  "id": 4223,
  "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
  "locales_list": null,
  "long_description": null,
  "name": {
    "en": "test Entity"
  },
  "obtain_code_from_api": false,
  "obtain_code_from_db": true,
  "old_price": null,
  "parent_id": null,
  "publisher": null,
  "release_date": "2019-09-30T05:00:00+05:00",
  "sales_exist": false,
  "sku": "1234",
  "support_link": null,
  "system_requirements": "Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU",
  "tips_enabled": false,
  "video_link": null,
  "widget_settings": {
    "description_enabled": false,
    "image_enabled": false
  }
}

Update Entity

Updates a game delivery entity.

HTTP REQUEST

Copy
Full screen
Small screen
PUT https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery/{game_delivery_id}

ParameterTypeDescription
project_id
integerProject ID.
sku
stringUnique ID. The SKU may only contain lowercase Latin alphanumeric characters, dashes, and underscores. When updating SKU, you will need to configure all widgets from scratch. Already installed widgets will stop working.
name
objectArray of localized names of the game delivery entity.
description
objectArray of localized descriptions of the game delivery entity.
system_requirements
stringSystem requirements for the game.
image_url
stringImage URL. Optional.
long_description
stringExtended description of the game delivery entity. Optional.
locales_list
stringComma-separated list of localizations. Optional.
publisher
stringGame publisher. Optional.
developer
stringGame developer. Optional.
stringLink to a video featuring the game. Optional.
genre
stringGame genre. Optional.
additional_info
stringAdditional info about the game. Optional.
stringLink to a discussion forum. Optional.
stringLink to a support page. Optional.
old_price
stringOld price of the game. Optional.
parent_id
integerID of a parent game. Optional.
default_currency
stringDefault purchase currency. Three-letter currency code per ISO 4217.
delivery
objectData on the delivery of preordered keys.
delivery.release_date_type
stringType of release date. Can be set to a specific UTC date or a quarter & year. In the latter case, 'delivery.release_date_type' is set to the last day of the specified quarter.
delivery.delivery_method
stringKey delivery method.
delivery.delivery_method.default
stringDefault key delivery method.
delivery.delivery_method.exception
stringExceptions to key delivery methods.
release_date
stringExpected date of release. Optional.
drm
arrayArray with DRM data.
drm.id
integerID of an available DRM.
drm.name
integerDRM name.
drm.prices
arrayArray of game prices for DRM. Optional.
drm.codes
arrayKey array for DRM. Optional.
drm.codes.total
stringTotal number of keys. Optional.
drm.codes.active
stringNumber of active keys. Optional.
drm.codes.used
stringNumber of used keys. Optional.
drm.platforms
arrayArray with data about DRM platforms.
drm.platforms.id
integerPlatform ID for that DRM.
drm.enabled
booleanWhether DRM is in use for this game.
obtain_code_from_db
booleanWhether to use game keys from Xsolla database. Optional.
obtain_code_from_api
booleanWhether to use game keys received via API. Optional.
files
arrayArray of installation files for downloading. Optional.
files.name
stringFile name. Optional.
files.url
stringURL for download. Optional.
tips_enabled
booleanWhether to enable tips for developers. Optional.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
PUT https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery/{game_delivery_id}/

Headers:
  Authorization: Basic <your_authorization_basic_key>
Content-Type: application/json

Body:
  {
  "default_currency": "USD",
  "delivery": {
    "delivery_method": {
      "default": [
        "key"
      ],
      "exceptions": {}
    },
    "is_partner_side_processing": true,
    "is_pre_order": true,
    "release_date_type": "quarter"
  },
  "description": {
    "en": "A good new game"
  },
  "drm": [
    {
      "enabled": true,
      "id": 1,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "name": "Steam",
      "platforms": [
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "enabled": true,
      "id": 2,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "name": "Playstation",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        }
      ]
    },
    {
      "enabled": true,
      "id": 3,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "name": "XBox",
      "platforms": [
        {
          "id": 7,
          "name": "XBox 360"
        }
      ]
    },
    {
      "enabled": false,
      "id": 4,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "name": "Uplay",
      "platforms": []
    },
    {
      "enabled": false,
      "id": 5,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "name": "Origin",
      "platforms": []
    },
    {
      "enabled": true,
      "id": 6,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "is_autoredeem_enabled": false,
      "name": "DRM Free",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        }
      ]
    },
    {
      "enabled": false,
      "id": 7,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "name": "GOG",
      "platforms": []
    }
  ],
  "files": [],
  "name": {
    "en": "New game"
  },
  "obtain_code_from_api": false,
  "obtain_code_from_db": true,
  "release_date": "2019-09-30T05:00:00+05:00",
  "sales_exist": false,
  "sku": "1234",
  "system_requirements": "Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU"
}
curl --request PUT \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery/{game_delivery_id}/ \
  --header 'authorization: Basic <your_authorization_basic_key>' \
  --header 'content-type: application/json' \
  --data '{"name":{"en":"New game"},"description":{"en":"A good new game"},"default_currency":"USD","system_requirements":"Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU","release_date":"2019-09-30T05:00:00+05:00","delivery":{"release_date_type":"quarter","is_pre_order":true,"is_partner_side_processing":true,"delivery_method":{"default":["key"],"exceptions":{}}},"files":[],"obtain_code_from_api":false,"obtain_code_from_db":true,"sales_exist":false,"drm":[{"id":1,"name":"Steam","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg","platforms":[{"id":6,"name":"Mac"}],"enabled":true},{"id":2,"name":"Playstation","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg","platforms":[{"id":3,"name":"Playstation 3"}],"enabled":true},{"id":3,"name":"XBox","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg","platforms":[{"id":7,"name":"XBox 360"}],"enabled":true},{"id":4,"name":"Uplay","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg","platforms":[],"enabled":false},{"id":5,"name":"Origin","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg","platforms":[],"enabled":false},{"id":6,"name":"DRM Free","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg","platforms":[{"id":1,"name":"Windows"}],"enabled":true,"is_autoredeem_enabled":false},{"id":7,"name":"GOG","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg","platforms":[],"enabled":false}],"sku":"1234"}'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append('{"name":{"en":"New game"},"description":{"en":"A good new game"},"default_currency":"USD","system_requirements":"Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU","release_date":"2019-09-30T05:00:00+05:00","delivery":{"release_date_type":"quarter","is_pre_order":true,"is_partner_side_processing":true,"delivery_method":{"default":["key"],"exceptions":{}}},"files":[],"obtain_code_from_api":false,"obtain_code_from_db":true,"sales_exist":false,"drm":[{"id":1,"name":"Steam","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg","platforms":[{"id":6,"name":"Mac"}],"enabled":true},{"id":2,"name":"Playstation","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg","platforms":[{"id":3,"name":"Playstation 3"}],"enabled":true},{"id":3,"name":"XBox","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg","platforms":[{"id":7,"name":"XBox 360"}],"enabled":true},{"id":4,"name":"Uplay","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg","platforms":[],"enabled":false},{"id":5,"name":"Origin","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg","platforms":[],"enabled":false},{"id":6,"name":"DRM Free","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg","platforms":[{"id":1,"name":"Windows"}],"enabled":true,"is_autoredeem_enabled":false},{"id":7,"name":"GOG","image":"//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg","platforms":[],"enabled":false}],"sku":"1234"}');

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery/{game_delivery_id}/');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>',
  'content-type' => 'application/json'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery/{game_delivery_id}/");
var request = new RestRequest(Method.PUT);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\"name\":{\"en\":\"New game\"},\"description\":{\"en\":\"A good new game\"},\"default_currency\":\"USD\",\"system_requirements\":\"Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU\",\"release_date\":\"2019-09-30T05:00:00+05:00\",\"delivery\":{\"release_date_type\":\"quarter\",\"is_pre_order\":true,\"is_partner_side_processing\":true,\"delivery_method\":{\"default\":[\"key\"],\"exceptions\":{}}},\"files\":[],\"obtain_code_from_api\":false,\"obtain_code_from_db\":true,\"sales_exist\":false,\"drm\":[{\"id\":1,\"name\":\"Steam\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg\",\"platforms\":[{\"id\":6,\"name\":\"Mac\"}],\"enabled\":true},{\"id\":2,\"name\":\"Playstation\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg\",\"platforms\":[{\"id\":3,\"name\":\"Playstation 3\"}],\"enabled\":true},{\"id\":3,\"name\":\"XBox\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg\",\"platforms\":[{\"id\":7,\"name\":\"XBox 360\"}],\"enabled\":true},{\"id\":4,\"name\":\"Uplay\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg\",\"platforms\":[],\"enabled\":false},{\"id\":5,\"name\":\"Origin\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg\",\"platforms\":[],\"enabled\":false},{\"id\":6,\"name\":\"DRM Free\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg\",\"platforms\":[{\"id\":1,\"name\":\"Windows\"}],\"enabled\":true,\"is_autoredeem_enabled\":false},{\"id\":7,\"name\":\"GOG\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg\",\"platforms\":[],\"enabled\":false}],\"sku\":\"1234\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

payload = "{\"name\":{\"en\":\"New game\"},\"description\":{\"en\":\"A good new game\"},\"default_currency\":\"USD\",\"system_requirements\":\"Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU\",\"release_date\":\"2019-09-30T05:00:00+05:00\",\"delivery\":{\"release_date_type\":\"quarter\",\"is_pre_order\":true,\"is_partner_side_processing\":true,\"delivery_method\":{\"default\":[\"key\"],\"exceptions\":{}}},\"files\":[],\"obtain_code_from_api\":false,\"obtain_code_from_db\":true,\"sales_exist\":false,\"drm\":[{\"id\":1,\"name\":\"Steam\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg\",\"platforms\":[{\"id\":6,\"name\":\"Mac\"}],\"enabled\":true},{\"id\":2,\"name\":\"Playstation\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg\",\"platforms\":[{\"id\":3,\"name\":\"Playstation 3\"}],\"enabled\":true},{\"id\":3,\"name\":\"XBox\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg\",\"platforms\":[{\"id\":7,\"name\":\"XBox 360\"}],\"enabled\":true},{\"id\":4,\"name\":\"Uplay\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg\",\"platforms\":[],\"enabled\":false},{\"id\":5,\"name\":\"Origin\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg\",\"platforms\":[],\"enabled\":false},{\"id\":6,\"name\":\"DRM Free\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg\",\"platforms\":[{\"id\":1,\"name\":\"Windows\"}],\"enabled\":true,\"is_autoredeem_enabled\":false},{\"id\":7,\"name\":\"GOG\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg\",\"platforms\":[],\"enabled\":false}],\"sku\":\"1234\"}"

headers = {
    'content-type': "application/json",
    'authorization': "Basic <your_authorization_basic_key>"
    }

conn.request("PUT", "/merchant/v1/projects/{project_id}/game_delivery/{game_delivery_id}/", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery/{game_delivery_id}/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request["authorization"] = 'Basic <your_authorization_basic_key>'
request.body = "{\"name\":{\"en\":\"New game\"},\"description\":{\"en\":\"A good new game\"},\"default_currency\":\"USD\",\"system_requirements\":\"Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU\",\"release_date\":\"2019-09-30T05:00:00+05:00\",\"delivery\":{\"release_date_type\":\"quarter\",\"is_pre_order\":true,\"is_partner_side_processing\":true,\"delivery_method\":{\"default\":[\"key\"],\"exceptions\":{}}},\"files\":[],\"obtain_code_from_api\":false,\"obtain_code_from_db\":true,\"sales_exist\":false,\"drm\":[{\"id\":1,\"name\":\"Steam\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg\",\"platforms\":[{\"id\":6,\"name\":\"Mac\"}],\"enabled\":true},{\"id\":2,\"name\":\"Playstation\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg\",\"platforms\":[{\"id\":3,\"name\":\"Playstation 3\"}],\"enabled\":true},{\"id\":3,\"name\":\"XBox\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg\",\"platforms\":[{\"id\":7,\"name\":\"XBox 360\"}],\"enabled\":true},{\"id\":4,\"name\":\"Uplay\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg\",\"platforms\":[],\"enabled\":false},{\"id\":5,\"name\":\"Origin\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg\",\"platforms\":[],\"enabled\":false},{\"id\":6,\"name\":\"DRM Free\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg\",\"platforms\":[{\"id\":1,\"name\":\"Windows\"}],\"enabled\":true,\"is_autoredeem_enabled\":false},{\"id\":7,\"name\":\"GOG\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg\",\"platforms\":[],\"enabled\":false}],\"sku\":\"1234\"}"

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"name\":{\"en\":\"New game\"},\"description\":{\"en\":\"A good new game\"},\"default_currency\":\"USD\",\"system_requirements\":\"Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU\",\"release_date\":\"2019-09-30T05:00:00+05:00\",\"delivery\":{\"release_date_type\":\"quarter\",\"is_pre_order\":true,\"is_partner_side_processing\":true,\"delivery_method\":{\"default\":[\"key\"],\"exceptions\":{}}},\"files\":[],\"obtain_code_from_api\":false,\"obtain_code_from_db\":true,\"sales_exist\":false,\"drm\":[{\"id\":1,\"name\":\"Steam\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg\",\"platforms\":[{\"id\":6,\"name\":\"Mac\"}],\"enabled\":true},{\"id\":2,\"name\":\"Playstation\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg\",\"platforms\":[{\"id\":3,\"name\":\"Playstation 3\"}],\"enabled\":true},{\"id\":3,\"name\":\"XBox\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg\",\"platforms\":[{\"id\":7,\"name\":\"XBox 360\"}],\"enabled\":true},{\"id\":4,\"name\":\"Uplay\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg\",\"platforms\":[],\"enabled\":false},{\"id\":5,\"name\":\"Origin\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg\",\"platforms\":[],\"enabled\":false},{\"id\":6,\"name\":\"DRM Free\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg\",\"platforms\":[{\"id\":1,\"name\":\"Windows\"}],\"enabled\":true,\"is_autoredeem_enabled\":false},{\"id\":7,\"name\":\"GOG\",\"image\":\"//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg\",\"platforms\":[],\"enabled\":false}],\"sku\":\"1234\"}");
Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery/{game_delivery_id}/")
  .put(body)
  .addHeader("content-type", "application/json")
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = JSON.stringify({
  "name": {
    "en": "New game"
  },
  "description": {
    "en": "A good new game"
  },
  "default_currency": "USD",
  "system_requirements": "Windows 7/8/10 64-bit, Core i3 2.4 Ghz, 4 GByte RAM, Nvidia GTX 660 or AMD Radeon HD 7870 equivalent DX11 GPU",
  "release_date": "2019-09-30T05:00:00+05:00",
  "delivery": {
    "release_date_type": "quarter",
    "is_pre_order": true,
    "is_partner_side_processing": true,
    "delivery_method": {
      "default": [
        "key"
      ],
      "exceptions": {}
    }
  },
  "files": [],
  "obtain_code_from_api": false,
  "obtain_code_from_db": true,
  "sales_exist": false,
  "drm": [
    {
      "id": 1,
      "name": "Steam",
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "platforms": [
        {
          "id": 6,
          "name": "Mac"
        }
      ],
      "enabled": true
    },
    {
      "id": 2,
      "name": "Playstation",
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        }
      ],
      "enabled": true
    },
    {
      "id": 3,
      "name": "XBox",
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "platforms": [
        {
          "id": 7,
          "name": "XBox 360"
        }
      ],
      "enabled": true
    },
    {
      "id": 4,
      "name": "Uplay",
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "platforms": [],
      "enabled": false
    },
    {
      "id": 5,
      "name": "Origin",
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "platforms": [],
      "enabled": false
    },
    {
      "id": 6,
      "name": "DRM Free",
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        }
      ],
      "enabled": true,
      "is_autoredeem_enabled": false
    },
    {
      "id": 7,
      "name": "GOG",
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "platforms": [],
      "enabled": false
    }
  ],
  "sku": "1234"
});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("PUT", "https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery/{game_delivery_id}/");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response


Get Entities List

Lists all game delivery entities.

HTTP REQUEST

Copy
Full screen
Small screen
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery

ParameterTypeDescription
project_id
integerProject ID.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
GET https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery \
  --header 'authorization: Basic <your_authorization_basic_key>'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery');
$request->setRequestMethod('GET');
$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery");
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

headers = { 'authorization': "Basic <your_authorization_basic_key>" }

conn.request("GET", "/merchant/v1/projects/{project_id}/game_delivery", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["authorization"] = 'Basic <your_authorization_basic_key>'

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery")
  .get()
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://api.xsolla.com/merchant/v1/projects/{project_id}/game_delivery");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response
[
  {
    "default_currency": "USD",
    "drm": [
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 1,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
        "name": "Steam",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 2,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
        "name": "Playstation",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 3,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
        "name": "XBox",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 4,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
        "name": "Uplay",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 5,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
        "name": "Origin",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 6,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
        "name": "DRM Free",
        "platforms": [
          {
            "id": 1,
            "name": "Windows"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 7,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
        "name": "GOG",
        "platforms": [],
        "prices": []
      }
    ],
    "id": 4202,
    "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
    "localized_name": "thg",
    "parent_id": null,
    "sku": "6433",
    "widget_settings": {
      "description_enabled": false,
      "image_enabled": false
    }
  },
  {
    "default_currency": "USD",
    "drm": [
      {
        "codes": {
          "active": 3,
          "total": 3,
          "used": 0
        },
        "enabled": true,
        "id": 1,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
        "name": "Steam",
        "platforms": [
          {
            "id": 6,
            "name": "Mac"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 2,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
        "name": "Playstation",
        "platforms": [
          {
            "id": 3,
            "name": "Playstation 3"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 3,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
        "name": "XBox",
        "platforms": [
          {
            "id": 7,
            "name": "XBox 360"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 4,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
        "name": "Uplay",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 5,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
        "name": "Origin",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 6,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
        "name": "DRM Free",
        "platforms": [
          {
            "id": 1,
            "name": "Windows"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 7,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
        "name": "GOG",
        "platforms": [],
        "prices": []
      }
    ],
    "id": 4223,
    "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
    "localized_name": "test Entity",
    "parent_id": null,
    "sku": "1234",
    "widget_settings": {
      "description_enabled": false,
      "image_enabled": false
    }
  }
]
[
  {
    "default_currency": "USD",
    "drm": [
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 1,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
        "name": "Steam",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 2,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
        "name": "Playstation",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 3,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
        "name": "XBox",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 4,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
        "name": "Uplay",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 5,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
        "name": "Origin",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 6,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
        "name": "DRM Free",
        "platforms": [
          {
            "id": 1,
            "name": "Windows"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 7,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
        "name": "GOG",
        "platforms": [],
        "prices": []
      }
    ],
    "id": 4202,
    "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
    "localized_name": "thg",
    "parent_id": null,
    "sku": "6433",
    "widget_settings": {
      "description_enabled": false,
      "image_enabled": false
    }
  },
  {
    "default_currency": "USD",
    "drm": [
      {
        "codes": {
          "active": 3,
          "total": 3,
          "used": 0
        },
        "enabled": true,
        "id": 1,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
        "name": "Steam",
        "platforms": [
          {
            "id": 6,
            "name": "Mac"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 2,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
        "name": "Playstation",
        "platforms": [
          {
            "id": 3,
            "name": "Playstation 3"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 3,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
        "name": "XBox",
        "platforms": [
          {
            "id": 7,
            "name": "XBox 360"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 4,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
        "name": "Uplay",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 5,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
        "name": "Origin",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 6,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
        "name": "DRM Free",
        "platforms": [
          {
            "id": 1,
            "name": "Windows"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 7,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
        "name": "GOG",
        "platforms": [],
        "prices": []
      }
    ],
    "id": 4223,
    "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
    "localized_name": "test Entity",
    "parent_id": null,
    "sku": "1234",
    "widget_settings": {
      "description_enabled": false,
      "image_enabled": false
    }
  }
]
[
  {
    "default_currency": "USD",
    "drm": [
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 1,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
        "name": "Steam",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 2,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
        "name": "Playstation",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 3,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
        "name": "XBox",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 4,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
        "name": "Uplay",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 5,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
        "name": "Origin",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 6,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
        "name": "DRM Free",
        "platforms": [
          {
            "id": 1,
            "name": "Windows"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 7,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
        "name": "GOG",
        "platforms": [],
        "prices": []
      }
    ],
    "id": 4202,
    "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
    "localized_name": "thg",
    "parent_id": null,
    "sku": "6433",
    "widget_settings": {
      "description_enabled": false,
      "image_enabled": false
    }
  },
  {
    "default_currency": "USD",
    "drm": [
      {
        "codes": {
          "active": 3,
          "total": 3,
          "used": 0
        },
        "enabled": true,
        "id": 1,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
        "name": "Steam",
        "platforms": [
          {
            "id": 6,
            "name": "Mac"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 2,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
        "name": "Playstation",
        "platforms": [
          {
            "id": 3,
            "name": "Playstation 3"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 3,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
        "name": "XBox",
        "platforms": [
          {
            "id": 7,
            "name": "XBox 360"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 4,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
        "name": "Uplay",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 5,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
        "name": "Origin",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 6,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
        "name": "DRM Free",
        "platforms": [
          {
            "id": 1,
            "name": "Windows"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 7,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
        "name": "GOG",
        "platforms": [],
        "prices": []
      }
    ],
    "id": 4223,
    "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
    "localized_name": "test Entity",
    "parent_id": null,
    "sku": "1234",
    "widget_settings": {
      "description_enabled": false,
      "image_enabled": false
    }
  }
]
[
  {
    "default_currency": "USD",
    "drm": [
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 1,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
        "name": "Steam",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 2,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
        "name": "Playstation",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 3,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
        "name": "XBox",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 4,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
        "name": "Uplay",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 5,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
        "name": "Origin",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 6,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
        "name": "DRM Free",
        "platforms": [
          {
            "id": 1,
            "name": "Windows"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 7,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
        "name": "GOG",
        "platforms": [],
        "prices": []
      }
    ],
    "id": 4202,
    "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
    "localized_name": "thg",
    "parent_id": null,
    "sku": "6433",
    "widget_settings": {
      "description_enabled": false,
      "image_enabled": false
    }
  },
  {
    "default_currency": "USD",
    "drm": [
      {
        "codes": {
          "active": 3,
          "total": 3,
          "used": 0
        },
        "enabled": true,
        "id": 1,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
        "name": "Steam",
        "platforms": [
          {
            "id": 6,
            "name": "Mac"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 2,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
        "name": "Playstation",
        "platforms": [
          {
            "id": 3,
            "name": "Playstation 3"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 3,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
        "name": "XBox",
        "platforms": [
          {
            "id": 7,
            "name": "XBox 360"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 4,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
        "name": "Uplay",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 5,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
        "name": "Origin",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 6,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
        "name": "DRM Free",
        "platforms": [
          {
            "id": 1,
            "name": "Windows"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 7,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
        "name": "GOG",
        "platforms": [],
        "prices": []
      }
    ],
    "id": 4223,
    "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
    "localized_name": "test Entity",
    "parent_id": null,
    "sku": "1234",
    "widget_settings": {
      "description_enabled": false,
      "image_enabled": false
    }
  }
]
[
  {
    "default_currency": "USD",
    "drm": [
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 1,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
        "name": "Steam",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 2,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
        "name": "Playstation",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 3,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
        "name": "XBox",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 4,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
        "name": "Uplay",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 5,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
        "name": "Origin",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 6,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
        "name": "DRM Free",
        "platforms": [
          {
            "id": 1,
            "name": "Windows"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 7,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
        "name": "GOG",
        "platforms": [],
        "prices": []
      }
    ],
    "id": 4202,
    "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
    "localized_name": "thg",
    "parent_id": null,
    "sku": "6433",
    "widget_settings": {
      "description_enabled": false,
      "image_enabled": false
    }
  },
  {
    "default_currency": "USD",
    "drm": [
      {
        "codes": {
          "active": 3,
          "total": 3,
          "used": 0
        },
        "enabled": true,
        "id": 1,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
        "name": "Steam",
        "platforms": [
          {
            "id": 6,
            "name": "Mac"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 2,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
        "name": "Playstation",
        "platforms": [
          {
            "id": 3,
            "name": "Playstation 3"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 3,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
        "name": "XBox",
        "platforms": [
          {
            "id": 7,
            "name": "XBox 360"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 4,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
        "name": "Uplay",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 5,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
        "name": "Origin",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 6,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
        "name": "DRM Free",
        "platforms": [
          {
            "id": 1,
            "name": "Windows"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 7,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
        "name": "GOG",
        "platforms": [],
        "prices": []
      }
    ],
    "id": 4223,
    "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
    "localized_name": "test Entity",
    "parent_id": null,
    "sku": "1234",
    "widget_settings": {
      "description_enabled": false,
      "image_enabled": false
    }
  }
]
[
  {
    "default_currency": "USD",
    "drm": [
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 1,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
        "name": "Steam",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 2,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
        "name": "Playstation",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 3,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
        "name": "XBox",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 4,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
        "name": "Uplay",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 5,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
        "name": "Origin",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 6,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
        "name": "DRM Free",
        "platforms": [
          {
            "id": 1,
            "name": "Windows"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 7,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
        "name": "GOG",
        "platforms": [],
        "prices": []
      }
    ],
    "id": 4202,
    "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
    "localized_name": "thg",
    "parent_id": null,
    "sku": "6433",
    "widget_settings": {
      "description_enabled": false,
      "image_enabled": false
    }
  },
  {
    "default_currency": "USD",
    "drm": [
      {
        "codes": {
          "active": 3,
          "total": 3,
          "used": 0
        },
        "enabled": true,
        "id": 1,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
        "name": "Steam",
        "platforms": [
          {
            "id": 6,
            "name": "Mac"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 2,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
        "name": "Playstation",
        "platforms": [
          {
            "id": 3,
            "name": "Playstation 3"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 3,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
        "name": "XBox",
        "platforms": [
          {
            "id": 7,
            "name": "XBox 360"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 4,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
        "name": "Uplay",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 5,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
        "name": "Origin",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 6,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
        "name": "DRM Free",
        "platforms": [
          {
            "id": 1,
            "name": "Windows"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 7,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
        "name": "GOG",
        "platforms": [],
        "prices": []
      }
    ],
    "id": 4223,
    "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
    "localized_name": "test Entity",
    "parent_id": null,
    "sku": "1234",
    "widget_settings": {
      "description_enabled": false,
      "image_enabled": false
    }
  }
]
[
  {
    "default_currency": "USD",
    "drm": [
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 1,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
        "name": "Steam",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 2,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
        "name": "Playstation",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 3,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
        "name": "XBox",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 4,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
        "name": "Uplay",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 5,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
        "name": "Origin",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 6,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
        "name": "DRM Free",
        "platforms": [
          {
            "id": 1,
            "name": "Windows"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 7,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
        "name": "GOG",
        "platforms": [],
        "prices": []
      }
    ],
    "id": 4202,
    "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
    "localized_name": "thg",
    "parent_id": null,
    "sku": "6433",
    "widget_settings": {
      "description_enabled": false,
      "image_enabled": false
    }
  },
  {
    "default_currency": "USD",
    "drm": [
      {
        "codes": {
          "active": 3,
          "total": 3,
          "used": 0
        },
        "enabled": true,
        "id": 1,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
        "name": "Steam",
        "platforms": [
          {
            "id": 6,
            "name": "Mac"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 2,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
        "name": "Playstation",
        "platforms": [
          {
            "id": 3,
            "name": "Playstation 3"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 3,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
        "name": "XBox",
        "platforms": [
          {
            "id": 7,
            "name": "XBox 360"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 4,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
        "name": "Uplay",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 5,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
        "name": "Origin",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 6,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
        "name": "DRM Free",
        "platforms": [
          {
            "id": 1,
            "name": "Windows"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 7,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
        "name": "GOG",
        "platforms": [],
        "prices": []
      }
    ],
    "id": 4223,
    "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
    "localized_name": "test Entity",
    "parent_id": null,
    "sku": "1234",
    "widget_settings": {
      "description_enabled": false,
      "image_enabled": false
    }
  }
]
[
  {
    "default_currency": "USD",
    "drm": [
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 1,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
        "name": "Steam",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 2,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
        "name": "Playstation",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 3,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
        "name": "XBox",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 4,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
        "name": "Uplay",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 5,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
        "name": "Origin",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 6,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
        "name": "DRM Free",
        "platforms": [
          {
            "id": 1,
            "name": "Windows"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 7,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
        "name": "GOG",
        "platforms": [],
        "prices": []
      }
    ],
    "id": 4202,
    "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
    "localized_name": "thg",
    "parent_id": null,
    "sku": "6433",
    "widget_settings": {
      "description_enabled": false,
      "image_enabled": false
    }
  },
  {
    "default_currency": "USD",
    "drm": [
      {
        "codes": {
          "active": 3,
          "total": 3,
          "used": 0
        },
        "enabled": true,
        "id": 1,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
        "name": "Steam",
        "platforms": [
          {
            "id": 6,
            "name": "Mac"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 2,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
        "name": "Playstation",
        "platforms": [
          {
            "id": 3,
            "name": "Playstation 3"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 3,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
        "name": "XBox",
        "platforms": [
          {
            "id": 7,
            "name": "XBox 360"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 4,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
        "name": "Uplay",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 5,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
        "name": "Origin",
        "platforms": [],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": true,
        "id": 6,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
        "name": "DRM Free",
        "platforms": [
          {
            "id": 1,
            "name": "Windows"
          }
        ],
        "prices": []
      },
      {
        "codes": {
          "active": 0,
          "total": 0,
          "used": 0
        },
        "enabled": false,
        "id": 7,
        "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
        "name": "GOG",
        "platforms": [],
        "prices": []
      }
    ],
    "id": 4223,
    "image_url": "//cdn.xsolla.net/img/misc/merchant/default-item.png",
    "localized_name": "test Entity",
    "parent_id": null,
    "sku": "1234",
    "widget_settings": {
      "description_enabled": false,
      "image_enabled": false
    }
  }
]

Get DRM List

Lists available DRM platforms.

HTTP REQUEST

Copy
Full screen
Small screen
GET https://api.xsolla.com/merchant/v1/merchants/{merchant_id}/drm

ParameterTypeDescription
merchant_id
integerMerchant ID.
Copy
Full screen
Small screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Request
GET https://api.xsolla.com/merchant/v1/merchants/{merchant_id}/drm

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v1/merchants/{merchant_id}/drm \
  --header 'authorization: Basic <your_authorization_basic_key>'
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.xsolla.com/merchant/v1/merchants/{merchant_id}/drm');
$request->setRequestMethod('GET');
$request->setHeaders(array(
  'authorization' => 'Basic <your_authorization_basic_key>'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
var client = new RestClient("https://api.xsolla.com/merchant/v1/merchants/{merchant_id}/drm");
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Basic <your_authorization_basic_key>");
IRestResponse response = client.Execute(request);
import http.client

conn = http.client.HTTPSConnection("api.xsolla.com")

headers = { 'authorization': "Basic <your_authorization_basic_key>" }

conn.request("GET", "/merchant/v1/merchants/{merchant_id}/drm", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://api.xsolla.com/merchant/v1/merchants/{merchant_id}/drm")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["authorization"] = 'Basic <your_authorization_basic_key>'

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.xsolla.com/merchant/v1/merchants/{merchant_id}/drm")
  .get()
  .addHeader("authorization", "Basic <your_authorization_basic_key>")
  .build();

Response response = client.newCall(request).execute();
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://api.xsolla.com/merchant/v1/merchants/{merchant_id}/drm");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Response
{
  "drm": [
    {
      "id": 1,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "name": "Steam",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 2,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "name": "Playstation",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        },
        {
          "id": 4,
          "name": "Playstation 4"
        }
      ]
    },
    {
      "id": 3,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "name": "XBox",
      "platforms": [
        {
          "id": 5,
          "name": "XBox One"
        },
        {
          "id": 7,
          "name": "XBox 360"
        }
      ]
    },
    {
      "id": 4,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "name": "Uplay",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 5,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "name": "Origin",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 6,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "name": "DRM Free",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 7,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "name": "GOG",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    }
  ],
  "platforms": [
    {
      "id": 1,
      "name": "Windows"
    },
    {
      "id": 2,
      "name": "Linux"
    },
    {
      "id": 3,
      "name": "Playstation 3"
    },
    {
      "id": 4,
      "name": "Playstation 4"
    },
    {
      "id": 5,
      "name": "XBox One"
    },
    {
      "id": 6,
      "name": "Mac"
    },
    {
      "id": 7,
      "name": "XBox 360"
    }
  ]
}
{
  "drm": [
    {
      "id": 1,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "name": "Steam",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 2,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "name": "Playstation",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        },
        {
          "id": 4,
          "name": "Playstation 4"
        }
      ]
    },
    {
      "id": 3,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "name": "XBox",
      "platforms": [
        {
          "id": 5,
          "name": "XBox One"
        },
        {
          "id": 7,
          "name": "XBox 360"
        }
      ]
    },
    {
      "id": 4,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "name": "Uplay",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 5,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "name": "Origin",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 6,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "name": "DRM Free",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 7,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "name": "GOG",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    }
  ],
  "platforms": [
    {
      "id": 1,
      "name": "Windows"
    },
    {
      "id": 2,
      "name": "Linux"
    },
    {
      "id": 3,
      "name": "Playstation 3"
    },
    {
      "id": 4,
      "name": "Playstation 4"
    },
    {
      "id": 5,
      "name": "XBox One"
    },
    {
      "id": 6,
      "name": "Mac"
    },
    {
      "id": 7,
      "name": "XBox 360"
    }
  ]
}
{
  "drm": [
    {
      "id": 1,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "name": "Steam",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 2,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "name": "Playstation",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        },
        {
          "id": 4,
          "name": "Playstation 4"
        }
      ]
    },
    {
      "id": 3,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "name": "XBox",
      "platforms": [
        {
          "id": 5,
          "name": "XBox One"
        },
        {
          "id": 7,
          "name": "XBox 360"
        }
      ]
    },
    {
      "id": 4,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "name": "Uplay",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 5,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "name": "Origin",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 6,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "name": "DRM Free",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 7,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "name": "GOG",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    }
  ],
  "platforms": [
    {
      "id": 1,
      "name": "Windows"
    },
    {
      "id": 2,
      "name": "Linux"
    },
    {
      "id": 3,
      "name": "Playstation 3"
    },
    {
      "id": 4,
      "name": "Playstation 4"
    },
    {
      "id": 5,
      "name": "XBox One"
    },
    {
      "id": 6,
      "name": "Mac"
    },
    {
      "id": 7,
      "name": "XBox 360"
    }
  ]
}
{
  "drm": [
    {
      "id": 1,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "name": "Steam",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 2,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "name": "Playstation",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        },
        {
          "id": 4,
          "name": "Playstation 4"
        }
      ]
    },
    {
      "id": 3,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "name": "XBox",
      "platforms": [
        {
          "id": 5,
          "name": "XBox One"
        },
        {
          "id": 7,
          "name": "XBox 360"
        }
      ]
    },
    {
      "id": 4,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "name": "Uplay",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 5,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "name": "Origin",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 6,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "name": "DRM Free",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 7,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "name": "GOG",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    }
  ],
  "platforms": [
    {
      "id": 1,
      "name": "Windows"
    },
    {
      "id": 2,
      "name": "Linux"
    },
    {
      "id": 3,
      "name": "Playstation 3"
    },
    {
      "id": 4,
      "name": "Playstation 4"
    },
    {
      "id": 5,
      "name": "XBox One"
    },
    {
      "id": 6,
      "name": "Mac"
    },
    {
      "id": 7,
      "name": "XBox 360"
    }
  ]
}
{
  "drm": [
    {
      "id": 1,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "name": "Steam",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 2,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "name": "Playstation",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        },
        {
          "id": 4,
          "name": "Playstation 4"
        }
      ]
    },
    {
      "id": 3,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "name": "XBox",
      "platforms": [
        {
          "id": 5,
          "name": "XBox One"
        },
        {
          "id": 7,
          "name": "XBox 360"
        }
      ]
    },
    {
      "id": 4,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "name": "Uplay",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 5,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "name": "Origin",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 6,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "name": "DRM Free",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 7,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "name": "GOG",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    }
  ],
  "platforms": [
    {
      "id": 1,
      "name": "Windows"
    },
    {
      "id": 2,
      "name": "Linux"
    },
    {
      "id": 3,
      "name": "Playstation 3"
    },
    {
      "id": 4,
      "name": "Playstation 4"
    },
    {
      "id": 5,
      "name": "XBox One"
    },
    {
      "id": 6,
      "name": "Mac"
    },
    {
      "id": 7,
      "name": "XBox 360"
    }
  ]
}
{
  "drm": [
    {
      "id": 1,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "name": "Steam",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 2,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "name": "Playstation",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        },
        {
          "id": 4,
          "name": "Playstation 4"
        }
      ]
    },
    {
      "id": 3,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "name": "XBox",
      "platforms": [
        {
          "id": 5,
          "name": "XBox One"
        },
        {
          "id": 7,
          "name": "XBox 360"
        }
      ]
    },
    {
      "id": 4,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "name": "Uplay",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 5,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "name": "Origin",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 6,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "name": "DRM Free",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 7,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "name": "GOG",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    }
  ],
  "platforms": [
    {
      "id": 1,
      "name": "Windows"
    },
    {
      "id": 2,
      "name": "Linux"
    },
    {
      "id": 3,
      "name": "Playstation 3"
    },
    {
      "id": 4,
      "name": "Playstation 4"
    },
    {
      "id": 5,
      "name": "XBox One"
    },
    {
      "id": 6,
      "name": "Mac"
    },
    {
      "id": 7,
      "name": "XBox 360"
    }
  ]
}
{
  "drm": [
    {
      "id": 1,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/1.1472111837.svg",
      "name": "Steam",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 2,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/2.1535378400.svg",
      "name": "Playstation",
      "platforms": [
        {
          "id": 3,
          "name": "Playstation 3"
        },
        {
          "id": 4,
          "name": "Playstation 4"
        }
      ]
    },
    {
      "id": 3,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/3.1460367796.svg",
      "name": "XBox",
      "platforms": [
        {
          "id": 5,
          "name": "XBox One"
        },
        {
          "id": 7,
          "name": "XBox 360"
        }
      ]
    },
    {
      "id": 4,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/4.1460367796.svg",
      "name": "Uplay",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 5,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/5.1460367796.svg",
      "name": "Origin",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 6,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/6.1509084108.svg",
      "name": "DRM Free",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    },
    {
      "id": 7,
      "image": "//cdn.xsolla.net/misc/game_delivery/drms/set2/7.1492784697.svg",
      "name": "GOG",
      "platforms": [
        {
          "id": 1,
          "name": "Windows"
        },
        {
          "id": 2,
          "name": "Linux"
        },
        {
          "id": 6,
          "name": "Mac"
        }
      ]
    }
  ],
  "platforms": [
    {
      "id": 1,
      "name": "Windows"
    },
    {
      "id": 2,
      "name": "Linux"
    },
    {
      "id": 3,
      "name": "Playstation 3"
    },
    {
      "id": 4,
      "name": "Playstation 4"
    },
    {