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"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Variant/Count \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Category": "Top/Men",
"PageNumber": 1,
"PageSize": 20,
"Type": "Standard",
"Name": "2D",
"ReleasedFrom": "2023-01-01",
"ReleasedTo": "2023-12-31"
}'
**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/Code \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Code": "PHD"
}'
{ "ID": "f2296e61-e405-4884-9e54-55f14a91748b", "Category": "Food", "Product": "Sandwich", "Variant": "Default", "Name": "Sandwich", "Code": "SW001", "Weight": 100, "Type": "Composite", "OrderPrice": 0, "UnitCost": 20000, "UnitPrice": 50000, "Taxable": true, "LoyaltyPoint": true, "Discontinued": false, "Components": [ { … }, { … } ], "OutletPrice": [ { … } ] }
This endpoint is coming soon
**Also available as HTTP POST with the same endpoint **
Required Group Role: "Products" - "VIEW"
Request JSON body.
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Variant/ID \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ID": "PHD"
}'
{ "ID": "f2296e61-e405-4884-9e54-55f14a91748b", "Category": "Food", "Product": "Sandwich", "Variant": "Default", "Name": "Sandwich", "Code": "SW001", "Weight": 100, "Type": "Composite", "OrderPrice": 0, "UnitCost": 20000, "UnitPrice": 50000, "Taxable": true, "LoyaltyPoint": true, "Discontinued": false, "Components": [ { … }, { … } ], "OutletPrice": [ { … } ] }
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Variant/GetIDByListCode \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '[
"1000",
"1001",
"1002"
]'
[ { "ID": "e156a0a9-1552-49d4-b597-d4ca09c3ed54", "ProductID": "418c0cde-1e5f-4c77-a9f4-312bc96939cb", "Code": "1000" }, { "ID": "d2dfbf1a-da61-48e4-9d4d-a921ebfcb8f5", "ProductID": "6126764d-57aa-425d-ade6-bc3a847da98a", "Code": "1001" }, { "ID": "1587b105-b8a9-404f-907a-f63326003558", "ProductID": "7d27dc9f-06f7-4765-bfd3-437903b020fa", "Code": "1002" } ]
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Variant/GetIDByListCodeDiscontinued \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ListCode": [
"1342L",
"1342M"
],
"Discontinued": "All"
}'
[ { "ID": "e156a0a9-1552-49d4-b597-d4ca09c3ed54", "ProductID": "418c0cde-1e5f-4c77-a9f4-312bc96939cb", "Code": "1342L", "Discontinued": false }, { "ID": "d2dfbf1a-da61-48e4-9d4d-a921ebfcb8f5", "ProductID": "6126764d-57aa-425d-ade6-bc3a847da98a", "Code": "1342M", "Discontinued": true } ]
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Variant/ListID \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet 1",
"ListID": [
"55d7d915-eb82-4dfb-ac40-62f04ff50687",
"51ae7f87-fa9d-41e5-a994-be14a9df889b"
]
}'
[ { "ID": "55d7d915-eb82-4dfb-ac40-62f04ff50687", "Code": "abcd", "Price": 3000 }, { "ID": "51ae7f87-fa9d-41e5-a994-be14a9df889b", "Code": "2018", "Price": 6000 } ]
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Variant/GetByListCode \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ListCode": [
"1315L",
"1315XL"
]
}'
{ "Data": [ { … }, { … } ] }