Query Resellers by Trunk IDs
Queries the resellers that own the specified trunks.
Request URL
POST {base_url}/uc-user/api/v1/accounts/resellers/query-by-trunk-ids
Request parameters
- Headers
-
Parameter Required Type Description Authorization Yes String The access token used for authentication. Format: Bearer
{access_token}.x-tenant-code No String The tenant name. Note: You can obtain tenant name using the Query Tenants interface.
- Body parameters
-
Parameter Required Type Description trunkIds Yes Array<Integer> The list of trunk IDs, with a maximum of 200 IDs. You can obtain the IDs using the Query Trunk List interface.
Response parameters
| Parameter | Type | Description |
|---|---|---|
| requestId | String | The unique ID of the request, which can be used to quickly locate the request. |
| code | String | The HTTP status code of the request.
|
| message | String | The status message of the request. |
| detailMessage | String | The detailed error information. When the request is successful, this parameter returns empty. |
| result | Array<Reseller_Page_Response> | The list of resellers that own the specified trunks. |
- Reseller_Page_Response
-
Parameter Type Description id Integer The ID of the account. ucId Integer The UC ID of the company that the account belongs to. subType String The sub type of the user:
ADMIN: The administrator.RESELLER: The reseller.
This parameter is visible only to the super administrator.
firstName String The first name of the user. lastName String The last name of the user. status String The status of the account. email String The email address of the account, which is used as the login username. company String The company name. phone String The phone number. address String The address. profileImage String The URL of the avatar (a permanent public link of the resource). This parameter is null when no avatar is set. owner String The email of the owner account. This parameter is visible only to the super administrator. twoFactorEnabled Boolean Whether two-factor authentication is enabled. remark String The remark of the account. createTime Integer The time when the account was created, in Unix timestamp format (milliseconds). hasMatchingColleagues Boolean Whether any colleague account matches the search conditions. This parameter prompts the front end to expand and display the colleague list. colleaguesCount Integer The number of colleague accounts of the primary account. The value 0 indicates that the primary account has no colleague account. tenants Object<Quota_Field> The tenant quota. users Object<Quota_Field> The user quota. concurrentCalls Object<Quota_Field> The concurrent call quota. recordingUsers Object<Recording_Users_Quota_Field> The recording user quota. brandingTemplates Object<Quota_Field> The branding template quota. awsTranscriptionUsers Object<Quota_Field> The transcription user quota. receptionistMinutes Object<Quota_Field> The AI receptionist minutes quota. receptionistPacks Object<Receptionist_Pack_Quota_Field> The AI receptionist pack quota.
- Quota_Field
-
Parameter Type Description used Integer The used amount. total Integer The quota limit. The value -1 indicates unlimited.
- Recording_Users_Quota_Field
-
Parameter Type Description used Integer The used amount. total Integer The quota limit. The value -1 indicates unlimited. details Array<Retention_Detail> The list of recording user quotas grouped by retention period.
- Retention_Detail
-
Parameter Type Description packageValue Integer The value of the retention period, such as 3. packageUnit String The unit of the retention period, such as month or year. used Integer The used amount. total Integer The quota limit of this retention period.
- Receptionist_Pack_Quota_Field
-
Parameter Type Description used Integer The used amount. total Integer The quota limit. The value -1 indicates unlimited. details Array<Pack_Detail_Field> The list of AI receptionist pack quotas grouped by pack capacity.
- Pack_Detail_Field
-
Parameter Type Description packageValue Integer The capacity of the pack in minutes, such as 1000. packageUnit String The unit of the pack capacity, such as min. used Integer The number of packs in use. total Integer The total number of packs of this capacity.