Beställningar
API för beställningar i Tjänsteguiden
FormatXML AuthLogin OriginTjänsteguiden ConsumerStadsnät
orders
Use to fetch new orders from the system. This only returns the order data, and more info about each order is found via order_info(). Note that the valuefor delivery_date can be "asap" for "as soon as possible"
Request
GET /admin/edit/services/plain/orders
Attributes
- mandatory
Data format: string
Example: 2015-10-01
Show orders only from this date and later - mandatory
Data format: integer
Example: 1234
API User with privileges - optional
Data format: string
Example: json
What format should the response be in, valid values are 'xml' and 'json'
Example request
GET /admin/edit/services/plain/orders?method=orders&date=2015-10-01&api_user=1234
Response success: 200
HTTP/1.1 200
Content-Type: application/xml<serviceguide> <response> <order> <id>19530</id> <type>order</type> <date>2015-10-06 11:48:00</date> <status>new</status> <service>2440</service> <xsp>31420</xsp> <delivery>2015-10-06 00:00:00</delivery> <customer>16745</customer> </order> <order> <id>19531</id> <type>order</type> <date>2015-10-06 11:48:00</date> <status>new</status> <service>2440</service> <xsp>31420</xsp> <delivery>asap</delivery> <customer>16746</customer> </order> </response> </serviceguide>