Online Order
Last updated
by
Jürgen Weisental
---
Dikas Online Order
Demo HTML Projekt
Aktivierung:
1. System -> Stammdaten -> API\
API Key für Bestellung erstellen.
Artikel und Gruppen abholen (Http Get)\
/rest/online/{APIKey}/articels
Demo Bestellung (Http Get)\
/rest/online/{APIKey}/order
Bestellung Senden (Http Post)\
/rest/online/{APIKey}/order
Tisch\
/rest/online/{APIKey}/tables
Data:\[ {Id:GroupId, Name:GroupName, Tables:\[{Id:TableId,Name:Na,e}\]},.... \]
Tische können in der Bestellung über die TableId übergeben werden.
Bsp:\
[https://demo.portal.dikas.de/rest/online/uFm9Vx00DwEt3RiAPQm1/articels](https://demo.portal.dikas.de/rest/online/uFm9Vx00DwEt3RiAPQm1/articels)
[https://demo.portal.dikas.de/rest/online/uFm9Vx00DwEt3RiAPQm1/tables](https://demo.portal.dikas.de/rest/online/uFm9Vx00DwEt3RiAPQm1/tables)
Nachricht:\
curl -H "Content-Type: application/json" --data "{'TableId':'aaaaaaa','Message':'Bezahlen'}" [https://demo.portal.dikas.de/rest/online/uFm9Vx00DwEt3RiAPQm1/message](https://demo.portal.dikas.de/rest/online/uFm9Vx00DwEt3RiAPQm1/message)
Bsp Buchung auf einen Tisch inkl. Optionen
curl -H "Content-Type: application/json" --data "{'TableId': 'TNHA1h','Positions': \[ {'ArticleId': 'fcbf667e-be81-4f16-b0d3-8b5c789a671b', 'Count': 2.0,'ExtraOptions': \[{'Count': 1,'Id': 'wjkh2','Name': 'ohne Eis','Price': 0.50}\]}\]}" [https://demo.portal.dikas.de/rest/online/uFm9Vx00DwEt3RiAPQm1/order](https://demo.portal.dikas.de/rest/online/uFm9Vx00DwEt3RiAPQm1/order)
Bsp Projekt: [https://hum.dikas.de/file/file/download?guid=d7a6c9a1-f666-4b1c-9296-84fd0b25b134](https://hum.dikas.de/file/file/download?guid=d7a6c9a1-f666-4b1c-9296-84fd0b25b134)
·