Request

  • tenant - (mandatory) - business tenant
  • account_id - (conditional) - Account ID
  • account_code - (conditional) - Account Code
  • account_name - (conditional) - Account Name
  • return_terminated - (optional; default false) - whether to return already terminated Account Products or not
  • skip_lookup_account - (optional; default false) - is used only when account_id is provided; skips extra call to DB for Account verification
    One of conditional parameters: account_id, or account_code, or account_name - is mandatory to be provided.


{
  "tenant": "zegoal",
  "account_id": 2
}
CODE


{
   "processing_result":    {
      "text": "success",
      "status": "ok",
      "code": 0
   },
   "processing_date": "2019-09-04 09:30:08",
   "GetAccountProducts":    {
      "response":       {
         "tenant": "zegoal",
         "sold_products": [         {
            "sold_product_id": 4,
            "product_type": "primary tariff",
            "product_name": "PRO",
            "product_id": 4,
            "product_description": "Услуга ПРО",
            "product_category": "combined",
            "params":             {
               "price_of_user_admin": 5,
               "order_access": true,
               "number_of_users_admin": 20,
               "number_of_tasks": 3000,
               "gps_tracking": true,
               "data_storage": 500,
               "custom_forms": 10000,
               "api_access": true
            },
            "lc": [            {
               "lc_to": "",
               "lc_status": "ACT",
               "lc_from": "2019-09-03 12:18:08"
            }],
            "id": 4,
            "current_lc_status": "ACT"
         }],
         "skip_lookup_account": false,
         "return_terminated": false,
         "account_name": "123",
         "account_id": 2,
         "account_code": "123",
         "TZ": "Europe/Minsk"
      },
      "request":       {
         "tenant": "zegoal",
         "account_id": 2
      }
   }
}
CODE