Offene Posten an eine Barkasse senden.
Voraussetzung:
1. Arbeitsplätze
Backend -> System -> Stammdaten -> Sonstiges -> Arbeitsplätze
2. API Key erstellen
Backend -> System -> Stammdaten -> Sonstiges -> API
API Key Typ Buchung erstellen und den Arbeitsplatz auswählen.
1. POST Request an
https://\[x\].portal.dikas.de/rest/cp/addcard/\[APIKey\]
Body CPAddByPlu\[\]
public class CPAddByPlu { \
PLU:string \
Count:number (default:1) \
Price:number (optional) \
Name:string WebHookUrl:string, \
ExtraDescription: (optional)\
TableId: (optional) \
}
TischId: Name des Tisches bsp Tisch 1
Bsp. Bar Buchung
curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" -d "\[{'PLU': 100, 'WebHookUrl': ''},{'Name':'Test Art', Price:1.33,Count:1}\]" https://demo.portal.dikas.de/rest/cp/addcard/Lkk4lH8jVlbcRfYgCcv6
Bsp. Tisch 1 Buchung
curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" -d "\[{'PLU': 100, 'TableId': 'Tisch 1'}\]" [https://demo.portal.dikas.de/rest/cp/addcard/Lkk4lH8jVlbcRfYgCcv6](https://demo.portal.dikas.de/rest/cp/addcard/Lkk4lH8jVlbcRfYgCcv6)
PLU: PLU nummer der Artikel
Count: Anzahl optional default:1
Name: Name des Artikels optional
ExtraDescription: Extra Text\
WebHoolURL: URL Die nach dem Bezahlen aufgeführt wird. Es wird die komplette Rechnung im \
Tisch auf denn Gebucht werden soll z.B Tisch 1