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, "ThumbnailURL": "https://dealpos.b-cdn.net/net/sandbox/Product/97d4e846-ea8d-4c3c-af2e-682b4ed6e48e/image1.jpeg?width=80", "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' \
-H 'promotions_field_include: false' \
-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/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 } ]
Get List Variant By List Code
Also available as HTTP POST (endpoint: /api/v3/Variant/GetByListCode)
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": [ { … }, { … } ] }