All Verbs | /service/CheckCategoryRestrictions |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CartId | query | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CategoryMinimumViolations | form | List<CategoryMinimum> | No | |
ProductRewards | form | List<ProductReward> | No | |
CategoryRestrictions | form | List<CategoryRestriction> | No | |
HardStop | form | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Name | form | string | No | |
Description | form | string | No | |
QtyPurchased | form | double | No | |
PurchaseIncrement | form | double | No | |
QtyNeeded | form | double | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Name | form | string | No | |
Description | form | string | No | |
QtyPurchased | form | double | No | |
FreeCategory | form | string | No | |
QtyFree | form | double | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Name | form | string | No | |
Description | form | string | No | |
QtyPurchased | form | double | No | |
QtyAllowed | form | double | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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 }