Push Trip Events API
API Endpoint:
https://integration.freighttiger.com/saas/trip/saas/trip/events/user_defined - Integration/Sandbox Environment
https://www.freighttiger.com/saas/trip//saas/trip/events/user_defined - Production Environment
Request Parameters:
Name | Type | Location | Description | Example |
---|---|---|---|---|
Authorization | string | headers | JWT token required to authenticate API call. | Authorization: Bearer eyJhbGciOiJIUzI1Ni |
Request Body:
Example value:
{
"feed_unique_id": "ab-a438z-ff",
"vehicle_number": "KA01AB3274",
"events": [
{
"event_category": "checkin",
"event_name": "loading",
"event_timestamp": "2019-10-01 04:59:00",
"event_location": {
"latitude": "45.76",
"longitude": "65.98",
"address": "15th Main, 1st Sector, HSR Layout, Bangalore, Karnataka 560102"
},
"attributes": {
"driver": "Raju",
"distance_travelled": "329.6 kms"
}
}
]
}
Schema:
Either trip_id
or feed_unique_id
is mandatory
{
feed_unique_id string
example: ab-a438z-ff
Feed unique id
vehicle_number string
example: KA01AB3274
vehicle number
events* [
List of events
{
description:
Event details
event_category* string
example: checkin
event_name* string
example: loading
event_timestamp* string($date-time)
example: 2019-10-01 04:59:00
event_location {
}
example: OrderedMap { "latitude": "45.76", "longitude": "65.98", "address": "15th Main, 1st Sector, HSR Layout, Bangalore, Karnataka 560102" }
attributes {
}
example: OrderedMap { "driver": "Raju", "distance_travelled": "329.6 kms" }
}]
}
Responses:
Status code 200 Event added successfully
{
"status": "string",
"result": {
"success": true
}
}
Post your questions in the comment box to get answers from the experts who watch this page.
For engineering support: visit FT Support