Store API v2.0

Überblick

Der Abschnitt enthält Beschreibungen der Methoden für die Zusammenarbeit mit Buy Button-Modulen. Verwenden Sie die Basisauthentifizierung, um Methoden aufzurufen. Um die Benutzeroberfläche des Online-Shops zu öffnen und sichere Zahlungen zu aktivieren, müssen Sie einen Token abrufen.

Endpunktpfade: https://api.xsolla.com.

Benutzeroberfläche des Online-Shops

Online-Shop öffnen

Nutzen Sie folgenden Link, um die Benutzeroberfläche des Online-Shops in einem neuen Fenster öffnen: https://secure.xsolla.com/paystation3/?access_token=ACCESS_TOKEN; wobei ACCESS_TOKEN der Token ist, wird über die API empfangen.

Für Testzwecke steht Ihnen folgende URL zur Verfügung: https://sandbox-secure.xsolla.com/paystation3/?access_token=ACCESS_TOKEN.

Notice: Der Parameter access_token enthält personenbezogene Nutzerdaten. Stellen Sie sicher, dass Sie Server-zu-Server-Kommunikation einsetzen, wenn Sie diesen Parameter abrufen.

Liste der Testkarten

Sie können folgende Karten In der Testumgebung (Sandbox-Modus) verwenden, um erfolgreiche Zahlungen zu simulieren:

Karte3-D Secure
Kartennummer: 4111111111111111
Gültig bis: 12/40
CVV2: 123
Kartentyp: VISA
Nein
Kartennummer: 5555555555554444
Gültig bis: 11/40
CVV2: 321
Kartentyp: MasterCard
Nein
Kartennummer: 4000000000000010
Gültig bis: 12/40
CVV2: 123
Kartentyp: VISA
Ja
Kartennummer: 5200000000000114
Gültig bis: 11/40
CVV2: 321
Kartentyp: MasterCard
Ja
Kartennummer: 6759649826438453
Gültig bis: 12/40
CVV2: 321
Kartentyp: Maestro
Ja

Zusätzlich können Sie folgende Daten verwenden, um abgelehnte Transaktionen zu simulieren:

Karte3-D SecureBeschreibung
Kartennummer: 4000000000000002
Gültig bis: 12/40
CVV2: 123
Kartentyp: VISA
NeinUnzureichende Mittel
Kartennummer: 5200000000000007
Gültig bis: 11/40
CVV2: 321
Kartentyp: MasterCard
NeinUnzureichende Mittel
Kartennummer: 4000000000000036
Gültig bis: 12/40
CVV2: 123
Kartentyp: VISA
JaAbgelehnt
Kartennummer: 5200000000000031
Gültig bis: 11/40
CVV2: 321
Kartentyp: MasterCard
JaAbgelehnt

Liste der Fehler

CodeBeschreibung
0004-0001Token abgelaufen oder falsch.
0004-0008Falsche URL (Zugriff auf die Testumgebung unter secure.xsolla.com oder auf den Live-Modus unter sandbox-secure.xsolla.com).
0002-0004Vereinbarung wurde nicht unterzeichnet.
0004-0010Tokenlose Integration ist untersagt.
0010-0001Pakete wurde nicht gefunden.
0010-0003Für die Pakete ist kein DRM konfiguriert.
1000-0003Für das Projekt sind keine Module eingeschaltet.
0004-0003Projekt-ID nicht übermittelt.
0004-0009Ungültiges JSON von access_data.
0003-0001Die Zahlungsabwicklung ist für das gewählte Land untersagt.
1000-0002Netzwerkfehler. Die API-Antwort wurde während der Initialisierung nicht empfangen.
0007-0009Das Abo-Modell kann mittels Token nicht geändert werden. Die Währung eines neuen Abo-Modells unterscheidet sich von der Währung, die für das bestehende Modell festgelegt wurde.
0004-0002Die digitale Signatur ist fehlerhaft.
0005-0001Fehler beim Abrufen von Benutzerdaten aus der Abrechnung.
1000-0004Keine Daten für die Statusseite empfangen.
1000-0001Netzwerkfehler. Die API antwortet nicht.
1004-0001Die Änderung des Abo-Modells ist unzulässig.
0002-0002Projekt nicht vorhanden.

Virtuelle Währung

Paket abrufen

