basitengr

Untitled

Nov 21st, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.00 KB | None | 0 0
  1. Request via socket on Port 2012: Get account information of User# 1007 of tenant "cgrates.org"
  2.  
  3. {
  4.     "method": "ApierV2.GetAccounts",
  5.     "params": [{
  6.         "Tenant": "cgrates.org",
  7.         "AccountIds": ["1007"],
  8.         "Offset": 0,
  9.         "Limit": 0
  10.     }],
  11.     "id": 2
  12. }.
  13.  
  14. Response from Server:
  15.  
  16. {
  17.     "id": 2,
  18.     "result": [{
  19.         "ID": "cgrates.org:1007",
  20.         "BalanceMap": {
  21.             "*monetary": [{
  22.                 "Uuid": "eb377cd4-3373-4a4c-8011-aaa0971b71a4",
  23.                 "ID": "",
  24.                 "Value": 0,
  25.                 "Directions": {
  26.                     "*out": true
  27.                 },
  28.                 "ExpirationDate": "0001-01-01T00:00:00Z",
  29.                 "Weight": 10,
  30.                 "DestinationIDs": {},
  31.                 "RatingSubject": "",
  32.                 "Categories": {},
  33.                 "SharedGroups": {
  34.                     "SHARED_A": true
  35.                 },
  36.                 "Timings": null,
  37.                 "TimingIDs": {},
  38.                 "Disabled": false,
  39.                 "Factor": null,
  40.                 "Blocker": false
  41.             }]
  42.         },
  43.         "UnitCounters": {
  44.             "*monetary": [{
  45.                 "CounterType": "*event",
  46.                 "Counters": [{
  47.                     "Value": 0,
  48.                     "Filter": {
  49.                         "Uuid": null,
  50.                         "ID": "ad611ebd-533a-4bd4-897e-945f86a5e3e9",
  51.                         "Type": "*monetary",
  52.                         "Value": null,
  53.                         "Directions": {
  54.                             "*out": true
  55.                         },
  56.                         "ExpirationDate": null,
  57.                         "Weight": null,
  58.                         "DestinationIDs": {
  59.                             "FS_USERS": true
  60.                         },
  61.                         "RatingSubject": null,
  62.                         "Categories": null,
  63.                         "SharedGroups": null,
  64.                         "TimingIDs": null,
  65.                         "Timings": null,
  66.                         "Disabled": null,
  67.                         "Factor": null,
  68.                         "Blocker": null
  69.                     }
  70.                 }]
  71.             }]
  72.         },
  73.         "ActionTriggers": [{
  74.             "ID": "STANDARD_TRIGGERS",
  75.             "UniqueID": "6f092f36-bc1b-490a-b6b5-b5149240a9c3",
  76.             "ThresholdType": "*min_balance",
  77.             "ThresholdValue": 2,
  78.             "Recurrent": false,
  79.             "MinSleep": 0,
  80.             "ExpirationDate": "0001-01-01T00:00:00Z",
  81.             "ActivationDate": "0001-01-01T00:00:00Z",
  82.             "Balance": {
  83.                 "Uuid": null,
  84.                 "ID": null,
  85.                 "Type": "*monetary",
  86.                 "Value": null,
  87.                 "Directions": {
  88.                     "*out": true
  89.                 },
  90.                 "ExpirationDate": null,
  91.                 "Weight": null,
  92.                 "DestinationIDs": null,
  93.                 "RatingSubject": null,
  94.                 "Categories": null,
  95.                 "SharedGroups": null,
  96.                 "TimingIDs": null,
  97.                 "Timings": null,
  98.                 "Disabled": null,
  99.                 "Factor": null,
  100.                 "Blocker": null
  101.             },
  102.             "Weight": 10,
  103.             "ActionsID": "LOG_WARNING",
  104.             "MinQueuedItems": 0,
  105.             "Executed": true,
  106.             "LastExecutionTime": "2017-11-10T03:59:28.360750477Z"
  107.         }, {
  108.             "ID": "STANDARD_TRIGGERS",
  109.             "UniqueID": "ad611ebd-533a-4bd4-897e-945f86a5e3e9",
  110.             "ThresholdType": "*max_event_counter",
  111.             "ThresholdValue": 5,
  112.             "Recurrent": false,
  113.             "MinSleep": 0,
  114.             "ExpirationDate": "0001-01-01T00:00:00Z",
  115.             "ActivationDate": "0001-01-01T00:00:00Z",
  116.             "Balance": {
  117.                 "Uuid": null,
  118.                 "ID": "ad611ebd-533a-4bd4-897e-945f86a5e3e9",
  119.                 "Type": "*monetary",
  120.                 "Value": null,
  121.                 "Directions": {
  122.                     "*out": true
  123.                 },
  124.                 "ExpirationDate": null,
  125.                 "Weight": null,
  126.                 "DestinationIDs": {
  127.                     "FS_USERS": true
  128.                 },
  129.                 "RatingSubject": null,
  130.                 "Categories": null,
  131.                 "SharedGroups": null,
  132.                 "TimingIDs": null,
  133.                 "Timings": null,
  134.                 "Disabled": null,
  135.                 "Factor": null,
  136.                 "Blocker": null
  137.             },
  138.             "Weight": 10,
  139.             "ActionsID": "LOG_WARNING",
  140.             "MinQueuedItems": 0,
  141.             "Executed": false,
  142.             "LastExecutionTime": "0001-01-01T00:00:00Z"
  143.         }, {
  144.             "ID": "STANDARD_TRIGGERS",
  145.             "UniqueID": "41a00367-6d6a-4930-bdbf-f6f79ba20e85",
  146.             "ThresholdType": "*max_balance",
  147.             "ThresholdValue": 20,
  148.             "Recurrent": false,
  149.             "MinSleep": 0,
  150.             "ExpirationDate": "0001-01-01T00:00:00Z",
  151.             "ActivationDate": "0001-01-01T00:00:00Z",
  152.             "Balance": {
  153.                 "Uuid": null,
  154.                 "ID": null,
  155.                 "Type": "*monetary",
  156.                 "Value": null,
  157.                 "Directions": {
  158.                     "*out": true
  159.                 },
  160.                 "ExpirationDate": null,
  161.                 "Weight": null,
  162.                 "DestinationIDs": null,
  163.                 "RatingSubject": null,
  164.                 "Categories": null,
  165.                 "SharedGroups": null,
  166.                 "TimingIDs": null,
  167.                 "Timings": null,
  168.                 "Disabled": null,
  169.                 "Factor": null,
  170.                 "Blocker": null
  171.             },
  172.             "Weight": 10,
  173.             "ActionsID": "LOG_WARNING",
  174.             "MinQueuedItems": 0,
  175.             "Executed": false,
  176.             "LastExecutionTime": "0001-01-01T00:00:00Z"
  177.         }, {
  178.             "ID": "STANDARD_TRIGGERS",
  179.             "UniqueID": "b17653b3-8409-4338-be8a-6cceac7ce3d9",
  180.             "ThresholdType": "*max_balance",
  181.             "ThresholdValue": 100,
  182.             "Recurrent": false,
  183.             "MinSleep": 0,
  184.             "ExpirationDate": "0001-01-01T00:00:00Z",
  185.             "ActivationDate": "0001-01-01T00:00:00Z",
  186.             "Balance": {
  187.                 "Uuid": null,
  188.                 "ID": null,
  189.                 "Type": "*monetary",
  190.                 "Value": null,
  191.                 "Directions": {
  192.                     "*out": true
  193.                 },
  194.                 "ExpirationDate": null,
  195.                 "Weight": null,
  196.                 "DestinationIDs": null,
  197.                 "RatingSubject": null,
  198.                 "Categories": null,
  199.                 "SharedGroups": null,
  200.                 "TimingIDs": null,
  201.                 "Timings": null,
  202.                 "Disabled": null,
  203.                 "Factor": null,
  204.                 "Blocker": null
  205.             },
  206.             "Weight": 10,
  207.             "ActionsID": "DISABLE_AND_LOG",
  208.             "MinQueuedItems": 0,
  209.             "Executed": false,
  210.             "LastExecutionTime": "0001-01-01T00:00:00Z"
  211.         }],
  212.         "AllowNegative": false,
  213.         "Disabled": false
  214.     }],
  215.     "error": null
  216. }
Add Comment
Please, Sign In to add comment