...
Code Block | ||
---|---|---|
| ||
curl -X POST \ -H "Authorization: Token 3469bc9092c887da28b9704c79db0375e7168d8d" \ -H "Content-Type: application/json" \ -d '{"name": "farsana Test1", "tenant" : "sbc.yourdomain.com", "cgrt_username": "farsana_Check", "company_name": "Test Company", "address_line_1": "49 Any Street", "address_line_2": "", "city": "New York", "state_province": "New York", "postcode_zip": "", "country": "US", "telephone_number": "5666556", "timezone": "America/New_York", "tax_id": "", "main_email": "farsana@mydomain.com", "billing_email": "", "noc_email": "", "rates_email": "", "enabled": true, "send_welcome_email": false, "currency": "USD", "account_type": "PREPAID", "orig_credit_limit": null, "origination": "allow_all", "low_balance_notification": null, "account_blocked_alert": false, "notify_when_dids_are_added": false, "termination": "disabled", "term_max_channels": 0, "play_audio_messages": false }' \ -k https://your.domain.com/api/v2users/client_add |
Response
Code Block | ||||
---|---|---|---|---|
| ||||
{
"result":[
{
"orig_max_channels":15,
"max_daily_spend":0,
"enabled":true,
"max_connection_fee":"",
"low_balance_notification":"0.0000",
"postcode_zip":"",
"cgrt_username":"farsana Check",
"frequency":"",
"timezone":"America/New_York",
"id":"8659705574181934",
"rates_email":"",
"city":"New York",
"orig_max_cps":5,
"orig_credit_limit":"0.0000",
"billing_email":"",
"max_per_minute_rate":0,
"created_by":8841083500730897,
"notify_when_dids_are_added":false,
"verified_for_payments":false,
"company_name":"Test Company",
"send_welcome_email":"false",
"account_type":"PREPAID",
"account_blocked_alert":false,
"origination":"",
"main_email":"farsana@mydomain.com",
"user":8841083500730897,
"term_max_channels":0,
"tenant":"8692210812138996",
"tax_id":0,
"state_province":"New York",
"name":"farsana Test1",
"currency":"151",
"country":"US",
"telephone_number":"5666556",
"last_invoice_date":"0001-01-01T00:00:00Z",
"play_audio_messages":false,
"created_date":"2019-10-21T07:33:55.009029+01:00",
"is_provider":"",
"termination":"",
"account_code":"8768173222",
"address_line_2":"",
"address_line_1":"49 Any Street"
}
]
} |