You can use this function to send simple service orders to YellowFox tablets. These contain only one destination and an order text. The order can return status messages and you are able to attach a form, which the driver has to fill-out after executing the order. You can e.g. use this to model delivery notes.

All customers who need more than this can use the Tour Webservice, located at https://yfox.li/tour. The Tour Webservice is already included in the YellowFox subscription and can be used for free after activation. Beside all functions that are supported by orders, tours offer a lot more. You are able to define multiple pick-up and delivery stations or use YellowFox workflows. By using workflows you can define precisely what the driver has to do in which order. Multi-langual status messages are also possible, as well as multiple shipments for a single address. Even by building a tour with just one destination it will still be much more  powerful than a simple order.

To unlock to Tour Webservice for free or get further information and help, please contact the YellowFox support. 

Creates an order and sends it to the vehicle.

Description

POST do_order.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&customorderid=NR123XYZ&ordertext=Auftragstext&lat=51.0374&lon=13.587813

Parameter

ParameterDescriptionTypeNoteMandatory
companyRTI company keystring
yes
customorderiduser-defined order numberstringmax. 20 chars (will not be checked for duplicates)

yes

ordertextorder textstring

max. 500 chars (CE Display, Tablet)

max. 200 chars (all other displays)

yes
vehicleRTI vehicle keystring
yes
latLatitude of navigation targetfloat-90 to +90 in WGS84 format yes for Garmin displays
lonLongitude of navigation targetfloat-180 to +180 in WGS84 format yes for Garmin displays
streetstreet name of navigation targetstringmax. 100 chars (reduces the max char count of order text for garmin displays)no
hnrhouse number of navigation targetstringmax. 10 chars (reduces the max char count of order text for garmin displays)no
zipcodezipcode of navigation targetstringmax. 10 chars (reduces the max char count of order text for garmin displays)no
citycity of navigation targetstringmax. 100 chars (reduces the max char count of order text for garmin displays)no
countrycountry code of navigation targetstringmax. 3 chars (reduces the max char count of order text for garmin displays)no
customername1Customer Name 1stringmax. 100 chars (will be displayed only on Fleet V3)no
customername2Customer Name 2stringmax. 100 chars (will be displayed only on Fleet V3)no
target_timetarget arrival timedatestring

Format: YYYYMMDDHHMM

reduces maximum char count of order text down by 18 chars

no
sortnumbersort numberint

Will be written in front of the order text in brackets. Reduces the max char count of order text + 2 chars.

no
formname

name of customer form which will be opened after order has been executed

string

max. 20 chars (available for CE Displays at Version 1.1.67 and Tablets)

Attention

Form must be configured!

no
textlayout

layout of order text at display

(only available for Garmin FMI displays)

int
  • 0 = [sort number][addresstext][target time]order text (default)
  • 1 = [sort number]order text[addresstext][target time ] (only for Garmin FMI displays)
  • 2 = [sort number][target time][addresstext]order text(only for Garmin FMI displays)

Attention

sort number, order text and target time must be given if these values should be transmitted

no
save_in_poolSaves the order only in the order pool and does not send it to a vehicle.int

0 = is not stored in the order pool and requires a vehicle

1 = is stored in the order pool, vehicle key is not required, but the import key is

no
metameta infostringThis info will be returned on accessing the order via get_orders.php to be able to track this order.no
attachmentsfile attachmentsstring

UUIDs of desired file attachments, comma-separated

You get these UUIDs while uploading a file via file_storage/upload_file.php or you can access them via file_storage/get_overview.php

no

Return

A string will be returned. If the request was successful "OK". If the request failed "ERROR:Description".

Example calls

Simple order
https://map.yellowfox.de/rti/do_order.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&customorderid=NR1234&ordertext=Auftragstext

https://map.yellowfox.de/rti/do_order.php?company=COMPANY_RTIKEY&vehicle={"type":"car_ident","groupKey":"GROUP_RTIKEY","ident":"VEHICLE_IDENT"}&customorderid=NR1234&ordertext=Auftragstext
Example with navigation target and target time
https://map.yellowfox.de/rti/do_order.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&customorderid=NR1234&ordertext=Auftragstext&lat=51.0374&lon=13.587813&street=Hauptstr&hnr=3&zipcode=01723&city=Kesselsdorf&country=D&target_time=201411310800

https://map.yellowfox.de/rti/do_order.php?company=COMPANY_RTIKEY&vehicle={"type":"car_ident","groupKey":"GROUP_RTIKEY","ident":"VEHICLE_IDENT"}&customorderid=NR1234&ordertext=Auftragstext&lat=51.0374&lon=13.587813&street=Hauptstr&hnr=3&zipcode=01723&city=Kesselsdorf&country=D&target_time=201411310800
Example with navigation target + form + sort number + textlayout
https://map.yellowfox.de/rti/do_order.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&customorderid=NR1234&ordertext=Auftragstext&lat=51.0374&lon=13.587813&street=Hauptstr&hnr=3&zipcode=01723&city=Kesselsdorf&country=D&sortnumber=1&formname=Abholung&textlayout=2

https://map.yellowfox.de/rti/do_order.php?company=COMPANY_RTIKEY&vehicle={"type":"car_ident","groupKey":"GROUP_RTIKEY","ident":"VEHICLE_IDENT"}&customorderid=NR1234&ordertext=Auftragstext&lat=51.0374&lon=13.587813&street=Hauptstr&hnr=3&zipcode=01723&city=Kesselsdorf&country=D&sortnumber=1&formname=Abholung&textlayout=2
  • No labels