POST api/Store/CreateDiscount
Request Information
URI Parameters
None.
Body Parameters
CreateDiscountdataName | Description | Type | Additional information |
---|---|---|---|
businessId | integer |
None. |
|
loginuserId | integer |
None. |
|
discountId | integer |
None. |
|
discountTitle | string |
None. |
|
discountType | string |
None. |
|
customerTypeIds | string |
None. |
|
states | string |
None. |
|
startDate | string |
None. |
|
endDate | string |
None. |
|
flag | integer |
None. |
|
discountTiers | Collection of discountTiers |
None. |
Request Formats
application/json, text/json
Sample:
{ "businessId": 1, "loginuserId": 2, "discountId": 3, "discountTitle": "sample string 4", "discountType": "sample string 5", "customerTypeIds": "sample string 6", "states": "sample string 7", "startDate": "sample string 8", "endDate": "sample string 9", "flag": 10, "discountTiers": [ { "itemId": 1, "tier": 2, "minimumQuantity": 3, "maximumQuantity": 4, "discount": "sample string 5", "discountType": 6, "isDiscountApply": 7 }, { "itemId": 1, "tier": 2, "minimumQuantity": 3, "maximumQuantity": 4, "discount": "sample string 5", "discountType": 6, "isDiscountApply": 7 } ] }
application/xml, text/xml
Sample:
<CreateDiscountdata xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <businessId>1</businessId> <customerTypeIds>sample string 6</customerTypeIds> <discountId>3</discountId> <discountTiers> <discountTiers> <discount>sample string 5</discount> <discountType>6</discountType> <isDiscountApply>7</isDiscountApply> <itemId>1</itemId> <maximumQuantity>4</maximumQuantity> <minimumQuantity>3</minimumQuantity> <tier>2</tier> </discountTiers> <discountTiers> <discount>sample string 5</discount> <discountType>6</discountType> <isDiscountApply>7</isDiscountApply> <itemId>1</itemId> <maximumQuantity>4</maximumQuantity> <minimumQuantity>3</minimumQuantity> <tier>2</tier> </discountTiers> </discountTiers> <discountTitle>sample string 4</discountTitle> <discountType>sample string 5</discountType> <endDate>sample string 9</endDate> <flag>10</flag> <loginuserId>2</loginuserId> <startDate>sample string 8</startDate> <states>sample string 7</states> </CreateDiscountdata>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
VCAPIResponseName | Description | Type | Additional information |
---|---|---|---|
Version | string |
None. |
|
dateTime | string |
None. |
|
StatusCode | integer |
None. |
|
ErrorMessage | string |
None. |
|
Result | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "Version": "1.0.0", "dateTime": "2025/04/04 06:37:11", "StatusCode": 1, "ErrorMessage": "sample string 2", "Result": {} }
application/xml, text/xml
Sample:
<VCAPIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <ErrorMessage>sample string 2</ErrorMessage> <Result /> <StatusCode>1</StatusCode> </VCAPIResponse>