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.
GET /ProductPurchaseReportRequest HTTP/1.1
Host: cdnapidev.greysheet.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ProductPurchaseReportResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cdn.Api.ResponseObjects">
<CachedResponse>false</CachedResponse>
<ErrorText>String</ErrorText>
<OpCode>0</OpCode>
<RequestTime>String</RequestTime>
<ResponseTime>String</ResponseTime>
<Total>0</Total>
<TotalExecutionTime>String</TotalExecutionTime>
<CacheAge>0</CacheAge>
<Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cdn.Api.Dto">
<d2p1:ProductPurchaseItemDto>
<d2p1:Address>String</d2p1:Address>
<d2p1:Address2>String</d2p1:Address2>
<d2p1:CategoryId>0</d2p1:CategoryId>
<d2p1:CdnxId>String</d2p1:CdnxId>
<d2p1:City>String</d2p1:City>
<d2p1:Country>String</d2p1:Country>
<d2p1:CustomerId>0</d2p1:CustomerId>
<d2p1:DisplayName>String</d2p1:DisplayName>
<d2p1:EbayId>String</d2p1:EbayId>
<d2p1:EmailAddress>String</d2p1:EmailAddress>
<d2p1:ExpirationDate>0001-01-01T00:00:00</d2p1:ExpirationDate>
<d2p1:ExpirationDateDisplay>String</d2p1:ExpirationDateDisplay>
<d2p1:Id>0</d2p1:Id>
<d2p1:IsOnline>false</d2p1:IsOnline>
<d2p1:IsPrint>false</d2p1:IsPrint>
<d2p1:IsRecurring>false</d2p1:IsRecurring>
<d2p1:IsSubscribable>false</d2p1:IsSubscribable>
<d2p1:ItemSpecificName>String</d2p1:ItemSpecificName>
<d2p1:ListPrice>0</d2p1:ListPrice>
<d2p1:OrderDate>0001-01-01T00:00:00</d2p1:OrderDate>
<d2p1:OrderDateDisplay>String</d2p1:OrderDateDisplay>
<d2p1:PayMethod>String</d2p1:PayMethod>
<d2p1:PhoneNumber>String</d2p1:PhoneNumber>
<d2p1:Price>0</d2p1:Price>
<d2p1:ProductDisplayName>String</d2p1:ProductDisplayName>
<d2p1:Province>String</d2p1:Province>
<d2p1:ShipMethod>String</d2p1:ShipMethod>
<d2p1:SourceOfSale>String</d2p1:SourceOfSale>
<d2p1:State>String</d2p1:State>
<d2p1:Status>String</d2p1:Status>
<d2p1:SubscriptionStartDateDisplay>String</d2p1:SubscriptionStartDateDisplay>
<d2p1:Zip>String</d2p1:Zip>
</d2p1:ProductPurchaseItemDto>
</Items>
</ProductPurchaseReportResponse>