Ruft ein bestimmtes virtuelles Währungspaket mithilfe einer ID ab.

HTTP-ANFRAGE

GET https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_currency/packages/{package_id}

ParameterTypeBeschreibung
project_id
integerProjekt-ID.
package_id
integerID des virtuellen Währungspakets.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
GET https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_currency/packages/{package_id}

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/projects/{project_id}/virtual_currency/packages/{package_id}");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Antwort
{
  "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
}

Angebotspakete aktualisieren

Aktualisiert das virtuelle Währungspaket eines Projekts.

HTTP-ANFRAGE

PUT https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_currency/packages/{package_id}

ParameterTypBeschreibung
project_id
integerProjekt-ID.
package_id
integerID des virtuellen Währungspakets.
vc_name
array of stringsProduktbezeichnung. Besteht aus Paaren vom Typ "localization":"product name" (Sprache:Produktname).
base
arrayWichtigste Produktwährung (Objekt). Schlüssel = Währungsname (3 Buchstaben gemäß ISO 4217); Wert = Betrag in dieser Währung.
default_currency
stringStandardwährung.
min
floatMindestkaufbetrag.
max
floatMaximaler Kaufbetrag.
is_currency_discrete
booleanLegt fest, ob Nachkommastellen für die virtuelle Währung aktiviert werden.
allow_user_sum
booleanLegt fest, ob der Benutzer einen willkürlichen Betrag für das Angebotspaket bezahlen kann.
int
floatDie im Angebotspaket enthaltene Menge der virtuellen Währung.
sku
stringIndividuelle ID des virtuellen Währungspakets. Beim Aktualisieren der SKU müssen Sie alle Widgets von Grund auf neu konfigurieren. Bereits installierte Widgets funktionieren dann nicht mehr.
price
floatPreis des Angebotspakets.
image_url
stringBild-URL.
description
array of stringsArray mit lokalisierten Bezeichnungen des Angebotspakets. Besteht aus Paaren vom Typ "localization":"package description" (Sprache:Angebotsbeschreibung).
label
array of stringsLokalisierte Paketkennzeichnungen (Array). Besteht aus Paaren vom Typ "localization":"package description" (Sprache:Angebotsbeschreibung).
bonus
floatRabatt für das Angebotspaket (%).
advertisement_type
stringLabel-Art, die für das Angebotspaket verwendet wird. Als Wert lässt sich entweder 'recommended', 'best_deal', 'special_offer' oder 'null' festlegen.
enabled
booleanSchaltet das virtuelle Währungspaket aktiv.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
PUT https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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);
Antwort


Pakete abrufen

Listet die virtuellen Währungsinfos und verfügbaren Pakete auf.

HTTP-ANFRAGE

GET https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_currency

ParameterTypeBeschreibung
project_id
integerProjekt-ID.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
GET https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_currency

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/projects/{project_id}/virtual_currency");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Antwort
{
  "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"
  }
}

Virtuelle Gegenstände

Gegenstand anlegen

Legt einen virtuellen Gegenstand an.

HTTP-ANFRAGE

POST https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_items/items

