Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Request via socket on Port 2012: Get account information of User# 1007 of tenant "cgrates.org"
- {
- "method": "ApierV2.GetAccounts",
- "params": [{
- "Tenant": "cgrates.org",
- "AccountIds": ["1007"],
- "Offset": 0,
- "Limit": 0
- }],
- "id": 2
- }.
- Response from Server:
- {
- "id": 2,
- "result": [{
- "ID": "cgrates.org:1007",
- "BalanceMap": {
- "*monetary": [{
- "Uuid": "eb377cd4-3373-4a4c-8011-aaa0971b71a4",
- "ID": "",
- "Value": 0,
- "Directions": {
- "*out": true
- },
- "ExpirationDate": "0001-01-01T00:00:00Z",
- "Weight": 10,
- "DestinationIDs": {},
- "RatingSubject": "",
- "Categories": {},
- "SharedGroups": {
- "SHARED_A": true
- },
- "Timings": null,
- "TimingIDs": {},
- "Disabled": false,
- "Factor": null,
- "Blocker": false
- }]
- },
- "UnitCounters": {
- "*monetary": [{
- "CounterType": "*event",
- "Counters": [{
- "Value": 0,
- "Filter": {
- "Uuid": null,
- "ID": "ad611ebd-533a-4bd4-897e-945f86a5e3e9",
- "Type": "*monetary",
- "Value": null,
- "Directions": {
- "*out": true
- },
- "ExpirationDate": null,
- "Weight": null,
- "DestinationIDs": {
- "FS_USERS": true
- },
- "RatingSubject": null,
- "Categories": null,
- "SharedGroups": null,
- "TimingIDs": null,
- "Timings": null,
- "Disabled": null,
- "Factor": null,
- "Blocker": null
- }
- }]
- }]
- },
- "ActionTriggers": [{
- "ID": "STANDARD_TRIGGERS",
- "UniqueID": "6f092f36-bc1b-490a-b6b5-b5149240a9c3",
- "ThresholdType": "*min_balance",
- "ThresholdValue": 2,
- "Recurrent": false,
- "MinSleep": 0,
- "ExpirationDate": "0001-01-01T00:00:00Z",
- "ActivationDate": "0001-01-01T00:00:00Z",
- "Balance": {
- "Uuid": null,
- "ID": null,
- "Type": "*monetary",
- "Value": null,
- "Directions": {
- "*out": true
- },
- "ExpirationDate": null,
- "Weight": null,
- "DestinationIDs": null,
- "RatingSubject": null,
- "Categories": null,
- "SharedGroups": null,
- "TimingIDs": null,
- "Timings": null,
- "Disabled": null,
- "Factor": null,
- "Blocker": null
- },
- "Weight": 10,
- "ActionsID": "LOG_WARNING",
- "MinQueuedItems": 0,
- "Executed": true,
- "LastExecutionTime": "2017-11-10T03:59:28.360750477Z"
- }, {
- "ID": "STANDARD_TRIGGERS",
- "UniqueID": "ad611ebd-533a-4bd4-897e-945f86a5e3e9",
- "ThresholdType": "*max_event_counter",
- "ThresholdValue": 5,
- "Recurrent": false,
- "MinSleep": 0,
- "ExpirationDate": "0001-01-01T00:00:00Z",
- "ActivationDate": "0001-01-01T00:00:00Z",
- "Balance": {
- "Uuid": null,
- "ID": "ad611ebd-533a-4bd4-897e-945f86a5e3e9",
- "Type": "*monetary",
- "Value": null,
- "Directions": {
- "*out": true
- },
- "ExpirationDate": null,
- "Weight": null,
- "DestinationIDs": {
- "FS_USERS": true
- },
- "RatingSubject": null,
- "Categories": null,
- "SharedGroups": null,
- "TimingIDs": null,
- "Timings": null,
- "Disabled": null,
- "Factor": null,
- "Blocker": null
- },
- "Weight": 10,
- "ActionsID": "LOG_WARNING",
- "MinQueuedItems": 0,
- "Executed": false,
- "LastExecutionTime": "0001-01-01T00:00:00Z"
- }, {
- "ID": "STANDARD_TRIGGERS",
- "UniqueID": "41a00367-6d6a-4930-bdbf-f6f79ba20e85",
- "ThresholdType": "*max_balance",
- "ThresholdValue": 20,
- "Recurrent": false,
- "MinSleep": 0,
- "ExpirationDate": "0001-01-01T00:00:00Z",
- "ActivationDate": "0001-01-01T00:00:00Z",
- "Balance": {
- "Uuid": null,
- "ID": null,
- "Type": "*monetary",
- "Value": null,
- "Directions": {
- "*out": true
- },
- "ExpirationDate": null,
- "Weight": null,
- "DestinationIDs": null,
- "RatingSubject": null,
- "Categories": null,
- "SharedGroups": null,
- "TimingIDs": null,
- "Timings": null,
- "Disabled": null,
- "Factor": null,
- "Blocker": null
- },
- "Weight": 10,
- "ActionsID": "LOG_WARNING",
- "MinQueuedItems": 0,
- "Executed": false,
- "LastExecutionTime": "0001-01-01T00:00:00Z"
- }, {
- "ID": "STANDARD_TRIGGERS",
- "UniqueID": "b17653b3-8409-4338-be8a-6cceac7ce3d9",
- "ThresholdType": "*max_balance",
- "ThresholdValue": 100,
- "Recurrent": false,
- "MinSleep": 0,
- "ExpirationDate": "0001-01-01T00:00:00Z",
- "ActivationDate": "0001-01-01T00:00:00Z",
- "Balance": {
- "Uuid": null,
- "ID": null,
- "Type": "*monetary",
- "Value": null,
- "Directions": {
- "*out": true
- },
- "ExpirationDate": null,
- "Weight": null,
- "DestinationIDs": null,
- "RatingSubject": null,
- "Categories": null,
- "SharedGroups": null,
- "TimingIDs": null,
- "Timings": null,
- "Disabled": null,
- "Factor": null,
- "Blocker": null
- },
- "Weight": 10,
- "ActionsID": "DISABLE_AND_LOG",
- "MinQueuedItems": 0,
- "Executed": false,
- "LastExecutionTime": "0001-01-01T00:00:00Z"
- }],
- "AllowNegative": false,
- "Disabled": false
- }],
- "error": null
- }
Add Comment
Please, Sign In to add comment