POST api/pOSSession/AddCompensationTicket

Request Information

URI Parameters

None.

Body Parameters

Collection of POSSession
NameDescriptionTypeAdditional information
Id

integer

None.

SalonId

integer

None.

UserId

integer

None.

TotalOrderSales

integer

None.

PosDetailsId

integer

None.

SessionHandlerUserName

string

None.

UserName

string

None.

Password

string

None.

ExpenseDocumentUrl

string

None.

LastClosingAt

date

None.

LastClosingCash

decimal number

None.

LastClosingOnline

decimal number

None.

CashAmount

decimal number

None.

BankAmount

decimal number

None.

CreditAmount

decimal number

None.

OpeningAmount

decimal number

None.

CreatedSessionAt

date

None.

EndSessionAt

date

None.

PosInvoiceNumber

string

None.

CreatedDate

date

None.

EnteredByUserName

string

None.

PaymentTypeId

integer

None.

InvoiceDateStr

string

None.

CustomerName

string

None.

OpeningCoinsRoot

Collection of OpeningCoinsRoot

None.

LastClosingAtStr

string

None.

CreatedSessionAtStr

string

None.

EndSessionAtStr

string

None.

ExpenseAmount

decimal number

None.

TotalExpenseAmount

decimal number

None.

TotalCashAmount

decimal number

None.

TotalCreditAmount

decimal number

None.

ExpenseDescription

string

None.

Date

string

None.

SessionId

integer

None.

customerId

integer

None.

TicketNumber

string

None.

ServiceDate

date

None.

CompensationReason

string

None.

CustomerNumber

string

None.

Service

string

None.

EmployeeName

string

None.

ServiceAmount

decimal number

None.

CompensationDate

date

None.

TotalCompensation