ParameterTypBeschreibung
project_id
integerProjekt-ID.
sku
stringEindeutige ID des Gegenstands. Die SKU darf nur lateinische Kleinbuchstaben, alphanumerische Zeichen, Binde- und Unterstriche enthalten.
item_code
stringZusätzlicher Code des Gegenstands. Optional.
name
array of stringsLokalisierte Namen des Gegenstands (Array).
description
array of stringsLokalisierte Beschreibungen des Gegenstands (Array).
long_description
array of stringsLokalisierte ausführliche Beschreibungen des Gegenstands (Array).
prices
arrayPreise für den Gegenstand (Array).
default_currency
stringStandardwährung beim Kauf. Währungscode, bestehend aus drei Buchstaben gemäß ISO 4217.
enabled
booleanSchaltet den Gegenstand aktiv.
permanent
booleanFalls der Wert 'true' festgelegt ist, kann der Gegenstand nur einmal erworben werden.
image_url
stringBild-URL.
item_type
stringArt des Gegenstands: Verbrauchsgegenstand / Verfallsgegenstand / dauerhafter Gegenstand / Lootboxen / physischer Artikel
expiration
integerLebensdauer in Sekunden. Nur für Gegenstände vom Typ.
groups
array of integersGruppen, zu denen der Gegenstand gehört (Array).
deleted
booleanLegt fest, ob der Gegenstand entfernt wurde.
user_attribute_conditions
array of objectsListe der Bedingungen für das Benutzerattribut.
user_attribute_conditions.right_operand
arrayWerte, mit denen das Benutzerattribut verglichen wird.
user_attribute_conditions.user_attribute_key
stringSchlüssel der Benutzerattribut-Bedingung.
user_attribute_conditions.operation
stringOperationsart. Als Wert lässt sich entweder 'greater', 'greaterOrEqual', 'equal', 'notEqual', 'less', 'lessOrEqual', 'between', 'in' oder 'notIn' festlegen.
user_attribute_conditions.action
stringArt der Aktion. Als Wert lässt sich entweder 'hide', 'block' oder 'warning' festlegen.
advertisement_type
stringBannertyp, der im Zahlungsportal gemeinsam mit dem Gegenstand angezeigt wird. Als Wert lässt sich entweder 'recommended', 'best_deal', 'special_offer' oder 'null' festlegen.
virtual_currency_price
integerPreis in der Ingame-Währung. Falls als Wert 'null' festgelegt ist, kann der Gegenstand ausschließlich mit Echtgeld erworben werden.
purchase_limit
integerLegt fest, wie oft ein Gegenstand erworben werden kann. Falls als Wert 'null' festgelegt ist, besteht keine Beschränkung hinsichtlich der Anzahl der Käufe.
keywords
arraySchlagwörter, mit denen sich im Zahlungsportal der Gegenstand finden lässt.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
POST https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/projects/{project_id}/virtual_items/items");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

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

Gegenstand abrufen

Ruft einen virtuellen Gegenstand ab.

HTTP-ANFRAGE

GET https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_items/items/{item_id}

ParameterTypBeschreibung
item_id
integerID des Gegenstands.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
GET https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_items/items/{item_id}

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/projects/{project_id}/virtual_items/items/{item_id}");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Antwort
{
  "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
}

Gegenstand aktualisieren

Aktualisiert einen virtuellen Gegenstand.

HTTP-ANFRAGE

PUT https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_items/items/{item_id}

ParameterTypBeschreibung
item_id
integerID des Gegenstands.
sku
stringIndividuelle Gegenstands-ID. Die SKU darf nur Lateinische Kleinbuchstaben, Ziffern, Binde- und Unterstriche enthalten. Beim Aktualisieren der SKU müssen Sie alle Widgets von Grund auf neu konfigurieren. Bereits installierte Widgets funktionieren dann nicht mehr.
item_code
stringZusätzlicher Code des Gegenstands. Optional.
name
array of stringsLokalisierte Namen des Gegenstands (Array).
description
array of stringsLokalisierte Beschreibungen des Gegenstands (Array).
long_description
array of stringsLokalisierte ausführliche Beschreibungen des Gegenstands (Array).
prices
arrayPreise für den Gegenstand (Array).
default_currency
stringStandardwährung beim Kauf. Währungscode, bestehend aus drei Buchstaben gemäß ISO 4217.
enabled
booleanSchaltet den Gegenstand aktiv.
permanent
booleanFalls der Wert 'true' festgelegt ist, kann der Gegenstand nur einmal erworben werden.
image_url
stringBild-URL.
item_type
stringArt des Gegenstands: Verbrauchsgegenstand / Verfallsgegenstand / dauerhafter Gegenstand / Lootboxen / physischer Artikel
expiration
integerLebensdauer in Sekunden. Nur für Gegenstände vom Typ.
groups
array of integersGruppen, zu denen der Gegenstand gehört (Array).
deleted
booleanLegt fest, ob der Gegenstand entfernt wurde.
user_attribute_conditions
array of objectsListe der Bedingungen für das Benutzerattribut.
user_attribute_conditions.right_operand
arrayWerte, mit denen das Benutzerattribut verglichen wird.
user_attribute_conditions.user_attribute_key
stringSchlüssel der Benutzerattribut-Bedingung.
user_attribute_conditions.operation
stringOperationsart. Als Wert lässt sich entweder 'greater', 'greaterOrEqual', 'equal', 'notEqual', 'less', 'lessOrEqual', 'between', 'in' oder 'notIn' festlegen.
user_attribute_conditions.action
stringArt der Aktion. Als Wert lässt sich entweder 'hide', 'block' oder 'warning' festlegen.
advertisement_type
stringBannertyp, der im Zahlungsportal gemeinsam mit dem Gegenstand angezeigt wird. Als Wert lässt sich entweder 'recommended', 'best_deal', 'special_offer' oder 'null' festlegen.
virtual_currency_price
integerPreis in der Ingame-Währung. Falls als Wert 'null' festgelegt ist, kann der Gegenstand ausschließlich mit Echtgeld erworben werden.
purchase_limit
integerLegt fest, wie oft ein Gegenstand erworben werden kann. Falls als Wert 'null' festgelegt ist, besteht keine Beschränkung hinsichtlich der Anzahl der Käufe.
keywords
arraySchlagwörter, mit denen sich im Zahlungsportal der Gegenstand finden lässt.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
PUT https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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);
Antwort


