Operations related to authentication tokens
The image URL of the product
The extra image URL of the product
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Product \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'UploadImageAsync: string' \
-d '{
"Category": "Top/Men",
"Name": "Captain America T-Shirt",
"Brand": "Brand",
"Code": "1003",
"Discontinued": false,
"ImageURL": "https://images.unsplash.com/photo-1622793348115-4e85dc2ca4eb?ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8Y2FwdGFpbiUyMGFtZXJpY2F8ZW58MHx8MHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=600&q=60",
"ExtraImagesURL": [
"//res.cloudinary.com/pos/image/upload/Product/afa67ca2-46f4-418a-a5fe-a3a79b1dbc95/vgzleqpgujlspm9ltdiht.jpg",
"//res.cloudinary.com/pos/image/upload/Product/afa67ca2-46f4-418a-a5fe-a3a79b1dbc95/q7dbzf9qnif8vbxuzxo0.jpg",
"//res.cloudinary.com/pos/image/upload/Product/afa67ca2-46f4-418a-a5fe-a3a79b1dbc95/ur871mubz7ioecvja8ex.jpg"
],
"Description": "New Arrival",
"Variants": [
{
"Model": "Small",
"Code": "1003S",
"UnitCost": 100000,
"UnitPrice": 150000,
"Discontinued": true,
"Type": {
"value": "Standard"
},
"VariantDescription": "Unavailable"
},
{
"Model": "Medium",
"Code": "1003M",
"UnitCost": 125000,
"UnitPrice": 175000,
"Type": {
"value": "Standard"
},
"Discontinued": false
}
]
}'
{ "ID": "9525a6b0-297f-4b4a-97c7-0ae876bb44cd", "Variants": [ { … }, { … } ], "ListVariantID": [ "9ad47be6-bf1c-4dd5-87a8-193fe56d1035", "b3d68610-22a5-445d-8c5c-c79487373aa2" ] }
The name of the category that will be use, you also can create new category.
If you want to nest a category use a "/" operator ex: "Food/Snack/Pastries" will create 3 level category
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/Product \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Category": "Top/Men",
"Name": "Captain America T-Shirt",
"Brand": "Brand",
"Code": "1003",
"Discontinued": false,
"ImageURL": "https://images.unsplash.com/photo-1622793348115-4e85dc2ca4eb?ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8Y2FwdGFpbiUyMGFtZXJpY2F8ZW58MHx8MHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=600&q=60",
"Description": "New Arrival",
"Variants": [
{
"Model": "Medium",
"Code": "1003M",
"UnitCost": 125000,
"UnitPrice": 200000,
"Discontinued": false
},
{
"Model": "Large",
"Code": "1003L",
"UnitCost": 150000,
"UnitPrice": 225000,
"Discontinued": false
}
]
}'
{ "ID": "9525a6b0-297f-4b4a-97c7-0ae876bb44cd", "Variants": [ { … }, { … } ], "ListVariantID": [ "9ad47be6-bf1c-4dd5-87a8-193fe56d1035", "b3d68610-22a5-445d-8c5c-c79487373aa2" ] }
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/Product \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Code": "J100"
}'
"Product with code J100 has been successfully deleted."
Also available as HTTP POST (endpoint: /api/v3/Product/p)
Required Group Role: "Products" - "VIEW"
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Product?Category=string&Discontinued=No&Name=string&PageNumber=0&PageSize=0&QueryInventory=false&QueryRowCount=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "DataArray": [ { … }, { … }, { … }, { … }, { … } ], "RecordsCount": 5 }
Also available as HTTP POST with the same endpoints
Required Group Role: "Products" - "VIEW"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Product/Code \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ProductCode": "1003"
}'