decimal number

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "SalonId": 2,
    "UserId": 3,
    "TotalOrderSales": 4,
    "PosDetailsId": 5,
    "SessionHandlerUserName": "sample string 6",
    "UserName": "sample string 7",
    "Password": "sample string 8",
    "ExpenseDocumentUrl": "sample string 9",
    "LastClosingAt": "2025-07-08T08:22:25.9584125+03:00",
    "LastClosingCash": 10.0,
    "LastClosingOnline": 11.0,
    "CashAmount": 12.0,
    "BankAmount": 13.0,
    "CreditAmount": 14.0,
    "OpeningAmount": 15.0,
    "CreatedSessionAt": "2025-07-08T08:22:25.9584125+03:00",
    "EndSessionAt": "2025-07-08T08:22:25.9584125+03:00",
    "PosInvoiceNumber": "sample string 16",
    "CreatedDate": "2025-07-08T08:22:25.9584125+03:00",
    "EnteredByUserName": "sample string 18",
    "PaymentTypeId": 19,
    "InvoiceDateStr": "08/07/2025",
    "CustomerName": "sample string 20",
    "OpeningCoinsRoot": [
      {
        "CoinsBilllsId": 1,
        "Qty": "sample string 2",
        "TotalAmount": 3.1
      },
      {
        "CoinsBilllsId": 1,
        "Qty": "sample string 2",
        "TotalAmount": 3.1
      }
    ],
    "LastClosingAtStr": "08/07/2025 11:22:25 AM",
    "CreatedSessionAtStr": "08-Jul-2025",
    "EndSessionAtStr": "08-Jul-2025 11:22 AM",
    "ExpenseAmount": 21.0,
    "TotalExpenseAmount": 22.0,
    "TotalCashAmount": 23.0,
    "TotalCreditAmount": 24.0,
    "ExpenseDescription": "sample string 25",
    "Date": "sample string 26",
    "SessionId": 27,
    "customerId": 28,
    "TicketNumber": "sample string 29",
    "ServiceDate": "2025-07-08T08:22:25.9584125+03:00",
    "CompensationReason": "sample string 31",
    "CustomerNumber": "sample string 32",
    "Service": "sample string 33",
    "EmployeeName": "sample string 34",
    "ServiceAmount": 35.0,
    "CompensationDate": "2025-07-08T08:22:25.9584125+03:00",
    "TotalCompensation": 37.0
  },
  {
    "Id": 1,
    "SalonId": 2,
    "UserId": 3,
    "TotalOrderSales": 4,
    "PosDetailsId": 5,
    "SessionHandlerUserName": "sample string 6",
    "UserName": "sample string 7",
    "Password": "sample string 8",
    "ExpenseDocumentUrl": "sample string 9",
    "LastClosingAt": "2025-07-08T08:22:25.9584125+03:00",
    "LastClosingCash": 10.0,
    "LastClosingOnline": 11.0,
    "CashAmount": 12.0,
    "BankAmount": 13.0,
    "CreditAmount": 14.0,
    "OpeningAmount": 15.0,
    "CreatedSessionAt": "2025-07-08T08:22:25.9584125+03:00",
    "EndSessionAt": "2025-07-08T08:22:25.9584125+03:00",
    "PosInvoiceNumber": "sample string 16",
    "CreatedDate": "2025-07-08T08:22:25.9584125+03:00",
    "EnteredByUserName": "sample string 18",
    "PaymentTypeId": 19,
    "InvoiceDateStr": "08/07/2025",
    "CustomerName": "sample string 20",
    "OpeningCoinsRoot": [
      {
        "CoinsBilllsId": 1,
        "Qty": "sample string 2",
        "TotalAmount": 3.1
      },
      {
        "CoinsBilllsId": 1,
        "Qty": "sample string 2",
        "TotalAmount": 3.1
      }
    ],
    "LastClosingAtStr": "08/07/2025 11:22:25 AM",
    "CreatedSessionAtStr": "08-Jul-2025",
    "EndSessionAtStr": "08-Jul-2025 11:22 AM",
    "ExpenseAmount": 21.0,
    "TotalExpenseAmount": 22.0,
    "TotalCashAmount": 23.0,
    "TotalCreditAmount": 24.0,
    "ExpenseDescription": "sample string 25",
    "Date": "sample string 26",
    "SessionId": 27,
    "customerId": 28,
    "TicketNumber": "sample string 29",
    "ServiceDate": "2025-07-08T08:22:25.9584125+03:00",
    "CompensationReason": "sample string 31",
    "CustomerNumber": "sample string 32",
    "Service": "sample string 33",
    "EmployeeName": "sample string 34",
    "ServiceAmount": 35.0,
    "CompensationDate": "2025-07-08T08:22:25.9584125+03:00",
    "TotalCompensation": 37.0
  }
]

text/xml

