Skip to content

Trip API Schemas

Trip response (Triped)

Represents a trip returned by the instantCMR API.

{  

    "ouid": "EUT",  
    "ktroc": "o",  
    "ostSortBy": "0000000",  
    "dtuCreate": "2020-02-28T09:49:40.706Z",  
    "tripmeta": {  
        "ostTripCode": "200026571",  
        "ostCustomer": "BATHSYSTEM SPA",  
        "odtuCreate": "2020-02-27T10:20:23.839Z",  
        "ostInstructions": "use 6 ratchet straps",  
        "ostNotes": "call upon arrival",  
        "ostHaulerPlate": "FM682RK",  
        "ostTrailerPlate": "OB462PY"  
    },  
    "ouserxtidDriver": "494922944810349",  
    "rgdocr": [  
        {  
            "docrid": "iGq-fxXujlJ3VSCKtr5Mtw",  
            "dtuRequest": "2020-02-27T10:20:23.840Z",  
            "kdocr": "acc",  
            "fRequired": false  
        },  
        …  
    ],  
    "rgstan": [  
        {  
            "stanxtid": "geqcQAOxUbkeS-N8jEtJOQ",  
            "kstan": "ld",  
            "odtu": "2019-12-02T06:30:00.000Z",  
            "ostAddress": "IT 25011 Calcinato, VIA CAVOUR 149",  
            "ostNotes": "gate code: A678*",  
            "okmDistance": 825.0,  
            "ostSortBy": "0000000",  
            "cufis": {  
                "rgcufi": [  
                    {  
                        "id": "parking_lot",  
                        "n": "Parking Lot",  
                        "v": "Lot No. 2",  
                    },  
                    …  
                ]  
            }  
        },  
        …  
    ],  
    "cufis": {  
        "rgcufi": [  
            {  
                "id": "reference_number",  
                "n": "Reference Number",  
                "v": "202203-DE-19373",  
            },  
            …  
        ],  
    },  
    "ruts": {  
        "rgrut": [  
            {  
                "rutid": "sKtoHr7OS6GdxBybOt1Lrw",  
                "fpat": "document.pdf",  
                "cb": 11741,  
                "dtuUpload": "2021-11-16T19:33:34.368Z",  
                "urlv": {  
                    "url": "https://image-url-1"",  
                    "dtuValid": "2021-11-17T19:37:57.573Z"  
                }  
            }  
            …  
        ]  
    }  
}  

Fields

ouidstringOrganization unit id
ktrocktrocTrip open/close status.
ostSortBystring (optional)Defines the sort order of trips as shown to the driver. Trips will be shown in lexicographic order sorted by their first field that is provided from the following list: ostSortBy, tripmeta.odtuCreate, dtuCreate
dtuCreatedatetime (utc)Date and time when this trip was created.
odtuMfcdatetime (utc) (optional)Date and time when this trip was closed by driver. (only present if ktroc is mfc).
tripmetatripmetaFields describing the trip to the driver.
ouserxtidDriverstring (optional)Client-generated user id of the driver this trip is assigned to. (only present if the trip is assigned to a driver).
rgdocrlist of docrList of document requests.
rgstanlist of stanList of stations.
rutsrutsTrip attachments.
cufiscufisCustom fields of the trip or station.

Trip update (Tripeu)

Represents a trip update sent to the instantCMR API.

{
    "ouid": "EUT",
    "ktroc": "o",
    "ostSortBy": "0000000",
    "tripmeta": {
        "ostTripCode": "200026571",
        "ostOrderId": "AB2398VBA4",
        "ostAddress": "IT 25011 Calcinato, VIA CAVOUR 149",
        "ostCustomer": "BATHSYSTEM SPA",
        "odtuCreate": "2020-02-27T10:20:23.839Z",
        "ostInstructions": "use 6 ratchet straps",
        "ostNotes": "call upon arrival",
        "ostHaulerPlate": "FM682RK",
        "ostTrailerPlate": "OB462PY"
    },
    "ouserxtidDriver": "494922944810349",
    "rgdocr": [
        {
            "docrid": "qOMjwWEGbysBn8axLPlJ2A",
            "dtuRequest": "2020-02-27T10:20:23.839Z",
            "kdocr": "cmr",
            "ostShortName": "CMR (Calcinato)",
            "ostDesc": "scan all pages",
            "fRequired": true
        },  
        …
    ],
    "rgstan": [
        {
            "stanxtid": "geqcQAOxUbkeS-N8jEtJOQ",
            "kstan": "ld",
            "odtu": "2019-12-02T06:30:00.000Z",
            "ostAddress": "IT 25011 Calcinato, VIA CAVOUR 149",
            "ostNotes": "gate code: A678*",
            "okmDistance": 825,
            "ostSortBy": "0000000",
            "cufis": {
                "rgcufi": [
                    {
                        "id": "parking_lot",
                        "n": "Parking Lot",
                        "v": "Lot No. 2"
                    },  
                    …
                ]
            }
        },  
        …
    ],
    "cufis": {
        "rgcufi": [
            {
                "id": "reference_number",
                "n": "Reference Number",
                "v": "202203-DE-19373"
            },  
            …
        ]
    }
}

