To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /xml/reply/PricingToolEntryPricingRequest HTTP/1.1
Host: mobileapidevsw.greysheet.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<PricingToolEntryPricingRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cdn.MobileApi.RequestObjects">
<Id>0</Id>
<OrderBy xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</OrderBy>
<OrderDirections>
<SortOrders>Asc</SortOrders>
</OrderDirections>
<Cac>false</Cac>
<CustId>0</CustId>
<EntryId>0</EntryId>
<Grade>0</Grade>
<IsMobile>false</IsMobile>
</PricingToolEntryPricingRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<PricingToolEntryPricingResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cdn.MobileApi.ResponseObjects">
<CachedResponse>false</CachedResponse>
<ErrorText>String</ErrorText>
<OpCode>0</OpCode>
<RequestTime>String</RequestTime>
<ResponseTime>String</ResponseTime>
<Total>0</Total>
<TotalExecutionTime>String</TotalExecutionTime>
<AccessRemaining>0</AccessRemaining>
<AllowRetail>false</AllowRetail>
<AllowWholesale>false</AllowWholesale>
<AllowedCatalogsRetail>String</AllowedCatalogsRetail>
<AllowedCatalogsWholesale>String</AllowedCatalogsWholesale>
<AllowedPricingCalls>0</AllowedPricingCalls>
<AllowedPublications>String</AllowedPublications>
<CatalogId>0</CatalogId>
<CatalogName>String</CatalogName>
<ConsumedPricingCalls>0</ConsumedPricingCalls>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cdn.MobileApi.Models">
<d2p1:RetailPricingObjectDto>
<d2p1:BlueNPlusMinus>String</d2p1:BlueNPlusMinus>
<d2p1:BlueNPlusMinusValue>String</d2p1:BlueNPlusMinusValue>
<d2p1:BlueNPrevDate>String</d2p1:BlueNPrevDate>
<d2p1:BlueNPrevVal>String</d2p1:BlueNPrevVal>
<d2p1:BlueNVal>String</d2p1:BlueNVal>
<d2p1:BluePPlusMinus>String</d2p1:BluePPlusMinus>
<d2p1:BluePPlusMinusValue>String</d2p1:BluePPlusMinusValue>
<d2p1:BluePPrevDate>String</d2p1:BluePPrevDate>
<d2p1:BluePPrevVal>String</d2p1:BluePPrevVal>
<d2p1:BluePVal>String</d2p1:BluePVal>
<d2p1:CatalogId>0</d2p1:CatalogId>
<d2p1:CpgPlusMinus>String</d2p1:CpgPlusMinus>
<d2p1:CpgPlusMinusValue>String</d2p1:CpgPlusMinusValue>
<d2p1:CpgPrevDate>String</d2p1:CpgPrevDate>
<d2p1:CpgPrevVal>String</d2p1:CpgPrevVal>
<d2p1:CpgVal>String</d2p1:CpgVal>
<d2p1:EntryId>0</d2p1:EntryId>
<d2p1:Grade>0</d2p1:Grade>
<d2p1:GradeLabel>String</d2p1:GradeLabel>
<d2p1:GreenPlusMinus>String</d2p1:GreenPlusMinus>
<d2p1:GreenPlusMinusValue>String</d2p1:GreenPlusMinusValue>
<d2p1:GreenPrevDate>String</d2p1:GreenPrevDate>
<d2p1:GreenPrevVal>String</d2p1:GreenPrevVal>
<d2p1:GreenVal>String</d2p1:GreenVal>
<d2p1:GreyPlusMinus>String</d2p1:GreyPlusMinus>
<d2p1:GreyPlusMinusValue>String</d2p1:GreyPlusMinusValue>
<d2p1:GreyPrevDate>String</d2p1:GreyPrevDate>
<d2p1:GreyPrevVal>String</d2p1:GreyPrevVal>
<d2p1:GreyVal>String</d2p1:GreyVal>
<d2p1:IsCac>false</d2p1:IsCac>
</d2p1:RetailPricingObjectDto>
</Data>
<DisplayTitle>String</DisplayTitle>
<EntryId>0</EntryId>
<EntryName>String</EntryName>
<FreeTier>false</FreeTier>
<GroupId>0</GroupId>
<GroupName>String</GroupName>
<PcgsNumber>String</PcgsNumber>
<PermitAccess>false</PermitAccess>
<SeriesId>0</SeriesId>
<SeriesName>String</SeriesName>
<ShowAccessPopup>false</ShowAccessPopup>
</PricingToolEntryPricingResponse>