Partner Object
This section goes over the parts of the Partner object.
Partner Object Attributes
These fields and values make up the JSON object that gets returned with successful requests.
Attribute | Data Type | Description |
---|---|---|
acls | array of objects | The Access Control List, as defined on the Partner object directly. This holds a list of rules that determine the scope of data to be checked in SIP calls. This field is assigned on the Partner object itself and cannot be assigned by a parent partner. Refer to the table below for more information. |
address1 | string | The partner address. |
address2 | string | The partner address second field. |
attributes | object | The partner attributes. |
available_scopes read only | string | The abilities that this specific partner has. This field is for internal use only. Refer to this table for the complete list of available scopes. |
balance read only | number | The current balance of the partner. |
billing_email | string | The partner email address used for billing purposes. If this field is empty, the |
callbacks | object | The callback URLs. The allowed callback URL types include:
|
charge_at | number | The balance value when the prepay account will be charged. |
city | string | The partner city. |
company_name | string | The partner company name. |
country_code | string | The partner country ISO 3166-1 alpha-3 code. |
daily_spending_limit | number | The maximum amount that the partner is allowed to spend on the account per day. |
daily_spent_amount read only | number | The amount that the partner has spent on the account during the current day. If this value exceeds the |
date_created read only | string | The date and time when the partner was created. |
display_id read only | string | The partner unique ID. |
login | string | The login for web and Core API. |
name | string | The partner name. |
owner_email | string | The partner primary email address. |
parent_assigned_acls | array of objects | The Access Control List, as defined by a parent partner. This holds a list of rules that determine the scope of data to be checked in SIP calls. This field is assigned by the parent partner only. Refer to the table below for more information. |
parent_sid | string | The parent partner secure ID. |
partner_sid read only | string | The partner secure ID. |
password | string | The partner password for web and Core API. This field is required to create a partner, but is hidden in the serialized copy of the Partner objects received in responses to the requests for the security reasons. |
phonenumber | string | The partner contact phone number. |
prepay_amount | number | The charge amount for prepay customers. |
spending_limit | number | The maximum amount that a partner is allowed to spend on the account. |
state | string | The partner state; two-letter abbreviation code. |
status read only | string | The status of the partner. Values accepted in this field are:
* Depending on the partner configuration, one of the two partner suspension types is available: |
tech_email | string | The partner email address used for technical purposes. If this field is empty, the |
transformations | array of objects | The list of transformations that a call will undergo. Refer to the transformations section for more information. |
zip | string | The partner zip code. |
Sample Partner Object
{
"acls": [],
"address1": null,
"address2": null,
"attributes": {},
"available_scopes": [],
"balance": "5",
"billing_email": null,
"callbacks": {
"sms":"https://example.com/sms-callback-url"
},
"charge_at": null,
"city": null,
"company_name": "ABC",
"country_code": "USA",
"daily_spending_limit": "500",
"daily_spent_amount": "0",
"date_created": "2024-01-22T17:16:30.844Z",
"display_id": "CX57121051",
"login": "john",
"name": "John Smith",
"owner_email": null,
"parent_assigned_acls": [],
"parent_sid": "ed437757-002d-4ecc-aa5a-efdf5e50dba0",
"partner_sid": "aeda835c-6627-4f4c-ac73-9edcae95640b",
"payment_type": "postpay",
"phonenumber": "180045012323",
"prepay_amount": null,
"spending_limit": "100",
"state": "",
"status": "unverified",
"tech_email": null,
"transformations": [],
"zip": "90804"
}
ACL Object
This object is used with acls
and parent_assigned_acls
.
Attribute | Data Type | Description |
---|---|---|
access_control_rules | array | The list of access control rules secure IDs. Refer to the Access Control Rule object for more information about access control rules. |
direction | string | The direction for the access control list. Values accepted in this field are:
|
sms_action_false | string | The action to be executed for SMS messages if no access control rules are applied. Values accepted in this field are |
sms_action_true | string | The action to be executed for SMS messages if any access control rules are applied. Values accepted in this field are |
voice_action_false | string | The action to be executed for calls if no access control rules are applied. Values accepted in this field are:
|
voice_action_true | string | The action to be executed for calls if any access control rules are applied. Values accepted in this field are:
|