EMUN1 ASP.NET

<back to all web services

UploadCustomers

The following routes are available for this service:
All Verbs/service/UploadCustomers
UploadCustomers Parameters:
NameParameterData TypeRequiredDescription
CustomerIdsquerystring[]No
CustomersUploaded Parameters:
NameParameterData TypeRequiredDescription
CustomersformList<Customers>No
Customers Parameters:
NameParameterData TypeRequiredDescription
strCustomerIDformstringNo
strCompanyNameformstringNo
strAccountTypeformstringNo
strBillAddressformstringNo
strBillAddress2formstringNo
strBillCityformstringNo
strBillStateformstringNo
strBillZipcodeformstringNo
strBillCountryformstringNo
strPhoneformstringNo
strShipNameformstringNo
strShipAddressformstringNo
strShipAddress2formstringNo
strShipCityformstringNo
strShipStateformstringNo
strShipZipcodeformstringNo
strShipCountryformstringNo
strShipPhoneformstringNo
strEmailformstringNo
strWebsiteformstringNo
strFaxformstringNo
strContactformstringNo
strCreditCardTypeformstringNo
strCreditCardNumberformstringNo
strCreditCardExpirationformstringNo
strCreditCardAVSformstringNo
strCreditCardNameformstringNo
strCreditCardAddressformstringNo
strCreditCardAddress2formstringNo
strCreditCardCityformstringNo
strCreditCardStateformstringNo
strCreditCardZipcodeformstringNo
strCreditCardCountryformstringNo
strShipViaformstringNo
strTermsformstringNo
strSalesRepformstringNo
memNotesformstringNo
ysnKeyAccountformbool?No
curCreditLimitformdouble?No
strDBNumformstringNo
memBankformstringNo
strBankAccountNumformstringNo
strBankAccountTypeformstringNo
strFederalTaxIDformstringNo
strStateTaxIDformstringNo
memReference1formstringNo
memReference2formstringNo
memReference3formstringNo
memReference4formstringNo
memReference5formstringNo
ysnFaxOrderformbool?No
ysnEmailOrderformbool?No
strCustom1formstringNo
strCustom2formstringNo
strCustom3formstringNo
strCustom4formstringNo
strCustom5formstringNo
strCustom6formstringNo
strCustom7formstringNo
strCustom8formstringNo
strCustom9formstringNo
strCustom10formstringNo
strCustom11formstringNo
strCustom12formstringNo
strCustom13formstringNo
strCustom14formstringNo
strCustom15formstringNo
ysnNewCustomerformbool?No
ysnModifiedformbool?No
dblDiscountformdouble?No
ysnLineLevelformbool?No
ysnOrderLevelformbool?No
strPricingLevelformstringNo
strTypeformstringNo
dtmCreatedformDateTime?No
strSalesRep2formstringNo
dtmLastContactformDateTime?No
dtmLastOrderformDateTime?No
memERPNotesformstringNo
dblCurBalanceformdouble?No
dblPast30Daysformdouble?No
dblPast60Daysformdouble?No
dblPast90Daysformdouble?No
dblPast1Daysformdouble?No
strSourceformstringNo
strTerritoryIDformstringNo
strRegionIDformstringNo
strOriginalCustomerIDformstringNo
ysnExportedformbool?No
strCurrencyCodeformstringNo
dblCYForecastformdouble?No
dblNYForecastformdouble?No
dtmInfoReviewedformDateTime?No
ysnInfoReviewedformboolNo
strPriceListformstringNo
strRankingformstringNo
strHashformstringNo
strSalesRep3formstringNo
strSalesRep4formstringNo
strSalesRep5formstringNo
ysnResidentialformboolNo
ysnPORequiredformboolNo
strCustom16formstringNo
strCustom17formstringNo
strCustom18formstringNo
strCustom19formstringNo
strCustom20formstringNo
strCustom21formstringNo
strCustom22formstringNo
strCustom23formstringNo
strCustom24formstringNo
strCustom25formstringNo
strCustom26formstringNo
strCustom27formstringNo
strCustom28formstringNo
strCustom29formstringNo
strCustom30formstringNo
dblCreditAvailableformdouble?No
dblTotalBalanceformdouble?No
dblFutureBalanceformdouble?No
strBankAddressformstringNo
strBankCityformstringNo
strBankStateformstringNo
strBankZipcodeformstringNo
strBankPhoneformstringNo
strBankFaxformstringNo
strBankContactformstringNo
strReference1AccountformstringNo
strReference1PhoneformstringNo
strReference1FaxformstringNo
strReference1ContactformstringNo
strReference2AccountformstringNo
strReference2PhoneformstringNo
strReference2FaxformstringNo
strReference2ContactformstringNo
strReference3AccountformstringNo
strReference3PhoneformstringNo
strReference3FaxformstringNo
strReference3ContactformstringNo
ysnSalesRep1SellableformboolNo
ysnSalesRep2SellableformboolNo
ysnSalesRep3SellableformboolNo
ysnSalesRep4SellableformboolNo
ysnSalesRep5SellableformboolNo
strBillAddress3formstringNo
strShipAddress3formstringNo
strCreatedByformstringNo
ysnSetupCompletedformboolNo
ysnSendSetupFormformboolNo
strB2BUserIDformstringNo
intCreditChecksExecutedformint?No
ysnCreditHoldformboolNo
strOwnerformstringNo
strLocationTypeformstringNo
strAnnualSalesformstringNo
strNumOfEmployeesformstringNo
strYearBusinessOpenedformstringNo
strDaysHoursOfOperationformstringNo
strBestTimesToContactformstringNo
strBuyingMonthsformstringNo
strSICCodeformstringNo
strNAICSCodeformstringNo
strCreditProfileIDformstringNo
strBankBranchLocationformstringNo
strReference1AddressformstringNo
strReference1CityformstringNo
strReference1StateformstringNo
strReference1ZipformstringNo
strReference2AddressformstringNo
strReference2CityformstringNo
strReference2StateformstringNo
strReference2ZipformstringNo
strReference3AddressformstringNo
strReference3CityformstringNo
strReference3StateformstringNo
strReference3ZipformstringNo
ysnDNUformboolNo
strRestrictionGroupformstringNo
dblDiscountPercent1formdouble?No
dblDiscountPercent2formdouble?No
dblDiscountPercent3formdouble?No
dblDiscountPercent4formdouble?No
dblDiscountPercent5formdouble?No
strKeyAccountGroupformstringNo
strCustom31formstringNo
strCustom32formstringNo
strCustom33formstringNo
strCustom34formstringNo
strCustom35formstringNo
strCustom36formstringNo
strCustom37formstringNo
strCustom38formstringNo
strCustom39formstringNo
strCustom40formstringNo
strCustom41formstringNo
strCustom42formstringNo
strCustom43formstringNo
strCustom44formstringNo
strCustom45formstringNo
strDefaultWarehouseIDformstringNo
strStatusformstringNo
strContainerPriceListformstringNo
strCreditSheetNotesformstringNo
dblDiscountPointsformdouble?No
strCustomerTagsformstringNo
dtmStateTaxExpirationformDateTime?No
ysnBlockWebAccessformboolNo
intBackOrdersformint?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	customerIds: 
	[
		String
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	customers: 
	[
		{
			strCustomerID: String,
			strCompanyName: String,
			strAccountType: String,
			strBillAddress: String,
			strBillAddress2: String,
			strBillCity: String,
			strBillState: String,
			strBillZipcode: String,
			strBillCountry: String,
			strPhone: String,
			strShipName: String,
			strShipAddress: String,
			strShipAddress2: String,
			strShipCity: String,
			strShipState: String,
			strShipZipcode: String,
			strShipCountry: String,
			strShipPhone: String,
			strEmail: String,
			strWebsite: String,
			strFax: String,
			strContact: String,
			strCreditCardType: String,
			strCreditCardNumber: String,
			strCreditCardExpiration: String,
			strCreditCardAVS: String,
			strCreditCardName: String,
			strCreditCardAddress: String,
			strCreditCardAddress2: String,
			strCreditCardCity: String,
			strCreditCardState: String,
			strCreditCardZipcode: String,
			strCreditCardCountry: String,
			strShipVia: String,
			strTerms: String,
			strSalesRep: String,
			memNotes: String,
			ysnKeyAccount: False,
			curCreditLimit: 0,
			strDBNum: String,
			memBank: String,
			strBankAccountNum: String,
			strBankAccountType: String,
			strFederalTaxID: String,
			strStateTaxID: String,
			memReference1: String,
			memReference2: String,
			memReference3: String,
			memReference4: String,
			memReference5: String,
			ysnFaxOrder: False,
			ysnEmailOrder: False,
			strCustom1: String,
			strCustom2: String,
			strCustom3: String,
			strCustom4: String,
			strCustom5: String,
			strCustom6: String,
			strCustom7: String,
			strCustom8: String,
			strCustom9: String,
			strCustom10: String,
			strCustom11: String,
			strCustom12: String,
			strCustom13: String,
			strCustom14: String,
			strCustom15: String,
			ysnNewCustomer: False,
			ysnModified: False,
			dblDiscount: 0,
			ysnLineLevel: False,
			ysnOrderLevel: False,
			strPricingLevel: String,
			strType: String,
			dtmCreated: 0001-01-01,
			strSalesRep2: String,
			dtmLastContact: 0001-01-01,
			dtmLastOrder: 0001-01-01,
			memERPNotes: String,
			dblCurBalance: 0,
			dblPast30Days: 0,
			dblPast60Days: 0,
			dblPast90Days: 0,
			dblPast1Days: 0,
			strSource: String,
			strTerritoryID: String,
			strRegionID: String,
			strOriginalCustomerID: String,
			ysnExported: False,
			strCurrencyCode: String,
			dblCYForecast: 0,
			dblNYForecast: 0,
			dtmInfoReviewed: 0001-01-01,
			ysnInfoReviewed: False,
			strPriceList: String,
			strRanking: String,
			strHash: String,
			strSalesRep3: String,
			strSalesRep4: String,
			strSalesRep5: String,
			ysnResidential: False,
			ysnPORequired: False,
			strCustom16: String,
			strCustom17: String,
			strCustom18: String,
			strCustom19: String,
			strCustom20: String,
			strCustom21: String,
			strCustom22: String,
			strCustom23: String,
			strCustom24: String,
			strCustom25: String,
			strCustom26: String,
			strCustom27: String,
			strCustom28: String,
			strCustom29: String,
			strCustom30: String,
			dblCreditAvailable: 0,
			dblTotalBalance: 0,
			dblFutureBalance: 0,
			strBankAddress: String,
			strBankCity: String,
			strBankState: String,
			strBankZipcode: String,
			strBankPhone: String,
			strBankFax: String,
			strBankContact: String,
			strReference1Account: String,
			strReference1Phone: String,
			strReference1Fax: String,
			strReference1Contact: String,
			strReference2Account: String,
			strReference2Phone: String,
			strReference2Fax: String,
			strReference2Contact: String,
			strReference3Account: String,
			strReference3Phone: String,
			strReference3Fax: String,
			strReference3Contact: String,
			ysnSalesRep1Sellable: False,
			ysnSalesRep2Sellable: False,
			ysnSalesRep3Sellable: False,
			ysnSalesRep4Sellable: False,
			ysnSalesRep5Sellable: False,
			strBillAddress3: String,
			strShipAddress3: String,
			strCreatedBy: String,
			ysnSetupCompleted: False,
			ysnSendSetupForm: False,
			strB2BUserID: String,
			intCreditChecksExecuted: 0,
			ysnCreditHold: False,
			strOwner: String,
			strLocationType: String,
			strAnnualSales: String,
			strNumOfEmployees: String,
			strYearBusinessOpened: String,
			strDaysHoursOfOperation: String,
			strBestTimesToContact: String,
			strBuyingMonths: String,
			strSICCode: String,
			strNAICSCode: String,
			strCreditProfileID: String,
			strBankBranchLocation: String,
			strReference1Address: String,
			strReference1City: String,
			strReference1State: String,
			strReference1Zip: String,
			strReference2Address: String,
			strReference2City: String,
			strReference2State: String,
			strReference2Zip: String,
			strReference3Address: String,
			strReference3City: String,
			strReference3State: String,
			strReference3Zip: String,
			ysnDNU: False,
			strRestrictionGroup: String,
			dblDiscountPercent1: 0,
			dblDiscountPercent2: 0,
			dblDiscountPercent3: 0,
			dblDiscountPercent4: 0,
			dblDiscountPercent5: 0,
			strKeyAccountGroup: String,
			strCustom31: String,
			strCustom32: String,
			strCustom33: String,
			strCustom34: String,
			strCustom35: String,
			strCustom36: String,
			strCustom37: String,
			strCustom38: String,
			strCustom39: String,
			strCustom40: String,
			strCustom41: String,
			strCustom42: String,
			strCustom43: String,
			strCustom44: String,
			strCustom45: String,
			strDefaultWarehouseID: String,
			strStatus: String,
			strContainerPriceList: String,
			strCreditSheetNotes: String,
			dblDiscountPoints: 0,
			strCustomerTags: String,
			dtmStateTaxExpiration: 0001-01-01,
			ysnBlockWebAccess: False,
			intBackOrders: 0
		}
	]
}