Customer/Agent

Query customer list

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.queryCustomerOfAgentPage Access after login

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
currentintegerRequired

Current Page

sizeintegerRequired

Number of Items per Page

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.queryCustomerOfAgentPage
POST /api/global/customer.app.CustomerWebApiService.queryCustomerOfAgentPage HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 23

{
  "size": 20,
  "current": 1
}
200Success
{
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "data": {
    "records": [
      {
        "id": 1,
        "createTime": 1,
        "updateTime": 1,
        "customerGroupId": 1,
        "customerGroupName": "text",
        "status": 1,
        "companyId": 1,
        "customerNo": "text",
        "phone": "text",
        "phoneArea": "text",
        "registerSource": 1,
        "unitId": 1,
        "firstName": "text",
        "lastName": "text",
        "email": "text",
        "customerType": 1
      }
    ],
    "total": 1,
    "size": 1,
    "current": 1
  },
  "fail": true,
  "ok": true,
  "bizCode": "text",
  "msgParams": "text"
}

Customer registration

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.registerOfAgentShareLink Accessible to visitors Agent share link, customer registration

Header parameters
companyIdstringOptionalExample: {{company}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
countrystringRequired

Country

langstringOptional

Language information, default en-US

phoneAreastring · max: 15Optional

Phone area code

loginNamestring · max: 50Required

Account: email/phone number, used in conjunction with type

pwdstringOptional

Password, MD5 encryption

typeinteger · int32 · min: 1 · max: 2Required

Registration method: 1=email, 2=phone number

registerDevicestringOptional

Registered device model

registerSourceinteger · int32 · min: 1Required

Registration source: 1=mobile web: H5, 2=pc web: PC_Web, 3=system & backend registration: System, 4=Android native app: Android, 5=iOS native app: iOS, 6=HarmonyOS: HOS, 7=pc windows client: PC_Win, 8=pc mac client: PC_Mac, 9=other

utmSourcestringOptional

Advertising source (account opening link parameter source)

utmMediumstringOptional

Advertising medium (account opening link parameter medium)

utmCampaignstringOptional

Advertising campaign (account opening link parameter campaign)

utmContentstringOptional

Advertising group (account opening link parameter content)

utmTermstringOptional

Keyword (account opening link parameter term)

customerGroupIdinteger · int64Optional

Client group ID

thirdServerCodestringRequired

Unique identifier of third-party system (input agent customer number)

Responses
200Success
application/json
post
/global/customer.app.CustomerWebApiService.registerOfAgentShareLink
POST /api/global/customer.app.CustomerWebApiService.registerOfAgentShareLink HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 150

{
  "registerSource": 1,
  "type": 2,
  "country": "CN",
  "loginName": "18168114637",
  "thirdServerCode": "86021560",
  "pwd": "magna reprehenderit in",
  "customerGroupId": 1
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-8e544ed3-057a-48ed-ade2-27d3998f7411-1677654224398",
  "code": "0",
  "data": {
    "customerGroupId": null,
    "sources": null,
    "apiKey": "47b471e57c394e8fbc18535805e04016",
    "updateTime": 1677654224184,
    "expiredTime": 1685430224184,
    "privateKey": "MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAKvivs7OSD2kYMGjDoOQ6ATsnLV7GMZgJUtDW5N4RS+ZEG/unVSgbBxfVRYvJ3TQ7/bmf24Brs+dqEhWrlXHgdxe2ieQ4IBZb94jScUW2GWBlpz1ULCB1UIYF0sp6fzfadgeCkJrEdtC5xcp0dbg6KzAJOT2Qg6fuELt6M6PQsQlAgMBAAECgYA96ixfJDEjey2bMpgMzkq1U2HTgWbYNlPYu4emJEGPtqwUFbi4fhzTT4e/uPaWfpihsD+gqZyFjr3KaObdYUMmPX2gNVn1qtcTICF4Y0MPFhaGIb8hUzi/xJpOUYinOFzZpE3bt1EUvIlIvDzdqDKD6gEs6kh2ana2JPXzZAZiwQJBAOZ3PbrqDNM239/TvD2yzG6Z35thInH1P4ziShn3saOwU5vNYRt4ArfgNYUnjrlSFOYxAtkxr2GCOIUdfiYwd1UCQQC+7fu1FMWFEKnyg2DR0nkaj461EWNgEUD1nCUDP4d71ccUcf6399faatc3XAqzG7+XApxQpVp+eQIS3QefyHmRAkAJGdRaOTvga15T3GymkxT3mSP3YtKVZXXo/lamx90/9YqXsHiROSACWtxCMdm0/8TLgkv2f7vJQfcxaoS8xVUxAkAQbNzImT7c0bAtIsxDgL3WYR8/yH0qGJHkD0jH3MFFEAEOazgkj3fMXICjTJHHEs4KqbjU30THuJVLFiS/xDlhAkA4L4sl3aFVDFo0CUFjSMxFquaYe8QeS8t1eBpUR7PSJcKS80jKrHk4s8SOSf9/yuU/Kbnki4rUTXpR5fSscOqC",
    "whiteIps": null,
    "companyId": 368,
    "createTime": 1677654224184,
    "customerId": 117,
    "ipLimit": false,
    "tag": "2343",
    "withdrawTime": 1677827024184,
    "secretKeyMd5": "95cfcea9ef853cd519d65858ddc01dfe",
    "id": 3,
    "permissionDTOList": [
      {
        "code": "ready_only",
        "paths": null,
        "canEdit": false,
        "name": "Read",
        "status": 1
      },
      {
        "code": "trade",
        "paths": null,
        "canEdit": true,
        "name": "Spot Trade",
        "status": 2
      },
      {
        "code": "contract_trade",
        "paths": null,
        "canEdit": true,
        "name": "Contract Trade",
        "status": 2
      },
      {
        "code": "captial_out",
        "paths": null,
        "canEdit": true,
        "name": "Withdraw",
        "status": 2
      }
    ],
    "customerNo": "86000116",
    "validityDays": 90,
    "pubKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCr4r7Ozkg9pGDBow6DkOgE7Jy1exjGYCVLQ1uTeEUvmRBv7p1UoGwcX1UWLyd00O/25n9uAa7PnahIVq5Vx4HcXtonkOCAWW/eI0nFFthlgZac9VCwgdVCGBdLKen832nYHgpCaxHbQucXKdHW4OiswCTk9kIOn7hC7ejOj0LEJQIDAQAB"
  },
  "bizCode": "",
  "tm": 87948437,
  "msgParams": null,
  "ok": true
}

Last updated