EMUN1 ASP.NET

<back to all web services

UploadLocations

The following routes are available for this service:
All Verbs/service/UploadLocations
UploadLocations Parameters:
NameParameterData TypeRequiredDescription
ShipIdsquerystring[]No
LocationsUploaded Parameters:
NameParameterData TypeRequiredDescription
LocationsformList<CustomerShippingLocations>No
CustomerShippingLocations Parameters:
NameParameterData TypeRequiredDescription
strCustomerIDformstringNo
strShipIDformstringNo
strShipNameformstringNo
strShipAddressformstringNo
strShipAddress2formstringNo
strShipCityformstringNo
strShipStateformstringNo
strShipZipcodeformstringNo
strShipCountryformstringNo
strShipPhoneformstringNo
strSalesRepformstringNo
ysnNewLocationformbool?No
strContactNameformstringNo
ConIDformstringNo
strBillAddressformstringNo
strBillAddress2formstringNo
strBillCityformstringNo
strBillStateformstringNo
strBillZipcodeformstringNo
strBillCountryformstringNo
ysnModifiedformbool?No
intBillingSourceformint?No
strBillNameformstringNo
strBillPhoneformstringNo
strBillFaxformstringNo
strShipFaxformstringNo
strSoldToIDformstringNo
strStoreTypeformstringNo
strStoreClassformstringNo
strStoreCategoryformstringNo
strCustom1formstringNo
strCustom2formstringNo
strCustom3formstringNo
strCustom4formstringNo
strCustom5formstringNo
strCustom6formstringNo
strCustom7formstringNo
strCustom8formstringNo
strCustom9formstringNo
strCustom10formstringNo
strCustom11formstringNo
strCustom12formstringNo
strCustom13formstringNo
strCustom14formstringNo
strCustom15formstringNo
strTerritoryIDformstringNo
strRegionIDformstringNo
strShipViaformstringNo
strSalesRep2formstringNo
dblCYForecastformdouble?No
dblNYForecastformdouble?No
dtmInfoReviewedformDateTime?No
ysnInfoReviewedformboolNo
strTermsformstringNo
strSalesRep3formstringNo
strSalesRep4formstringNo
strSalesRep5formstringNo
ysnResidentialformboolNo
ysnSalesRep1SellableformboolNo
ysnSalesRep2SellableformboolNo
ysnSalesRep3SellableformboolNo
ysnSalesRep4SellableformboolNo
ysnSalesRep5SellableformboolNo
strBillAddress3formstringNo
strShipAddress3formstringNo
ysnExportedformboolNo
dtmCreatedformDateTime?No
strCreatedByformstringNo
ysnDNUformboolNo
strDefaultWarehouseIDformstringNo
strStatusformstringNo
strPriceListformstringNo
ysnStoreLocatorformboolNo
strStoreLocatorOrderformstringNo
strWebSiteformstringNo
strEmailformstringNo

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /service/UploadLocations HTTP/1.1 
Host: www.bernhardthospitality.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"shipIds":["String"]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"locations":[{"strCustomerID":"String","strShipID":"String","strShipName":"String","strShipAddress":"String","strShipAddress2":"String","strShipCity":"String","strShipState":"String","strShipZipcode":"String","strShipCountry":"String","strShipPhone":"String","strSalesRep":"String","ysnNewLocation":false,"strContactName":"String","conID":"String","strBillAddress":"String","strBillAddress2":"String","strBillCity":"String","strBillState":"String","strBillZipcode":"String","strBillCountry":"String","ysnModified":false,"intBillingSource":0,"strBillName":"String","strBillPhone":"String","strBillFax":"String","strShipFax":"String","strSoldToID":"String","strStoreType":"String","strStoreClass":"String","strStoreCategory":"String","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","strTerritoryID":"String","strRegionID":"String","strShipVia":"String","strSalesRep2":"String","dblCYForecast":0,"dblNYForecast":0,"dtmInfoReviewed":"0001-01-01T00:00:00.0000000Z","ysnInfoReviewed":false,"strTerms":"String","strSalesRep3":"String","strSalesRep4":"String","strSalesRep5":"String","ysnResidential":false,"ysnSalesRep1Sellable":false,"ysnSalesRep2Sellable":false,"ysnSalesRep3Sellable":false,"ysnSalesRep4Sellable":false,"ysnSalesRep5Sellable":false,"strBillAddress3":"String","strShipAddress3":"String","ysnExported":false,"dtmCreated":"0001-01-01T00:00:00.0000000Z","strCreatedBy":"String","ysnDNU":false,"strDefaultWarehouseID":"String","strStatus":"String","strPriceList":"String","ysnStoreLocator":false,"strStoreLocatorOrder":"String","strWebSite":"String","strEmail":"String"}]}