List of user linked payment systems

Url: https://api.playkey.net/rest/PlaykeyAPI.svc/user/ps

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
token - Authentication token

The following is an example request Json body:

{
    "lang": "lang",
    "api_version": 1094312700,
    "ga_clientId": "gaclientid",
    "token": "token"
}

Description of how to response:

error - Error information
    code - Error code. Error 0 - no error
    message - Error message. Empty if none
payments - Linked payment systems
     - Billing account information
    [
        id - Linking UID
        info - Linked billing account information
        payment_system - Payment system information
            code - Payment system UID
            name - Payment system displayed name
            can_bind - Availability binding payment system
            image_link - Payment system image link
            can_refund - Availability refunding payment system
            is_balanced - Is payment system balanced
            current_balance - Current balance
            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
        is_main - Primary account marker
    ]

The following is an example response Json body:

{
    "error": {
        "code": 0,
        "message": "string"
    },
    "payments": [
        {
            "id": 1094312700,
            "info": "string",
            "payment_system": {
                "code": "string",
                "name": "string",
                "can_bind": true,
                "image_link": "string",
                "can_refund": true,
                "is_balanced": true,
                "current_balance": 1094312700,
                "currency": {
                    "code": "string",
                    "sign": "string",
                    "format": "string",
                    "iso_code": "string",
                    "kopeks_digits_count": 0
                }
            },
            "is_main": true
        },
        {
            "id": 1094312700,
            "info": "string",
            "payment_system": {
                "code": "string",
                "name": "string",
                "can_bind": true,
                "image_link": "string",
                "can_refund": true,
                "is_balanced": true,
                "current_balance": 1094312700,
                "currency": {
                    "code": "string",
                    "sign": "string",
                    "format": "string",
                    "iso_code": "string",
                    "kopeks_digits_count": 0
                }
            },
            "is_main": true
        }
    ]
}

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>
  <payments>
    <PaymentSystemUserResult>
      <id>742940809</id>
      <info>string</info>
      <payment_system>
        <code>string</code>
        <name>string</name>
        <can_bind>true</can_bind>
        <image_link>string</image_link>
        <can_refund>true</can_refund>
        <is_balanced>true</is_balanced>
        <current_balance>742940809</current_balance>
        <currency>
          <code>string</code>
          <sign>string</sign>
          <format>string</format>
          <iso_code>string</iso_code>
          <kopeks_digits_count>0</kopeks_digits_count>
        </currency>
      </payment_system>
      <is_main>true</is_main>
    </PaymentSystemUserResult>
    <PaymentSystemUserResult>
      <id>742940809</id>
      <info>string</info>
      <payment_system>
        <code>string</code>
        <name>string</name>
        <can_bind>true</can_bind>
        <image_link>string</image_link>
        <can_refund>true</can_refund>
        <is_balanced>true</is_balanced>
        <current_balance>742940809</current_balance>
        <currency>
          <code>string</code>
          <sign>string</sign>
          <format>string</format>
          <iso_code>string</iso_code>
          <kopeks_digits_count>0</kopeks_digits_count>
        </currency>
      </payment_system>
      <is_main>true</is_main>
    </PaymentSystemUserResult>
  </payments>
</result>