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/UpdateCustomerRDB HTTP/1.1
Host: www.bernhardthospitality.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UpdateCustomerRDB xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.RestDb">
<AccountType>String</AccountType>
<AnnualSales>String</AnnualSales>
<B2BUserId>String</B2BUserId>
<BackOrders>0</BackOrders>
<Bank>String</Bank>
<BankAccountNum>String</BankAccountNum>
<BankAccountType>String</BankAccountType>
<BankAddress>String</BankAddress>
<BankBranchLocation>String</BankBranchLocation>
<BankCity>String</BankCity>
<BankContact>String</BankContact>
<BankFax>String</BankFax>
<BankPhone>String</BankPhone>
<BankState>String</BankState>
<BankZipcode>String</BankZipcode>
<BestTimesToContact>String</BestTimesToContact>
<BillAddress>String</BillAddress>
<BillAddress2>String</BillAddress2>
<BillAddress3>String</BillAddress3>
<BillCity>String</BillCity>
<BillCountry>String</BillCountry>
<BillState>String</BillState>
<BillZipcode>String</BillZipcode>
<BlockWebAccess>false</BlockWebAccess>
<BuyingMonths>String</BuyingMonths>
<CYForecast>0</CYForecast>
<CompanyName>String</CompanyName>
<Contact>String</Contact>
<ContainerPriceList>String</ContainerPriceList>
<Created>0001-01-01T00:00:00</Created>
<CreatedBy>String</CreatedBy>
<CreditAvailable>0</CreditAvailable>
<CreditCardAVS>String</CreditCardAVS>
<CreditCardAddress>String</CreditCardAddress>
<CreditCardAddress2>String</CreditCardAddress2>
<CreditCardCity>String</CreditCardCity>
<CreditCardCountry>String</CreditCardCountry>
<CreditCardExpiration>String</CreditCardExpiration>
<CreditCardName>String</CreditCardName>
<CreditCardNumber>String</CreditCardNumber>
<CreditCardState>String</CreditCardState>
<CreditCardType>String</CreditCardType>
<CreditCardZipcode>String</CreditCardZipcode>
<CreditChecksExecuted>0</CreditChecksExecuted>
<CreditHold>false</CreditHold>
<CreditLimit>0</CreditLimit>
<CreditProfileId>String</CreditProfileId>
<CreditSheetNotes>String</CreditSheetNotes>
<CurBalance>0</CurBalance>
<CurrencyCode>String</CurrencyCode>
<Custom10STR>String</Custom10STR>
<Custom11STR>String</Custom11STR>
<Custom12STR>String</Custom12STR>
<Custom13STR>String</Custom13STR>
<Custom14STR>String</Custom14STR>
<Custom15STR>String</Custom15STR>
<Custom16STR>String</Custom16STR>
<Custom17STR>String</Custom17STR>
<Custom18STR>String</Custom18STR>
<Custom19STR>String</Custom19STR>
<Custom1STR>String</Custom1STR>
<Custom20STR>String</Custom20STR>
<Custom21STR>String</Custom21STR>
<Custom22STR>String</Custom22STR>
<Custom23STR>String</Custom23STR>
<Custom24STR>String</Custom24STR>
<Custom25STR>String</Custom25STR>
<Custom26STR>String</Custom26STR>
<Custom27STR>String</Custom27STR>
<Custom28STR>String</Custom28STR>
<Custom29STR>String</Custom29STR>
<Custom2STR>String</Custom2STR>
<Custom30STR>String</Custom30STR>
<Custom31STR>String</Custom31STR>
<Custom32STR>String</Custom32STR>
<Custom33STR>String</Custom33STR>
<Custom34STR>String</Custom34STR>
<Custom35STR>String</Custom35STR>
<Custom36STR>String</Custom36STR>
<Custom37STR>String</Custom37STR>
<Custom38STR>String</Custom38STR>
<Custom39STR>String</Custom39STR>
<Custom3STR>String</Custom3STR>
<Custom40STR>String</Custom40STR>
<Custom41STR>String</Custom41STR>
<Custom42STR>String</Custom42STR>
<Custom43STR>String</Custom43STR>
<Custom44STR>String</Custom44STR>
<Custom45STR>String</Custom45STR>
<Custom4STR>String</Custom4STR>
<Custom5STR>String</Custom5STR>
<Custom6STR>String</Custom6STR>
<Custom7STR>String</Custom7STR>
<Custom8STR>String</Custom8STR>
<Custom9STR>String</Custom9STR>
<CustomerTags>String</CustomerTags>
<DBNum>String</DBNum>
<DNU>false</DNU>
<DaysHoursOfOperation>String</DaysHoursOfOperation>
<DefaultWarehouseId>String</DefaultWarehouseId>
<Discount>0</Discount>
<DiscountPercent1>0</DiscountPercent1>
<DiscountPercent2>0</DiscountPercent2>
<DiscountPercent3>0</DiscountPercent3>
<DiscountPercent4>0</DiscountPercent4>
<DiscountPercent5>0</DiscountPercent5>
<DiscountPoints>0</DiscountPoints>
<ERPNotes>String</ERPNotes>
<Email>String</Email>
<EmailOrder>false</EmailOrder>
<Exported>false</Exported>
<Fax>String</Fax>
<FaxOrder>false</FaxOrder>
<FederalTaxId>String</FederalTaxId>
<FutureBalance>0</FutureBalance>
<Hash>String</Hash>
<Id>String</Id>
<InfoReviewed>0001-01-01T00:00:00</InfoReviewed>
<KeyAccount>false</KeyAccount>
<KeyAccountGroup>String</KeyAccountGroup>
<LastContact>0001-01-01T00:00:00</LastContact>
<LastOrder>0001-01-01T00:00:00</LastOrder>
<LineLevel>false</LineLevel>
<LocationType>String</LocationType>
<Modified>false</Modified>
<NAICSCode>String</NAICSCode>
<NYForecast>0</NYForecast>
<NewCustomer>false</NewCustomer>
<Notes>String</Notes>
<NumOfEmployees>String</NumOfEmployees>
<OrderLevel>false</OrderLevel>
<OriginalCustomerId>String</OriginalCustomerId>
<Owner>String</Owner>
<PORequired>false</PORequired>
<Past1Days>0</Past1Days>
<Past30Days>0</Past30Days>
<Past60Days>0</Past60Days>
<Past90Days>0</Past90Days>
<Phone>String</Phone>
<PriceList>String</PriceList>
<PricingLevel>String</PricingLevel>
<Ranking>String</Ranking>
<Reference1>String</Reference1>
<Reference1Account>String</Reference1Account>
<Reference1Address>String</Reference1Address>
<Reference1City>String</Reference1City>
<Reference1Contact>String</Reference1Contact>
<Reference1Fax>String</Reference1Fax>
<Reference1Phone>String</Reference1Phone>
<Reference1State>String</Reference1State>
<Reference1Zip>String</Reference1Zip>
<Reference2>String</Reference2>
<Reference2Account>String</Reference2Account>
<Reference2Address>String</Reference2Address>
<Reference2City>String</Reference2City>
<Reference2Contact>String</Reference2Contact>
<Reference2Fax>String</Reference2Fax>
<Reference2Phone>String</Reference2Phone>
<Reference2State>String</Reference2State>
<Reference2Zip>String</Reference2Zip>
<Reference3>String</Reference3>
<Reference3Account>String</Reference3Account>
<Reference3Address>String</Reference3Address>
<Reference3City>String</Reference3City>
<Reference3Contact>String</Reference3Contact>
<Reference3Fax>String</Reference3Fax>
<Reference3Phone>String</Reference3Phone>
<Reference3State>String</Reference3State>
<Reference3Zip>String</Reference3Zip>
<Reference4>String</Reference4>
<Reference5>String</Reference5>
<RegionId>String</RegionId>
<Residential>false</Residential>
<RestrictionGroup>String</RestrictionGroup>
<SICCode>String</SICCode>
<SalesRep>String</SalesRep>
<SalesRep1Sellable>false</SalesRep1Sellable>
<SalesRep2>String</SalesRep2>
<SalesRep2Sellable>false</SalesRep2Sellable>
<SalesRep3>String</SalesRep3>
<SalesRep3Sellable>false</SalesRep3Sellable>
<SalesRep4>String</SalesRep4>
<SalesRep4Sellable>false</SalesRep4Sellable>
<SalesRep5>String</SalesRep5>
<SalesRep5Sellable>false</SalesRep5Sellable>
<SendSetupForm>false</SendSetupForm>
<SetupCompleted>false</SetupCompleted>
<ShipAddress>String</ShipAddress>
<ShipAddress2>String</ShipAddress2>
<ShipAddress3>String</ShipAddress3>
<ShipCity>String</ShipCity>
<ShipCountry>String</ShipCountry>
<ShipName>String</ShipName>
<ShipPhone>String</ShipPhone>
<ShipState>String</ShipState>
<ShipVia>String</ShipVia>
<ShipZipcode>String</ShipZipcode>
<Source>String</Source>
<StateTaxExpiration>0001-01-01T00:00:00</StateTaxExpiration>
<StateTaxId>String</StateTaxId>
<Status>String</Status>
<Terms>String</Terms>
<TerritoryId>String</TerritoryId>
<TotalBalance>0</TotalBalance>
<Type>String</Type>
<Website>String</Website>
<YearBusinessOpened>String</YearBusinessOpened>
<_InfoReviewed>false</_InfoReviewed>
</UpdateCustomerRDB>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">0</int>