Gegenstand entfernen

Entfernt einen virtuellen Gegenstand.

HTTP-ANFRAGE

DELETE https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_items/items/{item_id}

ParameterTypBeschreibung
item_id
integerID des Gegenstands.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
DELETE https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_items/items/{item_id}

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request DELETE \
  --url https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/projects/{project_id}/virtual_items/items/{item_id}");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Antwort


Gegenstandsliste abrufen

Listet alle virtuellen Gegenstände auf.

HTTP-ANFRAGE

GET https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_items/items

ParameterTypBeschreibung
project_id
integerProjekt-ID.
offset
integerElementnummer, aus der die Liste generiert wird (die Zählung beginnt bei 0).
limit
integerBegrenzung der Elementanzahl auf der Seite.
has_price
stringPreistyp: 'virtual_currency' oder 'real_currency', je nachdem, ob der Gegenstand mit virtueller Währung oder Echtgeld erworben werden kann.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
GET https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_items/items

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/projects/{project_id}/virtual_items/items");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Antwort
[
  {
    "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
  }
]

Gegenstandsgruppe anlegen

Legt eine Gruppe für virtuelle Gegenstände an.

HTTP-ANFRAGE

POST https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_items/groups

ParameterTypBeschreibung
project_id
integerProjekt-ID.
name
array of stringsLokalisierte Gruppennamen (Array).
description
array of stringsLokalisierte Beschreibungen der Gruppe (Array).
enabled
booleanSchaltet die Gruppe aktiv.
parent_id
integerID der übergeordneten Gruppe.
code
integerIndividueller Code der Gruppe.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
POST https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/projects/{project_id}/virtual_items/groups");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

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

Gegenstandsgruppe abrufen

Ruft Informationen zu einer Gruppe für virtuelle Gegenstände ab.

HTTP-ANFRAGE

GET https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_items/groups/{group_id}

ParameterTypBeschreibung
group_id
stringGruppen-ID.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
GET https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_items/groups/{group_id}

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/projects/{project_id}/virtual_items/groups/{group_id}");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Antwort
{
  "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
}

Gegenstandsgruppe aktualisieren

Aktualisiert eine Gruppe für virtuelle Gegenstände.

HTTP-ANFRAGE

PUT https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_items/groups/{group_id}

ParameterTypBeschreibung
group_id
stringGruppen-ID.
name
array of stringsLokalisierte Gruppennamen (Array).
description
array of stringsLokalisierte Beschreibungen der Gruppe (Array).
enabled
booleanSchaltet die Gruppe aktiv.
parent_id
integerID der übergeordneten Gruppe.
code
integerIndividueller Code der Gruppe.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
PUT https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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);
Antwort


Gegenstandsgruppe entfernen

Entfernt eine Gruppe für virtuelle Gegenstände.

HTTP-ANFRAGE

DELETE https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_items/groups/{group_id}

ParameterTypBeschreibung
group_id
stringGruppen-ID.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
DELETE https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_items/groups/{group_id}

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request DELETE \
  --url https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/projects/{project_id}/virtual_items/groups/{group_id}");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Antwort


Liste der Gegenstandsgruppen abrufen

Listet alle Gruppen für virtuelle Gegenstände auf.

HTTP-ANFRAGE

GET https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_items/groups

ParameterTypBeschreibung
project_id
integerProjekt-ID.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
GET https://api.xsolla.com/merchant/v2/projects/{project_id}/virtual_items/groups

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/projects/{project_id}/virtual_items/groups");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Antwort
[
  {
    "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
  }
]

Benutzerattribute

Attribut anlegen

Legt ein Benutzerattribut an.

HTTP-ANFRAGE

POST https://api.xsolla.com/merchant/v2/projects/{project_id}/user_attributes

ParameterTypBeschreibung
project_id
integerProjekt-ID. Erforderlich.
key
stringSchlüssel des Benutzerattributs. Erforderlich.
name
array of stringsLokalisierte Attributbezeichnungen. Erforderlich.
type
stringArt des Schlüssels. Als Wert lässt sich entweder 'int', 'string', 'enum' oder 'date' festlegen. Erforderlich.
list_of_values
arrayMögliche Werte für type=enum (Array). Erforderlich.
skip_condition_on_nonexistent_key
booleanLegt fest, ob die Bedingung bei nicht vorhandenem Schlüssel übersprungen wird.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
POST https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/projects/{project_id}/user_attributes");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

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

Attribut abrufen

Fordert Angaben zu einem bestimmten Benutzerattribut an.

HTTP-ANFRAGE

GET https://api.xsolla.com/merchant/v2/projects/{project_id}/user_attributes/{user_attribute_id}

ParameterTypeBeschreibung
project_id
integerProjekt-ID.
user_attribute_id
integerID des Benutzerattributs.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
GET https://api.xsolla.com/merchant/v2/projects/{project_id}/user_attributes/11425

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/projects/{project_id}/user_attributes/11425");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Antwort
{
  "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
}

Attribut aktualisieren

Aktualisiert ein Benutzerattribut.

HTTP-ANFRAGE

PUT https://api.xsolla.com/merchant/v2/projects/{project_id}/user_attributes/{user_attribute_id}

ParameterTypBeschreibung
project_id
integerProjekt-ID.
user_attribute_id
integerID des Benutzerattributs.
key
stringSchlüssel des Benutzerattributs. Erforderlich.
name
array of stringsLokalisierte Attributbezeichnungen. Erforderlich.
type
stringArt des Schlüssels. Als Wert lässt sich entweder 'int', 'string', 'enum' oder 'date' festlegen. Erforderlich.
list_of_values
arrayMögliche Werte für type=enum (Array). Erforderlich.
skip_condition_on_nonexistent_key
booleanLegt fest, ob die Bedingung bei nicht vorhandenem Schlüssel übersprungen wird.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
PUT https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/projects/{project_id}/user_attributes/{attribute_id}");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Antwort


Attribut löschen

Löscht ein Benutzerattribut.

HTTP-ANFRAGE

DELETE https://api.xsolla.com/merchant/v2/projects/{project_id}/user_attributes/{user_attribute_id}

ParameterTypeBeschreibung
project_id
integerProjekt-ID.
user_attribute_id
integerID des Benutzerattributs.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
DELETE https://api.xsolla.com/merchant/v2/projects/{project_id}/user_attributes/{attribute_id}

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request DELETE \
  --url https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/projects/{project_id}/user_attributes/{attribute_id}");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Antwort


Liste der Attribute abrufen

Listet alle Benutzerattribute auf.

HTTP-ANFRAGE

GET https://api.xsolla.com/merchant/v2/projects/{project_id}/user_attributes

ParameterTypeBeschreibung
project_id
integerProjekt-ID.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
GET https://api.xsolla.com/merchant/v2/projects/{project_id}/user_attributes

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/projects/{project_id}/user_attributes");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Antwort
[
  {
    "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
  }
]

Spielschlüssel

Entität anlegen

Legt eine Game-Delivery-Entität an.

HTTP-ANFRAGE

POST https://api.xsolla.com/merchant/v2/projects/{project_id}/game_delivery

