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 /service/CreateMailchimpCart HTTP/1.1
Host: www.bernhardthospitality.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CreateMailchimpCart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mailchimp">
<CampaignId xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">String</CampaignId>
<CheckoutUrl xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">String</CheckoutUrl>
<CreatedAt xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">0001-01-01T00:00:00</CreatedAt>
<CurrencyCode xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">AED</CurrencyCode>
<Customer xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">
<Address>
<Address1>String</Address1>
<Address2>String</Address2>
<City>String</City>
<Country>String</Country>
<CountryCode>String</CountryCode>
<PostalCode>String</PostalCode>
<Province>String</Province>
<ProvinceCode>String</ProvinceCode>
</Address>
<Company>String</Company>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<EmailAddress>String</EmailAddress>
<FirstName>String</FirstName>
<Id>String</Id>
<LastName>String</LastName>
<Links i:nil="true" />
<OptInStatus>false</OptInStatus>
<OrdersCount>0</OrdersCount>
<TotalSpent>0</TotalSpent>
<UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
</Customer>
<Id xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">String</Id>
<Lines i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models" />
<Links i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models" />
<OrderTotal xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">0</OrderTotal>
<TaxTotal xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">0</TaxTotal>
<UpdatedAt xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">0001-01-01T00:00:00</UpdatedAt>
<StoreId>String</StoreId>
</CreateMailchimpCart>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<Cart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">
<CampaignId>String</CampaignId>
<CheckoutUrl>String</CheckoutUrl>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<CurrencyCode>AED</CurrencyCode>
<Customer>
<Address>
<Address1>String</Address1>
<Address2>String</Address2>
<City>String</City>
<Country>String</Country>
<CountryCode>String</CountryCode>
<PostalCode>String</PostalCode>
<Province>String</Province>
<ProvinceCode>String</ProvinceCode>
</Address>
<Company>String</Company>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<EmailAddress>String</EmailAddress>
<FirstName>String</FirstName>
<Id>String</Id>
<LastName>String</LastName>
<Links i:nil="true" />
<OptInStatus>false</OptInStatus>
<OrdersCount>0</OrdersCount>
<TotalSpent>0</TotalSpent>
<UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
</Customer>
<Id>String</Id>
<Lines i:nil="true" />
<Links i:nil="true" />
<OrderTotal>0</OrderTotal>
<TaxTotal>0</TaxTotal>
<UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
</Cart>