Get active bundles request for auth user

Url: https://api.playkey.net/rest/PlaykeyAPI.svc/bundle/all/auth

HTTP Method: POST

The following is an description request Json body:

lang - Display language
api_version - API version (default equal 1)
ga_clientId - Google Analytics ID
filter_codes - Filter by bundle codes
    Empty - 
    [
    ]
filter_kohorts - Filter by kohorts
    Empty - 
    [
    ]
token - Authentication token

The following is an example request Json body:

{
    "lang": "lang",
    "api_version": 1674100474,
    "ga_clientId": "gaclientid",
    "filter_codes": [
        "filtercodes",
        "filtercodes"
    ],
    "filter_kohorts": [
        "filterkohorts",
        "filterkohorts"
    ],
    "token": "token"
}

Description of how to response:

error - Error information
    code - Error code. Error 0 - no error
    message - Error message. Empty if none
bundles - List of active bundles
    info - Bundle info for non-auth users
    [
        code - Bundle code
        name - Bundle name
        description - Bundle description
        language - Lanaguage name (ru/en etc.)
        is_available_for_all - True - if bundle is available for all users, False - if bundle available only for some kohorts
        kohort_codes - Kohort codes for bundle available
            Empty - 
            [
            ]
        costs - Array of costs in different currencies
            cost - PriceInfo of product in the specified currency
            [
                cost - Cost
                currency - Information on currency
                    code - Currency code
                    sign - Currency Unicode-badge
                    format - Format of display of the price
                    iso_code - ISO code of the currency
                    kopeks_digits_count - Kopeks digits count of the currency
                price_sell - Selling price
                discount - Discount info
            ]
        parameters - Bundle parameters
            custom_param - Custom parameter
            [
                name - Name of custom parameter
                value - Value of custom parameter
            ]
        items - Bundle items
            bundle_item - Part of the bundle
            [
                code - Bundle code
                name - Bundle item name
                type - Bundle item type
                costs - Array of costs in different currencies
                    cost - PriceInfo of product in the specified currency
                    [
                        cost - Cost
                        currency - Information on currency
                            code - Currency code
                            sign - Currency Unicode-badge
                            format - Format of display of the price
                            iso_code - ISO code of the currency
                            kopeks_digits_count - Kopeks digits count of the currency
                        price_sell - Selling price
                        discount - Discount info
                    ]
            ]
    ]

The following is an example response Json body:

