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/get_clients

Response

Code Block
languagebash
[
{"id": 4,
"user": 7,
"account_code": "3793551638",
"name": "Voxbone",
"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
},
.
.
]

...