Apologies if I caused some confusion. The initial code I sent for “Hello” was a test application. The real application is more complex. The request is as below
POST /TableTracking/TableCharge/2013 HTTP/1.1
Host: 10.0.0.130:20600
Content-Type: application/json
User-Agent: insomnia/10.2.0
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImctTDk3c2FQOE5HcGJMYVlmQ1JOSG5USThacyIsImtpZCI6ImctTDk3c2FQOE5HcGJMYVlmQ1JOSG5USThacyJ9.eyJpc3MiOiJodHRwczovL3Nzby5teXR4dC5jb20uYXUiLCJhdWQiOiJodHRwczovL3Nzby5teXR4dC5jb20uYXUvcmVzb3VyY2VzIiwiZXhwIjoxNzMzOTU0MTk3LCJuYmYiOjE3MzM5NTI5OTcsImNsaWVudF9pZCI6InNlZyIsInNjb3BlIjpbIm9wZW5pZCIsInJlc291cmNlX2FjY2VzcyJdLCJzdWIiOiJzZW5wb3MiLCJhdXRoX3RpbWUiOjE3MzM5NTI5OTcsImlkcCI6Imlkc3J2IiwicmVzb3VyY2VfYWNjZXNzIjoiQWxsIiwianRpIjoiNzZkM2VmNDRmZGMxZmY0OGQ5MjNiNWRhNjI2MTNkZmYiLCJhbXIiOlsicGFzc3dvcmQiXX0.lE2BrDIx4nOC3qq_95ehcYOkVuT5x_eeUPKxtA0llQSSeT8N-ldk6mr9pHXSlFAd3dEGfvuxKj6hLUwFWaFsYlA-UhYHmj-metRUEDv7WvmiZnk5H22ul2WVmorly_6qTLfqo6mFweMC3wTJEspcuf4LxWX2tGN9ePPwYtT864XyZZjwEFMKAJ0TUOBAVnSSOZLr4qKzmjHH6EeCHuBqRL5cFbyrnx_TcGUepJ3bjwzPFg-WwtBSwRGxmTIn2BYYEOdAMWUhxO8mY3Nr8swqFtvCdXd6MrwbaPGvLF71gBfxiT8yKIEvtlStCAIjXjIWxaBVmQgu1_CQr0TMHDQcOA
Accept: /
Content-Length: 1280
| {“TblID”:2013,“TableSaveInfo”:{“SaleItems”:[{“ItemID”:903,“Quantity”:1,“PriceLevelType”:0,“Price”:26.5,“OriginalPrice”:0,“PLUPriceLevelID”:1,“DefaultPrice”:26.5,“Description”:“Coq Au Vin”,“DepartmentID”:55,“PromotionDiscount”:0,“ItemType”:“PLU”,“ItemSubType”:0,“TimeCreated”:“2025-01-30T11:43:15.9317740+11:00”,“TimeModified”:“2025-01-30T11:43:15.9332038+11:00”,“SubItems”:,“SeatNumber”:1,“PrintedQuantity”:0,“Group”:" Mains",“Taxable”:true,“PrintStyleID”:17,“isRemovable”:true,“PrintOrder”:40,“ShortDescription”:“Coq Au Vin”,“SubGroup”:“Nineteen 21 Mains”,“IsSelected”:false,
| “GUID”:“cf97e4dee5b440ddab28514ca6764826”,“RelatedItems”:,“NotificationOutletID”:0,“PromotionTrackingIDs”:,“PriceCalcs”:[{“PromotionDetailID”:0,“Priority”:0,“Calculation”:“[GUESTS]”,“Description”:“Initial price”,“PLUPriceLevelID”:1,“PLUPriceLevelType”:“Normal”,“CalculatedPrice”:26.5,“Discount”:0.0,“Valid”:true,“HasCalcError”:false}],“PointsCalcs”:,“PromotionScores”:,“ApprovedMemberPoints”:,“Amount”:26.5,“DiscountAmount”:0.0,“AmountTotal”:26.5,“TotalAmount”:26.5,“GST”:2.41,“FullDescription”:“Coq Au Vin”}],“ReceiptNumber”:31475,“Terminal”:{“ID”:7,“Code”:0},“SaleDateTime”:“0001-01-01T00:00:00.0000000”,“CashDrawer”:0,
| “GUID”:“78af332aed90496e92e95100570f606f”,“SaleHoldType”:“SaleHold”}}
The response is
{
“responseStatus”: {
“errorCode”: “SerializationException”,
“message”: “Could not deserialize ‘application/json’ request using SENPOS.Request.TableTracking.TableChargeRequest’\nError: The JSON value could not be converted to System.Guid. Path: $.TableSaveInfo.SaleItems[0].GUID | LineNumber: 1 | BytePositionInLine: 41.”,
“errors”:
}
}