This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:sidebar:remoteapi:apiref:order:update [02/10/2017 11:31] stan [Create/update] |
en:sidebar:remoteapi:apiref:order:update [29/11/2019 06:51] chdi [Response] |
||
---|---|---|---|
Line 1: | Line 1: | ||
{{indexmenu_n>1}} | {{indexmenu_n>1}} | ||
====== Update order ====== | ====== Update order ====== | ||
- | Basic method to work with orders is **orders/update**: | + | Basic method to work with orders is **order/update**: |
====How to start?==== | ====How to start?==== | ||
Line 141: | Line 141: | ||
"vt":<text> /* visit time according to the plan, UNIX_TIME */ | "vt":<text> /* visit time according to the plan, UNIX_TIME */ | ||
}, | }, | ||
- | "rp":<text>, /* order route */ | + | "rp":<text>, /* order route, google polyline encoding format */ |
"f":<uint>, /* order flags */ | "f":<uint>, /* order flags */ | ||
"tf":<uint>, /* lower bound of order completion time, UNIX-time */ | "tf":<uint>, /* lower bound of order completion time, UNIX-time */ | ||
Line 184: | Line 184: | ||
"error":4 /* if failed to assign */ | "error":4 /* if failed to assign */ | ||
}</code> | }</code> | ||
+ | |||
+ | ====Internal flags(if)==== | ||
+ | ^Value^Description^ | ||
+ | | 0x1 | Order in transfer| | ||
+ | | 0x2 | Driver notified about track deviation to order| | ||
+ | | 0x4 | Driver notified about status was not confirmed| | ||
+ | | 0x8 | Client notified about old ETA| | ||
+ | | 0x10 | Client notified about ETA| | ||
+ | | 0x20 | Client notified about RD (mileage) | | ||
|