Update Distributor's Real Name Interface

Update the real name information of the distributor, used to modify the real-name authentication information in the distributor's account.

Precautions

  • This interface uses the POST method and requires data to be submitted in application/ format
  • You need to log in as a user to call this interface
  • Only users with distributor status can update their real names.
  • The update of the real name may require real-name authentication verification

Request address

{域名地址}/api/retailer/update

Description:{域名地址}Need to replace it with your domain address, such ashttps://en.anqicms.com/api/retailer/update

Request syntax

POST {域名地址}/api/retailer/update
Content-Type: application/json

Request header

This interface also involves common request headers. For more information, please seeCommon Request Headers (Common Request Headers).

Request Parameters

Field Name Type Required Description
Real Name string No The real name of the distributor; if not provided, this item will not be updated

Response Headers

This interface only involves public response headers. More information, please refer toCommon Request Headers (Common Request Headers).

Return parameters

Field Name Type Description
code integer Error code
message string Error Description

Example Usage

Request Example

POST /api/retailer/update HTTP/1.1
Host: www.anqicms.com
Content-Type: application/json

{
  "real_name": "张三"
}

Response Example

{
  "code": 0,
  "msg": "保存成功"
}

Error Code

Error code Description
0 OK
-1 Error, the reason is indicated in msg
1001 Not logged in
1002 Unauthorized
200 API request OK