Operations related to authentication tokens
DealPOS API (3.1.0)
- 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
}
]
}'{ "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
- 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
}
]
}'{ "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"
}'"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"
- 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"
}'{ "Data": [ { … }, { … } ], "RecordsCount": 2 }
Request
Also available as HTTP POST with the same endpoint
Get List of Variant Data
Required Group Role: "Products" - "VIEW"
- 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>'{ "Data": [ { … }, { … } ] }
Request
Also available as HTTP POST with the same endpoint
Count total Variant
Required Group Role: "Products" - "VIEW"
- 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>'Request
Get Variant info by code.
This API does not return the OnHand inventory , to retreive the inventory please use this API Get Inventory By Code
Required Group Role: "Products" - "VIEW"
- 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'{ "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": [ { … } ] }
Request
This endpoint is coming soon
**Also available as HTTP POST with the same endpoint **
Get Variant info by Code
Required Group Role: "Products" - "VIEW"
- 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'{ "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/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"
]
}'[ { "ID": "55d7d915-eb82-4dfb-ac40-62f04ff50687", "Code": "abcd", "Price": 3000 }, { "ID": "51ae7f87-fa9d-41e5-a994-be14a9df889b", "Code": "2018", "Price": 6000 } ]
Request
Get List Variant By List Code
Also available as HTTP POST (endpoint: /api/v3/Variant/GetByListCode)
- 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"
]
}'{ "Data": [ { … }, { … } ] }