Operations related to authentication tokens
DealPOS API (3.1.0)
Download OpenAPI description
Overview
URL
Customer Support
Languages
Servers
Production Server
https://{subdomain}/
- Production Serverhttps://subdomain.dealpos.net/api/v3/Variant/Add
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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
}
]
}'Response
{ "ID": "9525a6b0-297f-4b4a-97c7-0ae876bb44cd", "Variants": [ { … }, { … } ], "ListVariantID": [ "9ad47be6-bf1c-4dd5-87a8-193fe56d1035", "b3d68610-22a5-445d-8c5c-c79487373aa2" ] }
Bodyapplication/json
One of:
Name of the variant. Backwards compatibility with property "Variant"
Example: "2D Layering (Premium)"
Product-type of the variant
Enum"Standard""Composite""NonInventory""Manufactured""MultipleUOM""Complementary""PrepaidPackage""PrepaidPoint"
Example: "Standard"
Number of point that earned (Type Prepaid Package & Prepaid Point). If value is set with 0 means unlimited
Example: [{"Code":"2DL","Name":"2D Layering","Qty":1}]
- Production Serverhttps://subdomain.dealpos.net/api/v3/Variant
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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
}
]
}'Response
application/json
{ "Message": "Update Success" }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Variant
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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"
}'Response
application/json
"Variant with code 1003L has been successfully deleted."
Request
Also available as HTTP POST with the same endpoint
Get List of Variant existing
Required Group Role: "Products" - "VIEW"
Security
OAuth2_clientCredentials
- Production Serverhttps://subdomain.dealpos.net/api/v3/Variant
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Variant?Category=2D+Layering&PageNumber=1&PageSize=10&Type=Standard' \
-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"
}'Response
application/json
{ "Data": [ { … }, { … } ], "RecordsCount": 2 }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Variant/Data
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Variant/Data?Category=2D+Layering&PageNumber=1&PageSize=10&Type=Standard&Name=2D+Layering+%28Standard%29&Code=2DL-S&ReleasedFrom=2021-01-01&ReleasedTo=2021-12-31' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "Data": [ { … }, { … } ] }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Variant/Count
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Variant/Count?Category=2D+Layering&PageNumber=1&PageSize=10&Type=Standard&Name=2D+Layering+%28Standard%29&Code=VAR12345&ReleasedFrom=2023-01-01&ReleasedTo=2023-12-31' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'- Production Serverhttps://subdomain.dealpos.net/api/v3/Variant/Detail
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Variant/Detail?Code=SW001&ID=f2296e61-e405-4884-9e54-55f14a91748b' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'promotions_field_include: true'Response
application/json
{ "ID": "f2296e61-e405-4884-9e54-55f14a91748b", "Category": "Food", "Brand": "ABC", "Product": "Sandwich", "Variant": "Default", "Name": "Sandwich", "Code": "SW001", "Weight": 100, "Type": "Composite", "OrderPrice": 0, "UnitCost": 20000, "UnitPrice": 50000, "Taxable": true, "LoyaltyPoint": true, "Discontinued": false, "ImageURL": "https://cdn.dealpos.app/net/sandbox/Product/97d4e846-ea8d-4c3c-af2e-682b4ed6e48e/image1.jpeg", "ThumbnailURL": "https://dealpos.b-cdn.net/net/sandbox/Product/97d4e846-ea8d-4c3c-af2e-682b4ed6e48e/image1.jpeg?width=80", "Description": "Delicious sandwich with fresh ingredients", "Components": [ { … }, { … } ], "OutletPrice": [ { … } ] }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Variant/Code
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Variant/Code?Code=SW001' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'promotions_field_include: true'Response
application/json
{ "ID": "f2296e61-e405-4884-9e54-55f14a91748b", "Category": "Food", "Brand": "ABC", "Product": "Sandwich", "Variant": "Default", "Name": "Sandwich", "Code": "SW001", "Weight": 100, "Type": "Composite", "OrderPrice": 0, "UnitCost": 20000, "UnitPrice": 50000, "Taxable": true, "LoyaltyPoint": true, "Discontinued": false, "ImageURL": "https://cdn.dealpos.app/net/sandbox/Product/97d4e846-ea8d-4c3c-af2e-682b4ed6e48e/image1.jpeg", "ThumbnailURL": "https://dealpos.b-cdn.net/net/sandbox/Product/97d4e846-ea8d-4c3c-af2e-682b4ed6e48e/image1.jpeg?width=80", "Description": "Delicious sandwich with fresh ingredients", "Components": [ { … }, { … } ], "OutletPrice": [ { … } ] }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Variant/ID
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Variant/ID?ID=f2296e61-e405-4884-9e54-55f14a91748b' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'promotions_field_include: true'Response
application/json
{ "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": [ { … } ] }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Variant/Component
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Variant/Component?ID=f2296e61-e405-4884-9e54-55f14a91748b' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "Data": [ { … }, { … } ] }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Variant/ListID
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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"
]
}'Response
application/json
[ { "ID": "55d7d915-eb82-4dfb-ac40-62f04ff50687", "Code": "abcd", "Price": 3000 }, { "ID": "51ae7f87-fa9d-41e5-a994-be14a9df889b", "Code": "2018", "Price": 6000 } ]
- Production Serverhttps://subdomain.dealpos.net/api/v3/Variant/GetByListCode
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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"
]
}'Response
application/json
{ "Data": [ { … }, { … } ] }