OrderProcessing


Click here for a complete list of operations.

CalculateTransactionDiscounts

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 /ws14/orderprocessing.asmx HTTP/1.1
Host: ws.bloyal.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://bloyal.com/CalculateTransactionDiscounts"

<?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>
    <CalculateTransactionDiscounts xmlns="http://bloyal.com/">
      <transaction>
        <ExternalBatchId>string</ExternalBatchId>
        <ExternalTransactionId>string</ExternalTransactionId>
        <OrderId>int</OrderId>
        <CustomerId>int</CustomerId>
        <StoreId>int</StoreId>
        <Store>
          <Type>PhysicalStore or ExternalWebStore or InternalWebStore or VirtualStore or BackOffice</Type>
          <Code>string</Code>
          <Name>string</Name>
          <Address1>string</Address1>
          <Address2>string</Address2>
          <City>string</City>
          <State>string</State>
          <ZipCode>string</ZipCode>
          <Country>string</Country>
          <WebStoreUrl>string</WebStoreUrl>
          <ReplicationLocationId>int</ReplicationLocationId>
          <DefaultShippingLocationId>int</DefaultShippingLocationId>
          <DefaultPickupLocationId>int</DefaultPickupLocationId>
          <Locations>
            <Location xsi:nil="true" />
            <Location xsi:nil="true" />
          </Locations>
          <StockOutHandling>Unknown or AcceptSales or AcceptSalesWithWarning or RejectSalesWithWarning or DoNotDisplay</StockOutHandling>
          <PickupType>Unknown or Standard or ShipToLocation</PickupType>
        </Store>
        <DeviceId>int</DeviceId>
        <Device>
          <Model>string</Model>
          <Title>string</Title>
          <Channel>WebStore or Kiosk or Club or Phone or POS or Event or Other or OutsideSales or Mobile or SocialNetwork or Wholesale</Channel>
          <GiftCardTerminalId>string</GiftCardTerminalId>
          <CreditCardTerminalId>string</CreditCardTerminalId>
          <GiftEnabled>boolean</GiftEnabled>
          <StoreId>int</StoreId>
          <Store>
            <Type>PhysicalStore or ExternalWebStore or InternalWebStore or VirtualStore or BackOffice</Type>
            <Code>string</Code>
            <Name>string</Name>
            <Address1>string</Address1>
            <Address2>string</Address2>
            <City>string</City>
            <State>string</State>
            <ZipCode>string</ZipCode>
            <Country>string</Country>
            <WebStoreUrl>string</WebStoreUrl>
            <ReplicationLocationId>int</ReplicationLocationId>
            <DefaultShippingLocationId>int</DefaultShippingLocationId>
            <DefaultPickupLocationId>int</DefaultPickupLocationId>
            <Locations xsi:nil="true" />
            <StockOutHandling>Unknown or AcceptSales or AcceptSalesWithWarning or RejectSalesWithWarning or DoNotDisplay</StockOutHandling>
            <PickupType>Unknown or Standard or ShipToLocation</PickupType>
          </Store>
          <Type>string</Type>
          <Access>
            <string>string</string>
            <string>string</string>
          </Access>
          <RegisterNumber>string</RegisterNumber>
        </Device>
        <ReturnId>int</ReturnId>
        <Token>string</Token>
        <CalcToken>string</CalcToken>
        <AccountNumber>string</AccountNumber>
        <FirstName>string</FirstName>
        <LastName>string</LastName>
        <CompanyName>string</CompanyName>
        <Phone1>string</Phone1>
        <Phone2>string</Phone2>
        <EmailAddress>string</EmailAddress>
        <Address1>string</Address1>
        <Address2>string</Address2>
        <City>string</City>
        <State>string</State>
        <ZipCode>string</ZipCode>
        <Country>string</Country>
        <Comment>string</Comment>
        <ReferenceNumber>string</ReferenceNumber>
        <CashierCode>string</CashierCode>
        <Channel>WebStore or Kiosk or Club or Phone or POS or Event or Other or OutsideSales or Mobile or SocialNetwork or Wholesale</Channel>
        <TotalShipping>decimal</TotalShipping>
        <TotalShippingTax>decimal</TotalShippingTax>
        <TransactionLevelDiscount>decimal</TransactionLevelDiscount>
        <DiscountCode>string</DiscountCode>
        <DiscountReasonCode>string</DiscountReasonCode>
        <CouponCode>string</CouponCode>
        <ReceiptEmail>string</ReceiptEmail>
        <TransactionLines>
          <TransactionLine>
            <AssemblyId>int</AssemblyId>
            <Tax>decimal</Tax>
            <FullPrice>decimal</FullPrice>
            <Price>decimal</Price>
            <Discount>decimal</Discount>
            <TransactionDiscount>decimal</TransactionDiscount>
            <Cost>decimal</Cost>
            <LastCost>decimal</LastCost>
            <ReplacementCost>decimal</ReplacementCost>
            <Quantity>decimal</Quantity>
            <Weight>decimal</Weight>
            <Comment>string</Comment>
            <ExternalKey>string</ExternalKey>
            <Description>string</Description>
            <TaxDetails xsi:nil="true" />
            <ProductId>int</ProductId>
            <ProductFlags>int</ProductFlags>
            <LookupCode>string</LookupCode>
            <ProductItemType>Standard or NonInventory or Assembly or Kit or GiftCard or GiftCertificate or Coupon or ShippingCharge</ProductItemType>
            <PriceLevel>Override or Base or LevelA or LevelB or LevelC or MSRP</PriceLevel>
            <WebAlias>string</WebAlias>
            <Variant>string</Variant>
            <VariantParentId>int</VariantParentId>
            <DiscountRule xsi:nil="true" />
            <DiscountOverride>decimal</DiscountOverride>
            <ReasonId>int</ReasonId>
            <ReasonCode>string</ReasonCode>
            <ReturnReasonId>int</ReturnReasonId>
            <ReturnReasonCode>string</ReturnReasonCode>
            <Coupon xsi:nil="true" />
            <TaxExempt>boolean</TaxExempt>
            <BrandCode>string</BrandCode>
            <SerialNumbers xsi:nil="true" />
            <Id>int</Id>
            <ReturnId>int</ReturnId>
            <SalesRepCode>string</SalesRepCode>
          </TransactionLine>
          <TransactionLine>
            <AssemblyId>int</AssemblyId>
            <Tax>decimal</Tax>
            <FullPrice>decimal</FullPrice>
            <Price>decimal</Price>
            <Discount>decimal</Discount>
            <TransactionDiscount>decimal</TransactionDiscount>
            <Cost>decimal</Cost>
            <LastCost>decimal</LastCost>
            <ReplacementCost>decimal</ReplacementCost>
            <Quantity>decimal</Quantity>
            <Weight>decimal</Weight>
            <Comment>string</Comment>
            <ExternalKey>string</ExternalKey>
            <Description>string</Description>
            <TaxDetails xsi:nil="true" />
            <ProductId>int</ProductId>
            <ProductFlags>int</ProductFlags>
            <LookupCode>string</LookupCode>
            <ProductItemType>Standard or NonInventory or Assembly or Kit or GiftCard or GiftCertificate or Coupon or ShippingCharge</ProductItemType>
            <PriceLevel>Override or Base or LevelA or LevelB or LevelC or MSRP</PriceLevel>
            <WebAlias>string</WebAlias>
            <Variant>string</Variant>
            <VariantParentId>int</VariantParentId>
            <DiscountRule xsi:nil="true" />
            <DiscountOverride>decimal</DiscountOverride>
            <ReasonId>int</ReasonId>
            <ReasonCode>string</ReasonCode>
            <ReturnReasonId>int</ReturnReasonId>
            <ReturnReasonCode>string</ReturnReasonCode>
            <Coupon xsi:nil="true" />
            <TaxExempt>boolean</TaxExempt>
            <BrandCode>string</BrandCode>
            <SerialNumbers xsi:nil="true" />
            <Id>int</Id>
            <ReturnId>int</ReturnId>
            <SalesRepCode>string</SalesRepCode>
          </TransactionLine>
        </TransactionLines>
        <TransactionPayments>
          <TransactionPayment>
            <TenderCode>string</TenderCode>
            <TenderId>int</TenderId>
            <Tender xsi:nil="true" />
            <PaymentMethodId>int</PaymentMethodId>
            <PaymentMethod xsi:nil="true" />
            <Amount>decimal</Amount>
            <Cancelled>boolean</Cancelled>
            <PaymentTime>dateTime</PaymentTime>
            <PaymentToken>string</PaymentToken>
          </TransactionPayment>
          <TransactionPayment>
            <TenderCode>string</TenderCode>
            <TenderId>int</TenderId>
            <Tender xsi:nil="true" />
            <PaymentMethodId>int</PaymentMethodId>
            <PaymentMethod xsi:nil="true" />
            <Amount>decimal</Amount>
            <Cancelled>boolean</Cancelled>
            <PaymentTime>dateTime</PaymentTime>
            <PaymentToken>string</PaymentToken>
          </TransactionPayment>
        </TransactionPayments>
      </transaction>
      <coupons>
        <string>string</string>
        <string>string</string>
      </coupons>
      <excludedDiscountIds>
        <int>int</int>
        <int>int</int>
      </excludedDiscountIds>
    </CalculateTransactionDiscounts>
  </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>
    <CalculateTransactionDiscountsResponse xmlns="http://bloyal.com/">
      <CalculateTransactionDiscountsResult>
        <ExternalBatchId>string</ExternalBatchId>
        <ExternalTransactionId>string</ExternalTransactionId>
        <OrderId>int</OrderId>
        <CustomerId>int</CustomerId>
        <StoreId>int</StoreId>
        <Store>
          <Type>PhysicalStore or ExternalWebStore or InternalWebStore or VirtualStore or BackOffice</Type>
          <Code>string</Code>
          <Name>string</Name>
          <Address1>string</Address1>
          <Address2>string</Address2>
          <City>string</City>
          <State>string</State>
          <ZipCode>string</ZipCode>
          <Country>string</Country>
          <WebStoreUrl>string</WebStoreUrl>
          <ReplicationLocationId>int</ReplicationLocationId>
          <DefaultShippingLocationId>int</DefaultShippingLocationId>
          <DefaultPickupLocationId>int</DefaultPickupLocationId>
          <Locations>
            <Location xsi:nil="true" />
            <Location xsi:nil="true" />
          </Locations>
          <StockOutHandling>Unknown or AcceptSales or AcceptSalesWithWarning or RejectSalesWithWarning or DoNotDisplay</StockOutHandling>
          <PickupType>Unknown or Standard or ShipToLocation</PickupType>
        </Store>
        <DeviceId>int</DeviceId>
        <Device>
          <Model>string</Model>
          <Title>string</Title>
          <Channel>WebStore or Kiosk or Club or Phone or POS or Event or Other or OutsideSales or Mobile or SocialNetwork or Wholesale</Channel>
          <GiftCardTerminalId>string</GiftCardTerminalId>
          <CreditCardTerminalId>string</CreditCardTerminalId>
          <GiftEnabled>boolean</GiftEnabled>
          <StoreId>int</StoreId>
          <Store>
            <Type>PhysicalStore or ExternalWebStore or InternalWebStore or VirtualStore or BackOffice</Type>
            <Code>string</Code>
            <Name>string</Name>
            <Address1>string</Address1>
            <Address2>string</Address2>
            <City>string</City>
            <State>string</State>
            <ZipCode>string</ZipCode>
            <Country>string</Country>
            <WebStoreUrl>string</WebStoreUrl>
            <ReplicationLocationId>int</ReplicationLocationId>
            <DefaultShippingLocationId>int</DefaultShippingLocationId>
            <DefaultPickupLocationId>int</DefaultPickupLocationId>
            <Locations xsi:nil="true" />
            <StockOutHandling>Unknown or AcceptSales or AcceptSalesWithWarning or RejectSalesWithWarning or DoNotDisplay</StockOutHandling>
            <PickupType>Unknown or Standard or ShipToLocation</PickupType>
          </Store>
          <Type>string</Type>
          <Access>
            <string>string</string>
            <string>string</string>
          </Access>
          <RegisterNumber>string</RegisterNumber>
        </Device>
        <ReturnId>int</ReturnId>
        <Token>string</Token>
        <CalcToken>string</CalcToken>
        <AccountNumber>string</AccountNumber>
        <FirstName>string</FirstName>
        <LastName>string</LastName>
        <CompanyName>string</CompanyName>
        <Phone1>string</Phone1>
        <Phone2>string</Phone2>
        <EmailAddress>string</EmailAddress>
        <Address1>string</Address1>
        <Address2>string</Address2>
        <City>string</City>
        <State>string</State>
        <ZipCode>string</ZipCode>
        <Country>string</Country>
        <Comment>string</Comment>
        <ReferenceNumber>string</ReferenceNumber>
        <CashierCode>string</CashierCode>
        <Channel>WebStore or Kiosk or Club or Phone or POS or Event or Other or OutsideSales or Mobile or SocialNetwork or Wholesale</Channel>
        <TotalShipping>decimal</TotalShipping>
        <TotalShippingTax>decimal</TotalShippingTax>
        <TransactionLevelDiscount>decimal</TransactionLevelDiscount>
        <DiscountCode>string</DiscountCode>
        <DiscountReasonCode>string</DiscountReasonCode>
        <CouponCode>string</CouponCode>
        <ReceiptEmail>string</ReceiptEmail>
        <TransactionLines>
          <TransactionLine>
            <AssemblyId>int</AssemblyId>
            <Tax>decimal</Tax>
            <FullPrice>decimal</FullPrice>
            <Price>decimal</Price>
            <Discount>decimal</Discount>
            <TransactionDiscount>decimal</TransactionDiscount>
            <Cost>decimal</Cost>
            <LastCost>decimal</LastCost>
            <ReplacementCost>decimal</ReplacementCost>
            <Quantity>decimal</Quantity>
            <Weight>decimal</Weight>
            <Comment>string</Comment>
            <ExternalKey>string</ExternalKey>
            <Description>string</Description>
            <TaxDetails xsi:nil="true" />
            <ProductId>int</ProductId>
            <ProductFlags>int</ProductFlags>
            <LookupCode>string</LookupCode>
            <ProductItemType>Standard or NonInventory or Assembly or Kit or GiftCard or GiftCertificate or Coupon or ShippingCharge</ProductItemType>
            <PriceLevel>Override or Base or LevelA or LevelB or LevelC or MSRP</PriceLevel>
            <WebAlias>string</WebAlias>
            <Variant>string</Variant>
            <VariantParentId>int</VariantParentId>
            <DiscountRule xsi:nil="true" />
            <DiscountOverride>decimal</DiscountOverride>
            <ReasonId>int</ReasonId>
            <ReasonCode>string</ReasonCode>
            <ReturnReasonId>int</ReturnReasonId>
            <ReturnReasonCode>string</ReturnReasonCode>
            <Coupon xsi:nil="true" />
            <TaxExempt>boolean</TaxExempt>
            <BrandCode>string</BrandCode>
            <SerialNumbers xsi:nil="true" />
            <Id>int</Id>
            <ReturnId>int</ReturnId>
            <SalesRepCode>string</SalesRepCode>
          </TransactionLine>
          <TransactionLine>
            <AssemblyId>int</AssemblyId>
            <Tax>decimal</Tax>
            <FullPrice>decimal</FullPrice>
            <Price>decimal</Price>
            <Discount>decimal</Discount>
            <TransactionDiscount>decimal</TransactionDiscount>
            <Cost>decimal</Cost>
            <LastCost>decimal</LastCost>
            <ReplacementCost>decimal</ReplacementCost>
            <Quantity>decimal</Quantity>
            <Weight>decimal</Weight>
            <Comment>string</Comment>
            <ExternalKey>string</ExternalKey>
            <Description>string</Description>
            <TaxDetails xsi:nil="true" />
            <ProductId>int</ProductId>
            <ProductFlags>int</ProductFlags>
            <LookupCode>string</LookupCode>
            <ProductItemType>Standard or NonInventory or Assembly or Kit or GiftCard or GiftCertificate or Coupon or ShippingCharge</ProductItemType>
            <PriceLevel>Override or Base or LevelA or LevelB or LevelC or MSRP</PriceLevel>
            <WebAlias>string</WebAlias>
            <Variant>string</Variant>
            <VariantParentId>int</VariantParentId>
            <DiscountRule xsi:nil="true" />
            <DiscountOverride>decimal</DiscountOverride>
            <ReasonId>int</ReasonId>
            <ReasonCode>string</ReasonCode>
            <ReturnReasonId>int</ReturnReasonId>
            <ReturnReasonCode>string</ReturnReasonCode>
            <Coupon xsi:nil="true" />
            <TaxExempt>boolean</TaxExempt>
            <BrandCode>string</BrandCode>
            <SerialNumbers xsi:nil="true" />
            <Id>int</Id>
            <ReturnId>int</ReturnId>
            <SalesRepCode>string</SalesRepCode>
          </TransactionLine>
        </TransactionLines>
        <TransactionPayments>
          <TransactionPayment>
            <TenderCode>string</TenderCode>
            <TenderId>int</TenderId>
            <Tender xsi:nil="true" />
            <PaymentMethodId>int</PaymentMethodId>
            <PaymentMethod xsi:nil="true" />
            <Amount>decimal</Amount>
            <Cancelled>boolean</Cancelled>
            <PaymentTime>dateTime</PaymentTime>
            <PaymentToken>string</PaymentToken>
          </TransactionPayment>
          <TransactionPayment>
            <TenderCode>string</TenderCode>
            <TenderId>int</TenderId>
            <Tender xsi:nil="true" />
            <PaymentMethodId>int</PaymentMethodId>
            <PaymentMethod xsi:nil="true" />
            <Amount>decimal</Amount>
            <Cancelled>boolean</Cancelled>
            <PaymentTime>dateTime</PaymentTime>
            <PaymentToken>string</PaymentToken>
          </TransactionPayment>
        </TransactionPayments>
      </CalculateTransactionDiscountsResult>
      <info>
        <Discounts>
          <OrderDiscount>
            <Award>Product or Shipping</Award>
            <Discount>decimal</Discount>
            <Override>decimal</Override>
            <ReasonId>int</ReasonId>
            <ReasonCode>string</ReasonCode>
            <CouponId>int</CouponId>
            <Rule xsi:nil="true" />
          </OrderDiscount>
          <OrderDiscount>
            <Award>Product or Shipping</Award>
            <Discount>decimal</Discount>
            <Override>decimal</Override>
            <ReasonId>int</ReasonId>
            <ReasonCode>string</ReasonCode>
            <CouponId>int</CouponId>
            <Rule xsi:nil="true" />
          </OrderDiscount>
        </Discounts>
        <OrderCoupons>
          <OrderCoupon>
            <Id>int</Id>
            <Name>string</Name>
            <Code>string</Code>
            <Active>boolean</Active>
            <Note>string</Note>
          </OrderCoupon>
          <OrderCoupon>
            <Id>int</Id>
            <Name>string</Name>
            <Code>string</Code>
            <Active>boolean</Active>
            <Note>string</Note>
          </OrderCoupon>
        </OrderCoupons>
        <ProposedBalances>
          <LoyaltyBalance>
            <ProductId>int</ProductId>
            <Value>decimal</Value>
            <Action>UpdateLoyaltyAmount or UpdateLoyaltyPoints or UpdateItemWeight or UpdateItemAmount or UpdateItemQuantity or UpdateCouponUsage or UpdateAwardCoupon</Action>
            <Status>Queued or Committed or Canceled</Status>
            <DiscountId>int</DiscountId>
          </LoyaltyBalance>
          <LoyaltyBalance>
            <ProductId>int</ProductId>
            <Value>decimal</Value>
            <Action>UpdateLoyaltyAmount or UpdateLoyaltyPoints or UpdateItemWeight or UpdateItemAmount or UpdateItemQuantity or UpdateCouponUsage or UpdateAwardCoupon</Action>
            <Status>Queued or Committed or Canceled</Status>
            <DiscountId>int</DiscountId>
          </LoyaltyBalance>
        </ProposedBalances>
        <Licenses>
          <License>
            <ProductId>int</ProductId>
            <LicenseData>string</LicenseData>
          </License>
          <License>
            <ProductId>int</ProductId>
            <LicenseData>string</LicenseData>
          </License>
        </Licenses>
        <Overrides>
          <DiscountOverride>
            <ProductId>int</ProductId>
            <DiscountRuleId>int</DiscountRuleId>
            <PackageNumber>int</PackageNumber>
            <Override>decimal</Override>
            <Quantity>decimal</Quantity>
          </DiscountOverride>
          <DiscountOverride>
            <ProductId>int</ProductId>
            <DiscountRuleId>int</DiscountRuleId>
            <PackageNumber>int</PackageNumber>
            <Override>decimal</Override>
            <Quantity>decimal</Quantity>
          </DiscountOverride>
        </Overrides>
        <Problems>
          <OrderProblem>
            <Problem>General or PackageDelivery or PaymentProcessing or PaymentDefinition or ShippingCompliance or AllocationExceeded</Problem>
            <Title>string</Title>
            <Description>string</Description>
            <ProductId>int</ProductId>
            <Bypass>boolean</Bypass>
            <BypassMessage>string</BypassMessage>
          </OrderProblem>
          <OrderProblem>
            <Problem>General or PackageDelivery or PaymentProcessing or PaymentDefinition or ShippingCompliance or AllocationExceeded</Problem>
            <Title>string</Title>
            <Description>string</Description>
            <ProductId>int</ProductId>
            <Bypass>boolean</Bypass>
            <BypassMessage>string</BypassMessage>
          </OrderProblem>
        </Problems>
      </info>
      <problems>
        <ProblemReport>
          <Number>int</Number>
          <Code>string</Code>
          <Message>string</Message>
        </ProblemReport>
        <ProblemReport>
          <Number>int</Number>
          <Code>string</Code>
          <Message>string</Message>
        </ProblemReport>
      </problems>
    </CalculateTransactionDiscountsResponse>
  </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 /ws14/orderprocessing.asmx HTTP/1.1
