Operations related to authentication tokens
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Variant/Add \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Code": "1003",
"Variants": [
{
"Model": "Small",
"Code": "1003L",
"UnitCost": 100000,
"UnitPrice": 150000,
"Discontinued": true,
"VariantDescription": "Unavailable"
},
{
"Model": "Medium",
"Code": "1003XL",
"UnitCost": 125000,
"UnitPrice": 175000,
"Discontinued": false
}
]
}'
{ "ID": "9525a6b0-297f-4b4a-97c7-0ae876bb44cd", "Variants": [ { … }, { … } ], "ListVariantID": [ "9ad47be6-bf1c-4dd5-87a8-193fe56d1035", "b3d68610-22a5-445d-8c5c-c79487373aa2" ] }
Name of the variant. Backwards compatibility with property "Variant"
Product-type of the variant
Number of point that earned (Type Prepaid Package & Prepaid Point). If value is set with 0 means unlimited
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/Variant \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Code": "2DL-P",
"Name": "2D Layering (Premium)",
"Model": "2D Layering (Premium)",
"ProductCode": "2DL",
"Weight": 0,
"Type": "Standard",
"OrderPrice": 0,
"UnitCost": 2000,
"UnitPrice": 500000,
"Taxable": true,
"LoyaltyPoint": false,
"Discontinued": false,
"Components": [
{
"Code": "2DL",
"Name": "2D Layering",
"Qty": 1
}
],
"OutletPrice": [
{
"Outlet": "Outlet1",
"Price": 500000,
"ExtraCost": 0
}
]
}'
{ "Message": "Update Success" }
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/Variant \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Code": "1003L"
}'
"Variant with code 1003L has been successfully deleted."
Also available as HTTP POST with the same endpoint
Required Group Role: "Products" - "VIEW"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Variant \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Category": "2D Layering",
"PageNumber": 1,
"PageSize": 10,
"Type": "Standard",
"Name": "2D Layering (Premium)",
"Code": "2DL-P",
"ReleasedFrom": "2021-01-01",
"ReleasedTo": "2021-12-31"
}'
{ "Data": [ { … }, { … } ], "RecordsCount": 2 }
Also available as HTTP POST with the same endpoint
Required Group Role: "Products" - "VIEW"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Variant/Data \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Category": "2D Layering",
"PageNumber": 1,
"PageSize": 10,
"Type": "Standard",
"Name": "2D Layering (Standard)",
"Code": "2DL-S",
"ReleasedFrom": "2021-01-01",
"ReleasedTo": "2021-12-31"
}'
{ "Data": [ { … }, { … } ] }
Also available as HTTP POST with the same endpoint
Required Group Role: "Products" - "VIEW"