POST api/appointment/mark-item-paid

Request Information

URI Parameters

None.

Body Parameters

MarkItemCompleteParams
NameDescriptionTypeAdditional information
Customers

Collection of CustomerInFlexibleTrans

None.

ComId

string

None.

GroupId

integer

None.

allowPrintReceipt

boolean

None.

DiscountGround

decimal number

None.

DiscountService

decimal number

None.

ComName

string

None.

ComAddress

string

None.

AptCode

string

None.

DayBooking

string

None.

FromHour

string

None.

ToHour

string

None.

GroundName

string

None.

CustomerZns

Collection of CustomerSendZns

None.

VAT

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "Customers": [
    {
      "TicketDiscountPercent": 1.1,
      "TicketPaid": true,
      "TicketPrice": 3.1,
      "TotalPaid": 4.1,
      "CustomerServices": [
        {
          "ItemName": "sample string 1",
          "IsSelected": true,
          "AnotherUnits": [
            {
              "Id": 1,
              "UnitName": "sample string 2",
              "ExchangeValue": 1,
              "ExchangeId": 1,
              "ComId": "sample string 3"
            },
            {
              "Id": 1,
              "UnitName": "sample string 2",
              "ExchangeValue": 1,
              "ExchangeId": 1,
              "ComId": "sample string 3"
            }
          ],
          "UnitId": 3,
          "UnitName": "sample string 4",
          "BaseUnitId": 5,
          "BaseUnitName": "sample string 6",
          "Barcode": "sample string 7",
          "ExchangeValue": 8,
          "ItemPriceForPrint": 9.1,
          "TotalServiceIncludeDiscountAndTax": 10.1,
          "GroupItemID": 11,
          "GroupIdIdentity": 1,
          "ItemId": 1,
          "ItemPrice": 1.1,
          "Quantity": 1,
          "DiscountPercent": 1.1,
          "DiscountValue": 1.1,
          "RelateGroupCustomerId": 1,
          "IsPaid": true,
          "InventoryUnitId": 1,
          "ExchangeRate": 1
        },
        {
          "ItemName": "sample string 1",
          "IsSelected": true,
          "AnotherUnits": [
            {
              "Id": 1,
              "UnitName": "sample string 2",
              "ExchangeValue": 1,
              "ExchangeId": 1,
              "ComId": "sample string 3"
            },
            {
              "Id": 1,
              "UnitName": "sample string 2",
              "ExchangeValue": 1,
              "ExchangeId": 1,
              "ComId": "sample string 3"
            }
          ],
          "UnitId": 3,
          "UnitName": "sample string 4",
          "BaseUnitId": 5,
          "BaseUnitName": "sample string 6",
          "Barcode": "sample string 7",
          "ExchangeValue": 8,
          "ItemPriceForPrint": 9.1,
          "TotalServiceIncludeDiscountAndTax": 10.1,
          "GroupItemID": 11,
          "GroupIdIdentity": 1,
          "ItemId": 1,
          "ItemPrice": 1.1,
          "Quantity": 1,
          "DiscountPercent": 1.1,
          "DiscountValue": 1.1,
          "RelateGroupCustomerId": 1,
          "IsPaid": true,
          "InventoryUnitId": 1,
          "ExchangeRate": 1
        }
      ],
      "IsSelected": true,
      "GroupItemId": 6,
      "Id": 7,
      "GroupIdIdentity": 8,
      "customerId": 1,
      "name": "sample string 9",
      "phone": "sample string 10",
      "Note": "sample string 11"
    },
    {
      "TicketDiscountPercent": 1.1,
      "TicketPaid": true,
      "TicketPrice": 3.1,
      "TotalPaid": 4.1,
      "CustomerServices": [
        {
          "ItemName": "sample string 1",
          "IsSelected": true,
          "AnotherUnits": [
            {
              "Id": 1,
              "UnitName": "sample string 2",
              "ExchangeValue": 1,
              "ExchangeId": 1,
              "ComId": "sample string 3"
            },
            {
              "Id": 1,
              "UnitName": "sample string 2",
              "ExchangeValue": 1,
              "ExchangeId": 1,
              "ComId": "sample string 3"
            }
          ],
          "UnitId": 3,
          "UnitName": "sample string 4",
          "BaseUnitId": 5,
          "BaseUnitName": "sample string 6",
          "Barcode": "sample string 7",
          "ExchangeValue": 8,
          "ItemPriceForPrint": 9.1,
          "TotalServiceIncludeDiscountAndTax": 10.1,
          "GroupItemID": 11,
          "GroupIdIdentity": 1,
          "ItemId": 1,
          "ItemPrice": 1.1,
          "Quantity": 1,
          "DiscountPercent": 1.1,
          "DiscountValue": 1.1,
          "RelateGroupCustomerId": 1,
          "IsPaid": true,
          "InventoryUnitId": 1,
          "ExchangeRate": 1
        },
        {
          "ItemName": "sample string 1",
          "IsSelected": true,
          "AnotherUnits": [
            {
              "Id": 1,
              "UnitName": "sample string 2",
              "ExchangeValue": 1,
              "ExchangeId": 1,
              "ComId": "sample string 3"
            },
            {
              "Id": 1,
              "UnitName": "sample string 2",
              "ExchangeValue": 1,
              "ExchangeId": 1,
              "ComId": "sample string 3"
            }
          ],
          "UnitId": 3,
          "UnitName": "sample string 4",
          "BaseUnitId": 5,
          "BaseUnitName": "sample string 6",
          "Barcode": "sample string 7",
          "ExchangeValue": 8,
          "ItemPriceForPrint": 9.1,
          "TotalServiceIncludeDiscountAndTax": 10.1,
          "GroupItemID": 11,
          "GroupIdIdentity": 1,
          "ItemId": 1,
          "ItemPrice": 1.1,
          "Quantity": 1,
          "DiscountPercent": 1.1,
          "DiscountValue": 1.1,
          "RelateGroupCustomerId": 1,
          "IsPaid": true,
          "InventoryUnitId": 1,
          "ExchangeRate": 1
        }
      ],
      "IsSelected": true,
      "GroupItemId": 6,
      "Id": 7,
      "GroupIdIdentity": 8,
      "customerId": 1,
      "name": "sample string 9",
      "phone": "sample string 10",
      "Note": "sample string 11"
    }
  ],
  "ComId": "sample string 1",
  "GroupId": 2,
  "allowPrintReceipt": true,
  "DiscountGround": 4.1,
  "DiscountService": 5.1,
  "ComName": "sample string 6",
  "ComAddress": "sample string 7",
  "AptCode": "sample string 8",
  "DayBooking": "sample string 9",
  "FromHour": "sample string 10",
  "ToHour": "sample string 11",
  "GroundName": "sample string 12",
  "CustomerZns": [
    {
      "name": "sample string 1",
      "phone": "sample string 2",
      "totalTicketNoVat": 3.1,
      "totalServiceNoVat": 4.1
    },
    {
      "name": "sample string 1",
      "phone": "sample string 2",
      "totalTicketNoVat": 3.1,
      "totalServiceNoVat": 4.1
    }
  ],
  "VAT": 13.1
}

