Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Querying Customers (Old)

Updated on 2024-09-26 GMT+08:00

Function

This API is used to query your customers.

NOTE:

This API will be brought offline soon. For details about the new API for querying the customer list, see Querying Customers.

Web UI

You can log in to the Partner Center to query your customers.

  1. In the top navigation, choose Sales > Customers > Customer Management.
  2. Set search criteria to search for customers.

    You can search for customers by the association type, association time, customer name, salesperson name, mobile number, or customer tag.

REST API

This API is used to query your customers on the partner sales platform.

NOTE:

This API can be invoked only by the partner account AK/SK or token.

If a customer queried does not exist, the HTTP code 200 will be returned by the API and nothing is returned in the response.

  1. URI

    GET /v1.0/{partner_id}/partner/customer-mgr/detail

    The following table describes the parameters.

    Parameter

    Mandatory

    Value Range

    Description

    partner_id

    Yes

    A maximum of 64 characters

    Partner ID (assigned by Huawei).

    For details about how to obtain the partner ID, see How Do I Check the Partner ID?

  1. Request

    Request parameters

    Parameter

    Mandatory

    Type

    Value Range

    Description

    domain_name

    No

    String

    A maximum of 128 characters

    Account. If the customer has created an IAM user, enter the account name. For details about the two concepts, see "Account" and "IAM User" in Identity Management.

    Fuzzy search is supported. Only prefix, suffix, or middle part can be used for fuzzy search. The content you enter for fuzzy search cannot contain spaces.

    If this parameter is not included in the request parameters or is left empty, it cannot be used as a filter criterion. If this parameter is set to "" or null, it can be used as a filter criterion.

    corp_name

    No

    String

    A maximum of 128 characters

    Enter the enterprise name if it is used for real-name authentication.

    For an individual who uses real name for authentication, enter the individual name.

    Fuzzy search is supported. Only prefix, suffix, or middle part can be used for fuzzy search. The content you enter for fuzzy search cannot contain spaces.

    If this parameter is not included in the request parameters or is left empty, it cannot be used as a filter criterion. If this parameter is set to "" or null, it can be used as a filter criterion.

    page_no

    No

    Integer

    -

    Page to be queried.

    By default, the first page is queried.

    If this parameter is not included in the request, is left empty, or is set to null, the value 1 is used. This parameter cannot be set to "".

    page_size

    No

    Integer

    [1-100]

    Number of records on each page.

    The default value is 10, and the maximum value is 100.

    If this parameter is not included in the request, is left empty, or is set to null, the value 10 is used. This parameter cannot be set to "".

    label

    No

    String

    A maximum of 64 characters

    Tag. Fuzzy search is supported. Only prefix, suffix, or middle part can be used for fuzzy search. The content you enter for fuzzy search cannot contain spaces. The letters entered for search are case-sensitive.

    If this parameter is not included in the request parameters or is left empty, it cannot be used as a filter criterion. If this parameter is set to "" or null, it can be used as a filter criterion.

    cooperationType

    No

    String

    [1|3]

    Association type.

    • 1: Referral
    • 2: Authorized Distributor
    • 3: Reseller

    Note:

    Currently, only Referral and Reseller are supported.

    If this field is not included in the request parameters or is left empty, it cannot be used as a filter criterion. It cannot be set to "" or null.

    cooperationTimeStart

    No

    String

    A maximum of 20 characters

    Start time of the association time range (UTC time).

    The value is in "yyyy-MM-dd 'T' HH:mm:ss 'Z'" format, such as 2019-05-06T08:05:01Z.

    This parameter must be used together with cooperationTimeEnd.

    If this parameter is not included in the request parameters, it cannot be used as a filter criterion. It cannot be left empty or set to "" or null.

    cooperationTimeEnd

    No

    String

    A maximum of 20 characters

    End time of the association time range (UTC time)

    The value is in the following format:

    yyyy-MM-dd'T'HH:mm:ss'Z', such as 2019-05-06T08:05:01Z

    This parameter must be used together with cooperationTimeStart.

    If this parameter is not included in the request parameters, it cannot be used as a filter criterion. It cannot be left empty or set to "" or null.

    Request Example

    GET https://bss-intl.myhuaweicloud.com/v1.0/{partner_id}/partner/customer-mgr/detail HTTP/1.1
    Content-Type: application/json
    X-Auth-Token: MIIPAgYJKoZIhvcNAQcCo...ggg1BBIINPXsidG9rZ

  1. Response

    Response parameters

    Parameter

    Mandatory

    Type

    Value Range

    Description

    error_code

    Yes

    String

    A maximum of 16 characters

    Error code.

    For details, see 4.

    error_msg

    Yes

    String

    A maximum of 1024 characters

    Error description.

    customer_info_list

    No

    List<CustomerInfo>

    -

    Customer list.

    For details, see Table 1.

    count

    No

    Integer

    -

    Total number of records.

    Table 1 CustomerInfo

    Parameter

    Mandatory

    Type

    Value Range

    Description

    corp_name

    Yes

    String

    A maximum of 128 characters

    Enterprise name.

    domain_name

    Yes

    String

    A maximum of 128 characters

    Account. If the customer has created an IAM user, the account name is returned.

    customer_id

    Yes

    String

    A maximum of 64 characters

    Customer account ID.

    start_time

    No

    String

    A maximum of 20 characters

    Time when an enterprise is registered.

    The value is UTC time in yyyy-MM-ddTHH:mm:ssZ format.

    The range of HH is 0-23, and the range of mm and ss is 0-59.

    cooperation_type

    No

    String

    Length: 1

    Association type.

    1: Referral

    2: Authorized Distributor

    3: Reseller

    Note:

    Currently, only Referral and Reseller are supported.

    label

    No

    String

    A maximum of 64 characters

    Tag. Fuzzy search is supported.

    telephone

    No

    String

    A maximum of 20 characters

    Customer phone number

    verifiedStatus

    No

    String

    A maximum of 5 characters

    Real-name authentication status.

    • -1: The real name is not authenticated.
    • 0: Real-name authentication is under review.
    • 1: The real-name authentication is not passed.
    • 2: The real name is authenticated.

    countryCode

    No

    String

    A maximum of 10 characters

    Country code, which is the country code prefix of a phone number.

    Example: 0086 for China

    Example response

    HTTP/1.1 200 OK
    Content-Type: application/json;charset=UTF-8
    Content-Length: length
    Date: response time
    
    {
      "count": 2,
      "error_code": "CBC.0000",
      "error_msg": "success",
      "customer_info_list": [
            {
                "customer_id": "7ff331de7af7457d8331de0bfe7a42b7",
                "corp_name": null,
                "domain_name": "mingcheng",
                "start_time": "2018-10-11T02:28:34Z",
                "cooperation_type": "1",
                "label": "xxx",
                "telephone": "139xxxxxxxx",
                "verifiedStatus": "-1",
                "countryCode": "xxxx"
            },
            {
                "customer_id": "67b5223d4f6e4cc18d8dfd2da9d01db8",
                "corp_name": null,
                "domain_name": "ambrosiaxu",
                "start_time": "2018-06-25T11:15:20Z",
                "cooperation_type": "1",
                "label": "xxx",
                "telephone": "139xxxxxxxx",
                "verifiedStatus": "-1",
                "countryCode": "xxxx"
            }
      ]
    }

  1. Returned Values
    NOTE:
    • 4xx: This class of HTTP status code is intended for situations in which the error seems to have been caused by the client, for example, the request contains bad syntax or incorrect parameters. You must ensure the request is correct.
    • 5xx: This class of HTTP status code is intended for cases in which the Huawei Cloud server is aware that it has encountered an error or is otherwise incapable of performing the request. In this case, contact Huawei Cloud customer service.

    HTTP Status Code

    Error Code

    Description

    200

    CBC.0000

    Success.

    500

    CBC.0999

    Other errors.

    400

    CBC.0100

    Incorrect parameter.

    403

    CBC.0151

    Access denied.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback