Skip to content

Instantly share code, notes, and snippets.

@e1sep0
Last active December 9, 2015 10:03
Show Gist options
  • Save e1sep0/efff866eb4ef341fa337 to your computer and use it in GitHub Desktop.
Save e1sep0/efff866eb4ef341fa337 to your computer and use it in GitHub Desktop.

Получение списка активов и/или контрагентов по массиву телефонных номеров

Тип запроса: GET

URL запроса: /rest/balance/list-by-phones

Параметры:

  • token -- токен аутентификации, полученный через /auth/auth
  • phone -- массив телефонов контрагентов

Ответ "список активов или контрагентов"

{
  "result": "ok",
  "status": "found",
  "assets": [
    {
      "id": 329,
      "type": "counterparty",
      "name": "Тестовый контрагент",
      "color": null,
      "balance": "-500.00",
      "comment": "Тестовый агент",
      "check": 1,
      "phone": [
        {
          "id": 14,
          "asset_id": 329,
          "number": "79112222222"
        },
        {
          "id": 15,
          "asset_id": 329,
          "number": "79999999"
        },
        {
          "id": 16,
          "asset_id": 329,
          "number": "79115555555"
        }
      ]
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment