Updated on 2024-07-05 GMT+08:00
Verifying Customer Registration Information (Old)

Verifying Customer Registration Information (Old)

Function

This API is used to check whether the account name, and mobile number or email address entered by the customer can be used for registration.

Note:

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

This API will be brought offline. For details about the new API for verifying customer registration information, see Verifying Customer Registration Information.

URI

POST /v1.0/{partner_id}/partner/customer-mgr/check-user

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?

Request

Request parameters

Parameter

Mandatory

Type

Value Range

Description

searchType

Yes

String

[email|mobile|name]

The options are email, mobile, or name.

searchKey

Yes

String

A maximum of 64 characters

Mobile number, email address, or account name.

  • The mobile number must comply with the regular expression "^\d{4}-\d+$". The value contains the country code and starts with 00. The format is "00XX-XXXXXXXX".
  • name: The value must comply with the regular expression "^([a-zA-Z-]([a-zA-Z0-9_-]){4,31})$" and contains 5 to 32 characters. The value cannot start with op_ or shadow_ and cannot contain only digits. It must start with a letter (case-insensitive) or a hyphen (-).

Example request

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

{
  "searchType": "mobile", 
  "searchKey": "0086-xxxxxxxxxxx"
}

Response

Response parameters

Parameter

Type

Value Range

Description

error_code

String

A maximum of 16 characters

Error code. For details, see Returned Values.

error_msg

String

A maximum of 1024 characters

Error description.

status

String

A maximum of 16 characters

  • 0: The account name, mobile number, or email address does not exist.
  • 1: The account name, mobile number, or email address already exists.

uplimit

String

A maximum of 1 character

Whether the upper limit has been reached.

  • 0: The upper limit has not been reached.
  • 1: The upper limit has been reached.

Example Response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: length
Date: response time  

{
  "error_code": "CBC.0000",
  "error_msg": "success",
  "status": "0",
  "uplimit": "0"
}

Returned Values

  • 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.

200

CBC.0100

Invalid input parameter.

400

CBC.5001

You are not a partner yet.

500

CBC.0999

Other errors.

403

CBC.0151

Access denied.