ParameterTypBeschreibung
project_id
integerProjekt-ID.
sku
stringEindeutige ID. Die SKU darf nur lateinische Kleinbuchstaben, alphanumerische Zeichen, Binde- und Unterstriche enthalten.
name
objectArray der lokalisierten Namen aus der Game-Delivery-Entität.
description
objectArray der lokalisierten Beschreibungen aus der Game-Delivery-Entität.
system_requirements
stringSystemanforderungen des Spiels.
image_url
stringBild-URL. Optional.
long_description
stringAusführliche Beschreibung der Game-Delivery-Entität. Optional.
locales_list
stringKommaseparierte Liste von Lokalisierungen. Optional.
publisher
stringGame-Publisher. Optional.
developer
stringSpieleentwickler. Optional.
stringLink zu einem Video, welches das Spiel bewirbt. Optional.
genre
stringSpielgenre. Optional.
additional_info
stringZusätzliche Informationen über das Spiel. Optional.
stringLink zu einem Diskussionsforum. Optional.
stringLink zu einer Support-Seite. Optional.
old_price
stringAlter Preis des Spiels. Optional.
parent_id
integerID eines übergeordneten Spiels. Optional.
default_currency
stringStandardwährung beim Kauf. Währungscode, bestehend aus drei Buchstaben gemäß ISO 4217.
delivery
objectDaten zur Auslieferung der vorbestellten Schlüssel.
delivery.release_date_type
stringArt des Release-Termins. Es lässt sich ein bestimmtes Datum im UTC-Format oder ein Quartal & Jahr einstellen. Im letzteren Fall wird das 'delivery.release_date_type' auf den letzten Tag im angegebenen Quartals gesetzt.
delivery.delivery_method
stringAuslieferungsmethode für Schlüssel.
delivery.delivery_method.default
stringStandardmäßige Auslieferungsmethode für Schlüssel.
delivery.delivery_method.exception
stringAusnahmen von den Auslieferungsmethoden für Schlüssel.
release_date
stringVoraussichtliches Veröffentlichungsdatum. Optional.
drm
arrayArray mit DRM-Daten.
drm.id
integerID eines verfügbaren DRM.
drm.name
integerDRM-Name.
drm.prices
arrayArray der Spielpreise für das DRM. Optional.
drm.codes
arrayArray mit Schlüsseln für das DRM. Optional.
drm.codes.total
stringGesamtanzahl der Schlüssel. Optional.
drm.codes.active
stringAnzahl der aktiven Schlüssel. Optional.
drm.codes.used
stringAnzahl der verwendeten Schlüssel. Optional.
drm.platforms
arrayArray mit Daten über die DRM-Plattformen.
drm.platforms.id
integerPlattform-ID für das DRM.
drm.enabled
booleanLegt fest, ob DRM für dieses Spiel verwendet wird.
obtain_code_from_db
booleanLegt fest, ob Spielschlüssel aus der Xsolla-Datenbank verwendet werden sollen. Optional.
obtain_code_from_api
booleanLegt fest, ob über API empfangene Spielschlüssel verwendet werden sollen. Optional.
files
arrayArray der Installationsdateien zum Herunterladen. Optional.
files.name
stringDateiname. Optional.
files.url
stringDownload-URL. Optional.
tips_enabled
booleanLeg fest, ob das Spenden an Entwickler möglich ist. Optional.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
POST https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/projects/{project_id}/game_delivery");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

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

Entität abrufen

Fordert eine Game-Delivery-Entität an.

HTTP-ANFRAGE

GET https://api.xsolla.com/merchant/v2/projects/{project_id}/game_delivery/{game_delivery_id}

ParameterTypBeschreibung
project_id
integerProjekt-ID.
game_delivery_id
integerID der Game-Delivery-Entität.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
GET https://api.xsolla.com/merchant/v2/projects/{project_id}/game_delivery/{game_delivery_id}

Headers:
Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/projects/{project_id}/game_delivery/{game_delivery_id}");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Antwort
{
  "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
  }
}

Entität aktualisieren

Aktualisiert eine Game-Delivery-Entität.

HTTP-ANFRAGE

PUT https://api.xsolla.com/merchant/v2/projects/{project_id}/game_delivery/{game_delivery_id}

