Description of JSON-LITE formatted answer

A JSON-formatted object has three attributes: code, message and data, where

  • code — is the error code;
  • message — is the text of the error;
  • data — structurally is the same two-dimensional data array which is returned when the CSV format is chosen.

Example

JSON-LITE

{
    "code": 0,
    "message": "",
    "data": [ ... two-dimensional array, similar to CSV ... ]
}

An example of a successful reply to get_accounts in the JSON-LITE format

{
    "code": 0,
    "message": "",
    "data": [
        [
            0,
            15,
            7,
            "21069.99",
            5,
            "99998883588.94",
            2,
            "2749.05",
            1,
            "2.00"
        ],
        [
            "Для рефера",
            "U0100652",
            "USD",
            "0.90",
            "0.00"
        ],
        [
            "Test API account",
            "R0100415",
            "RUR",
            "0.00",
            "0.00"
        ],
        [
            "Абв",
            "R0100671",
            "RUR",
            "6607.74",
            "0.00"
        ],
        [
            "Для мерчанта RUR1",
            "R0100050",
            "RUR",
            "115.00",
            "0.00"
        ],
        [
            "Test",
            "E0100965",
            "EUR",
            "2763.05",
            "14.00"
        ],
        [
            "123",
            "U0100837",
            "USD",
            "1000.00",
            "0.00"
        ],
        [
            "Биржа труда",
            "R0100271",
            "RUR",
            "0.00",
            "0.00"
        ],
        [
            "Биржа USD",
            "U0100692",
            "USD",
            "337.92",
            "0.00"
        ],
        [
            "Для мерчанта EUR",
            "E0100853",
            "EUR",
            "0.00",
            "0.00"
        ],
        [
            "Test5000",
            "R0100400",
            "RUR",
            "0.00",
            "0.00"
        ],
        [
            "Очень большое название и длинное",
            "R0100813",
            "RUR",
            "14347.25",
            "0.00"
        ],
        [
            "Bitcoin 23",
            "B0100245",
            "BTC",
            "2.00",
            "0.00"
        ],
        [
            "Для мерчанта USD",
            "U0100788",
            "USD",
            "31.25",
            "0.00"
        ],
        [
            "$$$",
            "U0100020",
            "USD",
            "99998882988.87",
            "770.00"
        ],
        [
            "Test API account",
            "R0100560",
            "RUR",
            "0.00",
            "0.00"
        ]
    ]
}

See also

  • json — the format of a JSON reply with the named parameters.
  • csv — is the reply in the CSV format. Data are separated by semicolons and line wraps.
API Capitalist