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/UploadCustomers HTTP/1.1
Host: www.bernhardthospitality.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UploadCustomers xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Data">
<CustomerIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</CustomerIds>
</UploadCustomers>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<CustomersUploaded xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Data">
<Customers xmlns:d2p1="http://schemas.datacontract.org/2004/07/Emun.Data.Models">
<d2p1:Customers>
<d2p1:curCreditLimit>0</d2p1:curCreditLimit>
<d2p1:dblCYForecast>0</d2p1:dblCYForecast>
<d2p1:dblCreditAvailable>0</d2p1:dblCreditAvailable>
<d2p1:dblCurBalance>0</d2p1:dblCurBalance>
<d2p1:dblDiscount>0</d2p1:dblDiscount>
<d2p1:dblDiscountPercent1>0</d2p1:dblDiscountPercent1>
<d2p1:dblDiscountPercent2>0</d2p1:dblDiscountPercent2>
<d2p1:dblDiscountPercent3>0</d2p1:dblDiscountPercent3>
<d2p1:dblDiscountPercent4>0</d2p1:dblDiscountPercent4>
<d2p1:dblDiscountPercent5>0</d2p1:dblDiscountPercent5>
<d2p1:dblDiscountPoints>0</d2p1:dblDiscountPoints>
<d2p1:dblFutureBalance>0</d2p1:dblFutureBalance>
<d2p1:dblNYForecast>0</d2p1:dblNYForecast>
<d2p1:dblPast1Days>0</d2p1:dblPast1Days>
<d2p1:dblPast30Days>0</d2p1:dblPast30Days>
<d2p1:dblPast60Days>0</d2p1:dblPast60Days>
<d2p1:dblPast90Days>0</d2p1:dblPast90Days>
<d2p1:dblTotalBalance>0</d2p1:dblTotalBalance>
<d2p1:dtmCreated>0001-01-01T00:00:00</d2p1:dtmCreated>
<d2p1:dtmInfoReviewed>0001-01-01T00:00:00</d2p1:dtmInfoReviewed>
<d2p1:dtmLastContact>0001-01-01T00:00:00</d2p1:dtmLastContact>
<d2p1:dtmLastOrder>0001-01-01T00:00:00</d2p1:dtmLastOrder>
<d2p1:dtmStateTaxExpiration>0001-01-01T00:00:00</d2p1:dtmStateTaxExpiration>
<d2p1:intBackOrders>0</d2p1:intBackOrders>
<d2p1:intCreditChecksExecuted>0</d2p1:intCreditChecksExecuted>
<d2p1:memBank>String</d2p1:memBank>
<d2p1:memERPNotes>String</d2p1:memERPNotes>
<d2p1:memNotes>String</d2p1:memNotes>
<d2p1:memReference1>String</d2p1:memReference1>
<d2p1:memReference2>String</d2p1:memReference2>
<d2p1:memReference3>String</d2p1:memReference3>
<d2p1:memReference4>String</d2p1:memReference4>
<d2p1:memReference5>String</d2p1:memReference5>
<d2p1:strAccountType>String</d2p1:strAccountType>
<d2p1:strAnnualSales>String</d2p1:strAnnualSales>
<d2p1:strB2BUserID>String</d2p1:strB2BUserID>
<d2p1:strBankAccountNum>String</d2p1:strBankAccountNum>
<d2p1:strBankAccountType>String</d2p1:strBankAccountType>
<d2p1:strBankAddress>String</d2p1:strBankAddress>
<d2p1:strBankBranchLocation>String</d2p1:strBankBranchLocation>
<d2p1:strBankCity>String</d2p1:strBankCity>
<d2p1:strBankContact>String</d2p1:strBankContact>
<d2p1:strBankFax>String</d2p1:strBankFax>
<d2p1:strBankPhone>String</d2p1:strBankPhone>
<d2p1:strBankState>String</d2p1:strBankState>
<d2p1:strBankZipcode>String</d2p1:strBankZipcode>
<d2p1:strBestTimesToContact>String</d2p1:strBestTimesToContact>
<d2p1:strBillAddress>String</d2p1:strBillAddress>
<d2p1:strBillAddress2>String</d2p1:strBillAddress2>
<d2p1:strBillAddress3>String</d2p1:strBillAddress3>
<d2p1:strBillCity>String</d2p1:strBillCity>
<d2p1:strBillCountry>String</d2p1:strBillCountry>
<d2p1:strBillState>String</d2p1:strBillState>
<d2p1:strBillZipcode>String</d2p1:strBillZipcode>
<d2p1:strBuyingMonths>String</d2p1:strBuyingMonths>
<d2p1:strCompanyName>String</d2p1:strCompanyName>
<d2p1:strContact>String</d2p1:strContact>
<d2p1:strContainerPriceList>String</d2p1:strContainerPriceList>
<d2p1:strCreatedBy>String</d2p1:strCreatedBy>
<d2p1:strCreditCardAVS>String</d2p1:strCreditCardAVS>
<d2p1:strCreditCardAddress>String</d2p1:strCreditCardAddress>
<d2p1:strCreditCardAddress2>String</d2p1:strCreditCardAddress2>
<d2p1:strCreditCardCity>String</d2p1:strCreditCardCity>
<d2p1:strCreditCardCountry>String</d2p1:strCreditCardCountry>
<d2p1:strCreditCardExpiration>String</d2p1:strCreditCardExpiration>
<d2p1:strCreditCardName>String</d2p1:strCreditCardName>
<d2p1:strCreditCardNumber>String</d2p1:strCreditCardNumber>
<d2p1:strCreditCardState>String</d2p1:strCreditCardState>
<d2p1:strCreditCardType>String</d2p1:strCreditCardType>
<d2p1:strCreditCardZipcode>String</d2p1:strCreditCardZipcode>
<d2p1:strCreditProfileID>String</d2p1:strCreditProfileID>
<d2p1:strCreditSheetNotes>String</d2p1:strCreditSheetNotes>
<d2p1:strCurrencyCode>String</d2p1:strCurrencyCode>
<d2p1:strCustom1>String</d2p1:strCustom1>
<d2p1:strCustom10>String</d2p1:strCustom10>
<d2p1:strCustom11>String</d2p1:strCustom11>
<d2p1:strCustom12>String</d2p1:strCustom12>
<d2p1:strCustom13>String</d2p1:strCustom13>
<d2p1:strCustom14>String</d2p1:strCustom14>
<d2p1:strCustom15>String</d2p1:strCustom15>
<d2p1:strCustom16>String</d2p1:strCustom16>
<d2p1:strCustom17>String</d2p1:strCustom17>
<d2p1:strCustom18>String</d2p1:strCustom18>
<d2p1:strCustom19>String</d2p1:strCustom19>
<d2p1:strCustom2>String</d2p1:strCustom2>
<d2p1:strCustom20>String</d2p1:strCustom20>
<d2p1:strCustom21>String</d2p1:strCustom21>
<d2p1:strCustom22>String</d2p1:strCustom22>
<d2p1:strCustom23>String</d2p1:strCustom23>
<d2p1:strCustom24>String</d2p1:strCustom24>
<d2p1:strCustom25>String</d2p1:strCustom25>
<d2p1:strCustom26>String</d2p1:strCustom26>
<d2p1:strCustom27>String</d2p1:strCustom27>
<d2p1:strCustom28>String</d2p1:strCustom28>
<d2p1:strCustom29>String</d2p1:strCustom29>
<d2p1:strCustom3>String</d2p1:strCustom3>
<d2p1:strCustom30>String</d2p1:strCustom30>
<d2p1:strCustom31>String</d2p1:strCustom31>
<d2p1:strCustom32>String</d2p1:strCustom32>
<d2p1:strCustom33>String</d2p1:strCustom33>
<d2p1:strCustom34>String</d2p1:strCustom34>
<d2p1:strCustom35>String</d2p1:strCustom35>
<d2p1:strCustom36>String</d2p1:strCustom36>
<d2p1:strCustom37>String</d2p1:strCustom37>
<d2p1:strCustom38>String</d2p1:strCustom38>
<d2p1:strCustom39>String</d2p1:strCustom39>
<d2p1:strCustom4>String</d2p1:strCustom4>
<d2p1:strCustom40>String</d2p1:strCustom40>
<d2p1:strCustom41>String</d2p1:strCustom41>
<d2p1:strCustom42>String</d2p1:strCustom42>
<d2p1:strCustom43>String</d2p1:strCustom43>
<d2p1:strCustom44>String</d2p1:strCustom44>
<d2p1:strCustom45>String</d2p1:strCustom45>
<d2p1:strCustom5>String</d2p1:strCustom5>
<d2p1:strCustom6>String</d2p1:strCustom6>
<d2p1:strCustom7>String</d2p1:strCustom7>
<d2p1:strCustom8>String</d2p1:strCustom8>
<d2p1:strCustom9>String</d2p1:strCustom9>
<d2p1:strCustomerID>String</d2p1:strCustomerID>
<d2p1:strCustomerTags>String</d2p1:strCustomerTags>
<d2p1:strDBNum>String</d2p1:strDBNum>
<d2p1:strDaysHoursOfOperation>String</d2p1:strDaysHoursOfOperation>
<d2p1:strDefaultWarehouseID>String</d2p1:strDefaultWarehouseID>
<d2p1:strEmail>String</d2p1:strEmail>
<d2p1:strFax>String</d2p1:strFax>
<d2p1:strFederalTaxID>String</d2p1:strFederalTaxID>
<d2p1:strHash>String</d2p1:strHash>
<d2p1:strKeyAccountGroup>String</d2p1:strKeyAccountGroup>
<d2p1:strLocationType>String</d2p1:strLocationType>
<d2p1:strNAICSCode>String</d2p1:strNAICSCode>
<d2p1:strNumOfEmployees>String</d2p1:strNumOfEmployees>
<d2p1:strOriginalCustomerID>String</d2p1:strOriginalCustomerID>
<d2p1:strOwner>String</d2p1:strOwner>
<d2p1:strPhone>String</d2p1:strPhone>
<d2p1:strPriceList>String</d2p1:strPriceList>
<d2p1:strPricingLevel>String</d2p1:strPricingLevel>
<d2p1:strRanking>String</d2p1:strRanking>
<d2p1:strReference1Account>String</d2p1:strReference1Account>
<d2p1:strReference1Address>String</d2p1:strReference1Address>
<d2p1:strReference1City>String</d2p1:strReference1City>
<d2p1:strReference1Contact>String</d2p1:strReference1Contact>
<d2p1:strReference1Fax>String</d2p1:strReference1Fax>
<d2p1:strReference1Phone>String</d2p1:strReference1Phone>
<d2p1:strReference1State>String</d2p1:strReference1State>
<d2p1:strReference1Zip>String</d2p1:strReference1Zip>
<d2p1:strReference2Account>String</d2p1:strReference2Account>
<d2p1:strReference2Address>String</d2p1:strReference2Address>
<d2p1:strReference2City>String</d2p1:strReference2City>
<d2p1:strReference2Contact>String</d2p1:strReference2Contact>
<d2p1:strReference2Fax>String</d2p1:strReference2Fax>
<d2p1:strReference2Phone>String</d2p1:strReference2Phone>
<d2p1:strReference2State>String</d2p1:strReference2State>
<d2p1:strReference2Zip>String</d2p1:strReference2Zip>
<d2p1:strReference3Account>String</d2p1:strReference3Account>
<d2p1:strReference3Address>String</d2p1:strReference3Address>
<d2p1:strReference3City>String</d2p1:strReference3City>
<d2p1:strReference3Contact>String</d2p1:strReference3Contact>
<d2p1:strReference3Fax>String</d2p1:strReference3Fax>
<d2p1:strReference3Phone>String</d2p1:strReference3Phone>
<d2p1:strReference3State>String</d2p1:strReference3State>
<d2p1:strReference3Zip>String</d2p1:strReference3Zip>
<d2p1:strRegionID>String</d2p1:strRegionID>
<d2p1:strRestrictionGroup>String</d2p1:strRestrictionGroup>
<d2p1:strSICCode>String</d2p1:strSICCode>
<d2p1:strSalesRep>String</d2p1:strSalesRep>
<d2p1:strSalesRep2>String</d2p1:strSalesRep2>
<d2p1:strSalesRep3>String</d2p1:strSalesRep3>
<d2p1:strSalesRep4>String</d2p1:strSalesRep4>
<d2p1:strSalesRep5>String</d2p1:strSalesRep5>
<d2p1:strShipAddress>String</d2p1:strShipAddress>
<d2p1:strShipAddress2>String</d2p1:strShipAddress2>
<d2p1:strShipAddress3>String</d2p1:strShipAddress3>
<d2p1:strShipCity>String</d2p1:strShipCity>
<d2p1:strShipCountry>String</d2p1:strShipCountry>
<d2p1:strShipName>String</d2p1:strShipName>
<d2p1:strShipPhone>String</d2p1:strShipPhone>
<d2p1:strShipState>String</d2p1:strShipState>
<d2p1:strShipVia>String</d2p1:strShipVia>
<d2p1:strShipZipcode>String</d2p1:strShipZipcode>
<d2p1:strSource>String</d2p1:strSource>
<d2p1:strStateTaxID>String</d2p1:strStateTaxID>
<d2p1:strStatus>String</d2p1:strStatus>
<d2p1:strTerms>String</d2p1:strTerms>
<d2p1:strTerritoryID>String</d2p1:strTerritoryID>
<d2p1:strType>String</d2p1:strType>
<d2p1:strWebsite>String</d2p1:strWebsite>
<d2p1:strYearBusinessOpened>String</d2p1:strYearBusinessOpened>
<d2p1:ysnBlockWebAccess>false</d2p1:ysnBlockWebAccess>
<d2p1:ysnCreditHold>false</d2p1:ysnCreditHold>
<d2p1:ysnDNU>false</d2p1:ysnDNU>
<d2p1:ysnEmailOrder>false</d2p1:ysnEmailOrder>
<d2p1:ysnExported>false</d2p1:ysnExported>
<d2p1:ysnFaxOrder>false</d2p1:ysnFaxOrder>
<d2p1:ysnInfoReviewed>false</d2p1:ysnInfoReviewed>
<d2p1:ysnKeyAccount>false</d2p1:ysnKeyAccount>
<d2p1:ysnLineLevel>false</d2p1:ysnLineLevel>
<d2p1:ysnModified>false</d2p1:ysnModified>
<d2p1:ysnNewCustomer>false</d2p1:ysnNewCustomer>
<d2p1:ysnOrderLevel>false</d2p1:ysnOrderLevel>
<d2p1:ysnPORequired>false</d2p1:ysnPORequired>
<d2p1:ysnResidential>false</d2p1:ysnResidential>
<d2p1:ysnSalesRep1Sellable>false</d2p1:ysnSalesRep1Sellable>
<d2p1:ysnSalesRep2Sellable>false</d2p1:ysnSalesRep2Sellable>
<d2p1:ysnSalesRep3Sellable>false</d2p1:ysnSalesRep3Sellable>
<d2p1:ysnSalesRep4Sellable>false</d2p1:ysnSalesRep4Sellable>
<d2p1:ysnSalesRep5Sellable>false</d2p1:ysnSalesRep5Sellable>
<d2p1:ysnSendSetupForm>false</d2p1:ysnSendSetupForm>
<d2p1:ysnSetupCompleted>false</d2p1:ysnSetupCompleted>
</d2p1:Customers>
</Customers>
</CustomersUploaded>