EMUN1 ASP.NET

<back to all web services

AddCartItem

Requires Authentication
The following routes are available for this service:
All Verbs/service/AddCartItem
AddCartItem Parameters:
NameParameterData TypeRequiredDescription
QuantityqueryintNo
ConfigIdquerystringNo
OfferIdquerystringNo
FromKitqueryboolNo
CampaignIdquerystringNo
CartItemBase Parameters:
NameParameterData TypeRequiredDescription
CartIdformstringNo
ProductIdformstringNo
ProductformProductNo
ManufacturerNumberformstringNo
ProductLineIdformstringNo
QtyPurchasedformintNo
QtyShippedformintNo
QtyOpenformintNo
QtyAdjustedformboolNo
QtyCustom1formintNo
QtyCustom2formintNo
OpenTotalformdecimalNo
ShippedTotalformdecimalNo
PositionformintNo
OrderNotesformstringNo
NoteformstringNo
DescriptionformstringNo
CommentsformstringNo
NotesformstringNo
BrandIdformstringNo
SuperCategoryformstringNo
SalesRepIdformstringNo
PromoCodeformstringNo
PromoCode2formstringNo
StatusformstringNo
PriceformdecimalNo
PriceOverrideformdecimalNo
PriceListIdformstringNo
OptionsformList<CartItemOption>No
MetaformDictionary<string, string>No
OptionsStringformstringNo
PromoDiscountformdecimalNo
DiscountPercentageformdecimalNo
DiscountformdecimalNo
LineOrderDiscountformdecimalNo
LineDiscountformdecimalNo
PromoNoteformstringNo
SubTotalformdecimalNo
OpenSubTotalformdecimalNo
ShippedSubTotalformdecimalNo
PricePaidformdecimalNo
ExtendedQtyPurchasedformdoubleNo
CaseQtyPurchasedformdoubleNo
TotalWeightformdoubleNo
AvailableWeightformdoubleNo
TotalCubicVolumeformdoubleNo
AvailableCubicVolumeformdoubleNo
AvailableTotalformdoubleNo
ExtendedTotalformdecimalNo
OpenExtendedTotalformdecimalNo
ShippedExtendedTotalformdecimalNo
ParentPositionformintNo
ListPriceformdecimalNo
CostformstringNo
UPCformstringNo
UOMformstringNo
PaymentTermsIdformstringNo
ShippingMethodIdformstringNo
CategoryformstringNo
SubCategoryformstringNo
ShipOnformDateTime?No
CancelOnformDateTime?No
esaDateformDateTime?No
Custom1formstringNo
Custom2formstringNo
Custom3formstringNo
Custom4formstringNo
Custom5formstringNo
Custom6formstringNo
Custom7formstringNo
Custom8formstringNo
Custom9formstringNo
Custom10formstringNo
Custom11formstringNo
TrackingNumbersformstringNo
Custom13formstringNo
OptionGroupListformstringNo
TagForformstringNo
ReasonCodeformstringNo
PurchaseOrderformstringNo
NextFulfillmentformstringNo
AddItemPathformstringNo
IsKitComponentformboolNo
IsContractPriceformboolNo
PointsformdecimalNo
CustomerLineLevelQtyformintNo
FromSplitformboolNo
CanModifyformboolNo
OrigQtyformintNo
CampaignIdformstringNo
ProductBase Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
ProductLineIdformstringNo
ManufacturerNumberformstringNo
ShortDescriptionformstringNo
LongDescriptionformstringNo
AltDescriptionformstringNo
UpcCodeformstringNo
StatusformstringNo
PricingformIDictionary<int, double>No
ListPriceformdecimalNo
WholesalePriceformdecimalNo
RetailPriceformdecimal?No
RetailListPriceformdecimalNo
UnitsInStockformintNo
UnitsAllocatedformintNo
Priceformdecimal?No
UnlistedformboolNo
CategoryIdformstringNo
CategoryformProductCategoryNo
MinimumOrderQtyformdoubleNo
AvailableQtyformdoubleNo
CaseQtyformdoubleNo
CasePriceformdecimalNo
AvailableOnformDateTime?No
IncomingQtyformdoubleNo
PurchaseIncrementformdoubleNo
OptionGroupformstringNo
OptionGroupListformstringNo
VendorIdformstringNo
VendorformVendorNo
IsB2BformboolNo
IsB2CformboolNo
IsSellableformboolNo
IsNonDiscountableformboolNo
ItemTypeformstringNo
ImageUrlformstringNo
OnDemandProductEuidformstringNo
KeywordsformstringNo
SuperCategoryformstringNo
TagsformDictionary<string, HashSet<String>>No
AsShownValuesformFieldValue[]No
GenericTagsformList<Tag>No
IsNewformboolNo
IsRestrictedformboolNo
IsAsShownformboolNo
IsKitformboolNo
IsKitExplodeformboolNo
IsKitEditableformboolNo
MetaformDictionary<string, string>No
IsOnDemandformboolNo
CreatedOnformDateTimeNo
WeightformdoubleNo
HeightformdecimalNo
WidthformdoubleNo
LengthformdecimalNo
CubicVolumeformdoubleNo
MaxNumLinesformintNo
CostformdecimalNo
UOMformstringNo
SubCategoryformstringNo
ShipOnformDateTime?No
MainFeaturedformintNo
FeaturedformintNo
LikesformlongNo
HasLikedformboolNo
EnforceMinimumformboolNo
PointsformdecimalNo
Custom9formstringNo
WarehouseformstringNo
ProductImagesformList<ProductImage>No
IsDealerVisibleformboolNo
EntityBase<K> Parameters:
NameParameterData TypeRequiredDescription
IdformKNo
ProductCategory Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
LabelformstringNo
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
VendorProductTag Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
TagformstringNo
VendorSetting Parameters:
NameParameterData TypeRequiredDescription
VendorIdformstringNo
KeyformstringNo
ValueformstringNo
FieldValue Parameters:
NameParameterData TypeRequiredDescription
FieldIdformstringNo
ValueIdformstringNo
CustomTextformstringNo
Tag Parameters:
NameParameterData TypeRequiredDescription
IdformdoubleNo
ShardformstringNo
PrincipalIdformstringNo
TagKindformstringNo
TagLabelformstringNo
ParentTagKindformstringNo
ParentTagLabelformstringNo
AuditedModel Parameters:
NameParameterData TypeRequiredDescription
CreatedByformstringNo
CreatedOnformDateTimeNo
LastModifiedOnformDateTimeNo
LastModifiedByformstringNo
GeneratedformboolNo
ExportedformboolNo
PositionformintNo
ProductImage Parameters:
NameParameterData TypeRequiredDescription
ProductIdformstringNo
PositionformintNo
CreatedOnformDateTimeNo
CartItemOption Parameters:
NameParameterData TypeRequiredDescription
PositionformintNo
FieldIdformstringNo
FieldLabelformstringNo
FieldTextformstringNo
CustomTextformstringNo
ValueIdformstringNo
ValueLabelformstringNo
UpchargeformdoubleNo
UpchargeTypeformstringNo
CartItemAdded Parameters:
NameParameterData TypeRequiredDescription
MessageformstringNo

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

