Waybill information
This API allows you to get waybill data for a specified period.
How to get data
Method
GET
Request address
To get the data, use the address: https://<server_address>/api/api.php?
Request parameters
-
cmd=get_waybill — command to get waybills
-
ts — start time of the selection period (Unix timestamp)
-
agent_id — agent identifier
-
node — node number where the command should be executed
Example request
https://<server_address>/api/api.php?cmd=get_waybill&ts=1596022528&agent_id=44841&node=1
|
Response
{
"code": 0,
"data": [
{
"ts": 1596022528,
"te": 1596488400,
"agent_id": 44841,
"account_id": 3934,
"waybill": {
"name": "test bill1"
}
}
]
}
|
In response to the API request, the following is returned:
-
code — result code (0 = success)
-
data — array with waybill information:
-
ts — waybill start time (Unix timestamp)
-
te — waybill end time (Unix timestamp)
-
agent_id — agent identifier
-
account_id — account identifier
-
waybill — object containing waybill details:
-
name — name of the waybill