ParameterTypBeschreibung
project_id
integerProjekt-ID.
sku
stringIndividuelle ID. Die SKU darf nur Lateinische Kleinbuchstaben, Ziffern, Binde- und Unterstriche enthalten. Beim Aktualisieren der SKU müssen Sie alle Widgets von Grund auf neu konfigurieren. Bereits installierte Widgets funktionieren dann nicht mehr.
name
objectArray der lokalisierten Namen aus der Game-Delivery-Entität.
description
objectArray der lokalisierten Beschreibungen aus der Game-Delivery-Entität.
system_requirements
stringSystemanforderungen des Spiels.
image_url
stringBild-URL. Optional.
long_description
stringAusführliche Beschreibung der Game-Delivery-Entität. Optional.
locales_list
stringKommaseparierte Liste von Lokalisierungen. Optional.
publisher
stringGame-Publisher. Optional.
developer
stringSpieleentwickler. Optional.
stringLink zu einem Video, welches das Spiel bewirbt. Optional.
genre
stringSpielgenre. Optional.
additional_info
stringZusätzliche Informationen über das Spiel. Optional.
stringLink zu einem Diskussionsforum. Optional.
stringLink zu einer Support-Seite. Optional.
old_price
stringAlter Preis des Spiels. Optional.
parent_id
integerID eines übergeordneten Spiels. Optional.
default_currency
stringStandardwährung beim Kauf. Währungscode, bestehend aus drei Buchstaben gemäß ISO 4217.
delivery
objectDaten zur Auslieferung der vorbestellten Schlüssel.
delivery.release_date_type
stringArt des Release-Termins. Es lässt sich ein bestimmtes Datum im UTC-Format oder ein Quartal & Jahr einstellen. Im letzteren Fall wird das 'delivery.release_date_type' auf den letzten Tag im angegebenen Quartals gesetzt.
delivery.delivery_method
stringAuslieferungsmethode für Schlüssel.
delivery.delivery_method.default
stringStandardmäßige Auslieferungsmethode für Schlüssel.
delivery.delivery_method.exception
stringAusnahmen von den Auslieferungsmethoden für Schlüssel.
release_date
stringVoraussichtliches Veröffentlichungsdatum. Optional.
drm
arrayArray mit DRM-Daten.
drm.id
integerID eines verfügbaren DRM.
drm.name
integerDRM-Name.
drm.prices
arrayArray der Spielpreise für das DRM. Optional.
drm.codes
arrayArray mit Schlüsseln für das DRM. Optional.
drm.codes.total
stringGesamtanzahl der Schlüssel. Optional.
drm.codes.active
stringAnzahl der aktiven Schlüssel. Optional.
drm.codes.used
stringAnzahl der verwendeten Schlüssel. Optional.
drm.platforms
arrayArray mit Daten über die DRM-Plattformen.
drm.platforms.id
integerPlattform-ID für das DRM.
drm.enabled
booleanLegt fest, ob DRM für dieses Spiel verwendet wird.
obtain_code_from_db
booleanLegt fest, ob Spielschlüssel aus der Xsolla-Datenbank verwendet werden sollen. Optional.
obtain_code_from_api
booleanLegt fest, ob über API empfangene Spielschlüssel verwendet werden sollen. Optional.
files
arrayArray der Installationsdateien zum Herunterladen. Optional.
files.name
stringDateiname. Optional.
files.url
stringDownload-URL. Optional.
tips_enabled
booleanLeg fest, ob das Spenden an Entwickler möglich ist. Optional.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
PUT https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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);
Antwort


Liste der Entitäten abrufen

Listet alle Game-Delivery-Entitäten auf.

HTTP-ANFRAGE

GET https://api.xsolla.com/merchant/v2/projects/{project_id}/game_delivery

ParameterTypBeschreibung
project_id
integerProjekt-ID.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
GET https://api.xsolla.com/merchant/v2/projects/{project_id}/game_delivery

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/projects/{project_id}/game_delivery");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Antwort
[
  {
    "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
    }
  }
]

DRM-Liste abrufen

Listet verfügbare DRM-Plattformen auf.

HTTP-ANFRAGE

GET https://api.xsolla.com/merchant/v2/merchants/{merchant_id}/drm

ParameterTypBeschreibung
merchant_id
integerHändler-ID.
Copy
Full screen
http
  • http
  • curl
  • php
  • C#
  • python
  • ruby
  • java
  • js
Anfrage
GET https://api.xsolla.com/merchant/v2/merchants/{merchant_id}/drm

Headers:
  Authorization: Basic <your_authorization_basic_key>
curl --request GET \
  --url https://api.xsolla.com/merchant/v2/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/v2/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/v2/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/v2/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/v2/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/v2/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/v2/merchants/{merchant_id}/drm");
xhr.setRequestHeader("authorization", "Basic <your_authorization_basic_key>");

xhr.send(data);
Antwort
{
  "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"
    },
    {
      "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"