Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description 

Get a list of a Tenant's clients

Parameters

Code Block
languagebash
{"tenant":"sbc.mydomain.com"}

Request

Code Block
languagebash
curl -X POST \-H "Authorization: Token d37fa8c4e008fec158070b1b4aea5f0db3d6a06e" \
-H "Content-Type: application/json" \
-d '{"tenant":"sbc.mydomain.com"}' \
-k https://your.domain.com/api/users/getclient_clientslist

Response

Code Block
languagebashxml
[
   {"id": 4,
"user": 7,
      "result":[
         [
            {
               "account_alias":null,
               "account_blocked_alert":false,
               "account_code": "37935516380635510296",
       "name        "account_type": "VoxbonePREPAID",
     "cgrt_username": "voxbone",
"company_name": "Voxbone ",
"tenant": 1,
"address_line_1": "",
"address_line_2": null,
"city": "",
"state_province": null,
"postcode_zip": "",
"country": "",
"telephone_number": "",
"timezone": null,
"tax_id": "",
"main_email": "support@voxbone.com",
"billing_email": "",
"noc_email": "",
"rates_email": "",
"enabled": true,
"send_welcome_email": true,
"currency": null,
"account_type": "POSTPAID",
"orig_credit_limit": "0.0000",
"origination": "allow_all",
"orig_max_channels": null,
"orig_max_cps": null,
"low_balance_notification": null,
"account_blocked_alert": false,
"termination": "enabled",
"term_max_channels": null,
"max_per_minute_rate": null,
"max_daily_spend": null,
"created_date": null,
"last_invoice_date": null
},
.
.
]
          "address_line_1":"",
               "address_line_2":null,
               "associated_tenant":null,
               "billing_email":null,
               "cgrt_username":"voiptology",
               "city":"Lauderhill",
               "client_profile":null,
               "company_name":"",
               "country":"US",
               "created_by":"2",
               "created_date":"2020-02-25T18:52:20.888176Z",
               "currency":151,
               "default_tax":null,
               "did_tier":null,
               "enable_calls":true,
               "enabled":false,
               "frequency":"never",
               "id":"9942794088650228",
               "invoice_email_cc":null,
               "invoice_tax_handling":null,
               "is_provider":false,
               "last_balance_alert_sent":null,
               "last_daily_spend_alert_sent":null,
               "last_invoice_date":null,
               "low_balance_notification":null,
               "main_email":"8264851327.",
               "max_channels":5,
               "max_connection_fee":null,
               "max_cps":2,
               "max_daily_spend":null,
               "max_per_minute_rate":null,
               "name":"Bechor Bechor",
               "noc_email":null,
               "notify_when_dids_are_added":false,
               "orig_credit_limit":null,
               "play_audio_messages":false,
               "postcode_zip":"33319",
               "rates_email":null,
               "send_verification_email":true,
               "send_welcome_email":false,
               "show_balance":true,
               "state_province":"FL",
               "tax_id":null,
               "telephone_number":"9542327873",
               "tenant":"sbc.mydomain.com",
               "user":"golang_user",
               "verified_for_payments":true
            },
			.
			.
            
         ]
      ]
   },
   "Status : 200 OK"
]