{
    "error": {
        "code": 0,
        "message": "string"
    },
    "bundles": [
        {
            "code": "string",
            "name": "string",
            "description": "string",
            "language": "string",
            "is_available_for_all": true,
            "kohort_codes": [
                "",
                ""
            ],
            "costs": [
                {
                    "cost": 1322728583,
                    "currency": {
                        "code": "string",
                        "sign": "string",
                        "format": "string",
                        "iso_code": "string",
                        "kopeks_digits_count": 0
                    },
                    "price_sell": 1410640934,
                    "discount": {
                        "code": "string",
                        "active_from": "01-01-0001 00:00:00",
                        "active_to": "01-01-0001 00:00:00"
                    }
                },
                {
                    "cost": 1322728583,
                    "currency": {
                        "code": "string",
                        "sign": "string",
                        "format": "string",
                        "iso_code": "string",
                        "kopeks_digits_count": 0
                    },
                    "price_sell": 1410640934,
                    "discount": {
                        "code": "string",
                        "active_from": "01-01-0001 00:00:00",
                        "active_to": "01-01-0001 00:00:00"
                    }
                }
            ],
            "parameters": [
                {
                    "name": "string",
                    "value": "string"
                },
                {
                    "name": "string",
                    "value": "string"
                }
            ],
            "items": [
                {
                    "code": "string",
                    "name": "string",
                    "type": "GameShipment",
                    "costs": [
                        {
                            "cost": 1322728583,
                            "currency": {
                                "code": "string",
                                "sign": "string",
                                "format": "string",
                                "iso_code": "string",
                                "kopeks_digits_count": 0
                            },
                            "price_sell": 1410640934,
                            "discount": {
                                "code": "string",
                                "active_from": "01-01-0001 00:00:00",
                                "active_to": "01-01-0001 00:00:00"
                            }
                        },
                        {
                            "cost": 1322728583,
                            "currency": {
                                "code": "string",
                                "sign": "string",
                                "format": "string",
                                "iso_code": "string",
                                "kopeks_digits_count": 0
                            },
                            "price_sell": 1410640934,
                            "discount": {
                                "code": "string",
                                "active_from": "01-01-0001 00:00:00",
                                "active_to": "01-01-0001 00:00:00"
                            }
                        }
                    ]
                },
                {
                    "code": "string",
                    "name": "string",
                    "type": "GameShipment",
                    "costs": [
                        {
                            "cost": 1322728583,
                            "currency": {
                                "code": "string",
                                "sign": "string",
                                "format": "string",
                                "iso_code": "string",
                                "kopeks_digits_count": 0
                            },
                            "price_sell": 1410640934,
                            "discount": {
                                "code": "string",
                                "active_from": "01-01-0001 00:00:00",
                                "active_to": "01-01-0001 00:00:00"
                            }
                        },
                        {
                            "cost": 1322728583,
                            "currency": {
                                "code": "string",
                                "sign": "string",
                                "format": "string",
                                "iso_code": "string",
                                "kopeks_digits_count": 0
                            },
                            "price_sell": 1410640934,
                            "discount": {
                                "code": "string",
                                "active_from": "01-01-0001 00:00:00",
                                "active_to": "01-01-0001 00:00:00"
                            }
                        }
                    ]
                }
            ]
        },
        {
            "code": "string",
            "name": "string",
            "description": "string",
            "language": "string",
            "is_available_for_all": true,
            "kohort_codes": [
                "",
                ""
            ],
            "costs": [
                {
                    "cost": 1322728583,
                    "currency": {
                        "code": "string",
                        "sign": "string",
                        "format": "string",
                        "iso_code": "string",
                        "kopeks_digits_count": 0
                    },
                    "price_sell": 1410640934,
                    "discount": {
                        "code": "string",
                        "active_from": "01-01-0001 00:00:00",
                        "active_to": "01-01-0001 00:00:00"
                    }
                },
                {
                    "cost": 1322728583,
                    "currency": {
                        "code": "string",
                        "sign": "string",
                        "format": "string",
                        "iso_code": "string",
                        "kopeks_digits_count": 0
                    },
                    "price_sell": 1410640934,
                    "discount": {
                        "code": "string",
                        "active_from": "01-01-0001 00:00:00",
                        "active_to": "01-01-0001 00:00:00"
                    }
                }
            ],
            "parameters": [
                {
                    "name": "string",
                    "value": "string"
                },
                {
                    "name": "string",
                    "value": "string"
                }
            ],
            "items": [
                {
                    "code": "string",
                    "name": "string",
                    "type": "GameShipment",
                    "costs": [
                        {
                            "cost": 1322728583,
                            "currency": {
                                "code": "string",
                                "sign": "string",
                                "format": "string",
                                "iso_code": "string",
                                "kopeks_digits_count": 0
                            },
                            "price_sell": 1410640934,
                            "discount": {
                                "code": "string",
                                "active_from": "01-01-0001 00:00:00",
                                "active_to": "01-01-0001 00:00:00"
                            }
                        },
                        {
                            "cost": 1322728583,
                            "currency": {
                                "code": "string",
                                "sign": "string",
                                "format": "string",
                                "iso_code": "string",
                                "kopeks_digits_count": 0
                            },
                            "price_sell": 1410640934,
                            "discount": {
                                "code": "string",
                                "active_from": "01-01-0001 00:00:00",
                                "active_to": "01-01-0001 00:00:00"
                            }
                        }
                    ]
                },
                {
                    "code": "string",
                    "name": "string",
                    "type": "GameShipment",
                    "costs": [
                        {
                            "cost": 1322728583,
                            "currency": {
                                "code": "string",
                                "sign": "string",
                                "format": "string",
                                "iso_code": "string",
                                "kopeks_digits_count": 0
                            },
                            "price_sell": 1410640934,
                            "discount": {
                                "code": "string",
                                "active_from": "01-01-0001 00:00:00",
                                "active_to": "01-01-0001 00:00:00"
                            }
                        },
                        {
                            "cost": 1322728583,
                            "currency": {
                                "code": "string",
                                "sign": "string",
                                "format": "string",
                                "iso_code": "string",
                                "kopeks_digits_count": 0
                            },
                            "price_sell": 1410640934,
                            "discount": {
                                "code": "string",
                                "active_from": "01-01-0001 00:00:00",
                                "active_to": "01-01-0001 00:00:00"
                            }
                        }
                    ]
                }
            ]
        }
    ]
}

