Skip to main content

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.

AttributeData TypeDescription
aclsarray 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.

address1string

The partner address.

address2string

The partner address second field.

attributesobject

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_emailstring

The partner email address used for billing purposes. If this field is empty, the owner_email is used. In this field, you can add multiple email addresses separated by commas.

callbacksobject

The callback URLs. The allowed callback URL types include:

  • app_conference_call for conference call activity.
  • app_conference_meeting for conference meeting room activity.
  • app_mediator for the activity triggered by Mediator endpoint.
  • sms for text message activity (when an SMS is sent or received).
  • phonenumber_order for getting callbacks with a confirmation of renting a DID from an external provider successfully.
  • phonenumber_messaging_update to get notifications when SMS/MMS messaging is enabled or disabled for a DID.
charge_atnumber

The balance value when the prepay account will be charged.

citystring

The partner city.

company_namestring

The partner company name.

country_codestring

The partner country ISO 3166-1 alpha-3 code.

daily_spending_limitnumber

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 daily_spending_limit, the partner will be suspended until the end of the day.

date_created
read only
string

The date and time when the partner was created.

display_id
read only
string

The partner unique ID.

loginstring

The login for web and Core API.

namestring

The partner name.

owner_emailstring

The partner primary email address.

parent_assigned_aclsarray 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_sidstring

The parent partner secure ID.

partner_sid
read only
string

The partner secure ID.

passwordstring

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.

phonenumberstring

The partner contact phone number.

prepay_amountnumber

The charge amount for prepay customers.

spending_limitnumber

The maximum amount that a partner is allowed to spend on the account.

statestring

The partner state; two-letter abbreviation code.

status
read only
string

The status of the partner. Values accepted in this field are:

  • active for a partner account that is active.
  • canceled for a partner account that was canceled.
  • deleted for a partner account that was removed.
  • suspended* for a partner account that has been suspended due to low balance.
  • soft_suspended* for a partner account that has been partially suspended due to low balance with the following restriction:
    • outbound SMS and dial-outs to the PSTN and to other CarrierX partners are not allowed: the partner is only allowed to receive calls; outbound traffic routing will be limited to its own DIDs and prefixes only,
    • other billable API calls continue to work and accrue charges as usual.
  • unconfirmed for a partner account that has not been confirmed.
  • unverified for a partner account with an email that has not been verified.

* Depending on the partner configuration, one of the two partner suspension types is available: suspended or soft_suspended. To learn about the conditions of activating the soft_suspended option, please contact support@carrierx.com.

tech_emailstring

The partner email address used for technical purposes. If this field is empty, the owner_email is used. In this field, you can add multiple email addresses separated by commas.

transformationsarray of objects

The list of transformations that a call will undergo. Refer to the transformations section for more information.

zipstring

The partner zip code.

note

When determining the callback URL, the system will use the first non-empty value from:

  1. the callback_url field of the DID object;
  2. the callback_url field of the DID Group object;
  3. the callbacks.sms field of the Partner object.

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.

AttributeData TypeDescription
access_control_rulesarray

The list of access control rules secure IDs. Refer to the Access Control Rule object for more information about access control rules.

directionstring
The direction for the access control list. Values accepted in this field are:
  • any to apply the rules from the list to both sent and received calls and messages.
  • inbound to apply the rules from the list to received calls and messages.
  • outbound to apply the rules from the list to sent calls and messages.
  • undirected to apply the rules from the list to actions with no direction specified.
sms_action_falsestring

The action to be executed for SMS messages if no access control rules are applied. Values accepted in this field are accept and reject.

sms_action_truestring

The action to be executed for SMS messages if any access control rules are applied. Values accepted in this field are accept and reject.

voice_action_falsestring
The action to be executed for calls if no access control rules are applied. Values accepted in this field are:
  • accept to accept the calls.
  • reject403 to reject the call with the 403 status code.
  • reject503 to reject the call with the 503 status code.
voice_action_truestring
The action to be executed for calls if any access control rules are applied. Values accepted in this field are:
  • accept to accept the calls.
  • reject403 to reject the call with the 403 status code.
  • reject503 to reject the call with the 503 status code.