===== Pos.GetPosSaleItems ===== Method: Pos/GetPosSaleItems Returns sales from a given period /// Token /// Salesdate /// Club Id /// number of days to retrieve /// optional itemname filter Example: https://demo.clubplanner.be/api/pos/GetPosSaleItems?token=DEMOTOKEN&date=10-8-2018&ownerid=1 Result: class MemberPosItemResult { public int Id { get; set; } public int MemberId { get; set; } public string ItemName { get; set; } public int Quantity { get; set; } public decimal TotalAmount { get; set; } public int PayMethodId { get; set; } public int RevenueGroupId { get; set; } public int PosPointId { get; set; } public string CreatedOn { get; set; } } ===== Pos.GetCreditItems===== Method: Pos/GetCreditItems Returns credit changes from a given period /// Token /// /// Club Id /// number of days to retrieve Example: https://demo.clubplanner.be/api/pos/GetCreditItems?token=DEMOTOKEN&date=10-8-2018&ownerid=1&days=100 Result: class MemberCreditItemResult { public int Id { get; set; } public int MemberId { get; set; } public decimal Amount { get; set; } public int PayMethodId { get; set; } public int PosPointId { get; set; } public string CreatedOn { get; set; } public string Note { get; set; } } ===== Pos.GetBalanceItems===== Method: Pos/GetBalanceItems Returns credit changes from a given period /// Token /// /// PosPoint Id /// Club Id /// number of days to retrieve Example: https://demo.clubplanner.be/api/pos/GetBalanceItems?token=DEMOTOKEN&date=2-27-2019&pospointid=1&ownerid=2 Result: class BalanceItemResult { public int Id { get; set; } public decimal StartAmount { get; set; } public decimal EndAmount { get; set; } public int PosPointId { get; set; } public int OwnerId { get; set; } public string StartDate { get; set; } public string EndDate { get; set; } public string StartCreatedBy { get; set; } public string EndCreatedBy { get; set; } } ===== Pos.GetMoneyInOutItems===== Method: Pos/GetMoneyInOutItems Returns money-in-out records from a given period /// Token /// /// number of days to retrieve /// Club Id Example: https://demo.clubplanner.be/api/pos/GetMoneyInOutItems?token=DEMOTOKEN&date=12-10-2014&pospointid=1&ownerid=2&days=10 Result: class MoneyInOutItemResult { public int Id { get; set; } public decimal Amount { get; set; } public int PosPointId { get; set; } public string CreatedOn { get; set; } public string Note { get; set; } public string CreatedBy { get; set; } public int OwnerId { get; set; } } ===== Pos.UpdateMoneyInOutItem ===== Method: Pos/UpdateMoneyInOutItem Updates 1 money-in-out item for a given id. /// Token /// moneyitem id /// optional new amount /// optional, new createdon timestamp /// optional, new note /// optional, new club id ===== Pos.DeletePosItem ===== Method: Pos/DeletePosItem Deletes a positem /// /// /// Example: https://demo.clubplanner.be/api/pos/DeletePosItem?token=DEMOTOKEN&id=1 ===== Pos.UpdatePosItem ===== Method: Pos/UpdatePosItem Updates a positem /// /// /// optional /// optional /// optional /// optional /// optional /// optional /// optional /// /// optional /// optional /// optional /// optional Example: https://demo.clubplanner.be/api/pos/UpdatePosItem?token=DEMOTOKEN&id=1&itemname=newdescription ===== Pos.AddPosItem ===== Method: Pos/AddPosItem Add a positem /// /// /// /// /// /// /// /// optional, default 1 /// optional format dd-MM-yyyy HH:mm /// optional, default 1 /// optional, default 1 /// optional /// optional /// optional Examples: https://demo.clubplanner.be/api/pos/AddPosItem?token=DEMOTOKEN&itemname=ItemdescriptionNew&totalamount=120&revenuegroupid=1&paymethodid=1&vat=6&memberid=1 https://demo.clubplanner.be/api/pos/AddPosItem?token=DEMOTOKEN&itemname=ItemdescriptionNew&totalamount=120&revenuegroupid=1&paymethodid=1&vat=6&memberid=1&createdon=20-07-2019%2010%3A10 ===== Pos.GetPosItems ===== Method: Pos/GetPosItems Returns all configured positems /// Token Example: https://demo.clubplanner.be/api/pos/GetPosItems?token=DEMOTOKEN ===== Pos.GetRevenueGroups ===== Method: Pos/GetRevenueGroups Returns all configured RevenueGroups /// Token Example: https://demo.clubplanner.be/api/pos/GetRevenueGroups?token=DEMOTOKEN ===== Pos.GetPosGroups ===== Method: Pos/GetPosGroups Returns all configured PosGroups /// Token Example: https://demo.clubplanner.be/api/pos/GetPosGroups?token=DEMOTOKEN ===== Pos.GetCoupon ===== Method: Pos/GetCoupon Returns a coupon with a given id /// Token /// id of the coupon, optional /// key of the coupon, optional Example: https://demo.clubplanner.be/api/pos/getcoupon?token=DEMOTOKEN&couponid=222 ===== Pos.AddCoupon ===== Method: Pos/AddCoupon Adds a coupon /// Token /// member used to store the sale against, has no further meaning /// amount of the coupon /// optional: note, extra information you want to add /// optional: name that will be used in sold items list in POS /// optional: who added this coupon Example: https://demo.clubplanner.be/api/pos/addcoupon?token=DEMOTOKEN&memberid=1&amount=10¬e=extra-data&from=mywebpage ===== Pos.UpdateCoupon ===== Method: Pos/UpdateCoupon Updates a given coupon /// Token /// id of the coupon /// remainder amount of the coupon /// optional: note, extra information you want to update Example: https://demo.clubplanner.be/api/pos/UpdateCoupon?token=DEMOTOKEN&remainder=5¬e=extra-data ===== Pos.GetInvoiceRelations ===== Method: Pos/GetInvoiceRelations Returns a list of InvoiceRelations Example: https://demo.clubplanner.be/api/pos/GetInvoiceRelations?token=DEMOTOKEN ===== Pos.GetInvoices ===== Method: Pos/GetInvoices Returns a list of invoices /// Token /// created on date /// number of days to retrieve, default 1 /// id of the relation, default 0 = no filter Example: https://demo.clubplanner.be/api/pos/GetInvoices?token=DEMOTOKEN&date=1-1-2023&days=30 ===== Pos.GetInvoice ===== Method: Pos/GetInvoice Returns an invoice /// Token /// id of the invoice Example: https://demo.clubplanner.be/api/pos/GetInvoice?token=DEMOTOKEN&invoiceid=201201 ===== Pos.GetOrders ===== Method: Pos/GetOrders Returns a list of Orders on a given date /// Token /// optional date, default today Example: https://demo.clubplanner.be/api/pos/GetOrders?token=DEMOTOKEN&date=1-AUG-2023