The following is an example response Xml body:

<result xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <error>
    <code>0</code>
    <message>string</message>
  </error>
  <bundles>
    <info>
      <code>string</code>
      <name>string</name>
      <description>string</description>
      <language>string</language>
      <is_available_for_all>true</is_available_for_all>
      <kohort_codes xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <a:string />
        <a:string />
      </kohort_codes>
      <costs>
        <cost>
          <cost>2093256511</cost>
          <currency>
            <code>string</code>
            <sign>string</sign>
            <format>string</format>
            <iso_code>string</iso_code>
            <kopeks_digits_count>0</kopeks_digits_count>
          </currency>
          <price_sell>755009627</price_sell>
          <discount>
            <code>string</code>
            <active_from>01-01-0001 00:00:00</active_from>
            <active_to>01-01-0001 00:00:00</active_to>
          </discount>
        </cost>
        <cost>
          <cost>2093256511</cost>
          <currency>
            <code>string</code>
            <sign>string</sign>
            <format>string</format>
            <iso_code>string</iso_code>
            <kopeks_digits_count>0</kopeks_digits_count>
          </currency>
          <price_sell>755009627</price_sell>
          <discount>
            <code>string</code>
            <active_from>01-01-0001 00:00:00</active_from>
            <active_to>01-01-0001 00:00:00</active_to>
          </discount>
        </cost>
      </costs>
      <parameters>
        <custom_param>
          <name>string</name>
          <value>string</value>
        </custom_param>
        <custom_param>
          <name>string</name>
          <value>string</value>
        </custom_param>
      </parameters>
      <items>
        <bundle_item>
          <code>string</code>
          <name>string</name>
          <type>GameShipment</type>
          <costs>
            <cost>
              <cost>2093256511</cost>
              <currency>
                <code>string</code>
                <sign>string</sign>
                <format>string</format>
                <iso_code>string</iso_code>
                <kopeks_digits_count>0</kopeks_digits_count>
              </currency>
              <price_sell>755009627</price_sell>
              <discount>
                <code>string</code>
                <active_from>01-01-0001 00:00:00</active_from>
                <active_to>01-01-0001 00:00:00</active_to>
              </discount>
            </cost>
            <cost>
              <cost>2093256511</cost>
              <currency>
                <code>string</code>
                <sign>string</sign>
                <format>string</format>
                <iso_code>string</iso_code>
                <kopeks_digits_count>0</kopeks_digits_count>
              </currency>
              <price_sell>755009627</price_sell>
              <discount>
                <code>string</code>
                <active_from>01-01-0001 00:00:00</active_from>
                <active_to>01-01-0001 00:00:00</active_to>
              </discount>
            </cost>
          </costs>
        </bundle_item>
        <bundle_item>
          <code>string</code>
          <name>string</name>
          <type>GameShipment</type>
          <costs>
            <cost>
              <cost>2093256511</cost>
              <currency>
                <code>string</code>
                <sign>string</sign>
                <format>string</format>
                <iso_code>string</iso_code>
                <kopeks_digits_count>0</kopeks_digits_count>
              </currency>
              <price_sell>755009627</price_sell>
              <discount>
                <code>string</code>
                <active_from>01-01-0001 00:00:00</active_from>
                <active_to>01-01-0001 00:00:00</active_to>
              </discount>
            </cost>
            <cost>
              <cost>2093256511</cost>
              <currency>
                <code>string</code>
                <sign>string</sign>
                <format>string</format>
                <iso_code>string</iso_code>
                <kopeks_digits_count>0</kopeks_digits_count>
              </currency>
              <price_sell>755009627</price_sell>
              <discount>
                <code>string</code>
                <active_from>01-01-0001 00:00:00</active_from>
                <active_to>01-01-0001 00:00:00</active_to>
              </discount>
            </cost>
          </costs>
        </bundle_item>
      </items>
    </info>
    <info>
      <code>string</code>
      <name>string</name>
      <description>string</description>
      <language>string</language>
      <is_available_for_all>true</is_available_for_all>
      <kohort_codes xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <a:string />
        <a:string />
      </kohort_codes>
      <costs>
        <cost>
          <cost>2093256511</cost>
          <currency>
            <code>string</code>
            <sign>string</sign>
            <format>string</format>
            <iso_code>string</iso_code>
            <kopeks_digits_count>0</kopeks_digits_count>
          </currency>
          <price_sell>755009627</price_sell>
          <discount>
            <code>string</code>
            <active_from>01-01-0001 00:00:00</active_from>
            <active_to>01-01-0001 00:00:00</active_to>
          </discount>
        </cost>
        <cost>
          <cost>2093256511</cost>
          <currency>
            <code>string</code>
            <sign>string</sign>
            <format>string</format>
            <iso_code>string</iso_code>
            <kopeks_digits_count>0</kopeks_digits_count>
          </currency>
          <price_sell>755009627</price_sell>
          <discount>
            <code>string</code>
            <active_from>01-01-0001 00:00:00</active_from>
            <active_to>01-01-0001 00:00:00</active_to>
          </discount>
        </cost>
      </costs>
      <parameters>
        <custom_param>
          <name>string</name>
          <value>string</value>
        </custom_param>
        <custom_param>
          <name>string</name>
          <value>string</value>
        </custom_param>
      </parameters>
      <items>
        <bundle_item>
          <code>string</code>
          <name>string</name>
          <type>GameShipment</type>
          <costs>
            <cost>
              <cost>2093256511</cost>
              <currency>
                <code>string</code>
                <sign>string</sign>
                <format>string</format>
                <iso_code>string</iso_code>
                <kopeks_digits_count>0</kopeks_digits_count>
              </currency>
              <price_sell>755009627</price_sell>
              <discount>
                <code>string</code>
                <active_from>01-01-0001 00:00:00</active_from>
                <active_to>01-01-0001 00:00:00</active_to>
              </discount>
            </cost>
            <cost>
              <cost>2093256511</cost>
              <currency>
                <code>string</code>
                <sign>string</sign>
                <format>string</format>
                <iso_code>string</iso_code>
                <kopeks_digits_count>0</kopeks_digits_count>
              </currency>
              <price_sell>755009627</price_sell>
              <discount>
                <code>string</code>
                <active_from>01-01-0001 00:00:00</active_from>
                <active_to>01-01-0001 00:00:00</active_to>
              </discount>
            </cost>
          </costs>
        </bundle_item>
        <bundle_item>
          <code>string</code>
          <name>string</name>
          <type>GameShipment</type>
          <costs>
            <cost>
              <cost>2093256511</cost>
              <currency>
                <code>string</code>
                <sign>string</sign>
                <format>string</format>
                <iso_code>string</iso_code>
                <kopeks_digits_count>0</kopeks_digits_count>
              </currency>
              <price_sell>755009627</price_sell>
              <discount>
                <code>string</code>
                <active_from>01-01-0001 00:00:00</active_from>
                <active_to>01-01-0001 00:00:00</active_to>
              </discount>
            </cost>
            <cost>
              <cost>2093256511</cost>
              <currency>
                <code>string</code>
                <sign>string</sign>
                <format>string</format>
                <iso_code>string</iso_code>
                <kopeks_digits_count>0</kopeks_digits_count>
              </currency>
              <price_sell>755009627</price_sell>
              <discount>
                <code>string</code>
                <active_from>01-01-0001 00:00:00</active_from>
                <active_to>01-01-0001 00:00:00</active_to>
              </discount>
            </cost>
          </costs>
        </bundle_item>
      </items>
    </info>
  </bundles>
</result>