EMUN1 ASP.NET

<back to all web services

CreateVendor

Requires Authentication
The following routes are available for this service:
All Verbs/service/CreateVendor
Vendor Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
LabelformstringNo
VendorNameformstringNo
AbbreviationformstringNo
OrderMinimumformdecimalNo
ReOrderMinimumformdecimalNo
MinimumBalanceformdecimalNo
ActiveformboolNo
IsInvoiceOnlyformboolNo
AllowPriceOverrideformboolNo
DefaultShipDatePreviousformboolNo
EnforceMinimumsformboolNo
EnforcePurchaseIncrementformboolNo
AllowDiscountsformboolNo
EmailOrdersformboolNo
AllowBackordersformboolNo
UseVendorCustIdformboolNo
UseVendorShipIdformboolNo
UseVendorTermsformboolNo
ExportReviewOrdersformboolNo
EmailUrlToExportformboolNo
IncludeInBatchformboolNo
DecryptCCOnExportformboolNo
CustomerNumberformstringNo
ExportOrdersformboolNo
SplitByProductLineformboolNo
IsShowroomVendorformboolNo
AllowManualItemEntryformboolNo
RequireCreditSheetformboolNo
AddressformstringNo
CityformstringNo
StateformstringNo
ZipformstringNo
PhoneformstringNo
FaxformstringNo
EmailformstringNo
WebsiteformstringNo
NoteformstringNo
CommissionPercentformdecimalNo
OrderTagLineformstringNo
ProductTagsformList<VendorProductTag>No
SettingsformList<VendorSetting>No
LastLoginAttemptformDateTimeNo
LastOrderedOnformDateTimeNo
MetaformDictionary<string, string>No
TagsformDictionary<string, HashSet<String>>No
EntityBase<K> Parameters:
NameParameterData TypeRequiredDescription
IdformKNo
VendorProductTag Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
TagformstringNo
VendorSetting Parameters:
NameParameterData TypeRequiredDescription
VendorIdformstringNo
KeyformstringNo
ValueformstringNo

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/CreateVendor HTTP/1.1 
Host: www.bernhardthospitality.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: String,
	label: String,
	vendorName: String,
	abbreviation: String,
	orderMinimum: 0,
	reOrderMinimum: 0,
	minimumBalance: 0,
	active: False,
	isInvoiceOnly: False,
	allowPriceOverride: False,
	defaultShipDatePrevious: False,
	enforceMinimums: False,
	enforcePurchaseIncrement: False,
	allowDiscounts: False,
	emailOrders: False,
	allowBackorders: False,
	useVendorCustId: False,
	useVendorShipId: False,
	useVendorTerms: False,
	exportReviewOrders: False,
	emailUrlToExport: False,
	includeInBatch: False,
	decryptCCOnExport: False,
	customerNumber: String,
	exportOrders: False,
	splitByProductLine: False,
	isShowroomVendor: False,
	allowManualItemEntry: False,
	requireCreditSheet: False,
	address: String,
	city: String,
	state: String,
	zip: String,
	phone: String,
	fax: String,
	email: String,
	website: String,
	note: String,
	commissionPercent: 0,
	orderTagLine: String,
	productTags: 
	[
		{
			id: String,
			tag: String
		}
	],
	settings: 
	[
		{
			vendorId: String,
			key: String,
			value: String
		}
	],
	lastLoginAttempt: 0001-01-01,
	lastOrderedOn: 0001-01-01,
	meta: 
	{
		String: String
	},
	tags: 
	{
		String: 
		[
			String
		]
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: String,
	label: String,
	vendorName: String,
	abbreviation: String,
	orderMinimum: 0,
	reOrderMinimum: 0,
	minimumBalance: 0,
	active: False,
	isInvoiceOnly: False,
	allowPriceOverride: False,
	defaultShipDatePrevious: False,
	enforceMinimums: False,
	enforcePurchaseIncrement: False,
	allowDiscounts: False,
	emailOrders: False,
	allowBackorders: False,
	useVendorCustId: False,
	useVendorShipId: False,
	useVendorTerms: False,
	exportReviewOrders: False,
	emailUrlToExport: False,
	includeInBatch: False,
	decryptCCOnExport: False,
	customerNumber: String,
	exportOrders: False,
	splitByProductLine: False,
	isShowroomVendor: False,
	allowManualItemEntry: False,
	requireCreditSheet: False,
	address: String,
	city: String,
	state: String,
	zip: String,
	phone: String,
	fax: String,
	email: String,
	website: String,
	note: String,
	commissionPercent: 0,
	orderTagLine: String,
	productTags: 
	[
		{
			id: String,
			tag: String
		}
	],
	settings: 
	[
		{
			vendorId: String,
			key: String,
			value: String
		}
	],
	lastLoginAttempt: 0001-01-01,
	lastOrderedOn: 0001-01-01,
	meta: 
	{
		String: String
	},
	tags: 
	{
		String: 
		[
			String
		]
	}
}