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 /IapPlanReorderRequest HTTP/1.1
Host: cdnapidev.greysheet.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<IapPlanReorderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cdn.Api.RequestObjects">
<PlanIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</PlanIds>
<Reason>String</Reason>
</IapPlanReorderRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<IapPlanCatalogResponse 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>
<OfferingId>String</OfferingId>
<Plans xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cdn.Api.Iap">
<d2p1:IapPlanDefinition>
<d2p1:AnnualLocalProductId>0</d2p1:AnnualLocalProductId>
<d2p1:AnnualSku>String</d2p1:AnnualSku>
<d2p1:Badge>String</d2p1:Badge>
<d2p1:Benefits xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</d2p1:Benefits>
<d2p1:EntitlementLookupKey>String</d2p1:EntitlementLookupKey>
<d2p1:IncludesPrint>false</d2p1:IncludesPrint>
<d2p1:Level>0</d2p1:Level>
<d2p1:MonthlyLocalProductId>0</d2p1:MonthlyLocalProductId>
<d2p1:MonthlySku>String</d2p1:MonthlySku>
<d2p1:Name>String</d2p1:Name>
<d2p1:ParentProductCategoryId>0</d2p1:ParentProductCategoryId>
<d2p1:PlanId>String</d2p1:PlanId>
<d2p1:ProductCategoryId>0</d2p1:ProductCategoryId>
<d2p1:RequiresShippingAddress>false</d2p1:RequiresShippingAddress>
<d2p1:SortOrder>0</d2p1:SortOrder>
<d2p1:Tagline>String</d2p1:Tagline>
<d2p1:VisibleInApp>false</d2p1:VisibleInApp>
<d2p1:WholesaleCatalogs>String</d2p1:WholesaleCatalogs>
</d2p1:IapPlanDefinition>
</Plans>
<Source>String</Source>
<Status>String</Status>
<Steps>
<IapPlanStepResult>
<Detail>String</Detail>
<Outcome>String</Outcome>
<Step>String</Step>
<Target>String</Target>
</IapPlanStepResult>
</Steps>
</IapPlanCatalogResponse>