IotHub
  1. customer
IotHub
  • README
  • Update Record
  • token
    • createToken
      POST
    • destroyToken
      POST
  • customer
    • customerPage
      POST
    • customerTree
      POST
  • device
    • command
      • commandSend
      • commandInfoList
      • cutOilElectric
      • getConfig
    • devicePage
      POST
    • deviceTypes
      POST
    • deviceTypeInfo
      POST
    • deviceDataByDeviceIds
      POST
    • deviceDataByCustomerId
      POST
    • deviceTripInfoByTripId
      POST
    • deviceTripsByDeviceId
      POST
    • expandInfoByDeviceId
      POST
    • saveDeviceChannelName
      POST
  • fence
    • fencePage
      POST
    • fenceInfo
      POST
    • addFence
      POST
    • saveFence
      POST
    • delFence
      POST
    • fenceDevices
      POST
    • fenceDeviceUpdate
      POST
    • fenceDeviceDel
      POST
    • fenceDeviceAdd
      POST
  • push
    • README
  • video
    • H5 page
    • H5 Page-V2
    • liveVideo
    • playBackList
    • historicalUpload
    • playBack
    • replaySet
    • taskPage
    • taskDelete
    • getNodes
  • alarm
    • alarmTypeList
    • alarmFilePage
    • alarmFileByAlarmId
    • alarmHistoryPage
    • alarmPageByUser
  • audio
    • README
    • talk
    • talkPlus
  • gallery
    • filePageV2
    • filePage
    • deleteFile
    • capture
    • capturePage
  • fleet
    • faceRecordPage
  • gps
    • historyData
  • Protocol Analysis
    POST
  1. customer

customerTree

Singapore
https://mettahub.mettaxiot.com/gps
Singapore
https://mettahub.mettaxiot.com/gps
POST
/v2/openapi/customer/tree

Request

Header Params
Authorization
string 
required
Body Params application/json
customerId
string  | null 
optional
Not specified, query the default.
Default:
null
Example
{
    "customerId": "null"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mettahub.mettaxiot.com/gps/v2/openapi/customer/tree' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "customerId": "null"
}'

Responses

🟢200Success
application/json
Body
code
integer  | null 
optional
Default:
null
data
array[object (ApiCustomerVO) {9}]  | null 
optional
Default:
null
id
string  | null 
optional
Default:
null
pid
string  | null 
optional
Default:
null
customerName
string  | null 
optional
Default:
null
customerType
string  | null 
optional
1-Dealer 2-Company 3-Person
Default:
null
contactName
string  | null 
optional
Default:
null
contactTel
string  | null 
optional
Default:
null
contactMail
string  | null 
optional
Default:
null
contactAddress
string  | null 
optional
Default:
null
leaf
boolean  | null 
optional
true or false
Default:
null
msg
string  | null 
optional
Default:
null
Example
{
  "code": 0,
  "data": [
    {
      "id": "",
      "pid": "",
      "customerName": "",
      "customerType": "",
      "contactName": "",
      "contactTel": "",
      "contactMail": "",
      "contactAddress": "",
      "leaf": false
    }
  ],
  "msg": ""
}
Modified at 2024-01-02 08:06:58
Previous
customerPage
Next
commandSend
Built with