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

{"cartId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
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}