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 /CustomerCollectionRequest HTTP/1.1
Host: cdnapidev.greysheet.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CustomerCollectionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cdn.Api.RequestObjects">
<AcquiredDate>0001-01-01T00:00:00</AcquiredDate>
<CollectibleId>0</CollectibleId>
<CustomerId>0</CustomerId>
<Grade>0</Grade>
<GradingService>String</GradingService>
<Id>0</Id>
<IsCac>false</IsCac>
<Notes>String</Notes>
<ObverseImageUrl>String</ObverseImageUrl>
<PaidPrice>0</PaidPrice>
<Preservation>String</Preservation>
<Quantity>0</Quantity>
<ReverseImageUrl>String</ReverseImageUrl>
<Skip>0</Skip>
<SourceScanLogId>0</SourceScanLogId>
<Take>0</Take>
</CustomerCollectionRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<CustomerCollectionResponse 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>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cdn.Api.Dto">
<d2p1:CustomerCollectionItemDto>
<d2p1:AcquiredDate>0001-01-01T00:00:00</d2p1:AcquiredDate>
<d2p1:CollectibleId>0</d2p1:CollectibleId>
<d2p1:CollectibleName>String</d2p1:CollectibleName>
<d2p1:CustomerId>0</d2p1:CustomerId>
<d2p1:Grade>0</d2p1:Grade>
<d2p1:GradeLabel>String</d2p1:GradeLabel>
<d2p1:GradingService>String</d2p1:GradingService>
<d2p1:Id>0</d2p1:Id>
<d2p1:IsCac>false</d2p1:IsCac>
<d2p1:LastMod>0001-01-01T00:00:00</d2p1:LastMod>
<d2p1:Notes>String</d2p1:Notes>
<d2p1:ObverseImageUrl>String</d2p1:ObverseImageUrl>
<d2p1:PaidPrice>0</d2p1:PaidPrice>
<d2p1:PcgsNumber>String</d2p1:PcgsNumber>
<d2p1:Preservation>String</d2p1:Preservation>
<d2p1:Quantity>0</d2p1:Quantity>
<d2p1:ReverseImageUrl>String</d2p1:ReverseImageUrl>
<d2p1:SourceScanLogId>0</d2p1:SourceScanLogId>
</d2p1:CustomerCollectionItemDto>
</Data>
</CustomerCollectionResponse>