POST api/Store/AddBusinessCoupon
Request Information
URI Parameters
None.
Body Parameters
AddBusinessCouponName | Description | Type | Additional information |
---|---|---|---|
businessid | integer |
None. |
|
loginuserid | integer |
None. |
|
BusinessCouponId | integer |
None. |
|
CouponCode | string |
None. |
|
CouponType | integer |
None. |
|
DiscountType | integer |
None. |
|
Discount | integer |
None. |
|
CustomerIds | string |
None. |
|
ExpiresOn | string |
None. |
|
Description | string |
None. |
|
Flag | integer |
None. |
|
customerCodes | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "businessid": 1, "loginuserid": 2, "BusinessCouponId": 3, "CouponCode": "sample string 4", "CouponType": 5, "DiscountType": 6, "Discount": 7, "CustomerIds": "sample string 8", "ExpiresOn": "sample string 9", "Description": "sample string 10", "Flag": 11, "customerCodes": "sample string 12" }
application/xml, text/xml
Sample:
<AddBusinessCoupon xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <BusinessCouponId>3</BusinessCouponId> <CouponCode>sample string 4</CouponCode> <CouponType>5</CouponType> <CustomerIds>sample string 8</CustomerIds> <Description>sample string 10</Description> <Discount>7</Discount> <DiscountType>6</DiscountType> <ExpiresOn>sample string 9</ExpiresOn> <Flag>11</Flag> <businessid>1</businessid> <customerCodes>sample string 12</customerCodes> <loginuserid>2</loginuserid> </AddBusinessCoupon>
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 07:02:06", "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>