Sample:
<ArrayOfPOSSession xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.V1">
  <POSSession>
    <BankAmount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">13</BankAmount>
    <CashAmount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">12</CashAmount>
    <CompensationDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T08:22:25.9584125+03:00</CompensationDate>
    <CompensationReason xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 31</CompensationReason>
    <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T08:22:25.9584125+03:00</CreatedDate>
    <CreatedSessionAt xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T08:22:25.9584125+03:00</CreatedSessionAt>
    <CreditAmount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">14</CreditAmount>
    <CustomerName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 20</CustomerName>
    <CustomerNumber xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 32</CustomerNumber>
    <Date xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 26</Date>
    <EmployeeName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 34</EmployeeName>
    <EndSessionAt xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T08:22:25.9584125+03:00</EndSessionAt>
    <EnteredByUserName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 18</EnteredByUserName>
    <ExpenseAmount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">21</ExpenseAmount>
    <ExpenseDescription xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 25</ExpenseDescription>
    <ExpenseDocumentUrl xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 9</ExpenseDocumentUrl>
    <Id xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">1</Id>
    <LastClosingAt xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T08:22:25.9584125+03:00</LastClosingAt>
    <LastClosingCash xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">10</LastClosingCash>
    <LastClosingOnline xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">11</LastClosingOnline>
    <OpeningAmount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">15</OpeningAmount>
    <OpeningCoinsRoot xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">
      <OpeningCoinsRoot>
        <CoinsBilllsId>1</CoinsBilllsId>
        <Qty>sample string 2</Qty>
        <TotalAmount>3.1</TotalAmount>
      </OpeningCoinsRoot>
      <OpeningCoinsRoot>
        <CoinsBilllsId>1</CoinsBilllsId>
        <Qty>sample string 2</Qty>
        <TotalAmount>3.1</TotalAmount>
      </OpeningCoinsRoot>
    </OpeningCoinsRoot>
    <Password xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 8</Password>
    <PaymentTypeId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">19</PaymentTypeId>
    <PosDetailsId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">5</PosDetailsId>
    <PosInvoiceNumber xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 16</PosInvoiceNumber>
    <SalonId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2</SalonId>
    <Service xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 33</Service>
    <ServiceAmount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">35</ServiceAmount>
    <ServiceDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T08:22:25.9584125+03:00</ServiceDate>
    <SessionHandlerUserName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 6</SessionHandlerUserName>
    <SessionId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">27</SessionId>
    <TicketNumber xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 29</TicketNumber>
    <TotalCashAmount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">23</TotalCashAmount>
    <TotalCompensation xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">37</TotalCompensation>
    <TotalCreditAmount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">24</TotalCreditAmount>
    <TotalExpenseAmount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">22</TotalExpenseAmount>
    <TotalOrderSales xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">4</TotalOrderSales>
    <UserId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">3</UserId>
    <UserName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 7</UserName>
    <customerId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">28</customerId>
  </POSSession>
  <POSSession>
    <BankAmount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">13</BankAmount>
    <CashAmount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">12</CashAmount>
    <CompensationDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T08:22:25.9584125+03:00</CompensationDate>
    <CompensationReason xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 31</CompensationReason>
    <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T08:22:25.9584125+03:00</CreatedDate>
    <CreatedSessionAt xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T08:22:25.9584125+03:00</CreatedSessionAt>
    <CreditAmount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">14</CreditAmount>
    <CustomerName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 20</CustomerName>
    <CustomerNumber xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 32</CustomerNumber>
    <Date xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 26</Date>
    <EmployeeName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 34</EmployeeName>
    <EndSessionAt xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T08:22:25.9584125+03:00</EndSessionAt>
    <EnteredByUserName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 18</EnteredByUserName>
    <ExpenseAmount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">21</ExpenseAmount>
    <ExpenseDescription xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 25</ExpenseDescription>
    <ExpenseDocumentUrl xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 9</ExpenseDocumentUrl>
    <Id xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">1</Id>
    <LastClosingAt xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T08:22:25.9584125+03:00</LastClosingAt>
    <LastClosingCash xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">10</LastClosingCash>
    <LastClosingOnline xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">11</LastClosingOnline>
    <OpeningAmount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">15</OpeningAmount>
    <OpeningCoinsRoot xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">
      <OpeningCoinsRoot>
        <CoinsBilllsId>1</CoinsBilllsId>
        <Qty>sample string 2</Qty>
        <TotalAmount>3.1</TotalAmount>
      </OpeningCoinsRoot>
      <OpeningCoinsRoot>
        <CoinsBilllsId>1</CoinsBilllsId>
        <Qty>sample string 2</Qty>
        <TotalAmount>3.1</TotalAmount>
      </OpeningCoinsRoot>
    </OpeningCoinsRoot>
    <Password xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 8</Password>
    <PaymentTypeId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">19</PaymentTypeId>
    <PosDetailsId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">5</PosDetailsId>
    <PosInvoiceNumber xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 16</PosInvoiceNumber>
    <SalonId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2</SalonId>
    <Service xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 33</Service>
    <ServiceAmount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">35</ServiceAmount>
    <ServiceDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T08:22:25.9584125+03:00</ServiceDate>
    <SessionHandlerUserName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 6</SessionHandlerUserName>
    <SessionId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">27</SessionId>
    <TicketNumber xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 29</TicketNumber>
    <TotalCashAmount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">23</TotalCashAmount>
    <TotalCompensation xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">37</TotalCompensation>
    <TotalCreditAmount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">24</TotalCreditAmount>
    <TotalExpenseAmount xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">22</TotalExpenseAmount>
    <TotalOrderSales xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">4</TotalOrderSales>
    <UserId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">3</UserId>
    <UserName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 7</UserName>
    <customerId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">28</customerId>
  </POSSession>
</ArrayOfPOSSession>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.