diff --git a/data/postman/Voiceland/CGRates.postman_collection_v2.1.json b/data/postman/Voiceland/CGRates.postman_collection_v2.1.json new file mode 100644 index 000000000..e504ad769 --- /dev/null +++ b/data/postman/Voiceland/CGRates.postman_collection_v2.1.json @@ -0,0 +1,7544 @@ +{ + "info": { + "_postman_id": "b8919625-be4e-44e0-875a-993807f3121e", + "name": "CGRates", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "Offline TP (Tariff Plan)", + "item": [ + { + "name": "TP Timing", + "item": [ + { + "name": "ApierV1.SetTPTiming", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 3,\n\"method\": \"ApierV1.SetTPTiming\",\n\"params\": [\n{\n\t\"TPid\": \"TP_TIMING_TEST\",\n\t\"ID\":\"TP_TIMINGID\",\n\t\"TimingId\": \"TP_TIMING_ID\",\n\t\"MonthDays\": \"*any\",\n\t\"Months\": \"*any\",\n\t\"Time\": \"00:00:00\",\n\t\"WeekDays\": \"*any\",\n\t\"Years\": \"*any\"\n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetTPTiming", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 5,\n\"method\": \"ApierV1.GetTPTiming\",\n\"params\": [\n{\n\t\"TPid\": \"TP_TIMING_TEST\",\n\t\"ID\":\"TP_TIMINGID\",\n\t\"TimingId\": \"TP_TIMING_ID\"\n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetTPTimingIds", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 1,\n\"method\": \"ApierV1.GetTPTimingIds\",\n\"params\": [\n{\n\"TPid\": \"Tim_always\"\n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "Remove TP Timing", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 1,\n\"method\": \"ApierV1.RemoveTPTiming\",\n\"params\": [\n{\n\"TPid\": \"TEST_SQL\"\n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "id": "ca5a193b-eb51-4062-9136-f817a36bcfed", + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "id": "0555884a-5b75-42cd-ab61-fda1154101ae", + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "ApierV1.GetTPIds", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\n\"method\": \"ApierV1.GetTPIds\",\n\"params\": []\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "LoadTariffPlanFromStorDb --> OnlineDB", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV1.LoadTariffPlanFromStorDb\",\n \"params\": [\n {\n \t\"TPid\":\"CGR_API_TESTS\"\n \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "id": "ca5a193b-eb51-4062-9136-f817a36bcfed", + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "id": "0555884a-5b75-42cd-ab61-fda1154101ae", + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "Cache", + "item": [ + { + "name": "CacheSv1.GetCacheStats", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"CacheSv1.GetCacheStats\",\n \"params\": [],\n \"id\": 1\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "CacheSv1.GetItemIDs", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\"method\":\"CacheSv1.GetItemIDs\",\n\"params\":[{\n\t\"CacheID\":\"attribute_profiles\",\n\t\"ItemIDPrefix\":\"\"\n\t\n}],\"id\":11}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "CacheSv1.HasItem", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\"method\":\"CacheSv1.HasItem\",\n\"params\":[{\n\t\"CacheID\":\"attribute_profiles\",\n\t\"ItemIDPrefix\":\"\"\n\t\n}],\"id\":11}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "CacheSv1.GetItemExpiryTime", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\"method\":\"CacheSv1.GetItemExpiryTime\",\n\"params\":[{\n\t\"CacheID\":\"attribute_profiles\",\n\t\"ItemIDPrefix\":\"\"\n\t\n}],\"id\":11}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "CacheSv1.RemoveItem", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\"method\":\"CacheSv1.RemoveItem\",\n\"params\":[{\n\t\"CacheID\":\"attribute_profiles\",\n\t\"ItemIDPrefix\":\"\"\n\t\n}],\"id\":11}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "CacheSv1.PrecacheStatus", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"method\":\"CacheSv1.PrecacheStatus\",\n\t\"params\":[{}],\n\t\"id\":11\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "CacheSv1.HasGroup", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"method\":\"CacheSv1.HasGroup\",\n\t\"params\":[{\n\t\t\"CacheID\":\"attribute_profiles\",\n \t\"GroupID\": \"\"\n\t}],\n\t\"id\":11\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "CacheSv1.FlushCache", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"CacheSv1.FlushCache\",\n \"params\": [\n {\n \"DestinationIDs\": null,\n \"ReverseDestinationIDs\": null,\n \"RatingPlanIDs\": null,\n \"RatingProfileIDs\": null,\n \"ActionIDs\": null,\n \"ActionPlanIDs\": null,\n \"AccountActionPlanIDs\": null,\n \"ActionTriggerIDs\": null,\n \"SharedGroupIDs\": null,\n \"LCRids\": null,\n \"DerivedChargerIDs\": null,\n \"AliasIDs\": null,\n \"ReverseAliasIDs\": null,\n \"ResourceProfileIDs\": null,\n \"ResourceIDs\": null,\n \"StatsQueueIDs\": null,\n \"StatsQueueProfileIDs\": null,\n \"ThresholdIDs\": null,\n \"ThresholdProfileIDs\": null,\n \"FilterIDs\": null,\n \"SupplierProfileIDs\": null,\n \"AttributeProfileIDs\": null,\n \"ChargerProfileIDs\": null,\n \"FlushAll\": true\n }\n ],\n \"id\": 3\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "CacheSv1.FlushCache USER Attribute", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"CacheSv1.FlushCache\",\n \"params\": [\n {\n \"DestinationIDs\": null,\n \"ReverseDestinationIDs\": null,\n \"RatingPlanIDs\": null,\n \"RatingProfileIDs\": null,\n \"ActionIDs\": null,\n \"ActionPlanIDs\": null,\n \"AccountActionPlanIDs\": null,\n \"ActionTriggerIDs\": null,\n \"SharedGroupIDs\": null,\n \"LCRids\": null,\n \"DerivedChargerIDs\": null,\n \"AliasIDs\": null,\n \"ReverseAliasIDs\": null,\n \"ResourceProfileIDs\": null,\n \"ResourceIDs\": null,\n \"StatsQueueIDs\": null,\n \"StatsQueueProfileIDs\": null,\n \"ThresholdIDs\": null,\n \"ThresholdProfileIDs\": null,\n \"FilterIDs\": null,\n \"SupplierProfileIDs\": null,\n \"AttributeProfileIDs\": [\"+30xxxxxxxxxx\"],\n \"ChargerProfileIDs\": null,\n \"FlushAll\": false\n }\n ],\n \"id\": 3\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "CacheSv1.ReloadCache", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"CacheSv1.ReloadCache\",\n \"params\": [\n {\n \"DestinationIDs\": [\n \n ],\n \"ReverseDestinationIDs\": [\n \n ],\n \"RatingPlanIDs\": [\n \n ],\n \"RatingProfileIDs\": [\n ],\n \"ActionIDs\": [\n \n ],\n \"ActionPlanIDs\": [\n \n ],\n \"AccountActionPlanIDs\": [\n \"cgrates.org:+30xxxxxxxxx\",\n \"cgrates.org:+30xxxxxxxxxx\"\n ],\n \"ActionTriggerIDs\": [\n \n ],\n \"SharedGroupIDs\": [],\n \"ResourceProfileIDs\": [],\n \"ResourceIDs\": [],\n \"StatsQueueIDs\": [],\n \"StatsQueueProfileIDs\": [],\n \"ThresholdIDs\": [],\n \"ThresholdProfileIDs\": [],\n \"FilterIDs\": [],\n \"SupplierProfileIDs\": [],\n \"AttributeProfileIDs\": [\"+30xxxxxxxxxx\"],\n \"ChargerProfileIDs\": [],\n \"DispatcherProfileIDs\": [],\n \"DispatcherHostIDs\": [],\n \"DispatcherRoutesIDs\": [],\n \"FlushAll\": true\n }\n ],\n \"id\": 0\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "Attributes", + "item": [ + { + "name": "AttributeSv1.ProcessEvent", + "item": [ + { + "name": "AttributeSv1.ProcessEvent", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"AttributeSv1.ProcessEvent\",\n \"params\": [\n {\n \"AttributeIDs\": null,\n \"Context\": \"*sessions\",\n \"ProcessRuns\": null,\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"91db806d-47b5-4346-b74e-bf699f2dd4d6\",\n \"Time\": null,\n \"Event\": {\n \"Account\": \"+30xxxxxxxxx\",\n \"Category\": \"call\",\n \"Destination\": \"+30xxxxxxxxxx\",\n \"OriginHost\": \"10.156.0.13\",\n \"OriginID\": \"313536313130323331313531373435-11zx3su0dxng_user_860952\",\n \"RequestType\": \"*prepaid\",\n \"SetupTime\": \"1561102312\",\n \"Source\": \"OpenSIPS-01\",\n \"Tenant\": \"cgrates.org\",\n \"User-Agent\": \"snomD120/10.1.33.33\",\n \"User-Agent-IP\": \"1.1.1.1\"\n }\n }\n ],\n \"id\": 244886\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "AttributeSv1.ProcessEvent 1", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"AttributeSv1.ProcessEvent\",\n \"params\": [\n {\n \"AttributeIDs\": null,\n \"Context\": \"*sessions\",\n \"ProcessRuns\": null,\n \"Tenant\": \"another_tenant\",\n \"ID\": \"417c5580-e06b-4bfb-bdc7-37357ed6f004\",\n \"Time\": null,\n \"Event\": {\n \"Account\": \"+30xxxxxxxxxx\"\n }\n }\n ],\n \"id\": 244887\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "AttributeSv1.ProcessEvent 2", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"AttributeSv1.ProcessEvent\",\n \"params\": [\n {\n \"AttributeIDs\": null,\n \"Context\": \"*sessions\",\n \"ProcessRuns\": null,\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"b8610dba-6b5b-4a03-b5ad-097193fd3909\",\n \"Time\": null,\n \"Event\": {\n \"Account\": \"+30xxxxxxxxx\",\n \"AnswerTime\": \"1561102316\",\n \"Category\": \"call\",\n \"Destination\": \"302107001398\",\n \"DialogEntry\": 3530,\n \"DialogID\": 1041695533,\n \"OriginHost\": \"10.156.0.13\",\n \"OriginID\": \"313536313130323331313531373435-11zx3su0dxng_user_860952\",\n \"RequestType\": \"*prepaid\",\n \"SetupTime\": \"1561102312\",\n \"Source\": \"OpenSIPS-01\",\n \"Tenant\": \"cgrates.org\",\n \"User-Agent\": \"snomD120/10.1.33.33\",\n \"User-Agent-IP\": \"1.1.1.1\"\n }\n }\n ],\n \"id\": 244888\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "AttributeSv1.ProcessEvent 3", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"AttributeSv1.ProcessEvent\",\n \"params\": [\n{\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"ATTR_CATEGORY_UK_MobileO2GBRCN_447802\",\n \"Event\": {\n \"Account\": \"101\",\n \"Category\": \"mo_call\",\n \"Destination\": \"302\",\n \"MSRN\": \"4478020001\",\n \"OriginID\": \"145769965\",\n \"RequestType\": \"*pseudoprepaid\",\n \"SetupTime\": \"*now\",\n \"ToR\": \"*voice\",\n \"Usage\": \"24h\"\n },\n \"Contexts\": [\n \"*sessions\"\n ],\n \"FilterIDs\": [\n \"*rsr::~MSRN(^447802)\"\n ],\n \"ActivationInterval\": null,\n \"Attributes\": [\n {\n \"FieldName\": \"Category\",\n \"Initial\": \"mo_call\",\n \"Substitute\": [\n {\n \"Rules\": \"~Category:s/(.*)/${1}_UK_Mobile___O2__GBRCN_/\",\n \"AllFiltersMatch\": true\n }\n ],\n \"Append\": false\n }\n ],\n \"Blocker\": true,\n \"Weight\": 10\n}\n ],\n \"id\": 2\n}" + }, + "url": { + "raw": "http://sip1.de.cgrates.org:2080/jsonrpc", + "protocol": "http", + "host": [ + "sip1", + "de", + "cgrates", + "org" + ], + "port": "2080", + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "AttributeSv1.ProcessEvent 4", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"AttributeSv1.ProcessEvent\",\n \"params\": [\n {\n \"Event\": {\n \"Destination\": \"*\"\n },\n \"Context\": \"simpleauth\",\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"ATTR_1001_SIMPLEAUTH\"\n }\n ],\n \"id\": 0\n}" + }, + "url": { + "raw": "http://sip1.de.cgrates.org:2080/jsonrpc", + "protocol": "http", + "host": [ + "sip1", + "de", + "cgrates", + "org" + ], + "port": "2080", + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "ApierV1.SetAttributeProfile +30xxxxxxxxx", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetAttributeProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"+30xxxxxxxxx\",\n \"Contexts\": [\n \"*sessions\"\n ],\n \"FilterIDs\": [\n \"*string:~Account:+30xxxxxxxxx\"\n ],\n \"ActivationInterval\": null,\n \"Attributes\": [\n {\n \"FilterIDs\": null,\n \"FieldName\": \"SipUserName\",\n \"Type\": \"\",\n \"Value\": [\n {\n \"Rules\": \"+30xxxxxxxxx\",\n \"AllFiltersMatch\": true\n }\n ]\n },\n {\n \"FilterIDs\": null,\n \"FieldName\": \"SipPassword\",\n \"Type\": \"\",\n \"Value\": [\n {\n \"Rules\": \"xe3r3xJp@o1D*yeV\",\n \"AllFiltersMatch\": true\n }\n ]\n },\n {\n \"FilterIDs\": null,\n \"FieldName\": \"Region\",\n \"Type\": \"\",\n \"Value\": [\n {\n \"Rules\": \"Europe\",\n \"AllFiltersMatch\": true\n }\n ]\n },\n {\n \"FilterIDs\": null,\n \"FieldName\": \"Country\",\n \"Type\": \"\",\n \"Value\": [\n {\n \"Rules\": \"Greece\",\n \"AllFiltersMatch\": true\n }\n ]\n },\n {\n \"FilterIDs\": null,\n \"FieldName\": \"RequestType\",\n \"Type\": \"\",\n \"Value\": [\n {\n \"Rules\": \"*prepaid\",\n \"AllFiltersMatch\": true\n }\n ]\n },\n {\n \"FilterIDs\": null,\n \"FieldName\": \"MaxSessions\",\n \"Type\": \"\",\n \"Value\": [\n {\n \"Rules\": \"1\",\n \"AllFiltersMatch\": true\n }\n ]\n },\n {\n \"FilterIDs\": null,\n \"FieldName\": \"Max_Incoming_Sessions\",\n \"Type\": \"\",\n \"Value\": [\n {\n \"Rules\": \"1\",\n \"AllFiltersMatch\": true\n }\n ]\n },\n {\n \"FilterIDs\": null,\n \"FieldName\": \"Max_Outgoing_Sessions\",\n \"Type\": \"\",\n \"Value\": [\n {\n \"Rules\": \"1\",\n \"AllFiltersMatch\": true\n }\n ]\n },\n {\n \"FilterIDs\": null,\n \"FieldName\": \"MaxSessionTime\",\n \"Type\": \"\",\n \"Value\": [\n {\n \"Rules\": \"3600\",\n \"AllFiltersMatch\": true\n }\n ]\n },\n {\n \"FilterIDs\": null,\n \"FieldName\": \"MaxCallsPerSecond\",\n \"Type\": \"\",\n \"Value\": [\n {\n \"Rules\": \"1\",\n \"AllFiltersMatch\": true\n }\n ]\n },\n {\n \"FilterIDs\": null,\n \"FieldName\": \"Authorize_wrong_password_limit\",\n \"Type\": \"\",\n \"Value\": [\n {\n \"Rules\": \"20\",\n \"AllFiltersMatch\": true\n }\n ]\n },\n {\n \"FilterIDs\": null,\n \"FieldName\": \"Authorize_no_such_user_limit\",\n \"Type\": \"\",\n \"Value\": [\n {\n \"Rules\": \"20\",\n \"AllFiltersMatch\": true\n }\n ]\n },\n {\n \"FilterIDs\": null,\n \"FieldName\": \"Block_Incoming_Calls\",\n \"Type\": \"\",\n \"Value\": [\n {\n \"Rules\": \"0\",\n \"AllFiltersMatch\": true\n }\n ]\n },\n {\n \"FilterIDs\": null,\n \"FieldName\": \"Hide_CLI\",\n \"Type\": \"\",\n \"Value\": [\n {\n \"Rules\": \"0\",\n \"AllFiltersMatch\": true\n }\n ]\n },\n {\n \"FilterIDs\": null,\n \"FieldName\": \"Forwarding_Service\",\n \"Type\": \"\",\n \"Value\": [\n {\n \"Rules\": \"0\",\n \"AllFiltersMatch\": true\n }\n ]\n },\n {\n \"FilterIDs\": null,\n \"FieldName\": \"Voicemail_Service\",\n \"Type\": \"\",\n \"Value\": [\n {\n \"Rules\": \"0\",\n \"AllFiltersMatch\": true\n }\n ]\n },\n {\n \"FilterIDs\": null,\n \"FieldName\": \"ResourceAllocation\",\n \"Type\": \"*contant\",\n \"Value\": [\n {\n \"Rules\": \"ResGroup1\",\n \"AllFiltersMatch\": true\n }\n ]\n }\n ],\n \"Blocker\": false,\n \"Weight\": 10\n }\n ],\n \"id\": 2\n}" + }, + "url": { + "raw": "http://cgrates1.cgrates.org:2080/jsonrpc", + "protocol": "http", + "host": [ + "cgrates1", + "cgrates", + "org" + ], + "port": "2080", + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetAttributeProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\":\"0\",\n \"method\":\"ApierV1.GetAttributeProfile\",\n \"params\":[\n {\n \"Tenant\":\"cgrates.org\",\n \"ID\":\"ATTR_SPL_TESTSUPPLIER1_Out\"\n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveAttributeProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\":\"0\",\n \"method\":\"ApierV1.RemoveAttributeProfile\",\n \"params\":[\n {\n \"Tenant\":\"cgrates.org\",\n \"ID\":\"+30xxxxxxxxxx\"\n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetAttributeProfileIDs", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\":\"0\",\n \"method\":\"ApierV1.GetAttributeProfileIDs\",\n \"params\":[\n {\n \"Tenant\":\"cgrates.org\",\n \"ID\":[]\n }\n ]\n}\n " + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetAttributeProfile ATTR_SPL_TESTSUPPLIER1_In", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetAttributeProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"ATTR_SPL_TESTSUPPLIER1_In\",\n \"Contexts\": [\n \"*chargers\"\n ],\n \"FilterIDs\": [\n \n ],\n \"ActivationInterval\": null,\n \"Attributes\": [\n {\n \"FilterIDs\": null,\n \"FieldName\": \"Subject\",\n \"Type\": \"*constant\",\n \"Value\": [\n {\n \"Rules\": \"TESTSUPPLIER1-IN\",\n \"AllFiltersMatch\": true\n }\n ]\n }\n \n ],\n \"Blocker\": false,\n \"Weight\": 10\n }\n ],\n \"id\": 2\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetAttributeProfile ATTR_SPL_TESTSUPPLIER1_Out", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetAttributeProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"ATTR_SPL_TESTSUPPLIER1_Out\",\n \"Contexts\": [\n \"*chargers\"\n ],\n \"FilterIDs\": [\n \n ],\n \"ActivationInterval\": null,\n \"Attributes\": [\n {\n \"FilterIDs\": null,\n \"FieldName\": \"Subject\",\n \"Type\": \"*constant\",\n \"Value\": [\n {\n \"Rules\": \"TESTSUPPLIER1-OUT\",\n \"AllFiltersMatch\": true\n }\n ]\n }\n \n ],\n \"Blocker\": false,\n \"Weight\": 10\n }\n ],\n \"id\": 2\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetAttributeProfile ATTR_CATEGORY_CALL_IN", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetAttributeProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"ATTR_CATEGORY_CALL_IN\",\n \"Contexts\": [\n \"*chargers\"\n ],\n \"FilterIDs\": [\n \n ],\n \"ActivationInterval\": null,\n \"Attributes\": [\n {\n \"FilterIDs\": null,\n \"FieldName\": \"Category\",\n \"Type\": \"*constant\",\n \"Value\": [\n {\n \"Rules\": \"call-in\",\n \"AllFiltersMatch\": true\n }\n ]\n }\n \n ],\n \"Blocker\": false,\n \"Weight\": 10\n }\n ],\n \"id\": 2\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetAttributeProfile ATTR_CATEGORY_CALL_OUT", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetAttributeProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"ATTR_CATEGORY_CALL_OUT\",\n \"Contexts\": [\n \"*chargers\"\n ],\n \"FilterIDs\": [\n \n ],\n \"ActivationInterval\": null,\n \"Attributes\": [\n {\n \"FilterIDs\": null,\n \"FieldName\": \"Category\",\n \"Type\": \"*constant\",\n \"Value\": [\n {\n \"Rules\": \"call-out\",\n \"AllFiltersMatch\": true\n }\n ]\n }\n \n ],\n \"Blocker\": false,\n \"Weight\": 10\n }\n ],\n \"id\": 2\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "ActionPlan", + "item": [ + { + "name": "TpActionsPlans", + "item": [ + { + "name": "ApierV1. GetTPActionPlanIds", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetTPActionPlanIds\",\n \"params\": [\n {\n \"TPid\": \"CGR_API_TESTS\" \n \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetTPActionPlan", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetTPActionPlan\",\n \"params\": [\n {\n \"TPid\": \"CGR_API_TESTS\" , \n \t\t\"ID\": \"always\" , \n\t\t\t\"ActionPlan\" : [\n\t\t \t{\n\t\t \t\t\"ActionsId\" : \"fafsafa\",\n \t\t\t\"TimingId\" : \"*any\",\n \t\t\t\"Weight\" : 10\t\n\t\t \t}\n\t\t \t]\n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1. GetTPActionPlan", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetTPActionPlan\",\n \"params\": [\n {\n \"TPid\": \"CGR_API_TESTS\" , \n \t\t\"ID\": \"always\" \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1. RemoveTPActionPlan", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.RemoveTPActionPlan\",\n \"params\": [\n {\n \"TPid\":\"CGR_API_TESTS\",\n \"ID\":\"always\"\n \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "ApierV1.GetAccountActionPlan", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetAccountActionPlan\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"Account\": \"+30xxxxxxxxxx\"\n \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetActionPlan", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetActionPlan\",\n \"params\": [\n {\n \"Id\": \"AP_PACKAGE_10\"\n \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetActionPlanIDs", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetActionPlanIDs\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"Limit\": null,\n \"Offset\": null\n }\n ],\n \"id\": 10\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveActionTiming (Remove ActionPlan From Account)", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.RemoveActionTiming\",\n \"params\": [\n {\n \"ActionPlanId\": \"AP_VOICE_PACKAGE_200\",\n \"ActionTimingId\": \"\",\n \"Tenant\": \"sip.TEST_SUPPLIER_NAME.gr\",\n \"Account\": \"+30xxxxxxxxx\",\n \"ReloadScheduler\": true\n \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "Accounts", + "item": [ + { + "name": "ApierV2.GetAccounts", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV2.GetAccounts\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\"\n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV2.SetAccount", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\"method\": \"ApierV2.SetAccount\",\n \"params\": [{\n \"Tenant\": \"cgrates.org\", \n \"Account\": \"+30xxxxxxxxx\", \n \"ActionPlanIDs\": [\"ACP_+30xxxxxxxxx_TOPUP_PKG_1000_GR\"], \n \"ActionPlansOverwrite\": true,\n \"AllowNegative\": false,\n \"Disabled\": false,\n \"ReloadScheduler\": true \n }]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV2.GetAccount", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV2.GetAccount\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"Account\": \"+30xxxxxxxxx\"\n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveAccount", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\"method\": \"ApierV1.RemoveAccount\",\n \"params\": [{\n \"Tenant\": \"cgrates.org\", \n \"Account\": \"1003\", \n \"ReloadScheduler\": true\n }]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetAccount", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\"method\": \"ApierV1.SetAccount\",\n \"params\": [{\n \"Tenant\": \"cgrates.org\", \n \"Account\": \"+30xxxxxxxxx\", \n \"ActionPlanId\": \"ACP_+30xxxxxxxxx_TOPUP_PKG_1000_GR\", \n \"AllowNegative\": false,\n \"Disabled\": false,\n \"ReloadScheduler\": true \n }]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetAccount", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetAccount\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"Account\": \"+30xxxxxxxxx\"\n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetAccountActionPlan", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetAccountActionPlan\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"Account\": \"+30xxxxxxxxxx\"\n \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "Balances", + "item": [ + { + "name": "Sessions", + "item": [ + { + "name": "Responder.Debit", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"Responder.Debit\",\n \"params\": [{\n \"Direction\": \"*out\",\n \"Category\": \"\",\n \"Tenant\": \"cgrates.org\",\n \"Subject\": \"\",\n \"Account\": \"+30xxxxxxxxxx\",\n \"Destination\": \"\",\n \"TimeStart\": \"0001-01-01T00:00:00Z\",\n \"TimeEnd\": \"0001-01-01T00:00:00Z\",\n \"LoopIndex\": 0,\n \"DurationIndex\": 0,\n \"FallbackSubject\": \"\",\n \"RatingInfos\": null,\n \"Increments\": null,\n \"TOR\": \"\",\n \"ExtraFields\": null,\n \"MaxRate\": 0,\n \"MaxRateUnit\": 0,\n \"MaxCostSoFar\": 0,\n \"CgrID\": \"\",\n \"RunID\": \"\",\n \"ForceDuration\": false,\n \"PerformRounding\": false,\n \"DryRun\": false,\n \"DenyNegativeAccount\": false\n }],\n \"id\": 16\n}\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "Responder.MaxDebit", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"Responder.MaxDebit\",\n \"params\": [\n {\n \"Category\": \"call\",\n \"Tenant\": \"cgrates.org\",\n \"Subject\": \"+30xxxxxxxxx\",\n \"Account\": \"+30xxxxxxxxx\",\n \"Destination\": \"+30xxxxxxxxxx\",\n \"TimeStart\": \"2019-06-20T14:08:42Z\",\n \"TimeEnd\": \"2019-06-20T14:08:52Z\",\n \"LoopIndex\": 0,\n \"DurationIndex\": 10000000000,\n \"FallbackSubject\": \"\",\n \"RatingInfos\": null,\n \"Increments\": null,\n \"TOR\": \"\",\n \"ExtraFields\": null,\n \"MaxRate\": 0,\n \"MaxRateUnit\": 0,\n \"MaxCostSoFar\": 0,\n \"CgrID\": \"f10b93ecdb35da33e539cc5274ff4c228d25617c\",\n \"RunID\": \"*default\",\n \"ForceDuration\": false,\n \"PerformRounding\": false,\n \"DryRun\": false,\n \"DenyNegativeAccount\": false\n }\n ],\n \"id\": 220\n}\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "Responder.GetMaxSessionTime", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"Responder.GetMaxSessionTime\",\n \"params\": [\n {\n \"Category\": \"call\",\n \"Tenant\": \"cgrates.org\",\n \"Subject\": \"+30xxxxxxxxx\",\n \"Account\": \"+30xxxxxxxxx\",\n \"Destination\": \"+30xxxxxxxxxx\",\n \"TimeStart\": \"2019-06-20T14:36:32Z\",\n \"TimeEnd\": \"2019-06-20T17:36:32Z\",\n \"LoopIndex\": 0,\n \"DurationIndex\": 0,\n \"FallbackSubject\": \"\",\n \"RatingInfos\": null,\n \"Increments\": null,\n \"TOR\": \"\",\n \"ExtraFields\": {\n \"Authorize_no_such_user_limit\": \"20\",\n \"Authorize_wrong_password_limit\": \"20\",\n \"Block_Incoming_Calls\": \"0\",\n \"Country\": \"Greece\",\n \"Forwarding_Service\": \"0\",\n \"Hide_CLI\": \"0\",\n \"MaxCallsPerSecond\": \"1\",\n \"MaxSessionTime\": \"3600\",\n \"MaxSessions\": \"5\",\n \"Max_Incoming_Sessions\": \"5\",\n \"Max_Outgoing_Sessions\": \"5\",\n \"Region\": \"Europe\",\n \"SipPassword\": \"|!xB8H7]}ych&XMY\",\n \"SipUserName\": \"+30xxxxxxxxx\",\n \"User-Agent\": \"snomD120/10.1.33.33\",\n \"User-Agent-IP\": \"1.1.1.1\",\n \"Voicemail_Service\": \"0\"\n },\n \"MaxRate\": 0,\n \"MaxRateUnit\": 0,\n \"MaxCostSoFar\": 0,\n \"CgrID\": \"b6a38f4df90c810cfd86445a490994e1357c7d9c\",\n \"RunID\": \"*default\",\n \"ForceDuration\": false,\n \"PerformRounding\": false,\n \"DryRun\": false,\n \"DenyNegativeAccount\": false\n }\n ],\n \"id\": 235\n}\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ResourceSv1.AuthorizeResources", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ResourceSv1.AuthorizeResources\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"114a0d61-fbe8-41dc-a6f2-8f0c081c0c58\",\n \"Time\": null,\n \"Event\": {\n \"Account\": \"+30xxxxxxxxx\",\n \"Authorize_no_such_user_limit\": \"20\",\n \"Authorize_wrong_password_limit\": \"20\",\n \"Block_Incoming_Calls\": \"0\",\n \"CGRID\": \"b6a38f4df90c810cfd86445a490994e1357c7d9c\",\n \"Category\": \"call\",\n \"Country\": \"Greece\",\n \"Destination\": \"+30xxxxxxxxxx\",\n \"Forwarding_Service\": \"0\",\n \"Hide_CLI\": \"0\",\n \"MaxCallsPerSecond\": \"1\",\n \"MaxSessionTime\": \"3600\",\n \"MaxSessions\": \"5\",\n \"Max_Incoming_Sessions\": \"5\",\n \"Max_Outgoing_Sessions\": \"5\",\n \"OriginID\": \"313536313034313339303536343939-j1rxhvkxpv7i_user_183964\",\n \"Region\": \"Europe\",\n \"RequestType\": \"*prepaid\",\n \"SetupTime\": \"1561041392\",\n \"SipPassword\": \"|!xB8H7]}ych&XMY\",\n \"SipUserName\": \"+30xxxxxxxxx\",\n \"Tenant\": \"cgrates.org\",\n \"Usage\": 10800000000000,\n \"User-Agent\": \"snomD120/10.1.33.33\",\n \"User-Agent-IP\": \"1.1.1.1\",\n \"Voicemail_Service\": \"0\"\n },\n \"UsageID\": \"313536313034313339303536343939-j1rxhvkxpv7i_user_183964\",\n \"UsageTTL\": null,\n \"Units\": 1\n }\n ],\n \"id\": 3\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "ApierV2.GetAccount (Get Account Balances)", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV2.GetAccount\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"Account\": \"+30xxxxxxxxx\"\n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.AddBalance *monetary", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"method\": \"ApierV1.AddBalance\",\r\n \"params\": [{\r\n \"Tenant\": \"cgrates.org\",\r\n \"Account\": \"test\",\r\n \"BalanceType\": \"*monetary\",\r\n \"BalanceUUID\": \"883a8cb2-659b-4353-a939-7d90565e3332\",\r\n \"BalanceID\": \"WALLET100\",\r\n \"Directions\": null,\r\n \"Value\": 100,\r\n \"ExpiryTime\": \"*unlimited\",\r\n \"RatingSubject\": null,\r\n \"Categories\": null,\r\n \"DestinationIds\": \"test;test1\",\r\n \"TimingIds\": \"*any\",\r\n \"Weight\": 10,\r\n \"SharedGroups\": null,\r\n \"Overwrite\": true,\r\n \"Blocker\": false,\r\n \"Disabled\": false,\r\n \"Cdrlog\" : true\r\n }\r\n \r\n ],\r\n \"id\": 6\r\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.AddBalance *voice ONLY", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"method\": \"ApierV1.AddBalance\",\r\n \"params\": [{\r\n \"Tenant\": \"cgrates.org\",\r\n \"Account\": \"+30xxxxxxxxx\",\r\n \"BalanceType\": \"*voice1\",\r\n \"BalanceUUID\": \"883a8cb2-659b-4353-a939-7d90565e3331\",\r\n \"BalanceID\": \"BalanceID1\",\r\n \"Directions\": null,\r\n \"Value\": 100,\r\n \"ExpiryTime\": \"*unlimited\",\r\n \"RatingSubject\": null,\r\n \"Categories\": null,\r\n \"DestinationIds\": \"*any\",\r\n \"TimingIds\": \"*any\",\r\n \"Weight\": 10,\r\n \"SharedGroups\": null,\r\n \"Overwrite\": true,\r\n \"Blocker\": false,\r\n \"Disabled\": false,\r\n \"Cdrlog\" : true\r\n }\r\n \r\n ],\r\n \"id\": 6\r\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.AddBalance both test Copy", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"method\": \"ApierV1.AddBalance\",\r\n \"params\": [\r\n \t {\r\n \"Tenant\": \"cgrates.org\",\r\n \"Account\": \"+30xxxxxxxxx\",\r\n \"BalanceType\": \"*voice\",\r\n \"BalanceUUID\": \"e11ae605-9ca1-402d-930c-581893e54f33\",\r\n \"BalanceID\": null,\r\n \"Directions\": \"*out\",\r\n \"Value\": 30000000000000,\r\n \"ExpiryTime\": \"*unlimited\",\r\n \"RatingSubject\": null,\r\n \"Categories\": null,\r\n \"DestinationIds\": \"DST_+30xxxxxxxxxx\",\r\n \"TimingIds\": \"*any\",\r\n \"Weight\": 20,\r\n \"SharedGroups\": null,\r\n \"Overwrite\": true,\r\n \"Blocker\": false,\r\n \"Disabled\": false,\r\n \"Cdrlog\" : true\r\n }\r\n ],\r\n \"id\": 6\r\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetBalance *Monetary", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"method\": \"ApierV1.SetBalance\",\r\n \"params\": [{\r\n \"Tenant\": \"cgrates.org\",\r\n \"Account\": \"+30xxxxxxxxx\",\r\n \"BalanceType\": \"*monetary\",\r\n \"BalanceUUID\": null,\r\n \"BalanceID\": \"balance1\",\r\n \"Directions\": null,\r\n \"Value\": 100,\r\n \"ExpiryTime\": null,\r\n \"RatingSubject\": null,\r\n \"Categories\": null,\r\n \"DestinationIds\": null,\r\n \"TimingIds\": null,\r\n \"Weight\": null,\r\n \"SharedGroups\": null,\r\n \"Blocker\": null,\r\n \"Disabled\": null\r\n }],\r\n \"id\": 6\r\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetBalance *Voice", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"method\": \"ApierV1.SetBalance\",\r\n \"params\": [{\r\n \"Tenant\": \"cgrates.org\",\r\n \"Account\": \"+30xxxxxxxxx\",\r\n \"BalanceType\": \"*voice\",\r\n \"BalanceUUID\": \"5a2fb811-1694-46bf-8066-6065a849ecf8\",\r\n \"BalanceID\": \"\",\r\n \"Directions\": \"*out\",\r\n \"Value\": 1000000,\r\n \"ExpiryTime\": null,\r\n \"RatingSubject\": null,\r\n \"Categories\": null,\r\n \"DestinationIds\": \"DST_+30xxxxxxxxxx\",\r\n \"TimingIds\": null,\r\n \"Weight\": 10,\r\n \"SharedGroups\": null,\r\n \"Blocker\": null,\r\n \"Disabled\": null\r\n }],\r\n \"id\": 6\r\n}\r\n\r\n\r\n\r\n\r\n\r\n\r\n " + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.DebitBalance", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.DebitBalance\",\n \"params\": [{\n \"Tenant\": \"cgrates.org\",\n \"Account\": \"+30xxxxxxxxx\",\n \"BalanceUuid\": \"e9c0a7f4-8904-481d-8b2d-a08d9a2b311c\",\n \"BalanceId\": \"23456\",\n \"BalanceType\": \"*monetary\",\n \"Directions\": null,\n \"Value\": 8,\n \"ExpiryTime\": null,\n \"RatingSubject\": null,\n \"Categories\": null,\n \"DestinationIds\": null,\n \"TimingIds\": null,\n \"Weight\": null,\n \"SharedGroups\": null,\n \"Overwrite\": false,\n \"Blocker\": null,\n \"Disabled\": null,\n \"Cdrlog\": null,\n \t\"ExtraData\": null\n \t\t\n }],\n \"id\": 5\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetBalance *Voice Incoming Calls", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetBalance\",\n \"params\": [{\n \"Tenant\": \"cgrates.org\",\n \"Account\": \"+30xxxxxxxxxx\",\n \"BalanceType\": \"*voice\",\n \"BalanceUUID\": null,\n \"BalanceID\": \"9d867c57-31b4-407d-afc7-fb4dc359ae4\",\n \"Directions\": \"*out\",\n \"Value\": 600,\n \"ExpiryTime\": null,\n \"RatingSubject\": null,\n \"Categories\": null,\n \"DestinationIds\": null,\n \"TimingIds\": null,\n \"Weight\": null,\n \"SharedGroups\": null,\n \"Blocker\": null,\n \"Disabled\": null\n }],\n \"id\": 28\n}\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveBalances *monetary", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"method\": \"ApierV1.RemoveBalances\",\r\n \"params\": [{\r\n \"Tenant\": \"cgrates.org\",\r\n \"Account\": \"test\",\r\n \"BalanceType\": \"*monetary\",\r\n \"BalanceUUID\": \"914e1dc3-2e44-458d-9fb6-6365bdd9da3d\",\r\n \"BalanceID\": \"WALLET100\",\r\n \"Directions\": null,\r\n \"Value\": 100,\r\n \"ExpiryTime\": \"*unlimited\",\r\n \"RatingSubject\": null,\r\n \"Categories\": null,\r\n \"DestinationIds\": \"test;test1\",\r\n \"TimingIds\": \"*any\",\r\n \"Weight\": 10,\r\n \"SharedGroups\": null,\r\n \"Blocker\": false,\r\n \"Disabled\": false\r\n }],\r\n \"id\": 6\r\n}\r\n\r\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveBalances *voice", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"method\": \"ApierV1.RemoveBalances\",\r\n \"params\": [{\r\n \"Tenant\": \"cgrates.org\",\r\n \"Account\": \"+30xxxxxxxxx\",\r\n \"BalanceType\": \"*voice\",\r\n \"BalanceUUID\": null,\r\n \"BalanceID\": null,\r\n \"Directions\": null,\r\n \"Value\": null,\r\n \"ExpiryTime\": null,\r\n \"RatingSubject\": null,\r\n \"Categories\": null,\r\n \"DestinationIds\": null,\r\n \"TimingIds\": null,\r\n \"Weight\": null,\r\n \"SharedGroups\": null,\r\n \"Blocker\": null,\r\n \"Disabled\": null\r\n }],\r\n \"id\": 6\r\n}\r\n\r\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "CDRs", + "item": [ + { + "name": "ApierV2.GetCdrs", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"id\":\"11111\",\r\n \"method\":\"ApierV2.GetCDRs\",\r\n \"params\":[\r\n {\r\n\t\"RunIDs\":[\"CustomerCharges\"],\r\n\t\"Tenants\":[\"cgrates.org\"],\r\n \"Accounts\":[\"+30xxxxxxxxxx\"],\r\n \"Category\": [\"call-in\"]\r\n }\r\n ]\r\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV2.GetCdrs ALL From Tenant", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"id\":\"11111\",\r\n \"method\":\"ApierV2.GetCDRs\",\r\n \"params\":[\r\n {\r\n\t\"Tenants\":[\"cgrates.org\"],\r\n\t\"Accounts\":[\"+30xxxxxxxxx\"]\r\n\r\n\r\n }\r\n ]\r\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV2.GetCdrs - SPL_TEST_SUPPLIER_NAME getALL", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"id\":\"11111\",\r\n \"method\":\"ApierV2.GetCDRs\",\r\n \"params\":[\r\n {\r\n\t\"RunIDs\":[\"SPL_TEST_SUPPLIER_NAME\"],\r\n\t\"Tenants\":[\"cgrates.org\"],\r\n \"Accounts\":[\"+30xxxxxxxxxx\"]\r\n\r\n }\r\n ]\r\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV2.GetCdrs - CustomerCharges getALL", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"id\":\"11111\",\r\n \"method\":\"ApierV2.GetCDRs\",\r\n \"params\":[\r\n {\r\n\t\"RunIDs\":[\"CustomerCharges\"],\r\n\t\"Tenants\":[\"cgrates.org\"],\r\n \"Accounts\":[\"+30xxxxxxxxx\"]\r\n\r\n }\r\n ]\r\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV2.GetCdrs - CustomerCharges", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"id\":\"11111\",\r\n \"method\":\"ApierV2.GetCDRs\",\r\n \"params\":[\r\n {\r\n\t\"RunIDs\":[\"CustomerCharges\"],\r\n\t\"Tenants\":[\"cgrates.org\"],\r\n \"Accounts\":[\"+30xxxxxxxxx\"],\r\n \"Categories\": [\"call-out\"]\r\n \r\n }\r\n ]\r\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV2.GetCdrs - CustomerCharges INBOUND - INTERNAL-IN", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"id\":\"11111\",\r\n \"method\":\"ApierV2.GetCDRs\",\r\n \"params\":[\r\n {\r\n\t\"RunIDs\":[\"CustomerCharges\"],\r\n\t\"Tenants\":[\"cgrates.org\"],\r\n \"Accounts\":[\"+30xxxxxxxxxx\"],\r\n \"Categories\": [\"call-in\"],\r\n \"Subjects\": [\"INTERNAL-IN\"]\r\n }\r\n ]\r\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV2.GetCdrs - SupplierCharges getALL", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"id\":\"11111\",\r\n \"method\":\"ApierV2.GetCDRs\",\r\n \"params\":[\r\n {\r\n\t\"RunIDs\":[\"SupplierCharges\"],\r\n\t\"Tenants\":[\"cgrates.org\"],\r\n \"Accounts\":[\"+30xxxxxxxxx\"]\r\n }\r\n ]\r\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV2.GetCdrs - SupplierCharges INBOUND - INTERNAL-IN", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"id\":\"11111\",\r\n \"method\":\"ApierV2.GetCDRs\",\r\n \"params\":[\r\n {\r\n\t\"RunIDs\":[\"SupplierCharges\"],\r\n\t\"Tenants\":[\"cgrates.org\"],\r\n \"Accounts\":[\"+30xxxxxxxxxx\"],\r\n \"Categories\": [\"call-in\"],\r\n \"Subjects\": [\"INTERNAL-IN\"]\r\n }\r\n ]\r\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetCdrs", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"id\":\"11111\",\r\n \"method\":\"ApierV1.GetCDRs\",\r\n \"params\":[\r\n {\r\n\t\"RunIDs\":[\"CustomerCharges\"],\r\n\t\"Tenants\":[\"cgrates.org\"],\r\n \"Accounts\":[\"+30xxxxxxxxxx\"],\r\n \"Category\": [\"call-in\"]\r\n }\r\n ]\r\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetCdrs Copy", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"id\":\"11111\",\r\n \"method\":\"ApierV1.GetCDRs\",\r\n \"params\":[\r\n {\r\n\t\"RunIDs\":[\"*default\"],\r\n\t\"Tenants\":[\"cgrates.org\"],\r\n \"Accounts\":[\"+30xxxxxxxxxx\"],\r\n \"Category\": [\"call\"]\r\n }\r\n ]\r\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveCDRs", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"id\":\"11111\",\r\n \"method\":\"ApierV1.RemoveCDRs\",\r\n \"params\":[\r\n {\r\n\t\"RunIDs\":[\"*default\"],\r\n\t\"Tenants\":[\"cgrates.org\"],\r\n \"Accounts\":[\"+30xxxxxxxxxx\"],\r\n \"Category\": [\"call\"]\r\n }\r\n ]\r\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveCDRs ALL From Tenant", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"id\":\"11111\",\r\n \"method\":\"ApierV1.RemoveCDRs\",\r\n \"params\":[\r\n {\r\n\t\"Tenants\":[\"cgrates.org\"]\r\n }\r\n ]\r\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV2.CountCDRs", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"id\":\"11111\",\r\n \"method\":\"ApierV2.CountCDRs\",\r\n \"params\":[\r\n {\r\n\t\"RunIDs\":[\"*default\"],\r\n\t\"Tenants\":[\"cgrates.org\"],\r\n \"Accounts\":[\"+30xxxxxxxxxx\"],\r\n \"Category\": [\"call\"]\r\n }\r\n ]\r\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "Destinations", + "item": [ + { + "name": "TP Destination", + "item": [ + { + "name": "ApierV2.SetTPDestination", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV2.SetTPDestination\",\n \"params\": [\n {\n \t\"TPid\": \"CGR_API_TESTS\",\n \t\"ID\":\"TP_DST_RETAIL_GR_LANDLINE_2019_01\",\n \"DestinationId\": \"TP_DST_RETAIL_GR_LANDLINE_2019_01\",\n \"Prefixes\": [\n \"302\"\n ]\n \n }\n ]\n}" + }, + "url": { + "raw": "http://cgrates1.cgrates.org:2080/jsonrpc", + "protocol": "http", + "host": [ + "cgrates1", + "cgrates", + "org" + ], + "port": "2080", + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetTPDestination", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV1.SetTPDestination\",\n \"params\": [\n {\n \t\"TPid\": \"CGR_API_TESTS1\",\n \t\"ID\":\"90\",\n \"DestinationId\": \"FS_USERS1\",\n \"Prefixes\": [\n \"10\",\"200\"\n ],\n \n }\n ]\n}" + }, + "url": { + "raw": "http://sip1.de.cgrates.org:2080/jsonrpc", + "protocol": "http", + "host": [ + "sip1", + "de", + "cgrates", + "org" + ], + "port": "2080", + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetTPDestination", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV1.GetTPDestination\",\n \"params\": [\n {\n \t\"TPid\":\"CGR_API_TESTS\",\n \"Id\": \"TP_DST_RETAIL_GR_LANDLINE_2019_01\"\n \n \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveTPDestination", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV1.RemoveTPDestination\",\n \"params\": [\n {\n \t\"TPid\":\"CGR_API_TESTS\",\n \"Id\": \"TP_DST_RETAIL_GR_LANDLINE_2019_01\"\n \n \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetTPDestinationIDs", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV1.GetTPDestinationIDs\",\n \"params\": [\n {\n \t\"TPid\": \"CGR_API_TESTS\"\n \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV2.RemoveTPDestination", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV2.SetTPDestination\",\n \"params\": [\n {\n \t\"TPid\": \"CGR_API_TESTS\",\n \t\"ID\":\"TP_DST_RETAIL_GR_LANDLINE_2019_01\",\n \"DestinationId\": \"TP_DST_RETAIL_GR_LANDLINE_2019_01\",\n \"Prefixes\": [\n \"302\"\n ]\n \n }\n ]\n}" + }, + "url": { + "raw": "http://cgrates1.cgrates.org:2080/jsonrpc", + "protocol": "http", + "host": [ + "cgrates1", + "cgrates", + "org" + ], + "port": "2080", + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "TP DestinationRates (NEW)", + "item": [ + { + "name": "ApierV1.SetTPDestinationRate with RateSlots", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetTPDestinationRate\",\n \"params\": [{\n \"TPid\": \"CGR_API_TESTS\",\n \"ID\": \"TP_DST_RT_RETAIL_GR_LANDLINE_2019_01\",\n \"DestinationRates\": [{\n \"DestinationId\": \"TP_DST_RETAIL_GR_LANDLINE_2019_01\",\n \"RateId\": \"TP_RATEID_DST_RETAIL_GR_LANDLINE_2019_01\",\n \"Rate\": {\n \"TPid\": \"CGR_API_TESTS\",\n \"ID\": \"TP_RT_DST_RETAIL_GR_LANDLINE_2019_01\",\n \"RateSlots\": [{\n \"ConnectFee\": 0.0000,\n \"Rate\": 0.090,\n \"RateUnit\": \"60s\",\n \"RateIncrement\": \"1s\",\n \"GroupIntervalStart\": \"0\"\n },\n \t{\n \"ConnectFee\": 0.0000,\n \"Rate\": 0.090,\n \"RateUnit\": \"60s\",\n \"RateIncrement\": \"1s\",\n \"GroupIntervalStart\": \"60\"\n }\n ]\n },\n \"RoundingMethod\": \"*up\",\n \"RoundingDecimals\": 4,\n \"MaxCost\": 0,\n \"MaxCostStrategy\": \"\"\n }]\n }]\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetTPDestinationRate with RateSlots Copy", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetTPDestinationRate\",\n \"params\": [{\n \"TPid\": \"CGR_API_TESTS\",\n \"ID\": \"TP_DST_RT_RETAIL_GR_LANDLINE_2019_01\",\n \"DestinationRates\": [{\n \"DestinationId\": \"TP_DST_RETAIL_GR_LANDLINE_2019_01\",\n \"RateId\": \"TP_RATEID_DST_RETAIL_GR_LANDLINE_2019_01\",\n \"Rate\": {\n \"TPid\": \"CGR_API_TESTS\",\n \"ID\": \"TP_RT_DST_RETAIL_GR_LANDLINE_2019_01\",\n \"RateSlots\": [{\n \"ConnectFee\": 0.0000,\n \"Rate\": 0.090,\n \"RateUnit\": \"60s\",\n \"RateIncrement\": \"1s\",\n \"GroupIntervalStart\": \"0\"\n },\n \t{\n \"ConnectFee\": 0.0000,\n \"Rate\": 0.090,\n \"RateUnit\": \"60s\",\n \"RateIncrement\": \"1s\",\n \"GroupIntervalStart\": \"60\"\n }\n ]\n },\n \"RoundingMethod\": \"*up\",\n \"RoundingDecimals\": 4,\n \"MaxCost\": 0,\n \"MaxCostStrategy\": \"\"\n }]\n }]\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetTPDestinationRate", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetTPDestinationRate\",\n \"params\": [{\n \"TPid\": \"CGR_API_TESTS\",\n \"ID\": \"TP_DST_RT_RETAIL_GR_LANDLINE_2019_01\",\n \"DestinationRates\": [{\n \"DestinationId\": \"TP_DST_RETAIL_GR_LANDLINE_2019_01\",\n \"RateId\": \"TP_RATEID_DST_RETAIL_GR_LANDLINE_2019_01\",\n \"RoundingMethod\": \"*up\",\n \"RoundingDecimals\": 4,\n \"MaxCost\": 0,\n \"MaxCostStrategy\": \"\"\n }]\n }]\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveTPDestinationRate", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.RemoveTPDestinationRate\",\n \"params\": [{\n \"TPid\": \"CGR_API_TESTS\",\n \"ID\": \"DST_RETAIL_GR_LANDLINE_2019_01\"\n \n }]\n}\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetTPDestinationRate", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 1,\n\"method\": \"ApierV1.GetTPDestinationRate\",\n\"params\": [\n{\n\t\"TPid\": \"TPID_VL_INTERNAL_INBOUND_CALLS\",\n\t\"ID\": \"TP_DSTRATE_CLI_VL_INTERNAL_INBOUND_CALLS_GR_MOBILE\"\n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetTPDestinationRateIds", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 1,\n\"method\": \"ApierV1.GetTPDestinationRateIds\",\n\"params\": [\n{\n\"TPid\": \"TP_VL_RP_2019_01_IN\"\n\n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "id": "ca5a193b-eb51-4062-9136-f817a36bcfed", + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "id": "0555884a-5b75-42cd-ab61-fda1154101ae", + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "TP Rate (NEW)", + "item": [ + { + "name": "ApierV1.SetTPRate", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 3,\n\"method\": \"ApierV1.SetTPRate\",\n\"params\": [\n{\n\t\"TPid\": \"CGR_API_TESTS\",\n\t\"ID\":\"TP_RATE_DST_RETAIL_GR_LANDLINE_2019_01\",\n\t \"RateSlots\" : [\n \t{\n\t \"ConnectFee\" : 0.10, \n\t \"Rate\": 0.03 , \n\t \"RateUnit\":\"1s\",\n\t \"RateIncrement\":\"1s\",\n\t \"GroupIntervalStart\":\"\"\n\t}\n]\n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetTPRate", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 1,\n\"method\": \"ApierV1.GetTPRate\",\n\"params\": [\n{\n\"TPid\": \"CGR_API_TESTS\",\n\"ID\":\"SPL_TESTSUPPLIER1_DST_RATEID_GR_LANDLINE_2019_01\"\n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetTPRateIds", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 1,\n\"method\": \"ApierV1.GetTPRateIds\",\n\"params\": [\n{\n\"TPid\": \"CGR_API_TESTS\"\n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveTPRate", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\n\"method\": \"ApierV1.RemoveTPRate\",\n\"params\": [\n{\n\"TPid\": \"CGR_API_TESTS\",\n\"ID\":\"SPL_TESTSUPPLIER1_DST_GR_LANDLINE_2019_01\"\n\n\t\n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "ApierV1.SetDestination", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV1.SetDestination\",\n \"params\": [\n \t{\n \t\t\"Id\":\"test\",\n \"Prefixes\": [\"10\",\"50\"],\n \"Overwrite\":false\n \t\t\n \t}\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetDestination", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{ \n \"id\": 6, \n \"method\": \"ApierV1.GetDestination\", \n \"params\": [ \n \"FS_USERS3\" \n ] \n } " + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV2.GetDestination V2", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV2.GetDestination\",\n \"params\":{\n \n \"DestinationIDs\": \"GR_LANDLINE\"\n }\n \n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV2.GetDestinations (getALL)", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV2.GetDestinations\",\n \"params\": [\n \t{\n \t\t\"DestinationIDs\":[]\n \t \t}\n \t]\n \n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV2.GetDestinations (certain destinations)", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV2.GetDestinations\",\n \"params\": [\n \t{\n \t\t\"DestinationIDs\":[\"FS_USERS3\",\"test\"]\n \t \t}\n \t]\n \n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveDestination", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV1.RemoveDestination\",\n \"params\": [\n {\n \"DestinationIDs\":[\"test\"]\n \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetReverseDestination", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV1.GetReverseDestination\",\n \"params\": [\n \"10\"\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV2.SetAccount", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"params\": [{\n\"ActionPlanID**s**\": [\"PACKAGE_IL\"],\n\"ReloadScheduler\": true,\n\"Account\": \"972557XXXX\",\n\"AllowNegative\": false,\n\"Disabled\": false,\n\"ActionTriggerOverwrite\": true,\n\"ActionPlansOverwrite\": true,\n\"**T**enant\": \"num2.il\",\n\"ActionTriggerID**s**\": [\"STANDARD_TRIGGERS\"]\n}],\n\"id\": 1,\n\"method\": \"ApierV2.SetAccount\"\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "RatingPlan", + "item": [ + { + "name": "TP RatingPlan", + "item": [ + { + "name": "ApierV1.SetTPRatingPlan", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 3,\n\"method\": \"ApierV1.SetTPRatingPlan\",\n\"params\": [\n\t{\n\t\t\"TPid\": \"CGR_API_TESTS\",\n\t\t\"ID\":\"TP_RP_RETAIL_GR_LANDLINE_2019_01\",\n\t\t\"RatingPlanBindings\" : [{\n \t\t\"DestinationRatesId\":\"TP_DST_RT_RETAIL_GR_LANDLINE_2019_01\",\n \t\t\"TimingId\": \"*any\" , \n \t\t\"Weight\":10\n\t\t}]\n\t}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetTPRatingPlan", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 1,\n\"method\": \"ApierV1.GetTPRatingPlan\",\n\"params\": [\n{\n\t\"TPid\": \"TPID_VL_INTERNAL_INBOUND_CALLS\",\n\t\"ID\":\"RatingPlan_CLI_VL_INTERNAL_INBOUND_CALLS_GR_MOBILE\"\n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetTPRatingPlanIds", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 3,\n\"method\": \"ApierV1.GetTPRatingPlanIds\",\n\"params\": [\n{\n\n\"TPid\": \"CGR_API_TESTS\"\n\n \n\n\n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveTPRatingPlan", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\n\"method\": \"ApierV1.RemoveTPRatingPlan\",\n\"params\": [\n{\n\n\"TPid\": \"TP_VL_RP_2019_01_IN\",\n\"ID\":\"RatingPlan_CLI_VL_RP_2019_01_INBOUND_CALLS_GR_MOBILE\"\n\t\n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "ApierV1.LoadRatingPlan", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV1.LoadRatingPlan\",\n \"params\": [\n {\n \t\"TPid\":\"CGR_API_TESTS\",\n \t\"RatingPlanId\": \"TP_RP_RETAIL_GR_LANDLINE_2019_01\"\n \n }\n ]\n}\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetRatingPlan", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\":\"0\",\n \"method\":\"ApierV1.GetRatingPlan\",\n \"params\":[\n \"RatingPlan_CLI_VL_INTERNAL_INBOUND_CALLS_GR_MOBILE\"\n ]\n}\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "RatingProfile", + "item": [ + { + "name": "TP Rating Profile", + "item": [ + { + "name": "ApierV1.SetTPRatingProfile", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 3,\n\"method\": \"ApierV1.SetTPRatingProfile\",\n\"params\": [\n{\n\"TPid\":\"TP_RPR_teffsdfsd\",\n\"LoadId\": \"test\",\n\"Tenant\": \"test\",\n\"Category\": \"test\",\n\"Subject\": \"test\",\n \"RatingPlanActivations\" : [\n \t{\n \"ActivationTime\" : \"test\", \n \"RatingPlanId\": \"test\" , \n \"FallbackSubjects\": \"test\"\n}\n]\n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetTPRatingProfile", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 1,\n\"method\": \"ApierV1.GetTPRatingProfile\",\n\"params\": [\n{\n\"TPid\": \"test\",\n\"RatingProfileId\":\"test\"\n\n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetTPRatingProfileIds", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 1,\n\"method\": \"ApierV1.GetTPRatingProfileIds\",\n\"params\": [\n{\n\"TPid\": \"CGR_API_TESTS\"\n\n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetTPRatingProfileLoadIds", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 1,\n\"method\": \"ApierV1.GetTPRatingProfileLoadIds\",\n\"params\": [\n{\n\"TPid\": \"test\",\n\"Tenant\": \"test\",\n\"Category\": \"test\",\n\"Subject\":\"test\" \n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetTPRatingProfilesByLoadId", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 3,\n\"method\": \"ApierV1.GetTPRatingProfilesByLoadId\",\n\"params\": [\n{\n\n\"TPid\": \"test\",\n\"LoadId\": \"test\"\n\n \n\n\n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveTPRatingProfile", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\n\"method\": \"ApierV1.RemoveTPRatingProfile\",\n\"params\": [\n{\n\"RatingProfileId\":\"test\",\n\"TPid\": \"test\"\n\t\n}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "ApierV1.GetRatingProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetRatingProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"Category\": \"call-out\",\n \"Subject\": \"*any\"\n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetRatingProfileIDs", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetRatingProfileIDs\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\"\n \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveRatingProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.RemoveRatingProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"Category\": \"call-out\",\n \"Subject\": \"+30xxxxxxxxxx\"\n \n }\n ]\n}\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetRatingProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetRatingProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"Category\": \"call\",\n \"Subject\": \"+30xxxxxxxxx\",\n \"Overwrite\": true,\n \"RatingPlanActivations\": [{\n \t \"ActivationTime\": \"2014-01-14T00:00:00Z\",\n \t \"RatingPlanId\": \"TP_RP_SPL_TESTSUPPLIER1_DST_ID_RT_GR_LANDLINE_2019_01\",\n \t \"FallbackKeys\": \"\"\n }]\n }\n ]\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetRatingProfile - +30xxxxxxxxx", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetRatingProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"Category\": \"call-out\",\n \"Subject\": \"+30xxxxxxxxx\"\n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetRatingProfile - +30xxxxxxxxx", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetRatingProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"Category\": \"call-out\",\n \"Subject\": \"+30xxxxxxxxx\",\n \"Overwrite\": true,\n \"RatingPlanActivations\": [{\n \t \"ActivationTime\": \"2014-01-14T00:00:00Z\",\n \t \"RatingPlanId\": \"TP_RP_SPL_TESTSUPPLIER1_DST_ID_RT_GR_LANDLINE_2019_01\",\n \t \"FallbackKeys\": \"\"\n }]\n }\n ]\n}\n\n\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.LoadRatingProfile from TP", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV1.LoadRatingProfile\",\n \"params\": [\n {\n \t\"TPid\":\"CGR_API_TESTS\",\n \t\"LoadId\": \"\",\n \t\"Tenant\": \"\",\n \t\"Category\": \"\",\n \t\"Subject\": \"\",\n \t\"RatingPlanActivations\": {\n \"ActivationTime\": \"2014-07-14T14:25:00Z\",\n \"RatingPlanId\": \"\",\n \t\"FallbackSubjects\": \"\"\n \t }\n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "Filters", + "item": [ + { + "name": "ApierV1.SetFilter", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetFilter\",\n \"params\": [\n {\n \"Tenant\":\"cgrates.org\",\n \"ID\" : \"FLTR_RES\",\n \"Rules\" : [\n \t{\n \"Type\": \"*string\",\n \"FieldName\": \"~Account\",\n \"Values\": [\n \"+30xxxxxxxxxx\"\n ]\n },\n {\n \"Type\": \"*string\",\n \"FieldName\": \"~Destination\",\n \"Values\": [\n \"+30xxxxxxxxxx\"\n ]\n }\n \t],\n \"ActivationInterval\": {\n \n }\n \n }\n ],\n \"id\": 12\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetFilter 1", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetFilter\",\n \"params\": [\n {\n \"Tenant\":\"cgrates.org\",\n \"ID\" : \"FLTR_ACNT_+30xxxxxxxxx_+30xxxxxxxxxx\",\n \"Rules\" : [\n {\n \"Type\": \"*string\",\n \"FieldName\": \"~Account\",\n \"Values\": [\n \"+30xxxxxxxxx\"\n \n ]\n },\n {\n \"Type\": \"*string\",\n \"FieldName\": \"~RunID\",\n \"Values\": [\n \"CustomerCharges\"\n ]\n },\n {\n \"Type\": \"*string\",\n \"FieldName\": \"~Destination\",\n \"Values\": [\n \"+30xxxxxxxxxx\"\n \n ]\n }\n \n \t],\n \"ActivationInterval\": {\n \"ActivationTime\": \"2014-07-14T14:25:00Z\",\n \"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n }\n \n }\n ],\n \"id\": 12\n}\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetFilter *destinations", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetFilter\",\n \"params\": [\n {\n \"Tenant\":\"cgrates.org\",\n \"ID\" : \"FLTR_DST_GR_LANDLINE\",\n \"Rules\" : [\n \t{\n \t\"Type\":\"*destinations\",\n \t\"FieldName\":\"~Destination\",\n \t\"Values\":[\n \t\t \"+30xxxxxxxxx\",\n \"+30xxxxxxxxxx\"\n \t\t]\n \t}\n \t],\n \"ActivationInterval\": {\n \n }\n \n }\n ],\n \"id\": 12\n}\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetFilter Example 1 - Filter Destinations", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetFilter\",\n \"params\": [\n {\n \"Tenant\":\"cgrates.org\",\n \"ID\" : \"FLTR_DST_GR_LANDLINE\",\n \"Rules\" : [\n \t{\n \t\"Type\":\"*destinations\",\n \t\"FieldName\":\"~Destination\",\n \t\"Values\":[\n \t\t \"DST_+30xxxxxxxxx\",\n \"DST_+30xxxxxxxxxx\"\n \t\t]\n \t}\n \t],\n \"ActivationInterval\": {\n \n }\n \n }\n ],\n \"id\": 12\n}\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetFilter Example 2 - Filter Account", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetFilter\",\n \"params\": [\n {\n \"Tenant\":\"cgrates.org\",\n \"ID\" : \"FLTR_ACCOUNT_1001\",\n \"Rules\" : [\n \t{\n \t\"Type\":\"*string\",\n \t\"FieldName\":\"~Account\",\n \t\"Values\":[\n \t\t \"+30xxxxxxxxx\",\n \"+30xxxxxxxxxx\"\n \t\t]\n \t}\n \t],\n \"ActivationInterval\": {\n \n }\n \n }\n ],\n \"id\": 12\n}\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetFilter Example 3 - BalanceUpdate > 10", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetFilter\",\n \"params\": [\n {\n \t\"Tenant\": \"cgrates.org\",\n \"ID\": \"FLTR_+30xxxxxxxxx_BALANCEUPDATE_GREATER_OR_EQUAL\",\n \"Rules\": [\n {\n \"Type\": \"*string\",\n \"FieldName\": \"~Account\",\n \"Values\": [\n \"+30xxxxxxxxx\"\n ]\n },\n {\n \"Type\": \"*string\",\n \"FieldName\": \"~EventType\",\n \"Values\": [\n \"BalanceUpdate\"\n ]\n },\n {\n \"Type\": \"*gte\",\n \"FieldName\": \"~Units\",\n \"Values\": [\n \"10\"\n ]\n }\n ],\n \"ActivationInterval\": {\n \"ActivationTime\": \"0001-01-01T00:00:00Z\",\n \"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n }\n \n }\n ],\n \"id\": 12\n}\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetFilter Example 4 - FLTR_INTERNAL", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetFilter\",\n \"params\": [\n {\n \t\"Tenant\": \"cgrates.org\",\n \"ID\": \"CHARGER_FLTR_INTERNAL_CALLS_ONLY\",\n \"Rules\": [\n {\n \"Type\": \"*string\",\n \"FieldName\": \"~Subject\",\n \"Values\": [\n \"INTERNAL-IN\",\n \"INTERNAL-OUT\"\n ]\n }\n ],\n \"ActivationInterval\": {\n \"ActivationTime\": \"0001-01-01T00:00:00Z\",\n \"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n }\n \n }\n ],\n \"id\": 12\n}\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetFilter CHARGER_FLTR_INTERNAL_CALLS_ONLY", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetFilter\",\n \"params\": [\n {\n \t\"Tenant\": \"cgrates.org\",\n \"ID\": \"CHARGER_FLTR_INTERNAL_CALLS_ONLY\",\n \"Rules\": [\n {\n \"Type\": \"*string\",\n \"FieldName\": \"~Subject\",\n \"Values\": [\n \"INTERNAL-IN\",\n \"INTERNAL-OUT\"\n ]\n }\n ],\n \"ActivationInterval\": {\n \"ActivationTime\": \"0001-01-01T00:00:00Z\",\n \"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n }\n \n }\n ],\n \"id\": 12\n}\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetFilter FLTR_SPL_VL_INTERNAL_IN", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetFilter\",\n \"params\": [\n {\n \t\"Tenant\": \"cgrates.org\",\n \"ID\": \"FLTR_SPL_VL_INTERNAL_IN\",\n \"Rules\": [\n {\n \"Type\": \"*string\",\n \"FieldName\": \"~Subject\",\n \"Values\": [\n \"INTERNAL-IN\"\n ]\n },\n {\n \"Type\": \"*string\",\n \"FieldName\": \"~Category\",\n \"Values\": [\n \"call-in\"\n ]\n }\n ],\n \"ActivationInterval\": {\n \"ActivationTime\": \"0001-01-01T00:00:00Z\",\n \"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n }\n \n }\n ],\n \"id\": 12\n}\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetFilter FLTR_SPL_VL_INTERNAL_OUT", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetFilter\",\n \"params\": [\n {\n \t\"Tenant\": \"cgrates.org\",\n \"ID\": \"FLTR_SPL_VL_INTERNAL_OUT\",\n \"Rules\": [\n {\n \"Type\": \"*string\",\n \"FieldName\": \"~Subject\",\n \"Values\": [\n \"INTERNAL-OUT\"\n ]\n },\n {\n \"Type\": \"*string\",\n \"FieldName\": \"~Category\",\n \"Values\": [\n \"call-out\"\n ]\n }\n ],\n \"ActivationInterval\": {\n \"ActivationTime\": \"0001-01-01T00:00:00Z\",\n \"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n }\n \n }\n ],\n \"id\": 12\n}\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetFilter with ActivationInterval (Account)", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetFilter\",\n \"params\": [\n {\n \"Tenant\":\"Tenant_test\",\n \"ID\" : \"FLTR_+30xxxxxxxxxx\",\n \"Rules\" : [\n \t{\n \t\"Type\":\"*string\",\n \t\"FieldName\":\"Account\",\n \t\"Values\":[\"+30xxxxxxxxxx\"]\n \t}\n \t],\n \"ActivationInterval\": {\n \"ActivationTime\": \"2014-07-14T14:25:00Z\",\n \"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n }\n \n }\n ],\n \"id\": 12\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetFilter without ActivationInterval", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetFilter\",\n \"params\": [\n {\n \"Tenant\":\"Tenant_test\",\n \"ID\" : \"ID_Test\",\n \"Rules\" : [\n \t{\n \t\"Type\":\"*string\",\n \t\"FieldName\":\"teest2\",\n \t\"Values\":[\"123\"]\n \t}\n \t]\n }\n ],\n \"id\": 12\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetFilter", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetFilter\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"FLTR_ACNT_+30xxxxxxxxx\"\n }\n ],\n \"id\": 12\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveFilter", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.RemoveFilter\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"FLTR_ACNT_1003\"\n }\n ],\n \"id\": 12\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetFilterIDs", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetFilterIDs\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\"\n \n }\n ],\n \"id\": 12\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "ResourceProfile", + "item": [ + { + "name": "ApierV1.SetResourceProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetResourceProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"+30xxxxxxxxxx_RSP\",\n \n \"ActivationInterval\": {\n \"ActivationTime\": \"2014-07-14T14:25:00Z\",\n \"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n },\n \"UsageTTL\": -1,\n \"Limit\": 10,\n \"AllocationMessage\": \"\",\n \"Blocker\": false,\n \"Stored\": false,\n \"Weight\": 10,\n \"ThresholdIDs\": []\n }\n ]\n}\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetResourceProfile without ActivationInterval", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetResourceProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"+30xxxxxxxxxx_RSP\",\n \n \"ActivationInterval\": {\n \n },\n \"UsageTTL\": -1,\n \"Limit\": 10,\n \"AllocationMessage\": \"\",\n \"Blocker\": false,\n \"Stored\": false,\n \"Weight\": 10,\n \"ThresholdIDs\": []\n }\n ]\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetResourceProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetResourceProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"ResGroup1\"\n\n }\n ]\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveResourceProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetResourceProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"ResGroup1\"\n\n }\n ]\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetResourceProfileIDs", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetResourceProfileIDs\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\"\n \n }\n ]\n}\n\n\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "Resource", + "item": [ + { + "name": "ResourceSv1", + "item": [ + { + "name": "ResourceSv1.GetResource", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ResourceSv1.GetResource\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"ResGroup1\"\n \n }\n ]\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ResourceSv1.AuthorizeResources", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ResourceSv1.AuthorizeResources\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"91db806d-47b5-4346-b74e-bf699f2dd4d6\",\n \"Time\": null,\n \"Event\": {\n \"Account\": \"+30xxxxxxxxx\",\n \"Authorize_no_such_user_limit\": \"20\",\n \"Authorize_wrong_password_limit\": \"20\",\n \"Block_Incoming_Calls\": \"0\",\n \"CGRID\": \"3a6bb7df0f9c31959b447c865dc3d9ea74b559d8\",\n \"Category\": \"call\",\n \"Country\": \"Greece\",\n \"Destination\": \"+30xxxxxxxxxx\",\n \"Forwarding_Service\": \"0\",\n \"Hide_CLI\": \"0\",\n \"MaxCallsPerSecond\": \"1\",\n \"MaxSessionTime\": \"3600\",\n \"MaxSessions\": \"5\",\n \"Max_Incoming_Sessions\": \"5\",\n \"Max_Outgoing_Sessions\": \"5\",\n \"OriginHost\": \"10.156.0.13\",\n \"OriginID\": \"313536313130323331313531373435-11zx3su0dxng_user_860952\",\n \"Region\": \"Europe\",\n \"RequestType\": \"*prepaid\",\n \"SetupTime\": \"1561102312\",\n \"SipPassword\": \"|!xB8H7]}ych&XMY\",\n \"SipUserName\": \"+30xxxxxxxxx\",\n \"Source\": \"OpenSIPS-01\",\n \"Tenant\": \"cgrates.org\",\n \"Usage\": 10800000000000,\n \"User-Agent\": \"snomD120/10.1.33.33\",\n \"User-Agent-IP\": \"1.1.1.1\",\n \"Voicemail_Service\": \"0\"\n },\n \"UsageID\": \"313536313130323331313531373435-11zx3su0dxng_user_860952\",\n \"UsageTTL\": null,\n \"Units\": 1\n }\n ],\n \"id\": 35\n}\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ResourceSv1.AllocateResources", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ResourceSv1.AllocateResources\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"e8b88acd-406b-4d7f-b203-fc7ce3aab7c6\",\n \"Time\": null,\n \"Event\": {\n \"Account\": \"+30xxxxxxxxx;\",\n \"AnswerTime\": \"1561111641\",\n \"Category\": \"call\",\n \"Destination\": \"+30xxxxxxxxxx\",\n \"DialogEntry\": 3667,\n \"DialogID\": 2141633821,\n \"OriginHost\": \"10.156.0.13\",\n \"OriginID\": \"313536313131313633363339343733-yu06r25bkqmo_user_140125\",\n \"RequestType\": \"*prepaid\",\n \"SetupTime\": \"1561111637\",\n \"Source\": \"OpenSIPS-01\",\n \"Tenant\": \"cgrates.org\",\n \"User-Agent\": \"snomD120/10.1.33.33\",\n \"User-Agent-IP\": \"1.1.1.1\"\n },\n \"UsageID\": \"313536313131313633363339343733-yu06r25bkqmo_user_140125\",\n \"UsageTTL\": null,\n \"Units\": 1\n }\n ],\n \"id\": 75\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "ApierV1.SetResourceProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetResourceProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"ResGroup1\",\n \"FilterIDs\": [\n \n ],\n \"ActivationInterval\": {\n \"ActivationTime\": \"2014-07-14T14:25:00Z\",\n \"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n },\n \"UsageTTL\": -1,\n \"Limit\": 10,\n \"AllocationMessage\": \"\",\n \"Blocker\": false,\n \"Stored\": false,\n \"Weight\": 10,\n \"ThresholdIDs\": [\n \t\"*none\"\n \t]\n }\n ]\n}\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetResourceProfile 1", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetResourceProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"ResGroup1\",\n \"FilterIDs\": [\n \"FLTR_ACNT_+30xxxxxxxxx\",\n \"FLTR_ACNT_+30xxxxxxxxxx\"\n ],\n \"ActivationInterval\": {\n \"ActivationTime\": \"2014-07-14T14:25:00Z\",\n \"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n },\n \"UsageTTL\": -1,\n \"Limit\": 10,\n \"AllocationMessage\": \"\",\n \"Blocker\": false,\n \"Stored\": false,\n \"Weight\": 10,\n \"ThresholdIDs\": [\n \t\"*none\"\n \t]\n }\n ]\n}\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetResourceProfileIDs", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetResourceProfileIDs\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\"\n\n }\n ]\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetResourceProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetResourceProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"ResGroup1\"\n\n }\n ]\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveResourceProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.RemoveResourceProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"ResGroup2\"\n\n }\n ]\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "Stats", + "item": [ + { + "name": "ApierV1.SetStatQueueProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetStatQueueProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"STATS_+30xxxxxxxxxx\",\n \"FilterIDs\": [\n \t\"FLTR_ACNT_+30xxxxxxxxx\"\n \t\t],\n \"ActivationInterval\": {\n \t\"ActivationTime\": \"2014-07-29T15:00:00Z\",\n \t\"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n \t},\n \"QueueLength\": 10,\n \"TTL\": -1,\n \"MinItems\": 0,\n \"Metrics\": [\n {\n \"FilterIDs\": [\"FLTR_ACNT_+30xxxxxxxxx\"],\n \"MetricID\": \"*tcd\"\n },\n {\n \"FilterIDs\": [\"FLTR_ACNT_+30xxxxxxxxxx\"],\n \"MetricID\": \"*tcd\"\n },\n {\n \"FilterIDs\": null,\n \"MetricID\": \"*tcc\"\n },\n {\n \"FilterIDs\": null,\n \"MetricID\": \"*asr\"\n },\n {\n \"FilterIDs\": null,\n \"MetricID\": \"*acd\"\n },\n {\n \"FilterIDs\": null,\n \"MetricID\": \"*acc\"\n }\n \t],\n \"Stored\": false,\n \"Blocker\": true,\n \"Weight\": 10,\n \t\"ThresholdIDs\": [\n \"*none\"\n ]\n \n }\n ]\n}\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetStatQueueProfile Stats3", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetStatQueueProfile\",\n \"params\": [\n {\n\t\t\"Tenant\": \"cgrates.org\",\n \"ID\": \"Stats3\",\n \"FilterIDs\": [\n \"FLTR_ACNT_+30xxxxxxxxx\"\n \n ],\n \"ActivationInterval\": {\n \"ActivationTime\": \"2014-07-29T15:00:00Z\",\n \"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n },\n \"QueueLength\": 100,\n \"TTL\": -1,\n \"MinItems\": 0,\n \"Metrics\": [\n {\n \"FilterIDs\": null,\n \"MetricID\": \"*tcc\"\n },\n {\n \"FilterIDs\": null,\n \"MetricID\": \"*tcd\"\n }\n ],\n \"Stored\": false,\n \"Blocker\": true,\n \"Weight\": 30,\n \"ThresholdIDs\": [\n \"*none\"\n ]\n \n }\n ]\n}\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetStatQueueProfile Stats3 1", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetStatQueueProfile\",\n \"params\": [\n {\n\t\t\"Tenant\": \"cgrates.org\",\n \"ID\": \"Stats3\",\n \"FilterIDs\": [\n \"FLTR_ACNT_+30xxxxxxxxx\"\n \n ],\n \"ActivationInterval\": {\n \"ActivationTime\": \"2014-07-29T15:00:00Z\",\n \"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n },\n \"QueueLength\": 100,\n \"TTL\": -1,\n \"MinItems\": 0,\n \"Metrics\": [\n {\n \"FilterIDs\": null,\n \"MetricID\": \"*tcc\"\n },\n {\n \"FilterIDs\": null,\n \"MetricID\": \"*tcd\"\n }\n ],\n \"Stored\": false,\n \"Blocker\": true,\n \"Weight\": 30,\n \"ThresholdIDs\": [\n \"*none\"\n ]\n \n }\n ]\n}\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetStatQueueProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetStatQueueProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"id\": \"Stats3\"\n \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "StatSv1.GetQueueStringMetrics 1", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"StatSv1.GetQueueStringMetrics\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"id\": \"Stats2\"\n \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "StatSv1.GetQueueStringMetrics 2", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"StatSv1.GetQueueStringMetrics\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"id\": \"STATS_+30xxxxxxxxxx\"\n \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveStatQueueProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.RemoveStatQueueProfile\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"id\": \"Stats3\"\n \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetStatQueueProfileIDs", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetStatQueueProfileIDs\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\"\n\n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "StatSv1.ProcessEvent", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"StatSv1.ProcessEvent\",\n \"params\": [\n {\n \"StatIDs\": null,\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"7094cd19-c893-41d5-b380-40e3a05fd34d\",\n \"Time\": null,\n \"Event\": {\n \"Account\": \"+30xxxxxxxxx\",\n \"CGRID\": \"d832221ccba8170b69964767a9e82b502ad1f9fd\",\n \"Category\": \"call-out\",\n \"Destination\": \"+30xxxxxxxxxx\",\n \"DisconnectCause\": \"\",\n \"OriginHost\": \"10.156.0.13\",\n \"OriginID\": \"Call-ID: 3135363334343432373039393133-ha2s8ioype2o\",\n \"RequestType\": \"*prepaid\",\n \"SetupTime\": \"1563444271\",\n \"Source\": \"OpenSIPS-01\",\n \"Subject\": \"INTERNAL-OUT\",\n \"Usage\": \"0s\",\n \"User-Agent\": \"snomD120/10.1.33.33\",\n \"User-Agent-IP\": \"84.254.47.110\"\n }\n }\n ],\n \"id\": 24\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "Suppliers", + "item": [ + { + "name": "TP Suppliers", + "item": [ + { + "name": "ApierV1.SetTPSupplierProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"method\": \"ApierV1.SetTPSupplierProfile\",\n\t\"params\": [{\n\t\t\"TPid\":\"TP_SPL_OTE_2\",\n\t\t\"Tenant\": \"cgrates.org\",\n\t\t\"ID\": \"SPL_OTE_2\",\n\t\t\"FilterIDs\": [],\n\t\t\"ActivationInterval\": {\n\t\t\t\"ActivationTime\": \"2014-07-14T14:25:00Z\",\n\t\t\t\"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n\t\t},\n\t\t\"Sorting\": \"*weight\",\n\t\t\"SortingParameters\": [\"\"],\n\t\t\"Suppliers\": [{\n\t\t\t\"ID\": \"SUPPLIER_ID_TEST1\",\n\t\t\t\"FilterIDs\": [],\n\t\t\t\"AccountIDs\": [\"+30xxxxxxxxxx\",\"+30xxxxxxxxx\"],\n\t\t\t\"RatingPlanIDs\": [\"RP_TWT\"],\n\t\t\t\"ResourceIDs\": [\"RSPROF_+30xxxxxxxxxx\"],\n\t\t\t\"StatIDs\": [\"\"],\n\t\t\t\"Weight\": 10,\n\t\t\t\"Blocker\": false,\n\t\t\t\"SupplierParameters\": \"\"\n\t\t}],\n\t\t\"Weight\": 10\n\t}]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetTPSupplierProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"method\": \"ApierV1.GetTPSupplierProfile\",\n\t\"params\": [{\n\t\t\"TPid\":\"TP_SPL_OTE_2\",\n\t\t\"Tenant\": \"cgrates.org\",\n\t\t\"ID\": \"SPL_OTE_2\"\n\t\t\n\t\t}],\n\t\t\"Weight\": 10\n\t}]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetTPSupplierProfileIDs", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetTPSupplierProfileIDs\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\",\n \"TPid\":\"TP_SPL_OTE_2\"\n }\n ],\n \"id\": 12\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveTPSupplierProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"method\": \"ApierV1.RemoveTPSupplierProfile\",\n\t\"params\": [{\n\t\t\"TPid\":\"TP_SPL_OTE_2\",\n\t\t\"Tenant\": \"cgrates.org\",\n\t\t\"ID\": \"SPL_OTE_2\"\n\t\t\n\t\t}],\n\t\t\"Weight\": 10\n\t}]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "ApierV1.SetSupplierProfile *weight", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"method\": \"ApierV1.SetSupplierProfile\",\n\t\"params\": [{\n\t\t\"Tenant\": \"cgrates.org\",\n\t\t\"ID\": \"SPL_TEST_1_WEIGHT\",\n\t\t\"FilterIDs\": null,\n\t\t\"ActivationInterval\": {\n\t\t\t\"ActivationTime\": \"2014-07-14T14:25:00Z\",\n\t\t\t\"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n\t\t},\n\t\t\"Sorting\": \"*weight\",\n\t\t\"SortingParameters\": [\"\"],\n\t\t\"Suppliers\": [{\n\t\t\t\"ID\": \"SUPPLIER_ID_TEST1\",\n\t\t\t\"FilterIDs\": [],\n\t\t\t\"AccountIDs\": [\"+30xxxxxxxxxx\",\"+30xxxxxxxxx\"],\n\t\t\t\"RatingPlanIDs\": [\"RP_TWT\"],\n\t\t\t\"ResourceIDs\": [\"RSPROF_+30xxxxxxxxxx\"],\n\t\t\t\"StatIDs\": [\"STATS_+30xxxxxxxxxx\"],\n\t\t\t\"Weight\": 10,\n\t\t\t\"Blocker\": false,\n\t\t\t\"SupplierParameters\": \"SUPPLIER_PARAM_1\"\n\t\t}],\n\t\t\"Weight\": 10\n\t}]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetSupplierProfile least cost", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"method\": \"ApierV1.SetSupplierProfile\",\n\t\"params\": [{\n\t\t\"Tenant\": \"cgrates.org\",\n\t\t\"ID\": \"SPL_TEST_1_LEAST_COST\",\n\t\t\"FilterIDs\": null,\n\t\t\"ActivationInterval\": {\n\t\t\t\"ActivationTime\": \"2014-07-14T14:25:00Z\",\n\t\t\t\"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n\t\t},\n\t\t\"Sorting\": \"*lc\",\n\t\t\"SortingParameters\": [\"\"],\n\t\t\"Suppliers\": [{\n\t\t\t\"ID\": \"SUPPLIER_ID_TEST1\",\n\t\t\t\"FilterIDs\": [],\n\t\t\t\"AccountIDs\": [\"+30xxxxxxxxxx\",\"+30xxxxxxxxx\"],\n\t\t\t\"RatingPlanIDs\": [\"RP_1002_LOW\"],\n\t\t\t\"ResourceIDs\": [\"RSPROF_+30xxxxxxxxxx\"],\n\t\t\t\"StatIDs\": [\"STATS_+30xxxxxxxxxx\"],\n\t\t\t\"Weight\": 10,\n\t\t\t\"Blocker\": false,\n\t\t\t\"SupplierParameters\": \"SUPPLIER_PARAM_1\"\n\t\t}],\n\t\t\"Weight\": 10\n\t}]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetSupplierProfile high cost", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"method\": \"ApierV1.SetSupplierProfile\",\n\t\"params\": [{\n\t\t\"Tenant\": \"cgrates.org\",\n\t\t\"ID\": \"SPL_TEST_1_HIGH_COST\",\n\t\t\"FilterIDs\": null,\n\t\t\"ActivationInterval\": {\n\t\t\t\"ActivationTime\": \"2014-07-14T14:25:00Z\",\n\t\t\t\"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n\t\t},\n\t\t\"Sorting\": \"*hc\",\n\t\t\"SortingParameters\": [\"\"],\n\t\t\"Suppliers\": [{\n\t\t\t\"ID\": \"SUPPLIER_ID_TEST1\",\n\t\t\t\"FilterIDs\": [],\n\t\t\t\"AccountIDs\": [\"+30xxxxxxxxxx\",\"+30xxxxxxxxx\"],\n\t\t\t\"RatingPlanIDs\": [\"RP_1002_LOW\"],\n\t\t\t\"ResourceIDs\": [\"RSPROF_+30xxxxxxxxxx\"],\n\t\t\t\"StatIDs\": [\"STATS_+30xxxxxxxxxx\"],\n\t\t\t\"Weight\": 10,\n\t\t\t\"Blocker\": false,\n\t\t\t\"SupplierParameters\": \"SUPPLIER_PARAM_1\"\n\t\t}],\n\t\t\"Weight\": 10\n\t}]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetSupplierProfile *weight SPL_GR_WEIGHT_1", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"method\": \"ApierV1.SetSupplierProfile\",\n\t\"params\": [{\n\t\t\"Tenant\": \"cgrates.org\",\n\t\t\"ID\": \"SPL_GR_WEIGHT_1\",\n\t\t\"FilterIDs\": [\"FLTR_NOT_INTERNAL\"],\n\t\t\"ActivationInterval\": {\n\t\t\t\"ActivationTime\": \"2014-07-14T14:25:00Z\",\n\t\t\t\"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n\t\t},\n\t\t\"Sorting\": \"*weight\",\n\t\t\"SortingParameters\": [\"\"],\n\t\t\"Suppliers\": [{\n\t\t\t\"ID\": \"SPL_ID_01\",\n\t\t\t\"FilterIDs\": [],\n\t\t\t\"AccountIDs\": null,\n\t\t\t\"RatingPlanIDs\": [\"TP_RP_SPL_TESTSUPPLIER1_DST_ID_RT_GR_LANDLINE_2019_01\"],\n\t\t\t\"ResourceIDs\": null,\n\t\t\t\"StatIDs\": null,\n\t\t\t\"Weight\": 10,\n\t\t\t\"Blocker\": false,\n\t\t\t\"SupplierParameters\": \"SPL_PARAM_X\"\n\t\t},\n\t\t{\n\t\t\t\"ID\": \"SPL_ID_02\",\n\t\t\t\"FilterIDs\": [],\n\t\t\t\"AccountIDs\": null,\n\t\t\t\"RatingPlanIDs\": [],\n\t\t\t\"ResourceIDs\": null,\n\t\t\t\"StatIDs\": null,\n\t\t\t\"Weight\": 20,\n\t\t\t\"Blocker\": false,\n\t\t\t\"SupplierParameters\": \"SPL_PARAM_X\"\n\t\t}\n\t\t],\n\t\t\"Weight\": 10\n\t}]\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetSupplierProfile SPL_TESTSUPPLIER1_GR", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"method\": \"ApierV1.SetSupplierProfile\",\n\t\"params\": [{\n\t\t\"Tenant\": \"cgrates.org\",\n\t\t\"ID\": \"SPL_GR_WEIGHT_1\",\n\t\t\"FilterIDs\": [\"FLTR_NOT_INTERNAL\"],\n\t\t\"ActivationInterval\": {\n\t\t\t\"ActivationTime\": \"2014-07-14T14:25:00Z\",\n\t\t\t\"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n\t\t},\n\t\t\"Sorting\": \"*qos\"\n\t\t\"SortingParameters\": [\"*tcd\"],\n\t\t\"Suppliers\": [{\n\t\t\t\"ID\": \"SPL_ID_01\",\n\t\t\t\"FilterIDs\": [],\n\t\t\t\"AccountIDs\": null,\n\t\t\t\"RatingPlanIDs\": [\"TP_RP_SPL_TESTSUPPLIER1_DST_ID_RT_GR_LANDLINE_2019_01\"],\n\t\t\t\"ResourceIDs\": null,\n\t\t\t\"StatIDs\": null,\n\t\t\t\"Weight\": 10,\n\t\t\t\"Blocker\": false,\n\t\t\t\"SupplierParameters\": \"SPL_PARAM_X\"\n\t\t},\n\t\t{\n\t\t\t\"ID\": \"SPL_ID_02\",\n\t\t\t\"FilterIDs\": [],\n\t\t\t\"AccountIDs\": null,\n\t\t\t\"RatingPlanIDs\": [\"TP_RP_SPL_TESTSUPPLIER1_DST_ID_RT_GR_LANDLINE_2019_01\"],\n\t\t\t\"ResourceIDs\": null,\n\t\t\t\"StatIDs\": null,\n\t\t\t\"Weight\": 10\n\t\t\t\"Blocker\": false,\n\t\t\t\"SupplierParameters\": \"SPL_PARAM_X\"\n\t\t}\n\t\t],\n\t\t\"Weight\": 10\n\t}]\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetSupplierProfile *weight SPL_VL_INTERNAL", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"method\": \"ApierV1.SetSupplierProfile\",\n\t\"params\": [{\n\t\t\"Tenant\": \"cgrates.org\",\n\t\t\"ID\": \"SPL_VL_INTERNAL\",\n\t\t\"FilterIDs\": null,\n\t\t\"ActivationInterval\": {\n\t\t\t\"ActivationTime\": \"2014-07-14T14:25:00Z\",\n\t\t\t\"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n\t\t},\n\t\t\"Sorting\": \"*weight\",\n\t\t\"SortingParameters\": [\"\"],\n\t\t\"Suppliers\": [\n\t\t\t{\n\t\t\t\"ID\": \"SPL_VL_INTERNAL_IN\",\n\t\t\t\"FilterIDs\": [\"*string:~*req.Subject:INTERNAL-IN\",\"*string:~*req.Category:call-in\"],\n\t\t\t\"AccountIDs\": [\"\"],\n\t\t\t\"RatingPlanIDs\": [\"TP_RP_SPL_TEST_SUPPLIER_NAME_INTERNAL_DST_ID_RT_GR_LANDLINE_2019_01\"],\n\t\t\t\"ResourceIDs\": null,\n\t\t\t\"StatIDs\": null,\n\t\t\t\"Weight\": 10,\n\t\t\t\"Blocker\": false,\n\t\t\t\"SupplierParameters\": \"999\"\n\t\t\t},\n\t\t\t{\n\t\t\t\"ID\": \"SPL_VL_INTERNAL_OUT\",\n\t\t\t\"FilterIDs\": [\"*string:~*req.Subject:INTERNAL-OUT\",\"*string:~*req.Category:call-out\"],\n\t\t\t\"AccountIDs\": null,\n\t\t\t\"RatingPlanIDs\": [\"TP_RP_SPL_TEST_SUPPLIER_NAME_INTERNAL_DST_ID_RT_GR_LANDLINE_2019_01\"],\n\t\t\t\"ResourceIDs\": null,\n\t\t\t\"StatIDs\": null,\n\t\t\t\"Weight\": 10,\n\t\t\t\"Blocker\": false,\n\t\t\t\"SupplierParameters\": \"999\"\n\t\t\t}\n\t\t\n\t\t],\n\t\t\"Weight\": 10\n\t}]\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.SetSupplierProfile *qos", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"method\": \"ApierV1.SetSupplierProfile\",\n\t\"params\": [{\n\t\t\"Tenant\": \"cgrates.org\",\n\t\t\"ID\": \"SPL_OTE_1_QOS\",\n\t\t\"FilterIDs\": null,\n\t\t\"ActivationInterval\": {\n\t\t\t\"ActivationTime\": \"2014-07-14T14:25:00Z\",\n\t\t\t\"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n\t\t},\n\t\t\"Sorting\": \"*qos\",\n\t\t\"SortingParameters\": [\"*tcc\",\"*tcd\",\"*asr\",\"*acc\"],\n\t\t\"Suppliers\": [{\n\t\t\t\"ID\": \"SUPPLIER_ID_TEST1\",\n\t\t\t\"FilterIDs\": [],\n\t\t\t\"AccountIDs\": [\"+30xxxxxxxxxx\",\"+30xxxxxxxxx\"],\n\t\t\t\"RatingPlanIDs\": [\"RP_TWT\"],\n\t\t\t\"ResourceIDs\": [\"RSPROF_+30xxxxxxxxxx\"],\n\t\t\t\"StatIDs\": [\"STATS_+30xxxxxxxxxx\"],\n\t\t\t\"Weight\": 10,\n\t\t\t\"Blocker\": false,\n\t\t\t\"SupplierParameters\": \"SUPPLIER_PARAM_1\"\n\t\t}],\n\t\t\"Weight\": 10\n\t}]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetSupplierProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"method\": \"ApierV1.GetSupplierProfile\",\n\t\"params\": [{\n\t\t\"Tenant\": \"cgrates.org\",\n\t\t\"ID\": \"SPL_GR_WEIGHT_1\"\n\t\t\n\t\t}],\n\t\t\"Weight\": 10\n\t}]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetSupplierProfile SPL_VL_INTERNAL", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"method\": \"ApierV1.GetSupplierProfile\",\n\t\"params\": [{\n\t\t\"Tenant\": \"cgrates.org\",\n\t\t\"ID\": \"SPL_VL_INTERNAL\"\n\t\t\n\t\t}],\n\t\t\"Weight\": 10\n\t}]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.RemoveSupplierProfile", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"method\": \"ApierV1.RemoveSupplierProfile\",\n\t\"params\": [{\n\t\t\"Tenant\": \"cgrates.org\",\n\t\t\"ID\": \"SPL_VL_INTERNAL\"\n\t\t\n\t\t}],\n\t\t\"Weight\": 10\n\t}]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "ApierV1.GetSupplierProfileIDs", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.GetSupplierProfileIDs\",\n \"params\": [\n {\n \"Tenant\": \"cgrates.org\"\n }\n ],\n \"id\": 12\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "SupplierSv1.GetSuppliers", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"SupplierSv1.GetSuppliers\",\n \"params\": [\n {\n \"IgnoreErrors\": false,\n \"MaxCost\": \"\",\n \"Tenant\": \"cgrates.org\",\n \"ID\": \"187e5f2c-6cd4-4796-a435-9ac37399b9b5\",\n \"Time\": null,\n \"Event\": {\n \"Account\": \"+30xxxxxxxxx\",\n \"Authorize_no_such_user_limit\": \"20\",\n \"Authorize_wrong_password_limit\": \"20\",\n \"Block_Incoming_Calls\": \"0\",\n \"CGRID\": \"5401e8710ac20f53b04d176766a6aaf05a6832ac\",\n \"Category\": \"call-out\",\n \"Country\": \"Greece\",\n \"Destination\": \"+30xxxxxxxxxx\",\n \"Forwarding_Service\": \"0\",\n \"Hide_CLI\": \"0\",\n \"ID\": \"CHECK_USER_BALANCE_OUT\",\n \"MaxCallsPerSecond\": \"1\",\n \"MaxSessionTime\": \"3600\",\n \"MaxSessions\": \"1\",\n \"Max_Incoming_Sessions\": \"1\",\n \"Max_Outgoing_Sessions\": \"1\",\n \"OriginHost\": \"10.156.0.13\",\n \"OriginID\": \"Customer_3135363430353432393438313132-2imxdoamy79xcgrates.org210096\",\n \"Region\": \"Europe\",\n \"RequestType\": \"*prepaid\",\n \"ResourceAllocation\": \"ResGroup1\",\n \"SetupTime\": \"1564054295\",\n \"SipPassword\": \"Xu4fUxO OnlineDB Copy SOS Copy", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV1.LoadTariffPlanFromStorDb\",\n \"params\": [\n {\n \t\"TPid\":\"CGR_SPL_TESTSUPPLIER1_2019_01\"\n \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Inbound Call Billing example", + "item": [ + { + "name": "1. ApierV2.SetTPDestination - #1 mobile prefix +3069", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV2.SetTPDestination\",\n \"params\": [\n {\n \t\"TPid\":\"TPID_VL_INTERNAL_INBOUND_CALLS\",\n \t\"ID\":\"DST_CLI_VL_INTERNAL_INBOUND_CALLS_GR_MOBILE\",\n \"DestinationId\": \"DST_CLI_VL_INTERNAL_INBOUND_CALLS_GR_MOBILE\",\n \"Prefixes\": [\n \"+3069\"\n\n ]\n \n }\n ]\n}" + }, + "url": { + "raw": "http://cgrates1.cgrates.org:2080/jsonrpc", + "protocol": "http", + "host": [ + "cgrates1", + "cgrates", + "org" + ], + "port": "2080", + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "2. ApierV1.SetTPRate - FREE for *any", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 3,\n\"method\": \"ApierV1.SetTPRate\",\n\"params\": [\n{\n\t\"TPid\": \"TPID_VL_INTERNAL_INBOUND_CALLS\",\n\t\"ID\":\"RT_VL_INTERNAL_INBOUND_CALLS_ΑΝΥ\",\n\t \"RateSlots\" : [\n \t{\n\t \"ConnectFee\" : 0, \n\t \"Rate\": 0, \n\t \"RateUnit\":\"1s\",\n\t \"RateIncrement\":\"1s\",\n\t \"GroupIntervalStart\":\"0\"\n\t}\n]\n}\n]\n}\n\n\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "2.1 ApierV1.SetTPRate #1 - COST for Mobile", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 3,\n\"method\": \"ApierV1.SetTPRate\",\n\"params\": [\n{\n\t\"TPid\": \"TPID_VL_INTERNAL_INBOUND_CALLS\",\n\t\"ID\":\"RT_CLI_VL_INTERNAL_INBOUND_CALLS_GR_MOBILE\",\n\t \"RateSlots\" : [\n \t{\n\t \"ConnectFee\" : 5, \n\t \"Rate\": 1.5, \n\t \"RateUnit\":\"1s\",\n\t \"RateIncrement\":\"1s\",\n\t \"GroupIntervalStart\":\"0\"\n\t}\n]\n}\n]\n}\n\n\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "3. ApierV1.SetTPDestinationRate *any", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetTPDestinationRate\",\n \"params\": [{\n \"TPid\": \"TPID_VL_INTERNAL_INBOUND_CALLS\",\n \"ID\": \"DSTRATE_VL_INTERNAL_INBOUND_CALLS_ΑΝΥ\",\n \"DestinationRates\": [{\n \"DestinationId\": \"*any\",\n \"RateId\": \"RT_VL_INTERNAL_INBOUND_CALLS_ΑΝΥ\",\n \"RoundingMethod\": \"*up\",\n \"RoundingDecimals\": 4,\n \"MaxCost\": 0,\n \"MaxCostStrategy\": \"\"\n }]\n }]\n}\n\n\n\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "3.1 ApierV1.SetTPDestinationRate #1 (mobile prefixes)", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetTPDestinationRate\",\n \"params\": [{\n \"TPid\": \"TPID_VL_INTERNAL_INBOUND_CALLS\",\n \"ID\": \"TP_DSTRATE_CLI_VL_INTERNAL_INBOUND_CALLS_GR_MOBILE\",\n \"DestinationRates\": [{\n \"DestinationId\": \"DST_CLI_VL_INTERNAL_INBOUND_CALLS_GR_MOBILE\",\n \"RateId\": \"RT_CLI_VL_INTERNAL_INBOUND_CALLS_GR_MOBILE\",\n \"RoundingMethod\": \"*up\",\n \"RoundingDecimals\": 4,\n \"MaxCost\": 0,\n \"MaxCostStrategy\": \"\"\n }]\n }]\n}\n\n\n\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "4.1 ApierV1.SetTPRatingPlan #1 both (*any & Mobile)", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"id\": 3,\n\"method\": \"ApierV1.SetTPRatingPlan\",\n\"params\": [\n\t{\n\t\"TPid\": \"TPID_VL_INTERNAL_INBOUND_CALLS\",\n\t\"ID\":\"RatingPlan_CLI_VL_INTERNAL_INBOUND_CALLS_GR_MOBILE\",\n\t\"RatingPlanBindings\" : [{\n\t\t\"DestinationRatesId\":\"TP_DSTRATE_CLI_VL_INTERNAL_INBOUND_CALLS_GR_MOBILE\",\n\t\t\"TimingId\": \"*any\" , \n\t\t\"Weight\":10\n\t\t},\n\t\t{\n\t\t\"DestinationRatesId\":\"DSTRATE_VL_INTERNAL_INBOUND_CALLS_ΑΝΥ\",\n\t\t\"TimingId\": \"*any\" , \n\t\t\"Weight\":10\n\t\t}\n\t\t]\n\t}\n]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "5. ApierV1.LoadRatingPlan", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV1.LoadRatingPlan\",\n \"params\": [\n {\n \t\"TPid\":\"TPID_VL_INTERNAL_INBOUND_CALLS\",\n \t\"RatingPlanId\": \"RatingPlan_CLI_VL_INTERNAL_INBOUND_CALLS_GR_MOBILE\"\n \n }\n ]\n}\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "6. LoadTariffPlanFromStorDb --> OnlineDB Copy SOS", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 6,\n \"method\": \"ApierV1.LoadTariffPlanFromStorDb\",\n \"params\": [\n {\n \t\"TPid\":\"TPID_VL_INTERNAL_INBOUND_CALLS\"\n \n }\n ]\n}" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "3 - Chargers", + "item": [ + { + "name": "1 - Create Generic Charger for All Customers", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"method\": \"ApierV1.SetChargerProfile\",\r\n \"params\": [\r\n {\r\n \"Tenant\": \"cgrates.org\",\r\n \"ID\": \"CustomerCharges\",\r\n \"FilterIDs\": null,\r\n \"ActivationInterval\": null,\r\n \"RunID\": \"CustomerCharges\",\r\n \"AttributeIDs\": [\"*none\"],\r\n \"Weight\": 0\r\n \r\n }\r\n ]\r\n}\r\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "2 - Create Filter for Charger Supplier SPL_TEST_SUPPLIER_NAME", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetFilter\",\n \"params\": [\n {\n \t\"Tenant\": \"cgrates.org\",\n \"ID\": \"CHARGER_FLTR_INTERNAL_CALLS_ONLY\",\n \"Rules\": [\n {\n \"Type\": \"*string\",\n \"FieldName\": \"~Subject\",\n \"Values\": [\n \"INTERNAL-IN\",\n \"INTERNAL-OUT\"\n ]\n }\n ],\n \"ActivationInterval\": {\n \"ActivationTime\": \"0001-01-01T00:00:00Z\",\n \"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n }\n \n }\n ],\n \"id\": 12\n}\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "2.1 - Create Charger for Supplier SPL_TEST_SUPPLIER_NAME", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"method\": \"ApierV1.SetChargerProfile\",\r\n \"params\": [\r\n {\r\n \"Tenant\": \"cgrates.org\",\r\n \"ID\": \"SPL_TEST_SUPPLIER_NAME\",\r\n \"FilterIDs\": [\"CHARGER_FLTR_INTERNAL_CALLS_ONLY\"],\r\n \"ActivationInterval\": null,\r\n \"RunID\": \"SPL_TEST_SUPPLIER_NAME\",\r\n \"AttributeIDs\": [\"*none\"],\r\n \"Weight\": 0\r\n \r\n }\r\n ]\r\n}\r\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "4 - Suppliers", + "item": [ + { + "name": "Create Supplier TEST_SUPPLIER_NAME for Internal Calls IN/OUT", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"method\": \"ApierV1.SetSupplierProfile\",\n\t\"params\": [{\n\t\t\"Tenant\": \"cgrates.org\",\n\t\t\"ID\": \"SPL_VL_INTERNAL\",\n\t\t\"FilterIDs\": null,\n\t\t\"ActivationInterval\": {\n\t\t\t\"ActivationTime\": \"2014-07-14T14:25:00Z\",\n\t\t\t\"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n\t\t},\n\t\t\"Sorting\": \"*weight\",\n\t\t\"SortingParameters\": [\"\"],\n\t\t\"Suppliers\": [\n\t\t\t{\n\t\t\t\"ID\": \"SPL_VL_INTERNAL_IN\",\n\t\t\t\"FilterIDs\": [\"*string:~*req.Subject:INTERNAL-IN\",\"*string:~*req.Category:call-in\"],\n\t\t\t\"AccountIDs\": [\"\"],\n\t\t\t\"RatingPlanIDs\": [\"TP_RP_SPL_TEST_SUPPLIER_NAME_INTERNAL_DST_ID_RT_GR_LANDLINE_2019_01\"],\n\t\t\t\"ResourceIDs\": null,\n\t\t\t\"StatIDs\": null,\n\t\t\t\"Weight\": 10,\n\t\t\t\"Blocker\": false,\n\t\t\t\"SupplierParameters\": \"TP_RP_SPL_TEST_SUPPLIER_NAME_INTERNAL_DST_ID_RT_GR_LANDLINE_2019_01\"\n\t\t\t},\n\t\t\t{\n\t\t\t\"ID\": \"SPL_VL_INTERNAL_OUT\",\n\t\t\t\"FilterIDs\": [\"*string:~*req.Subject:INTERNAL-OUT\",\"*string:~*req.Category:call-out\"],\n\t\t\t\"AccountIDs\": null,\n\t\t\t\"RatingPlanIDs\": [\"TP_RP_SPL_TEST_SUPPLIER_NAME_INTERNAL_DST_ID_RT_GR_LANDLINE_2019_01\"],\n\t\t\t\"ResourceIDs\": null,\n\t\t\t\"StatIDs\": null,\n\t\t\t\"Weight\": 10,\n\t\t\t\"Blocker\": false,\n\t\t\t\"SupplierParameters\": \"TP_RP_SPL_TEST_SUPPLIER_NAME_INTERNAL_DST_ID_RT_GR_LANDLINE_2019_01\"\n\t\t\t}\n\t\t\n\t\t],\n\t\t\"Weight\": 10\n\t}]\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + }, + { + "name": "Create Supplier TESTSUPPLIER1_GR IN/OUT", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"method\": \"ApierV1.SetSupplierProfile\",\n\t\"params\": [{\n\t\t\"Tenant\": \"cgrates.org\",\n\t\t\"ID\": \"SPL_TESTSUPPLIER1_GR\",\n\t\t\"FilterIDs\": null,\n\t\t\"ActivationInterval\": {\n\t\t\t\"ActivationTime\": \"2014-07-14T14:25:00Z\",\n\t\t\t\"ExpiryTime\": \"0001-01-01T00:00:00Z\"\n\t\t},\n\t\t\"Sorting\": \"*weight\",\n\t\t\"SortingParameters\": [\"\"],\n\t\t\"Suppliers\": [\n\t\t\t{\n\t\t\t\"ID\": \"SPL_TESTSUPPLIER1_GR_IN\",\n\t\t\t\"FilterIDs\": [\"*notstring:~*req.Subject:INTERNAL-IN\",\"*string:~*req.Category:call-in\"],\n\t\t\t\"AccountIDs\": [\"\"],\n\t\t\t\"RatingPlanIDs\": [\"TP_RP_SPL_TESTSUPPLIER1_DST_ID_RT_GR_LANDLINE_2019_01\"],\n\t\t\t\"ResourceIDs\": null,\n\t\t\t\"StatIDs\": null,\n\t\t\t\"Weight\": 10,\n\t\t\t\"Blocker\": false,\n\t\t\t\"SupplierParameters\": \"TP_RP_SPL_TESTSUPPLIER1_DST_ID_RT_GR_LANDLINE_2019_01\"\n\t\t\t},\n\t\t\t{\n\t\t\t\"ID\": \"SPL_TESTSUPPLIER1_GR_OUT\",\n\t\t\t\"FilterIDs\": [\"*notstring:~*req.Subject:INTERNAL-OUT\",\"*string:~*req.Category:call-out\"],\n\t\t\t\"AccountIDs\": null,\n\t\t\t\"RatingPlanIDs\": [\"TP_RP_SPL_TESTSUPPLIER1_DST_ID_RT_GR_LANDLINE_2019_01\"],\n\t\t\t\"ResourceIDs\": null,\n\t\t\t\"StatIDs\": null,\n\t\t\t\"Weight\": 10,\n\t\t\t\"Blocker\": false,\n\t\t\t\"SupplierParameters\": \"TP_RP_SPL_TESTSUPPLIER1_DST_ID_RT_GR_LANDLINE_2019_01\"\n\t\t\t}\n\t\t\n\t\t],\n\t\t\"Weight\": 10\n\t}]\n}\n\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "id": "dd795b4c-6a50-4183-9c98-2f8da677c59a", + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "id": "7a0c94dc-64e5-4c64-b963-80122da67f59", + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "5 - Actions", + "item": [ + { + "name": "ACT_LOG_WARNING", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"method\": \"ApierV1.SetActions\",\n \"params\": [\n {\n \"Actions\": [\n {\n \"Identifier\": \"*log\",\n \"BalanceId\": null,\n\t\t\t\t\t\"BalanceUuid\": null,\n\t \"BalanceType\": null,\n \"Directions\": null,\n \"Units\": null,\n \"ExpiryTime\": null,\n \"Filter\": null,\n \"TimingTags\": null,\n \"DestinationIds\": null,\n \"RatingSubject\": null,\n \"Categories\": null,\n \"SharedGroups\": null,\n \"BalanceWeight\": null,\n \"ExtraParameters\": null,\n \"BalanceBlocker\": \"false\",\n \"BalanceDisabled\": \"false\",\n \"Weight\": 10\n \n }\n ],\n \"Overwrite\": true,\n \"ActionsId\": \"ACT_LOG_WARNING\"\n }\n ]\n}\n\n" + }, + "url": { + "raw": "{{base_url}}/jsonrpc", + "host": [ + "{{base_url}}" + ], + "path": [ + "jsonrpc" + ] + } + }, + "response": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "id": "07012ce6-d017-4dd4-b25e-94549407fb59", + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "id": "0ae5d526-4f88-4aab-b029-fbf623c3a46a", + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + } + ], + "protocolProfileBehavior": {} + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "id": "51f0c130-824c-41bd-9f64-830654472d7a", + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "id": "be9ec10e-c444-4700-ac8d-02c8a85fa61a", + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "variable": [ + { + "id": "df3ddb82-8634-4405-844d-9b7d2b89fb7e", + "key": "base_url", + "value": "https://cgrates1.cgrates.org:2280", + "type": "string", + "disabled": true + } + ], + "protocolProfileBehavior": {} +} \ No newline at end of file