Fields

ouidstringOrganization unit id
ktrocktrocTrip open/close status.
ostSortBystring (optional)Defines the sort order of trips as shown to the driver. Trips will be shown in lexicographic order sorted by their first field that is provided from the following list: ostSortBy, tripmeta.odtuCreate, dtuCreate
dtuCreatedatetime (utc)Date and time when this trip was created.
tripmetatripmetaFields describing the trip to the driver.
ouserxtidDriverstring (optional)Client-generated user id of the driver this trip is assigned to. (omit if the trip should be unassigned from drivers).
rgdocrlist of docrList of document requests.
rgstanlist of stanList of stations.
cufiscufisCustom fields of the trip or station.

Trip open/close status (Ktroc)

Represents the status of the trip determining whether the trip is visible to the driver and/or whether documents can be still submitted to the trip.

Values

oOpen. Trip is shown for the driver and available for documents to be submitted
mfcClosed (by driver). Trip is shown for the driver (as closed) and no documents can be submitted. All required document requests have a document submitted for them.
cClosed. Trip has been closed by the dispatcher. Trip is not shown for the driver anymore.

Trip description (Tripmeta)

Fields describing the trip to the driver.

{  
    "ostTripCode": "200026571",  
    "ostCustomer": "BATHSYSTEM SPA",  
    "odtuCreate": "2020-02-27T10:20:23.839Z",  
    "ostInstructions": "use 6 ratchet straps",  
    "ostNotes": "call upon arrival",  
    "ostHaulerPlate": "FM682RK",  
    "ostTrailerPlate": "OB462PY"  
}  

Fields

ostTripCodestring
(optional)
Trip code.
ostOrderIdstring
(optional)
Order id.
ostAddressstring
(optional)
Address relevant to the trip (displayed to the driver in trip headings).
ostCustomerstring (optional)Name of customer.
odtuCreatedatetime (utc) (optional)Date and time when this trip was created (as displayed to the driver)
ostInstructionsstring (optional)Instructions.
ostNotesstring (optional)Additional notes attached to the trip.
ostHaulerPlatestring (optional)License plate of the hauler.
ostTrailerPlatestring (optional)License plate of the trailer.

Document request (Docr)

Represents a document requested from the driver.

{  
    "docrid": "iGq-fxXujlJ3VSCKtr5Mtw",  
    "dtuRequest": "2020-02-27T10:20:23.840Z",  
    "kdocr": "acc",  
    "fRequired": false  
}  

Fields

docridstringClient-generated document request id.
dtuRequestdatetime (utc)Date and time when this document request was created. Also determines the order in which document requests are displayed to the driver.
kdocrkdocrType of document requested.
ostShortNamestring
(optional)
A short name of this document request.
ostDescstring
(optional)
A (possibly multiline) message or note attached to this document request.
fRequiredbooleanSpecifies if the document request is mandatory, ie. if a document must be submitted for this request before the trip can be closed by the driver.
ofDeletedboolean (optional)Only present (with a value of true), if the document request has been removed from this trip.

Document types (Kdocr)

The following table defines the document types that can be requested from or submitted by the drivers.

KdocrCropped?Description (english)Description (hungarian)
cmryesCMRCMR
dlvrynyesDelivery noteSzállítólevél
palletnyesPallet receiptRaklapjegyzék
custdyesCustoms documentVámokmány
accnoVehicle accident reportGépjárműkár-bejelentés
miscyesMiscellaneous documentEgyéb dokumentum
wbtyesWeighbridge ticketMérlegjegy
miscphnoMiscellaneous reportEgyéb esemény
thescyesThermoscriptThermoscript
sanidyesSanitarian documentsEgészségügyi papír
gdamnoGoods damage reportÁrukár-bejelentés
waybyesWaybillMenetlevél
wmadyesWaste material accompanying documentHulladékkísérő okmány
dadyesDamage declarationKártérítési nyilatkozat
bolyesBill of ladingRakodási jegyzék
repyesResidence permitTartózkodási igazolás

In the above table

KdocrThe value of the kdocr field in document request or document update entities.
Cropped?Indicates if the images attached to the document will be automatically cropped and perspective-corrected by the instantCMR App.
Description (english)The title of the document request/document as shown to the driver on mobile devices with english locale. Also used for unsupported locales.
Description (hungarian)The title of the document request/document as shown to the driver on mobile devices with hungarian locale.

