get_orders_history

To get the history of orders, use the order/get_orders_history command.

Copied!
svc=order/get_orders_history&params={
						"itemId":<long>,
						"ivalType":<int>,
						"ivalFrom":<uint>,
						"ivalTo":<uint>,
						"name":"<text>",
						"unitId":<long>,
						"orderId":<long>,
						"orderUid":<long>,
						"routeId":<long>
				   }

Parameters

The required parameters are marked with an asterisk (*).

ParameterDefault valueDescription
itemId*
Resource ID.
ivalType1Requested interval type, the same as in messages. Possible values are 1,2,3,4.
ivalFrom0Interval start time.
ivalToUINT_MAXInterval end time.
name
Order name masks. For example, "name": "Vil*,Berl*" will search for orders which start with 'Vil' and 'Berl'.
unitId
Unit ID.
orderId
Order ID (can be repeated in history).
orderUid
Unique order ID.
routeId
Route ID.

Response

Copied!
{
	"orders":[
		{...}.
		{...},
		...
	],
	"count":<uint>,		/* number of the filtered orders (size of "orders") */
	"total":<uint>		/* total number of orders for the requested period */
}

Error codes

Error codeDescription
7Invalid resource ID.
6Internal error.
Download PDF file
Download Word document

See also