application/xml, text/xml

Sample:
<MarkItemCompleteParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities.ApiEntities">
  <AptCode>sample string 8</AptCode>
  <ComAddress>sample string 7</ComAddress>
  <ComId>sample string 1</ComId>
  <ComName>sample string 6</ComName>
  <CustomerZns>
    <CustomerSendZns>
      <name>sample string 1</name>
      <phone>sample string 2</phone>
      <totalServiceNoVat>4.1</totalServiceNoVat>
      <totalTicketNoVat>3.1</totalTicketNoVat>
    </CustomerSendZns>
    <CustomerSendZns>
      <name>sample string 1</name>
      <phone>sample string 2</phone>
      <totalServiceNoVat>4.1</totalServiceNoVat>
      <totalTicketNoVat>3.1</totalTicketNoVat>
    </CustomerSendZns>
  </CustomerZns>
  <Customers>
    <CustomerInFlexibleTrans>
      <GroupIdIdentity xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">8</GroupIdIdentity>
      <Id xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">7</Id>
      <Note xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">sample string 11</Note>
      <customerId xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</customerId>
      <name xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">sample string 9</name>
      <phone xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">sample string 10</phone>
      <CustomerServices>
        <TransServiceView>
          <DiscountPercent xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1.1</DiscountPercent>
          <DiscountValue xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1.1</DiscountValue>
          <ExchangeRate xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</ExchangeRate>
          <GroupIdIdentity xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</GroupIdIdentity>
          <GroupItemID xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">11</GroupItemID>
          <InventoryUnitId xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</InventoryUnitId>
          <IsPaid xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">true</IsPaid>
          <ItemId xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</ItemId>
          <ItemPrice xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1.1</ItemPrice>
          <Quantity xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</Quantity>
          <RelateGroupCustomerId xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</RelateGroupCustomerId>
          <AnotherUnits xmlns:d6p1="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">
            <d6p1:Unit>
              <d6p1:ComId>sample string 3</d6p1:ComId>
              <d6p1:ExchangeId>1</d6p1:ExchangeId>
              <d6p1:ExchangeValue>1</d6p1:ExchangeValue>
              <d6p1:Id>1</d6p1:Id>
              <d6p1:UnitName>sample string 2</d6p1:UnitName>
            </d6p1:Unit>
            <d6p1:Unit>
              <d6p1:ComId>sample string 3</d6p1:ComId>
              <d6p1:ExchangeId>1</d6p1:ExchangeId>
              <d6p1:ExchangeValue>1</d6p1:ExchangeValue>
              <d6p1:Id>1</d6p1:Id>
              <d6p1:UnitName>sample string 2</d6p1:UnitName>
            </d6p1:Unit>
          </AnotherUnits>
          <Barcode>sample string 7</Barcode>
          <BaseUnitId>5</BaseUnitId>
          <BaseUnitName>sample string 6</BaseUnitName>
          <ExchangeValue>8</ExchangeValue>
          <IsSelected>true</IsSelected>
          <ItemName>sample string 1</ItemName>
          <ItemPriceForPrint>9.1</ItemPriceForPrint>
          <TotalServiceIncludeDiscountAndTax>10.1</TotalServiceIncludeDiscountAndTax>
          <UnitId>3</UnitId>
          <UnitName>sample string 4</UnitName>
        </TransServiceView>
        <TransServiceView>
          <DiscountPercent xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1.1</DiscountPercent>
          <DiscountValue xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1.1</DiscountValue>
          <ExchangeRate xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</ExchangeRate>
          <GroupIdIdentity xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</GroupIdIdentity>
          <GroupItemID xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">11</GroupItemID>
          <InventoryUnitId xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</InventoryUnitId>
          <IsPaid xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">true</IsPaid>
          <ItemId xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</ItemId>
          <ItemPrice xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1.1</ItemPrice>
          <Quantity xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</Quantity>
          <RelateGroupCustomerId xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</RelateGroupCustomerId>
          <AnotherUnits xmlns:d6p1="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">
            <d6p1:Unit>
              <d6p1:ComId>sample string 3</d6p1:ComId>
              <d6p1:ExchangeId>1</d6p1:ExchangeId>
              <d6p1:ExchangeValue>1</d6p1:ExchangeValue>
              <d6p1:Id>1</d6p1:Id>
              <d6p1:UnitName>sample string 2</d6p1:UnitName>
            </d6p1:Unit>
            <d6p1:Unit>
              <d6p1:ComId>sample string 3</d6p1:ComId>
              <d6p1:ExchangeId>1</d6p1:ExchangeId>
              <d6p1:ExchangeValue>1</d6p1:ExchangeValue>
              <d6p1:Id>1</d6p1:Id>
              <d6p1:UnitName>sample string 2</d6p1:UnitName>
            </d6p1:Unit>
          </AnotherUnits>
          <Barcode>sample string 7</Barcode>
          <BaseUnitId>5</BaseUnitId>
          <BaseUnitName>sample string 6</BaseUnitName>
          <ExchangeValue>8</ExchangeValue>
          <IsSelected>true</IsSelected>
          <ItemName>sample string 1</ItemName>
          <ItemPriceForPrint>9.1</ItemPriceForPrint>
          <TotalServiceIncludeDiscountAndTax>10.1</TotalServiceIncludeDiscountAndTax>
          <UnitId>3</UnitId>
          <UnitName>sample string 4</UnitName>
        </TransServiceView>
      </CustomerServices>
      <GroupItemId>6</GroupItemId>
      <IsSelected>true</IsSelected>
      <TicketDiscountPercent>1.1</TicketDiscountPercent>
      <TicketPaid>true</TicketPaid>
      <TicketPrice>3.1</TicketPrice>
      <TotalPaid>4.1</TotalPaid>
    </CustomerInFlexibleTrans>
    <CustomerInFlexibleTrans>
      <GroupIdIdentity xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">8</GroupIdIdentity>
      <Id xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">7</Id>
      <Note xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">sample string 11</Note>
      <customerId xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</customerId>
      <name xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">sample string 9</name>
      <phone xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">sample string 10</phone>
      <CustomerServices>
        <TransServiceView>
          <DiscountPercent xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1.1</DiscountPercent>
          <DiscountValue xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1.1</DiscountValue>
          <ExchangeRate xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</ExchangeRate>
          <GroupIdIdentity xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</GroupIdIdentity>
          <GroupItemID xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">11</GroupItemID>
          <InventoryUnitId xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</InventoryUnitId>
          <IsPaid xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">true</IsPaid>
          <ItemId xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</ItemId>
          <ItemPrice xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1.1</ItemPrice>
          <Quantity xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</Quantity>
          <RelateGroupCustomerId xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</RelateGroupCustomerId>
          <AnotherUnits xmlns:d6p1="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">
            <d6p1:Unit>
              <d6p1:ComId>sample string 3</d6p1:ComId>
              <d6p1:ExchangeId>1</d6p1:ExchangeId>
              <d6p1:ExchangeValue>1</d6p1:ExchangeValue>
              <d6p1:Id>1</d6p1:Id>
              <d6p1:UnitName>sample string 2</d6p1:UnitName>
            </d6p1:Unit>
            <d6p1:Unit>
              <d6p1:ComId>sample string 3</d6p1:ComId>
              <d6p1:ExchangeId>1</d6p1:ExchangeId>
              <d6p1:ExchangeValue>1</d6p1:ExchangeValue>
              <d6p1:Id>1</d6p1:Id>
              <d6p1:UnitName>sample string 2</d6p1:UnitName>
            </d6p1:Unit>
          </AnotherUnits>
          <Barcode>sample string 7</Barcode>
          <BaseUnitId>5</BaseUnitId>
          <BaseUnitName>sample string 6</BaseUnitName>
          <ExchangeValue>8</ExchangeValue>
          <IsSelected>true</IsSelected>
          <ItemName>sample string 1</ItemName>
          <ItemPriceForPrint>9.1</ItemPriceForPrint>
          <TotalServiceIncludeDiscountAndTax>10.1</TotalServiceIncludeDiscountAndTax>
          <UnitId>3</UnitId>
          <UnitName>sample string 4</UnitName>
        </TransServiceView>
        <TransServiceView>
          <DiscountPercent xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1.1</DiscountPercent>
          <DiscountValue xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1.1</DiscountValue>
          <ExchangeRate xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</ExchangeRate>
          <GroupIdIdentity xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</GroupIdIdentity>
          <GroupItemID xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">11</GroupItemID>
          <InventoryUnitId xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</InventoryUnitId>
          <IsPaid xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">true</IsPaid>
          <ItemId xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</ItemId>
          <ItemPrice xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1.1</ItemPrice>
          <Quantity xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</Quantity>
          <RelateGroupCustomerId xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">1</RelateGroupCustomerId>
          <AnotherUnits xmlns:d6p1="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities">
            <d6p1:Unit>
              <d6p1:ComId>sample string 3</d6p1:ComId>
              <d6p1:ExchangeId>1</d6p1:ExchangeId>
              <d6p1:ExchangeValue>1</d6p1:ExchangeValue>
              <d6p1:Id>1</d6p1:Id>
              <d6p1:UnitName>sample string 2</d6p1:UnitName>
            </d6p1:Unit>
            <d6p1:Unit>
              <d6p1:ComId>sample string 3</d6p1:ComId>
              <d6p1:ExchangeId>1</d6p1:ExchangeId>
              <d6p1:ExchangeValue>1</d6p1:ExchangeValue>
              <d6p1:Id>1</d6p1:Id>
              <d6p1:UnitName>sample string 2</d6p1:UnitName>
            </d6p1:Unit>
          </AnotherUnits>
          <Barcode>sample string 7</Barcode>
          <BaseUnitId>5</BaseUnitId>
          <BaseUnitName>sample string 6</BaseUnitName>
          <ExchangeValue>8</ExchangeValue>
          <IsSelected>true</IsSelected>
          <ItemName>sample string 1</ItemName>
          <ItemPriceForPrint>9.1</ItemPriceForPrint>
          <TotalServiceIncludeDiscountAndTax>10.1</TotalServiceIncludeDiscountAndTax>
          <UnitId>3</UnitId>
          <UnitName>sample string 4</UnitName>
        </TransServiceView>
      </CustomerServices>
      <GroupItemId>6</GroupItemId>
      <IsSelected>true</IsSelected>
      <TicketDiscountPercent>1.1</TicketDiscountPercent>
      <TicketPaid>true</TicketPaid>
      <TicketPrice>3.1</TicketPrice>
      <TotalPaid>4.1</TotalPaid>
    </CustomerInFlexibleTrans>
  </Customers>
  <DayBooking>sample string 9</DayBooking>
  <DiscountGround>4.1</DiscountGround>
  <DiscountService>5.1</DiscountService>
  <FromHour>sample string 10</FromHour>
  <GroundName>sample string 12</GroundName>
  <GroupId>2</GroupId>
  <ToHour>sample string 11</ToHour>
  <VAT>13.1</VAT>
  <allowPrintReceipt>true</allowPrintReceipt>
</MarkItemCompleteParams>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.