Operations related to authentication tokens
Also available as HTTP POST with the same endpoint
Get List Promotion Event
Required Group Role: "Promotion" - "VIEW"
Promotion Type (Amount / Quantity / Discount / Product / Tiered) If value is null , it will be show all type
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/PromotionEvent \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"PageNumber": 1,
"PageSize": 10,
"Type": "Amount",
"Status": "Active"
}'
[ { "Name": "New Year Sale", "StartDate": "2022-12-25 00:00:00", "ExpirationDate": "2022-01-01 23:59:59", "Outlet": [ … ], "Type": "Amount", "MinimumQty": 1 } ]
Also available as HTTP POST with the same endpoint
Get Promotion Event by Variant ID
Required Group Role: "Promotion" - "VIEW"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/PromotionEvent/GetByVariantID \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"VariantID": "6f96d108-1af5-45de-a593-74719a0ee8e2"
}'
[ { "Name": "DealPOS Book Fair 2022", "UnitPrice": 100000, "ExtraCost": 0, "Discount": 0, "StartDate": "2022-04-13T00:00:00", "ExpirationDate": "2022-04-21T00:00:00", "StartTime": "00:00:00", "ExpirationTime": "23:59:59", "PromotionID": "06777bca-ad15-4806-a625-009fce7bc54a" } ]
Also available as HTTP POST with the same endpoint
Get Promotion Event by Variant ID
Required Group Role: "Promotion" - "VIEW"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/PromotionEvent/GetByVariantCode \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"VariantCode": "1315L"
}'
[ { "Name": "DealPOS Book Fair 2022", "UnitPrice": 100000, "ExtraCost": 0, "Discount": 0, "StartDate": "2022-04-13T00:00:00", "ExpirationDate": "2022-04-21T00:00:00", "StartTime": "00:00:00", "ExpirationTime": "23:59:59", "PromotionID": "06777bca-ad15-4806-a625-009fce7bc54a" } ]