Operations related to authentication tokens
Also available as HTTP POST (endpoint: /api/v3/PromotionCoupon/p)
Required Group Role: "Promotion" - "VIEW"
Type of promotion coupon
Status Coupon usage (If value null it will show only Active Coupon)
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/PromotionCoupon \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"From": "2019-12-01T00:00:00",
"To": "2019-12-19T00:00:00",
"Type": "DiscountPercentage",
"UsageStatus": "Active",
"PageNumber": 1,
"PageSize": 10,
"Code": "Disc99"
}'
[ { "Code": "Disc99", "Limit": 5, "Balance": 5, "Discount": 99, "Created": "2019-12-17T14:58:15.447", "StartDate": "2019-12-01T00:00:00", "ExpiryDate": "2019-12-19T00:00:00", "Type": "Discount", "Description": "Discount percentage 99%", "CustomerCode": "DP-001" }, { "Code": "Disc100", "Limit": 5, "Balance": 5, "Discount": 100000, "Created": "2019-12-17T14:58:15.447", "StartDate": "2019-12-01T00:00:00", "ExpiryDate": "2019-12-19T00:00:00", "Type": "DiscountAmount", "Description": "Discount amount 100k", "CustomerCode": "DP-001" } ]
Number of percentage or amount that given from promotion coupon (Only take effect for type Discount Percentage or Discount Amount)
Minimum spending amount that allow to use the coupon code. Only for Type DiscountAmount and DiscountPercentage.
Only use if DiscountType Percentage. If set to "true", coupon discounts apply to regular-priced products
Only use if DiscountType Percentage. The maximum discount amount achievable with this coupon
Type of promotion coupon
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/PromotionCoupon \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Code": "Disc99",
"Limit": 5,
"Discount": 99,
"MinimumAmount": 100000,
"FullPriceItemOnly": "No",
"MaximumDiscount": 100000,
"ExpiryDate": "2019-11-18",
"Description": "Discount percentage 99%",
"Type": "DiscountPercentage"
}'
{ "ID": "c0472252-57ad-47dd-9aa7-f61129e88831" }
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/PromotionCoupon \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Code": "Disc99"
}'
{ "Message": "Coupon has been delete!" }
Also available as HTTP POST with the same endpoint
Get List of Promotion Coupons
Required Group Role: "Promotion" - "VIEW"
Type of promotion coupon
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/PromotionCoupon/WithTotalCount \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"From": "2019-12-17",
"To": "2019-12-19",
"Type": "Discount",
"PageNumber": 1,
"PageSize": 10
}'