{
	quantity: 0,
	configId: String,
	offerId: String,
	fromKit: False,
	campaignId: String,
	cartId: String,
	productId: String,
	product: 
	{
		id: String,
		productLineId: String,
		manufacturerNumber: String,
		shortDescription: String,
		longDescription: String,
		altDescription: String,
		upcCode: String,
		status: String,
		listPrice: 0,
		wholesalePrice: 0,
		retailPrice: 0,
		retailListPrice: 0,
		unitsInStock: 0,
		unitsAllocated: 0,
		unlisted: False,
		categoryId: String,
		category: 
		{
			id: String,
			label: String
		},
		minimumOrderQty: 0,
		availableQty: 0,
		caseQty: 0,
		casePrice: 0,
		availableOn: 0001-01-01,
		incomingQty: 0,
		purchaseIncrement: 0,
		optionGroup: String,
		optionGroupList: String,
		vendorId: String,
		vendor: 
		{
			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
				]
			}
		},
		isB2B: False,
		isB2C: False,
		isSellable: False,
		isNonDiscountable: False,
		itemType: String,
		imageUrl: String,
		onDemandProductEuid: String,
		keywords: String,
		superCategory: String,
		tags: 
		{
			String: 
			[
				String
			]
		},
		asShownValues: 
		[
			{
				fieldId: String,
				valueId: String,
				customText: String
			}
		],
		genericTags: 
		[
			{
				id: 1312561414.13126,
				shard: String,
				principalId: String,
				tagKind: String,
				tagLabel: String,
				parentTagKind: String,
				parentTagLabel: String,
				createdBy: String,
				createdOn: 0001-01-01,
				lastModifiedOn: 0001-01-01,
				lastModifiedBy: String,
				generated: False,
				exported: False,
				position: 0
			}
		],
		isNew: False,
		isRestricted: False,
		isAsShown: False,
		isKit: False,
		isKitExplode: False,
		isKitEditable: False,
		meta: 
		{
			String: String
		},
		isOnDemand: False,
		createdOn: 0001-01-01,
		weight: 0,
		height: 0,
		width: 0,
		length: 0,
		cubicVolume: 0,
		maxNumLines: 0,
		cost: 0,
		uom: String,
		subCategory: String,
		shipOn: 0001-01-01,
		mainFeatured: 0,
		featured: 0,
		likes: 1,
		hasLiked: False,
		enforceMinimum: False,
		points: 0,
		custom9: String,
		warehouse: String,
		productImages: 
		[
			{
				productId: String,
				position: 0,
				createdOn: 0001-01-01
			}
		],
		isDealerVisible: False
	},
	manufacturerNumber: String,
	productLineId: String,
	qtyPurchased: 0,
	qtyShipped: 0,
	qtyOpen: 0,
	qtyAdjusted: False,
	qtyCustom1: 0,
	qtyCustom2: 0,
	openTotal: 0,
	shippedTotal: 0,
	position: 0,
	orderNotes: String,
	description: String,
	comments: String,
	notes: String,
	brandId: String,
	superCategory: String,
	salesRepId: String,
	promoCode: String,
	promoCode2: String,
	status: String,
	price: 0,
	priceOverride: 0,
	priceListId: String,
	options: [],
	meta: 
	{
		String: String
	},
	optionsString: "",
	promoDiscount: 0,
	discountPercentage: 0,
	discount: 0,
	lineOrderDiscount: 0,
	lineDiscount: 0,
	promoNote: String,
	subTotal: 0,
	openSubTotal: 0,
	shippedSubTotal: 0,
	pricePaid: 0,
	extendedQtyPurchased: 0,
	caseQtyPurchased: 0,
	totalWeight: 0,
	availableWeight: 0,
	totalCubicVolume: 0,
	availableCubicVolume: 0,
	availableTotal: 0,
	extendedTotal: 0,
	openExtendedTotal: 0,
	shippedExtendedTotal: 0,
	parentPosition: 0,
	listPrice: 0,
	cost: String,
	upc: String,
	uom: String,
	paymentTermsId: String,
	shippingMethodId: String,
	category: String,
	subCategory: String,
	cancelOn: 0001-01-01,
	esaDate: 0001-01-01,
	custom1: String,
	custom2: String,
	custom3: String,
	custom4: String,
	custom5: String,
	custom6: String,
	custom7: String,
	custom8: String,
	custom9: String,
	custom10: String,
	custom11: String,
	trackingNumbers: String,
	custom13: String,
	optionGroupList: String,
	tagFor: String,
	reasonCode: String,
	purchaseOrder: String,
	nextFulfillment: String,
	addItemPath: String,
	isKitComponent: False,
	isContractPrice: False,
	points: 0,
	customerLineLevelQty: 0,
	fromSplit: False,
	canModify: False,
	origQty: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	message: String,
	cartId: String,
	productId: String,
	product: 
	{
		id: String,
		productLineId: String,
		manufacturerNumber: String,
		shortDescription: String,
		longDescription: String,
		altDescription: String,
		upcCode: String,
		status: String,
		listPrice: 0,
		wholesalePrice: 0,
		retailPrice: 0,
		retailListPrice: 0,
		unitsInStock: 0,
		unitsAllocated: 0,
		unlisted: False,
		categoryId: String,
		category: 
		{
			id: String,
			label: String
		},
		minimumOrderQty: 0,
		availableQty: 0,
		caseQty: 0,
		casePrice: 0,
		availableOn: 0001-01-01,
		incomingQty: 0,
		purchaseIncrement: 0,
		optionGroup: String,
		optionGroupList: String,
		vendorId: String,
		vendor: 
		{
			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
				]
			}
		},
		isB2B: False,
		isB2C: False,
		isSellable: False,
		isNonDiscountable: False,
		itemType: String,
		imageUrl: String,
		onDemandProductEuid: String,
		keywords: String,
		superCategory: String,
		tags: 
		{
			String: 
			[
				String
			]
		},
		asShownValues: 
		[
			{
				fieldId: String,
				valueId: String,
				customText: String
			}
		],
		genericTags: 
		[
			{
				id: 1312561414.13126,
				shard: String,
				principalId: String,
				tagKind: String,
				tagLabel: String,
				parentTagKind: String,
				parentTagLabel: String,
				createdBy: String,
				createdOn: 0001-01-01,
				lastModifiedOn: 0001-01-01,
				lastModifiedBy: String,
				generated: False,
				exported: False,
				position: 0
			}
		],
		isNew: False,
		isRestricted: False,
		isAsShown: False,
		isKit: False,
		isKitExplode: False,
		isKitEditable: False,
		meta: 
		{
			String: String
		},
		isOnDemand: False,
		createdOn: 0001-01-01,
		weight: 0,
		height: 0,
		width: 0,
		length: 0,
		cubicVolume: 0,
		maxNumLines: 0,
		cost: 0,
		uom: String,
		subCategory: String,
		shipOn: 0001-01-01,
		mainFeatured: 0,
		featured: 0,
		likes: 1,
		hasLiked: False,
		enforceMinimum: False,
		points: 0,
		custom9: String,
		warehouse: String,
		productImages: 
		[
			{
				productId: String,
				position: 0,
				createdOn: 0001-01-01
			}
		],
		isDealerVisible: False
	},
	manufacturerNumber: String,
	productLineId: String,
	qtyPurchased: 0,
	qtyShipped: 0,
	qtyOpen: 0,
	qtyAdjusted: False,
	qtyCustom1: 0,
	qtyCustom2: 0,
	openTotal: 0,
	shippedTotal: 0,
	position: 0,
	orderNotes: String,
	description: String,
	comments: String,
	notes: String,
	brandId: String,
	superCategory: String,
	salesRepId: String,
	promoCode: String,
	promoCode2: String,
	status: String,
	price: 0,
	priceOverride: 0,
	priceListId: String,
	options: [],
	meta: 
	{
		String: String
	},
	optionsString: "",
	promoDiscount: 0,
	discountPercentage: 0,
	discount: 0,
	lineOrderDiscount: 0,
	lineDiscount: 0,
	promoNote: String,
	subTotal: 0,
	openSubTotal: 0,
	shippedSubTotal: 0,
	pricePaid: 0,
	extendedQtyPurchased: 0,
	caseQtyPurchased: 0,
	totalWeight: 0,
	availableWeight: 0,
	totalCubicVolume: 0,
	availableCubicVolume: 0,
	availableTotal: 0,
	extendedTotal: 0,
	openExtendedTotal: 0,
	shippedExtendedTotal: 0,
	parentPosition: 0,
	listPrice: 0,
	cost: String,
	upc: String,
	uom: String,
	paymentTermsId: String,
	shippingMethodId: String,
	category: String,
	subCategory: String,
	cancelOn: 0001-01-01,
	esaDate: 0001-01-01,
	custom1: String,
	custom2: String,
	custom3: String,
	custom4: String,
	custom5: String,
	custom6: String,
	custom7: String,
	custom8: String,
	custom9: String,
	custom10: String,
	custom11: String,
	trackingNumbers: String,
	custom13: String,
	optionGroupList: String,
	tagFor: String,
	reasonCode: String,
	purchaseOrder: String,
	nextFulfillment: String,
	addItemPath: String,
	isKitComponent: False,
	isContractPrice: False,
	points: 0,
	customerLineLevelQty: 0,
	fromSplit: False,
	canModify: False,
	origQty: 0,
	campaignId: String
}