Host: ws.bloyal.com
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>
    <CalculateTransactionDiscounts xmlns="http://bloyal.com/">
      <transaction>
        <ExternalBatchId>string</ExternalBatchId>
        <ExternalTransactionId>string</ExternalTransactionId>
        <OrderId>int</OrderId>
        <CustomerId>int</CustomerId>
        <StoreId>int</StoreId>
        <Store>
          <Type>PhysicalStore or ExternalWebStore or InternalWebStore or VirtualStore or BackOffice</Type>
          <Code>string</Code>
          <Name>string</Name>
          <Address1>string</Address1>
          <Address2>string</Address2>
          <City>string</City>
          <State>string</State>
          <ZipCode>string</ZipCode>
          <Country>string</Country>
          <WebStoreUrl>string</WebStoreUrl>
          <ReplicationLocationId>int</ReplicationLocationId>
          <DefaultShippingLocationId>int</DefaultShippingLocationId>
          <DefaultPickupLocationId>int</DefaultPickupLocationId>
          <Locations>
            <Location xsi:nil="true" />
            <Location xsi:nil="true" />
          </Locations>
          <StockOutHandling>Unknown or AcceptSales or AcceptSalesWithWarning or RejectSalesWithWarning or DoNotDisplay</StockOutHandling>
          <PickupType>Unknown or Standard or ShipToLocation</PickupType>
        </Store>
        <DeviceId>int</DeviceId>
        <Device>
          <Model>string</Model>
          <Title>string</Title>
          <Channel>WebStore or Kiosk or Club or Phone or POS or Event or Other or OutsideSales or Mobile or SocialNetwork or Wholesale</Channel>
          <GiftCardTerminalId>string</GiftCardTerminalId>
          <CreditCardTerminalId>string</CreditCardTerminalId>
          <GiftEnabled>boolean</GiftEnabled>
          <StoreId>int</StoreId>
          <Store>
            <Type>PhysicalStore or ExternalWebStore or InternalWebStore or VirtualStore or BackOffice</Type>
            <Code>string</Code>
            <Name>string</Name>
            <Address1>string</Address1>
            <Address2>string</Address2>
            <City>string</City>
            <State>string</State>
            <ZipCode>string</ZipCode>
            <Country>string</Country>
            <WebStoreUrl>string</WebStoreUrl>
            <ReplicationLocationId>int</ReplicationLocationId>
            <DefaultShippingLocationId>int</DefaultShippingLocationId>
            <DefaultPickupLocationId>int</DefaultPickupLocationId>
            <Locations xsi:nil="true" />
            <StockOutHandling>Unknown or AcceptSales or AcceptSalesWithWarning or RejectSalesWithWarning or DoNotDisplay</StockOutHandling>
            <PickupType>Unknown or Standard or ShipToLocation</PickupType>
          </Store>
          <Type>string</Type>
          <Access>
            <string>string</string>
            <string>string</string>
          </Access>
          <RegisterNumber>string</RegisterNumber>
        </Device>
        <ReturnId>int</ReturnId>
        <Token>string</Token>
        <CalcToken>string</CalcToken>
        <AccountNumber>string</AccountNumber>
        <FirstName>string</FirstName>
        <LastName>string</LastName>
        <CompanyName>string</CompanyName>
        <Phone1>string</Phone1>
        <Phone2>string</Phone2>
        <EmailAddress>string</EmailAddress>
        <Address1>string</Address1>
        <Address2>string</Address2>
        <City>string</City>
        <State>string</State>
        <ZipCode>string</ZipCode>
        <Country>string</Country>
        <Comment>string</Comment>
        <ReferenceNumber>string</ReferenceNumber>
        <CashierCode>string</CashierCode>
        <Channel>WebStore or Kiosk or Club or Phone or POS or Event or Other or OutsideSales or Mobile or SocialNetwork or Wholesale</Channel>
        <TotalShipping>decimal</TotalShipping>
        <TotalShippingTax>decimal</TotalShippingTax>
        <TransactionLevelDiscount>decimal</TransactionLevelDiscount>
        <DiscountCode>string</DiscountCode>
        <DiscountReasonCode>string</DiscountReasonCode>
        <CouponCode>string</CouponCode>
        <ReceiptEmail>string</ReceiptEmail>
        <TransactionLines>
          <TransactionLine>
            <AssemblyId>int</AssemblyId>
            <Tax>decimal</Tax>
            <FullPrice>decimal</FullPrice>
            <Price>decimal</Price>
            <Discount>decimal</Discount>
            <TransactionDiscount>decimal</TransactionDiscount>
            <Cost>decimal</Cost>
            <LastCost>decimal</LastCost>
            <ReplacementCost>decimal</ReplacementCost>
            <Quantity>decimal</Quantity>
            <Weight>decimal</Weight>
            <Comment>string</Comment>
            <ExternalKey>string</ExternalKey>
            <Description>string</Description>
            <TaxDetails xsi:nil="true" />
            <ProductId>int</ProductId>
            <ProductFlags>int</ProductFlags>
            <LookupCode>string</LookupCode>
            <ProductItemType>Standard or NonInventory or Assembly or Kit or GiftCard or GiftCertificate or Coupon or ShippingCharge</ProductItemType>
            <PriceLevel>Override or Base or LevelA or LevelB or LevelC or MSRP</PriceLevel>
            <WebAlias>string</WebAlias>
            <Variant>string</Variant>
            <VariantParentId>int</VariantParentId>
            <DiscountRule xsi:nil="true" />
            <DiscountOverride>decimal</DiscountOverride>
            <ReasonId>int</ReasonId>
            <ReasonCode>string</ReasonCode>
            <ReturnReasonId>int</ReturnReasonId>
            <ReturnReasonCode>string</ReturnReasonCode>
            <Coupon xsi:nil="true" />
            <TaxExempt>boolean</TaxExempt>
            <BrandCode>string</BrandCode>
            <SerialNumbers xsi:nil="true" />
            <Id>int</Id>
            <ReturnId>int</ReturnId>
            <SalesRepCode>string</SalesRepCode>
          </TransactionLine>
          <TransactionLine>
            <AssemblyId>int</AssemblyId>
            <Tax>decimal</Tax>
            <FullPrice>decimal</FullPrice>
            <Price>decimal</Price>
            <Discount>decimal</Discount>
            <TransactionDiscount>decimal</TransactionDiscount>
            <Cost>decimal</Cost>
            <LastCost>decimal</LastCost>
            <ReplacementCost>decimal</ReplacementCost>
            <Quantity>decimal</Quantity>
            <Weight>decimal</Weight>
            <Comment>string</Comment>
            <ExternalKey>string</ExternalKey>
            <Description>string</Description>
            <TaxDetails xsi:nil="true" />
            <ProductId>int</ProductId>
            <ProductFlags>int</ProductFlags>
            <LookupCode>string</LookupCode>
            <ProductItemType>Standard or NonInventory or Assembly or Kit or GiftCard or GiftCertificate or Coupon or ShippingCharge</ProductItemType>
            <PriceLevel>Override or Base or LevelA or LevelB or LevelC or MSRP</PriceLevel>
            <WebAlias>string</WebAlias>
            <Variant>string</Variant>
            <VariantParentId>int</VariantParentId>
            <DiscountRule xsi:nil="true" />
            <DiscountOverride>decimal</DiscountOverride>
            <ReasonId>int</ReasonId>
            <ReasonCode>string</ReasonCode>
            <ReturnReasonId>int</ReturnReasonId>
            <ReturnReasonCode>string</ReturnReasonCode>
            <Coupon xsi:nil="true" />
            <TaxExempt>boolean</TaxExempt>
            <BrandCode>string</BrandCode>
            <SerialNumbers xsi:nil="true" />
            <Id>int</Id>
            <ReturnId>int</ReturnId>
            <SalesRepCode>string</SalesRepCode>
          </TransactionLine>
        </TransactionLines>
        <TransactionPayments>
          <TransactionPayment>
            <TenderCode>string</TenderCode>
            <TenderId>int</TenderId>
            <Tender xsi:nil="true" />
            <PaymentMethodId>int</PaymentMethodId>
            <PaymentMethod xsi:nil="true" />
            <Amount>decimal</Amount>
            <Cancelled>boolean</Cancelled>
            <PaymentTime>dateTime</PaymentTime>
            <PaymentToken>string</PaymentToken>
          </TransactionPayment>
          <TransactionPayment>
            <TenderCode>string</TenderCode>
            <TenderId>int</TenderId>
            <Tender xsi:nil="true" />
            <PaymentMethodId>int</PaymentMethodId>
            <PaymentMethod xsi:nil="true" />
            <Amount>decimal</Amount>
            <Cancelled>boolean</Cancelled>
            <PaymentTime>dateTime</PaymentTime>
            <PaymentToken>string</PaymentToken>
          </TransactionPayment>
        </TransactionPayments>
      </transaction>
      <coupons>
        <string>string</string>
        <string>string</string>
      </coupons>
      <excludedDiscountIds>
        <int>int</int>
        <int>int</int>
      </excludedDiscountIds>
    </CalculateTransactionDiscounts>
  </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>
    <CalculateTransactionDiscountsResponse xmlns="http://bloyal.com/">
      <CalculateTransactionDiscountsResult>
        <ExternalBatchId>string</ExternalBatchId>
        <ExternalTransactionId>string</ExternalTransactionId>
        <OrderId>int</OrderId>
        <CustomerId>int</CustomerId>
        <StoreId>int</StoreId>
        <Store>
          <Type>PhysicalStore or ExternalWebStore or InternalWebStore or VirtualStore or BackOffice</Type>
          <Code>string</Code>
          <Name>string</Name>
          <Address1>string</Address1>
          <Address2>string</Address2>
          <City>string</City>
          <State>string</State>
          <ZipCode>string</ZipCode>
          <Country>string</Country>
          <WebStoreUrl>string</WebStoreUrl>
          <ReplicationLocationId>int</ReplicationLocationId>
          <DefaultShippingLocationId>int</DefaultShippingLocationId>
          <DefaultPickupLocationId>int</DefaultPickupLocationId>
          <Locations>
            <Location xsi:nil="true" />
            <Location xsi:nil="true" />
          </Locations>
          <StockOutHandling>Unknown or AcceptSales or AcceptSalesWithWarning or RejectSalesWithWarning or DoNotDisplay</StockOutHandling>
          <PickupType>Unknown or Standard or ShipToLocation</PickupType>
        </Store>
        <DeviceId>int</DeviceId>
        <Device>
          <Model>string</Model>
          <Title>string</Title>
          <Channel>WebStore or Kiosk or Club or Phone or POS or Event or Other or OutsideSales or Mobile or SocialNetwork or Wholesale</Channel>
          <GiftCardTerminalId>string</GiftCardTerminalId>
          <CreditCardTerminalId>string</CreditCardTerminalId>
          <GiftEnabled>boolean</GiftEnabled>
          <StoreId>int</StoreId>
          <Store>
            <Type>PhysicalStore or ExternalWebStore or InternalWebStore or VirtualStore or BackOffice</Type>
            <Code>string</Code>
            <Name>string</Name>
            <Address1>string</Address1>
            <Address2>string</Address2>
            <City>string</City>
            <State>string</State>
            <ZipCode>string</ZipCode>
            <Country>string</Country>
            <WebStoreUrl>string</WebStoreUrl>
            <ReplicationLocationId>int</ReplicationLocationId>
            <DefaultShippingLocationId>int</DefaultShippingLocationId>
            <DefaultPickupLocationId>int</DefaultPickupLocationId>
            <Locations xsi:nil="true" />
            <StockOutHandling>Unknown or AcceptSales or AcceptSalesWithWarning or RejectSalesWithWarning or DoNotDisplay</StockOutHandling>
            <PickupType>Unknown or Standard or ShipToLocation</PickupType>
          </Store>
          <Type>string</Type>
          <Access>
            <string>string</string>
            <string>string</string>
          </Access>
          <RegisterNumber>string</RegisterNumber>
        </Device>
        <ReturnId>int</ReturnId>
        <Token>string</Token>
        <CalcToken>string</CalcToken>
        <AccountNumber>string</AccountNumber>
        <FirstName>string</FirstName>
        <LastName>string</LastName>
        <CompanyName>string</CompanyName>
        <Phone1>string</Phone1>
        <Phone2>string</Phone2>
        <EmailAddress>string</EmailAddress>
        <Address1>string</Address1>
        <Address2>string</Address2>
        <City>string</City>
        <State>string</State>
        <ZipCode>string</ZipCode>
        <Country>string</Country>
        <Comment>string</Comment>
        <ReferenceNumber>string</ReferenceNumber>
        <CashierCode>string</CashierCode>
        <Channel>WebStore or Kiosk or Club or Phone or POS or Event or Other or OutsideSales or Mobile or SocialNetwork or Wholesale</Channel>
        <TotalShipping>decimal</TotalShipping>
        <TotalShippingTax>decimal</TotalShippingTax>
        <TransactionLevelDiscount>decimal</TransactionLevelDiscount>
        <DiscountCode>string</DiscountCode>
        <DiscountReasonCode>string</DiscountReasonCode>
        <CouponCode>string</CouponCode>
        <ReceiptEmail>string</ReceiptEmail>
        <TransactionLines>
          <TransactionLine>
            <AssemblyId>int</AssemblyId>
            <Tax>decimal</Tax>
            <FullPrice>decimal</FullPrice>
            <Price>decimal</Price>
            <Discount>decimal</Discount>
            <TransactionDiscount>decimal</TransactionDiscount>
            <Cost>decimal</Cost>
            <LastCost>decimal</LastCost>
            <ReplacementCost>decimal</ReplacementCost>
            <Quantity>decimal</Quantity>
            <Weight>decimal</Weight>
            <Comment>string</Comment>
            <ExternalKey>string</ExternalKey>
            <Description>string</Description>
            <TaxDetails xsi:nil="true" />
            <ProductId>int</ProductId>
            <ProductFlags>int</ProductFlags>
            <LookupCode>string</LookupCode>
            <ProductItemType>Standard or NonInventory or Assembly or Kit or GiftCard or GiftCertificate or Coupon or ShippingCharge</ProductItemType>
            <PriceLevel>Override or Base or LevelA or LevelB or LevelC or MSRP</PriceLevel>
            <WebAlias>string</WebAlias>
            <Variant>string</Variant>
            <VariantParentId>int</VariantParentId>
            <DiscountRule xsi:nil="true" />
            <DiscountOverride>decimal</DiscountOverride>
            <ReasonId>int</ReasonId>
            <ReasonCode>string</ReasonCode>
            <ReturnReasonId>int</ReturnReasonId>
            <ReturnReasonCode>string</ReturnReasonCode>
            <Coupon xsi:nil="true" />
            <TaxExempt>boolean</TaxExempt>
            <BrandCode>string</BrandCode>
            <SerialNumbers xsi:nil="true" />
            <Id>int</Id>
            <ReturnId>int</ReturnId>
            <SalesRepCode>string</SalesRepCode>
          </TransactionLine>
          <TransactionLine>
            <AssemblyId>int</AssemblyId>
            <Tax>decimal</Tax>
            <FullPrice>decimal</FullPrice>
            <Price>decimal</Price>
            <Discount>decimal</Discount>
            <TransactionDiscount>decimal</TransactionDiscount>
            <Cost>decimal</Cost>
            <LastCost>decimal</LastCost>
            <ReplacementCost>decimal</ReplacementCost>
            <Quantity>decimal</Quantity>
            <Weight>decimal</Weight>
            <Comment>string</Comment>
            <ExternalKey>string</ExternalKey>
            <Description>string</Description>
            <TaxDetails xsi:nil="true" />
            <ProductId>int</ProductId>
            <ProductFlags>int</ProductFlags>
            <LookupCode>string</LookupCode>
            <ProductItemType>Standard or NonInventory or Assembly or Kit or GiftCard or GiftCertificate or Coupon or ShippingCharge</ProductItemType>
            <PriceLevel>Override or Base or LevelA or LevelB or LevelC or MSRP</PriceLevel>
            <WebAlias>string</WebAlias>
            <Variant>string</Variant>
            <VariantParentId>int</VariantParentId>
            <DiscountRule xsi:nil="true" />
            <DiscountOverride>decimal</DiscountOverride>
            <ReasonId>int</ReasonId>
            <ReasonCode>string</ReasonCode>
            <ReturnReasonId>int</ReturnReasonId>
            <ReturnReasonCode>string</ReturnReasonCode>
            <Coupon xsi:nil="true" />
            <TaxExempt>boolean</TaxExempt>
            <BrandCode>string</BrandCode>
            <SerialNumbers xsi:nil="true" />
            <Id>int</Id>
            <ReturnId>int</ReturnId>
            <SalesRepCode>string</SalesRepCode>
          </TransactionLine>
        </TransactionLines>
        <TransactionPayments>
          <TransactionPayment>
            <TenderCode>string</TenderCode>
            <TenderId>int</TenderId>
            <Tender xsi:nil="true" />
            <PaymentMethodId>int</PaymentMethodId>
            <PaymentMethod xsi:nil="true" />
            <Amount>decimal</Amount>
            <Cancelled>boolean</Cancelled>
            <PaymentTime>dateTime</PaymentTime>
            <PaymentToken>string</PaymentToken>
          </TransactionPayment>
          <TransactionPayment>
            <TenderCode>string</TenderCode>
            <TenderId>int</TenderId>
            <Tender xsi:nil="true" />
            <PaymentMethodId>int</PaymentMethodId>
            <PaymentMethod xsi:nil="true" />
            <Amount>decimal</Amount>
            <Cancelled>boolean</Cancelled>
            <PaymentTime>dateTime</PaymentTime>
            <PaymentToken>string</PaymentToken>
          </TransactionPayment>
        </TransactionPayments>
      </CalculateTransactionDiscountsResult>
      <info>
        <Discounts>
          <OrderDiscount>
            <Award>Product or Shipping</Award>
            <Discount>decimal</Discount>
            <Override>decimal</Override>
            <ReasonId>int</ReasonId>
            <ReasonCode>string</ReasonCode>
            <CouponId>int</CouponId>
            <Rule xsi:nil="true" />
          </OrderDiscount>
          <OrderDiscount>
            <Award>Product or Shipping</Award>
            <Discount>decimal</Discount>
            <Override>decimal</Override>
            <ReasonId>int</ReasonId>
            <ReasonCode>string</ReasonCode>
            <CouponId>int</CouponId>
            <Rule xsi:nil="true" />
          </OrderDiscount>
        </Discounts>
        <OrderCoupons>
          <OrderCoupon>
            <Id>int</Id>
            <Name>string</Name>
            <Code>string</Code>
            <Active>boolean</Active>
            <Note>string</Note>
          </OrderCoupon>
          <OrderCoupon>
            <Id>int</Id>
            <Name>string</Name>
            <Code>string</Code>
            <Active>boolean</Active>
            <Note>string</Note>
          </OrderCoupon>
        </OrderCoupons>
        <ProposedBalances>
          <LoyaltyBalance>
            <ProductId>int</ProductId>
            <Value>decimal</Value>
            <Action>UpdateLoyaltyAmount or UpdateLoyaltyPoints or UpdateItemWeight or UpdateItemAmount or UpdateItemQuantity or UpdateCouponUsage or UpdateAwardCoupon</Action>
            <Status>Queued or Committed or Canceled</Status>
            <DiscountId>int</DiscountId>
          </LoyaltyBalance>
          <LoyaltyBalance>
            <ProductId>int</ProductId>
            <Value>decimal</Value>
            <Action>UpdateLoyaltyAmount or UpdateLoyaltyPoints or UpdateItemWeight or UpdateItemAmount or UpdateItemQuantity or UpdateCouponUsage or UpdateAwardCoupon</Action>
            <Status>Queued or Committed or Canceled</Status>
            <DiscountId>int</DiscountId>
          </LoyaltyBalance>
        </ProposedBalances>
        <Licenses>
          <License>
            <ProductId>int</ProductId>
            <LicenseData>string</LicenseData>
          </License>
          <License>
            <ProductId>int</ProductId>
            <LicenseData>string</LicenseData>
          </License>
        </Licenses>
        <Overrides>
          <DiscountOverride>
            <ProductId>int</ProductId>
            <DiscountRuleId>int</DiscountRuleId>
            <PackageNumber>int</PackageNumber>
            <Override>decimal</Override>
            <Quantity>decimal</Quantity>
          </DiscountOverride>
          <DiscountOverride>
            <ProductId>int</ProductId>
            <DiscountRuleId>int</DiscountRuleId>
            <PackageNumber>int</PackageNumber>
            <Override>decimal</Override>
            <Quantity>decimal</Quantity>
          </DiscountOverride>
        </Overrides>
        <Problems>
          <OrderProblem>
            <Problem>General or PackageDelivery or PaymentProcessing or PaymentDefinition or ShippingCompliance or AllocationExceeded</Problem>
            <Title>string</Title>
            <Description>string</Description>
            <ProductId>int</ProductId>
            <Bypass>boolean</Bypass>
            <BypassMessage>string</BypassMessage>
          </OrderProblem>
          <OrderProblem>
            <Problem>General or PackageDelivery or PaymentProcessing or PaymentDefinition or ShippingCompliance or AllocationExceeded</Problem>
            <Title>string</Title>
            <Description>string</Description>
            <ProductId>int</ProductId>
            <Bypass>boolean</Bypass>
            <BypassMessage>string</BypassMessage>
          </OrderProblem>
        </Problems>
      </info>
      <problems>
        <ProblemReport>
          <Number>int</Number>
          <Code>string</Code>
          <Message>string</Message>
        </ProblemReport>
        <ProblemReport>
          <Number>int</Number>
          <Code>string</Code>
          <Message>string</Message>
        </ProblemReport>
      </problems>
    </CalculateTransactionDiscountsResponse>
  </soap12:Body>
</soap12:Envelope>