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 /warranty/v1/card/{cardId} HTTP/1.1
Host: qp-microservices-booster.richemont.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<RetrieveWarrantyCardResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Sale">
<_env xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_env>
<_query xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_query>
<_source xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_source>
<_tstamp xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_tstamp>
<_type xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_type>
<_uri xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_uri>
<_user xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_user>
<_xmlns xmlns="http://schemas.datacontract.org/2004/07/Booster.Microservices.ServiceModel.Common">String</_xmlns>
<warranty>
<activationDate>String</activationDate>
<article>
<Article>
<brand>String</brand>
<isConsignment>false</isConsignment>
<name>String</name>
<ref>String</ref>
<serial>String</serial>
<shortDesc>String</shortDesc>
<warrantyStatusCode>String</warrantyStatusCode>
<warrantyStatusDesc>String</warrantyStatusDesc>
<warrantyStatusId>0</warrantyStatusId>
</Article>
</article>
<canBeExtended>false</canBeExtended>
<canBeRetriggered>false</canBeRetriggered>
<createdAt>String</createdAt>
<createdBy>String</createdBy>
<crmEnabled>false</crmEnabled>
<issuedBy>String</issuedBy>
<pin>String</pin>
<promoterTypeDs>String</promoterTypeDs>
<promoterTypeId>String</promoterTypeId>
<selloutId>String</selloutId>
<site>
<address>
<city>String</city>
<countryCode>String</countryCode>
<line1>String</line1>
<line2>String</line2>
<zipCode>String</zipCode>
</address>
<allowToCreateEndCustomerOutsideChina>false</allowToCreateEndCustomerOutsideChina>
<crmAllowStoreDataAbroadTimeValleeVisible>false</crmAllowStoreDataAbroadTimeValleeVisible>
<crmAllowStoreDataAbroadVisible>false</crmAllowStoreDataAbroadVisible>
<crmCityMandatory>false</crmCityMandatory>
<crmFirstNameMandatory>false</crmFirstNameMandatory>
<crmPrivacyPolicyMandatory>false</crmPrivacyPolicyMandatory>
<crmPrivacyPolicyTimeValleeMandatory>false</crmPrivacyPolicyTimeValleeMandatory>
<displayFirstLastNameNotLatin>false</displayFirstLastNameNotLatin>
<doNotDisplayPOSDataInDisclaimers>false</doNotDisplayPOSDataInDisclaimers>
<id>String</id>
<isTimeVallee>false</isTimeVallee>
<languageTransliteration>String</languageTransliteration>
<manageOwnStock>false</manageOwnStock>
<name>String</name>
<object>String</object>
</site>
<warrantyId>String</warrantyId>
</warranty>
</RetrieveWarrantyCardResponse>