BusinessService


Click here for a complete list of operations.

SaveInvoice

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /BusinessService.asmx HTTP/1.1
Host: 185.83.197.162
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/SaveInvoice"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SaveInvoice xmlns="http://tempuri.org/">
      <order>
        <Id>guid</Id>
        <OrderNumber>string</OrderNumber>
        <CustomerId>guid</CustomerId>
        <CustomerName>string</CustomerName>
        <CustomerCode>string</CustomerCode>
        <StoreId>int</StoreId>
        <WorkstationId>int</WorkstationId>
        <StoreName>string</StoreName>
        <Phone>string</Phone>
        <UserId>guid</UserId>
        <UserName>string</UserName>
        <SaleChannelId>int</SaleChannelId>
        <Date>string</Date>
        <Time>string</Time>
        <DeliveryDate>string</DeliveryDate>
        <DeliveryFromTime>string</DeliveryFromTime>
        <DeliveryToTime>string</DeliveryToTime>
        <DeliveryCost>decimal</DeliveryCost>
        <SitNumber>string</SitNumber>
        <WaitTime>double</WaitTime>
        <ExpectedAmount>decimal</ExpectedAmount>
        <DeliveryTypeId>int</DeliveryTypeId>
        <Address>string</Address>
        <Type>string</Type>
        <CustomerGroup>string</CustomerGroup>
        <CustomerPoint>decimal</CustomerPoint>
        <CustomerCredit>decimal</CustomerCredit>
        <Description>string</Description>
        <Items>
          <OrderItemModel>
            <OrderId>guid</OrderId>
            <LineItemID>int</LineItemID>
            <ItemId>guid</ItemId>
            <ParentID>guid</ParentID>
            <ItemName>string</ItemName>
            <Barcode>string</Barcode>
            <SKU>string</SKU>
            <StockId>guid</StockId>
            <IsDelivery>boolean</IsDelivery>
            <Quantity>decimal</Quantity>
            <ConsumerPrice>decimal</ConsumerPrice>
            <Price>decimal</Price>
            <Discount>decimal</Discount>
            <Discounts xsi:nil="true" />
            <IsPriceWithTax>boolean</IsPriceWithTax>
            <Tax>decimal</Tax>
            <NetAmount>decimal</NetAmount>
            <ReasonID>int</ReasonID>
            <Description>string</Description>
            <Type>int</Type>
            <Details xsi:nil="true" />
            <OperationType>Save or Delete</OperationType>
          </OrderItemModel>
          <OrderItemModel>
            <OrderId>guid</OrderId>
            <LineItemID>int</LineItemID>
            <ItemId>guid</ItemId>
            <ParentID>guid</ParentID>
            <ItemName>string</ItemName>
            <Barcode>string</Barcode>
            <SKU>string</SKU>
            <StockId>guid</StockId>
            <IsDelivery>boolean</IsDelivery>
            <Quantity>decimal</Quantity>
            <ConsumerPrice>decimal</ConsumerPrice>
            <Price>decimal</Price>
            <Discount>decimal</Discount>
            <Discounts xsi:nil="true" />
            <IsPriceWithTax>boolean</IsPriceWithTax>
            <Tax>decimal</Tax>
            <NetAmount>decimal</NetAmount>
            <ReasonID>int</ReasonID>
            <Description>string</Description>
            <Type>int</Type>
            <Details xsi:nil="true" />
            <OperationType>Save or Delete</OperationType>
          </OrderItemModel>
        </Items>
        <Discounts>
          <OrderDiscount>
            <ReasonID>int</ReasonID>
            <AllowMerge>boolean</AllowMerge>
            <DiscountAmount>decimal</DiscountAmount>
            <DiscountPercent>decimal</DiscountPercent>
          </OrderDiscount>
          <OrderDiscount>
            <ReasonID>int</ReasonID>
            <AllowMerge>boolean</AllowMerge>
            <DiscountAmount>decimal</DiscountAmount>
            <DiscountPercent>decimal</DiscountPercent>
          </OrderDiscount>
        </Discounts>
        <Payments>
          <PaymentModel>
            <LineItemID>int</LineItemID>
            <TypeID>int</TypeID>
            <TenderName>string</TenderName>
            <Amount>decimal</Amount>
            <ExchangeAmount>decimal</ExchangeAmount>
            <DueDate>string</DueDate>
            <PaymentDate>string</PaymentDate>
            <GiftCardID>guid</GiftCardID>
            <SerialNumber>string</SerialNumber>
            <BankName>string</BankName>
            <AccountNumber>string</AccountNumber>
            <TerminalID>string</TerminalID>
            <PANNumber>string</PANNumber>
            <RefrenceNumber>string</RefrenceNumber>
            <SVCNumber>string</SVCNumber>
          </PaymentModel>
          <PaymentModel>
            <LineItemID>int</LineItemID>
            <TypeID>int</TypeID>
            <TenderName>string</TenderName>
            <Amount>decimal</Amount>
            <ExchangeAmount>decimal</ExchangeAmount>
            <DueDate>string</DueDate>
            <PaymentDate>string</PaymentDate>
            <GiftCardID>guid</GiftCardID>
            <SerialNumber>string</SerialNumber>
            <BankName>string</BankName>
            <AccountNumber>string</AccountNumber>
            <TerminalID>string</TerminalID>
            <PANNumber>string</PANNumber>
            <RefrenceNumber>string</RefrenceNumber>
            <SVCNumber>string</SVCNumber>
          </PaymentModel>
        </Payments>
      </order>
      <calcTax>boolean</calcTax>
      <calcPromotion>boolean</calcPromotion>
      <allowToMakeInvoice>boolean</allowToMakeInvoice>
      <useCredit>boolean</useCredit>
    </SaveInvoice>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SaveInvoiceResponse xmlns="http://tempuri.org/" />
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /BusinessService.asmx HTTP/1.1
Host: 185.83.197.162
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <SaveInvoice xmlns="http://tempuri.org/">
      <order>
        <Id>guid</Id>
        <OrderNumber>string</OrderNumber>
        <CustomerId>guid</CustomerId>
        <CustomerName>string</CustomerName>
        <CustomerCode>string</CustomerCode>
        <StoreId>int</StoreId>
        <WorkstationId>int</WorkstationId>
        <StoreName>string</StoreName>
        <Phone>string</Phone>
        <UserId>guid</UserId>
        <UserName>string</UserName>
        <SaleChannelId>int</SaleChannelId>
        <Date>string</Date>
        <Time>string</Time>
        <DeliveryDate>string</DeliveryDate>
        <DeliveryFromTime>string</DeliveryFromTime>
        <DeliveryToTime>string</DeliveryToTime>
        <DeliveryCost>decimal</DeliveryCost>
        <SitNumber>string</SitNumber>
        <WaitTime>double</WaitTime>
        <ExpectedAmount>decimal</ExpectedAmount>
        <DeliveryTypeId>int</DeliveryTypeId>
        <Address>string</Address>
        <Type>string</Type>
        <CustomerGroup>string</CustomerGroup>
        <CustomerPoint>decimal</CustomerPoint>
        <CustomerCredit>decimal</CustomerCredit>
        <Description>string</Description>
        <Items>
          <OrderItemModel>
            <OrderId>guid</OrderId>
            <LineItemID>int</LineItemID>
            <ItemId>guid</ItemId>
            <ParentID>guid</ParentID>
            <ItemName>string</ItemName>
            <Barcode>string</Barcode>
            <SKU>string</SKU>
            <StockId>guid</StockId>
            <IsDelivery>boolean</IsDelivery>
            <Quantity>decimal</Quantity>
            <ConsumerPrice>decimal</ConsumerPrice>
            <Price>decimal</Price>
            <Discount>decimal</Discount>
            <Discounts xsi:nil="true" />
            <IsPriceWithTax>boolean</IsPriceWithTax>
            <Tax>decimal</Tax>
            <NetAmount>decimal</NetAmount>
            <ReasonID>int</ReasonID>
            <Description>string</Description>
            <Type>int</Type>
            <Details xsi:nil="true" />
            <OperationType>Save or Delete</OperationType>
          </OrderItemModel>
          <OrderItemModel>
            <OrderId>guid</OrderId>
            <LineItemID>int</LineItemID>
            <ItemId>guid</ItemId>
            <ParentID>guid</ParentID>
            <ItemName>string</ItemName>
            <Barcode>string</Barcode>
            <SKU>string</SKU>
            <StockId>guid</StockId>
            <IsDelivery>boolean</IsDelivery>
            <Quantity>decimal</Quantity>
            <ConsumerPrice>decimal</ConsumerPrice>
            <Price>decimal</Price>
            <Discount>decimal</Discount>
            <Discounts xsi:nil="true" />
            <IsPriceWithTax>boolean</IsPriceWithTax>
            <Tax>decimal</Tax>
            <NetAmount>decimal</NetAmount>
            <ReasonID>int</ReasonID>
            <Description>string</Description>
            <Type>int</Type>
            <Details xsi:nil="true" />
            <OperationType>Save or Delete</OperationType>
          </OrderItemModel>
        </Items>
        <Discounts>
          <OrderDiscount>
            <ReasonID>int</ReasonID>
            <AllowMerge>boolean</AllowMerge>
            <DiscountAmount>decimal</DiscountAmount>
            <DiscountPercent>decimal</DiscountPercent>
          </OrderDiscount>
          <OrderDiscount>
            <ReasonID>int</ReasonID>
            <AllowMerge>boolean</AllowMerge>
            <DiscountAmount>decimal</DiscountAmount>
            <DiscountPercent>decimal</DiscountPercent>
          </OrderDiscount>
        </Discounts>
        <Payments>
          <PaymentModel>
            <LineItemID>int</LineItemID>
            <TypeID>int</TypeID>
            <TenderName>string</TenderName>
            <Amount>decimal</Amount>
            <ExchangeAmount>decimal</ExchangeAmount>
            <DueDate>string</DueDate>
            <PaymentDate>string</PaymentDate>
            <GiftCardID>guid</GiftCardID>
            <SerialNumber>string</SerialNumber>
            <BankName>string</BankName>
            <AccountNumber>string</AccountNumber>
            <TerminalID>string</TerminalID>
            <PANNumber>string</PANNumber>
            <RefrenceNumber>string</RefrenceNumber>
            <SVCNumber>string</SVCNumber>
          </PaymentModel>
          <PaymentModel>
            <LineItemID>int</LineItemID>
            <TypeID>int</TypeID>
            <TenderName>string</TenderName>
            <Amount>decimal</Amount>
            <ExchangeAmount>decimal</ExchangeAmount>
            <DueDate>string</DueDate>
            <PaymentDate>string</PaymentDate>
            <GiftCardID>guid</GiftCardID>
            <SerialNumber>string</SerialNumber>
            <BankName>string</BankName>
            <AccountNumber>string</AccountNumber>
            <TerminalID>string</TerminalID>
            <PANNumber>string</PANNumber>
            <RefrenceNumber>string</RefrenceNumber>
            <SVCNumber>string</SVCNumber>
          </PaymentModel>
        </Payments>
      </order>
      <calcTax>boolean</calcTax>
      <calcPromotion>boolean</calcPromotion>
      <allowToMakeInvoice>boolean</allowToMakeInvoice>
      <useCredit>boolean</useCredit>
    </SaveInvoice>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <SaveInvoiceResponse xmlns="http://tempuri.org/" />
  </soap12:Body>
</soap12:Envelope>