FindPriceRule


 

Overview

Quick Links

Retrieves Price Rules according to a specified set of criteria.


Resource Information



Request FormatXML
Response FormatXML

Request Header

NameTypeDescription
StringStringAuthentication Token

Request Body

NameTypeDescription
customerCodeStringA customerCode referring to the customer the Price Rules should apply to
productClusterTagName.StringThe name of the Product Cluster the Price Rules should apply to.

Response

NameTypeDescription
ResultList of Price RulesReturns the details of the Price Rule in the system you requested.
ResultCodeStringString indicating the result. Either "Success" or "Error".
ResultMessageStringEmpty when call successful, error message otherwise.

In the case of an internal unhandled fault, a Fault object is returned instead. Providing information on what occurred exactly.

Examples

Request

<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Header xmlns:s="System"><s:String>65836915-d081-4d0f-9acb-e852b08341dc</s:String></Header>
 <Body>
 <FindPriceRule xmlns="http://tempuri.org/">
 <customerCode>C010</customerCode>
 <productClusterTagName>National Voice</productClusterTagName>
 </FindPriceRule>
 </Body>
</Envelope>

Response

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
 <s:Body>
 <FindPriceRuleResponse xmlns="http://tempuri.org/">
 <FindPriceRuleResult xmlns:a="http://schemas.datacontract.org/2004/07/Kolonel.Public.Service.API.Contracts.V1_0" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
 <a:Result>
 <a:PricingRule>
 <a:BillingOutputTags xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
 <a:ChargePerUOM>None</a:ChargePerUOM>
 <a:CostOperatorValue>1</a:CostOperatorValue>
 <a:CostOperatorValueExpression i:nil="true"/>
 <a:CustomerClusterId>5491c6f6ae8b10e33a13a594</a:CustomerClusterId>
 <a:CustomerClusterRelativeLevel>0</a:CustomerClusterRelativeLevel>
 <a:CustomerClusterTagName>Customer 010</a:CustomerClusterTagName>
 <a:Id>5491c6feae8b10e33a13a661</a:Id>
 <a:InvoiceLabelKey>UnitPrice</a:InvoiceLabelKey>
 <a:InvoiceLabelOverrides xmlns:b="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/>
 <a:InvoiceOrderIndex>1</a:InvoiceOrderIndex>
 <a:IsFinalResult>false</a:IsFinalResult>
 <a:IsInvoiceRule>true</a:IsInvoiceRule>
 <a:ItemCondition i:nil="true"/>
 <a:Ladder i:nil="true"/>
 <a:Operator>PRICE</a:Operator>
 <a:OperatorValue>1</a:OperatorValue>
 <a:OperatorValueExpression i:nil="true"/>
 <a:OverridenRuleName i:nil="true"/>
 <a:ProRataPriceUOM>None</a:ProRataPriceUOM>
 <a:ProRataRoundingTypeFrom>None</a:ProRataRoundingTypeFrom>
 <a:ProRataRoundingTypeTo>None</a:ProRataRoundingTypeTo>
 <a:ProductClusterId>5491c6feae8b10e33a13a654</a:ProductClusterId>
 <a:ProductClusterRelativeLevel>0</a:ProductClusterRelativeLevel>
 <a:ProductClusterTagName>National Voice</a:ProductClusterTagName>
 <a:RuleCondition i:nil="true"/>
 <a:RuleCreated>2014-01-01T12:34:56.789+01:00</a:RuleCreated>
 <a:RuleName>Product 001 PRICE</a:RuleName>
 <a:RuleOrder>1</a:RuleOrder>
 <a:SeparateDiscountValue>false</a:SeparateDiscountValue>
 <a:SeparateLineItemBillingOutputTags xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
 <a:UpdatedDate>2014-01-01T12:34:56.789+01:00</a:UpdatedDate>
 <a:ValidFrom i:nil="true"/>
 <a:ValidTo i:nil="true"/>
 </a:PricingRule>
 </a:Result>
 <a:ResultCode>Success</a:ResultCode>
 <a:ResultMessage/>
 </FindPriceRuleResult>
 </FindPriceRuleResponse>
 </s:Body>
</s:Envelope>