EMUN1 ASP.NET

<back to all web services

CheckCategoryRestrictions

Requires Authentication
The following routes are available for this service:
All Verbs/service/CheckCategoryRestrictions
CheckCategoryRestrictions Parameters:
NameParameterData TypeRequiredDescription
CartIdquerystringNo
CheckCategoryRestrictionsResponse Parameters:
NameParameterData TypeRequiredDescription
CategoryMinimumViolationsformList<CategoryMinimum>No
ProductRewardsformList<ProductReward>No
CategoryRestrictionsformList<CategoryRestriction>No
HardStopformboolNo
CategoryMinimum Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
DescriptionformstringNo
QtyPurchasedformdoubleNo
PurchaseIncrementformdoubleNo
QtyNeededformdoubleNo
ProductReward Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
DescriptionformstringNo
QtyPurchasedformdoubleNo
FreeCategoryformstringNo
QtyFreeformdoubleNo
CategoryRestriction Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
DescriptionformstringNo
QtyPurchasedformdoubleNo
QtyAllowedformdoubleNo

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

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

{
	categoryMinimumViolations: 
	[
		{
			name: String,
			description: String,
			qtyPurchased: 0,
			purchaseIncrement: 0,
			qtyNeeded: 0
		}
	],
	productRewards: 
	[
		{
			name: String,
			description: String,
			qtyPurchased: 0,
			freeCategory: String,
			qtyFree: 0
		}
	],
	categoryRestrictions: 
	[
		{
			name: String,
			description: String,
			qtyPurchased: 0,
			qtyAllowed: 0
		}
	],
	hardStop: False
}