Query Information of a Subordinate User

Query the detailed information of a subordinate user.

Request URL

GET {base_url}/user/openapi/user/v1/subordinate_user/{partnerId}

Request parameters

Path parameter
Parameter Required Type Description
partnerId Yes String

Subordinate user's Yeastar ID.

Headers
Parameter Required Description
User-Agent Yes Provide information about the user agent, such as the type of web browser, operating system, software version, etc., so as to help Yeastar Partner Portal to identify the user or the application that is making the request.

Example: User-Agent: OpenAPI.

Authorization Yes Pass the access token in the header, so as to authenticate the API request.

Format: Bearer {access_token}.

Response parameters

Parameter Type Description
code String The response message of the API request.
detailMessage String The detailed error information.

When the request is successful, this parameter returns empty.

requestId String The unique ID of the request, which can be used to quickly locate the request.
result Object<User_Info> The detailed information of your subordinate user.
status Integer The HTTP status code of the API request.
User_Info
Parameter Type Description
city String City.
company String Company.
country String Country.
email String Email address.
firstName String First Name.
lastName String Last Name.
partnerId String The unique ID of the subordinate user.
phoneNumber String Phone number.
remark String Remark.
stateProvince String State / Province.
street String Street.
taxNum String Tax identification number.
userType String User type.
  • Enduser
zipCode String ZIP / postal code.

Example

Request example

Query information of a subordinate user (Yeastar ID: color123@yeastar.com).

GET /user/openapi/user/v1/subordinate_user/color123@yeastar.com HTTP/1.1
Host: openapi.partner.yeastar.com
User-Agent: OpenAPI
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsicmVzMSJdLCJYLU1TLVVTRVIiOiJ7XCJleHByXCI6XCIwXCIsXCJ0eXBlXCI6XCJwYXJ0bmVyXCIsXCJ1Y0lkXCI6XCIzMDc2OTEzNjQ0ODkwODMyODk2XCIsXCJ1c2VyQ29kZVwiOlwiRGlzdHJpYnV0b3JcIixcInVzZXJJZFwiOlwiMzA3NjkxMzY0NDkxNTk5ODcyMFwiLFwidXNlcm5hbWVcIjpcImRpc3RyaWJ1dG9yZXhhbXBsZUBvdXRsb29rLmNvbVwifSIsInVzZXJfbmFtZSI6ImRpc3RyaWJ1dG9yZXhhbXBsZUBvdXRsb29rLmNvbSIsInNjb3BlIjpbImFsbCJdLCJleHAiOjE3Mzk1MzIwNjQsInRva2VuX3R5cGUiOiJvcGVuYXBpIiwianRpIjoibXVSZDFEb2JOYkpmUUJORXAxa3JHcHZtcXJNPSIsImF1dGhvcml0aWVzIjpbIjc3Il0sImNsaWVudF9pZCI6ImFjMGYyZTViZWU3NmI2ZDdmNDU0NTY5NmMyNGZjMWYzIn0.h8x-JgOmB-as-GQJ4CWKdxXQ21z_3PPSfm1G87dgoNQ

Response example

{
    "code": "success",
    "detailMessage": "",
    "requestId": "8d5872d2a673fbf0b34ea878204933f1",
    "result": {
        "city": "Xiamen",
        "company": "Company Example",
        "country": "Chad",
        "email": "color123@yeastar.com",
        "firstName": "Example",
        "lastName": "LALA",
        "partnerId": "3076915454489739264",
        "phoneNumber": "13600930000",
        "remark": "grrrrrrrrrg",
        "stateProvince": "Fujian",
        "street": "Siming",
        "taxNum": "VAT_number:",
        "userType": "Enduser",
        "zipCode": "361000"
    },
    "status": 200
}