FleetUp API Docs
  1. Trip Share
FleetUp API Docs
  • Quick Start
    • Your First API Call
    • Token Expiration
    • Rate Limit
    • Error Codes
  • API Reference
    • Introduction
    • Authentication
      • /token
      • Obtain JWT Token
    • Account & User & Device
      • /account-info
      • /users
      • /drivers/list
      • /devices
      • /devices/status
      • /devices/unlock
      • /devices/driver-overview
      • /devices/engine-hours
      • /devices/fuel-level
      • /devices/odometer
      • /devices/latest-ecu-data
      • /devices/{device-id}
      • /devices/{device-type}
      • /devices/{device-type}/details
      • /devices/{device-type}/history
    • Trips
      • /trips/history
      • /trips/ongoing-trips
    • Trip Share
      • /tripshare/live-eta
        POST
      • /tripshare/partners
        GET
      • /tripshare/share
        POST
    • Alerts
      • /alerts/summary
      • /alerts/history
      • /alerts/bulk-history
      • /fencealerts/fence-names
      • /fencealerts/geo-fencealerts
    • Location
      • Retrieve GPS data within a 24-hour time range
      • /gpsdata/device-last-location
      • /gpsdata/latest
      • /gpsdata/latest/4cj
      • /gpsdata/latest/5ta
      • /bulk-gpsdata
    • Maintenance
      • /maintenance/history
      • /maintenance/indicators
      • /maintenance/settings/indicators
      • /maintenance/settings/measurements
    • Reports
      • /reports/temperature-sensors
      • /reports/{report-key}
    • Geofence
      • Get all fences
      • Get fence detail
      • Retrieve geofence alerts
    • Others
      • /jobs
  • API Guides
    • Retrieve All Devices from an Enterprise
  1. Trip Share

/tripshare/share

POST
/tripshare/share
This API is to share devices with registered partners.

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Query Params
acctId
number 
required
Account ID
devId
string 
required
Device ID
userId
number 
required
Partner User ID
destination
string 
required
Destination Address
shipNumber
string 
required
Shipping Number
restTime
number 
optional
Rest time, unit: seconds, default value: 0
radius
number 
optional
Destination radius, default 150 meters, valid value: 100-5000
note
string 
optional
Other information, no more than 300 characters
Header Params
token
string 
required

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 '/tripshare/share?acctId&devId&userId&destination&shipNumber' \
--header 'token;' \
--header 'x-api-key;'

Responses

🟢200成功
application/json
200 response
Body
message
string 
optional
Example
{
    "message": "string"
}
🟠400请求有误
Modified at 2025-02-28 08:12:14
Previous
/tripshare/partners
Next
/alerts/summary
Built with