Table Top Schnittstelle
Last updated
by
Jürgen Weisental
> Schnittselle für externe Schankanlagen
>
> API Key Typ Buchung (nicht Kunden/Buchung)
>
> GET /rest/extern/\[APIKEY\]/tabletop/cardinfo/cardid\
> \
> public CardInfo() {
> public long cardId { get; set; }
> public bool valid { get; set; }
> public string name { get; set; }
> public long balance { get; set; }
> public long credit { get; set; }
> public int type { get; set; }
> public bool isAllowedToPourAlcohol { get; set; }
> }
>
> balance,credit in cents \
> type = 0 normal,99=admincard\
> \
> bsp: \
> [https://demo.portal.dikas.de/rest/extern/tabletop/pVubR2uotsdEyTPVPpXJ/cardinfo/47831643164](https://demo.portal.dikas.de/rest/extern/tabletop/pVubR2uotsdEyTPVPpXJ/cardinfo/47831643164)
> POST /rest/extern/\[APIKEY\]/tabletop/transaction
>
> public class transactionRequest { \
> **public long cardId { get; set; }** \
> public long volume { get; set; } \
> public string volumeUnit { get; set; } \
> public int volumeDecimalPlaces { get; set; } \
> **public long moneyAmount { get; set; }** \
> public string currencyPrefix { get; set; } \
> public string currencySuffix { get; set; }\
> public DateTime startTime { get; set; }\
> public DateTime endTime { get; set; }\
> **public int plu { get; set; }** \
> public string productName { get; set; }\
> public string description { get; set; }\
> public bool staffCard { get; set; }public bool cleaningCard { get; set; }
>
> }
>
> BOLD needed, other optional
>
> Reponse : CardTransactionResponse {\
> public bool valid {get;set}\
> }
·