oTMS-openapi en
  1. oTMS API
oTMS-openapi en
  • oTMS API
    • Order Import
      PUT
    • orderOutbound
      POST
    • shipPointImport
      PUT
    • Delete delivery point
      DELETE
    • Order Assignment to Driver
      POST
    • TruckAndDriverImport
      PUT
    • Assign Driver to Order
      POST
    • Job Sheet Import
      PUT
    • Delete Job Sheet
      PUT
    • Order Recall
      POST
    • Share Link
      PUT
    • Carrier Export
      POST
    • Order Update
      PUT
    • Order Dispatch
      POST
    • Order Revoke
      PUT
    • Order Rating
      POST
    • Order Handover Creation
      PUT
    • Oorder Custom Update
      POST
    • Price File Matching
      POST
    • Order cost update
      POST
    • Shipper/Receiver export
      POST
    • Job Sheet Outbound
      POST
    • Job Sheet Recall
      PUT
    • TruckPosition
      POST
    • GPS Device
      POST
    • Jobsheet To Driver
      PUT
    • TrackandTrace
      POST
    • H5 Link
      PUT
  1. oTMS API

GPS Device

Developing
POST
/ws/gps/device

Location Temperature Information Push Interface#

Request

Header Params
user
string 
optional
Example:
GPS vendor id
password
string 
optional
Example:
encrypted password
Body Params application/json
dataset
array [object {11}] 
optional
id
string 
optional
License plate or GPS device ID
type
string 
optional
0- Vehicle license plate
1- GPS device ID
devicetime
string 
optional
GPS device time,yyyy-mm-dd hh:mm:ss
speed
string 
optional
GPS speed
latitude
string 
optional
latitude
longitude
string 
optional
longitude
position
string 
optional
geographic location
road
string 
optional
road
temperature
string 
optional
temperature
humidity
string 
optional
humidity
warning
string 
optional
0- No alarm
1- There is an alarm
records
string 
optional
Example
{
    "dataset": [
        {
            "id": "AB0215C",
            "type": "0",
            "devicetime": "2025-04-19 14:03:58",
            "speed": "10",
            "latitude": "-6.280404",
            "longitude": "107.174964",
            "position": "",
            "road": "",
            "temperature": "",
            "humidity": "",
            "warning": ""
        }
    ],
    "records": "1"
}

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://login.otms.com/ws/gps/device' \
--header 'user: GPS vendor id' \
--header 'password: encrypted password' \
--header 'Content-Type: application/json' \
--data-raw '{
    "dataset": [
        {
            "id": "AB0215C",
            "type": "0",
            "devicetime": "2025-04-19 14:03:58",
            "speed": "10",
            "latitude": "-6.280404",
            "longitude": "107.174964",
            "position": "",
            "road": "",
            "temperature": "",
            "humidity": "",
            "warning": ""
        }
    ],
    "records": "1"
}'

Responses

🟢200成功
application/json
Body
responseCode
string 
optional
Example
[
    {
        "responseCode": "SUCCESS"
    }
]
Previous
TruckPosition
Next
Jobsheet To Driver
Built with