Station (Stan)

Represents a station of the trip's itinerary.

{
    "stanxtid": "geqcQAOxUbkeS-N8jEtJOQ",
    "kstan": "ld",
    "odtu": "2019-12-02T06:30:00.000Z",
    "ostAddress": "IT 25011 Calcinato, VIA CAVOUR 149",
    "ostNotes": "gate code: A678*",
    "okmDistance": 825.0,
    "ostSortBy": "0000000",
    "cufis": {
        "rgcufi": [
            {
                "id": "parking_lot",
                "n": "Parking Lot",
                "v": "Lot No. 2",
            },  
            …
        ]
    }
}

Fields

stanxtidstring (optional)Client-generated station id.
kstankstanStation type.
odtudatetime (utc)Date and time relevant to the station.
ostAddressstring (optional)Address of the station.
ostNotesstring (optional)Additional notes attached to the station.
okmDistancenumber (optional)Distance travelled in kilometers.
ostSortBystring (optional)Defines the sort order of stations as shown to the driver. Stations will be shown in lexicographic order sorted by their first field that is provided from the following list: ostSortBy, odtu.
cufiscufisCustom fields of the station.
ofDeletedboolean (optional)Only present (with a value of true), if the station has been removed from this trip.

Station types (Kstan)

The following table defines the types of trip stations that can be sent to drivers.

KstanDescription (english)Description (hungarian)
ldLoadingFelrakás
ulUnloadingLerakás
hHook up/downÁtakasztás
dsDriver swapGépjárművezető csere
owpMandatory waypointKötelező érintési pont
cucCustoms clearanceVámkezelés
cCrossingÁtkelés
tunTunnelAlagút
rcRailway crossingVasúti átkelés
refRefuellingTankolás
pParkingParkolás
ferFerryKomp
weiWeighingMérlegelés
bcBorder crossingHatárátkelés
resRestingPihenő
acsArrival to customer siteÉrkezés vevői telepre
dcsDeparture from customer siteIndulás vevői telepről

In the above table

KstanThe value of the kstan field in station or station update entities.
Description (english)The title of the station as shown to the driver on mobile devices with english locale. Also used for unsupported locales.
Description (hungarian)The title of the station as shown to the driver on mobile devices with hungarian locale.

Custom fields (Cufis)

Represents a list of custom fields attached to a trip or a station of a trip. Custom fields are displayed to the driver in the instantCMR mobile app and may contain supplementary information about the trip or the station they are attached to.

Represents the documents and routes attached to the trip or to a station of the trip.

{
    "rgcufi": [
        {
            "id": "reference_number",
            "n": "Reference Number",
            "v": "202203-DE-19373"
        },  
        …
    ]
}

Fields

rgcufilist of cufiList of custom fields.

Custom field (Cufi)

Represents a single custom field attached to a trip or a station of a trip. The id field serves a dual purpose: it is used to determine the display order of custom fields by sorting the fields in the alphabetical order of their ids. Custom fields also maintain their read/unread status on the mobile device. This unread status gets updated whenever either the value of the label of a custom field changes. To detect updates of an existing custom field the id of custom fields is used.

Custom fields are displayed as a label and a value, both provided in the Cufi entity.

{
    "id": "reference_number",
    "n": "Reference Number",
    "v": "202203-DE-19373"
}  

Fields

idstringUser-provided identifier of the custom field.
nstringLabel of the custom field.
vstringValue of the custom field.

Trip attachment storage (Ruts)

Represents the documents and routes attached to the trip or to a station of the trip.

{
    "rgrut": [
        {
            "rutid": "sKtoHr7OS6GdxBybOt1Lrw",
            "fpat": "station-2/route.bcr",
            "cb": 11741,
            "dtuUpload": "2021-11-16T19:33:34.368Z",
            "urlv": {
                "url": "https://attachment-url",
                "dtuValid": "2021-11-17T19:37:57.573Z"
            }
        }  
        …
    ]
}

Fields

rgrutlist of rutList of attachments.

Trip attachment (Rut)

Represents a document or route attached to the trip or to a station of a trip.

Fields

rutidstringServer-generated attachment id.
fpatstringName and path of the attachment. Documents attached to the trip should be stored in the root folder (e.g. /document.pdf) whereas documents attached to a station should be stored in a folder named after the stanxtid of the station (e.g. /station-2/route.bcr, where station-2 is the stanxtid of a station on this trip) Name of the document will be displayed to the driver.
cbnumberSize of the document in bytes.
dtuUploaddatetime (utc)Date and time when the document was uploaded to the trip.
urlvurlvTemporary blob url used to download the document.
© 2025 instantCMR LtdAPI Legal Disclaimer