Operations related to authentication tokens
DealPOS API (3.1.0)
Request
Create an inventory adjustment by setting available quantities.
Requires one of the following roles: "ADD" in the "Adjustment" module or "EDIT" in the "Global" module.
Products with type "Composite" and "Non Inventory" cannot be adjusted.
When the InventoryAdjustment Approval config is enabled, newly created adjustments will be assigned StateID 1 (In Progress) or StateID 2 (Waiting for Approval).
State of Adjustment. it will be required if config with Approval is turned on. 1= InProgress, 2= Waiting
Data source of adjustment. None = data not shown, Counted = Counted by user, All = All variants can be adjusted
Tag ID for RFID (This property is used only for product Standard type and adjustment type Count)
- Production Serverhttps://subdomain.dealpos.net/api/v3/Adjustment/Set
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Adjustment/Set \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'CreateWhenQuantityMatch: false' \
-d '{
"Outlet": "Outlet1",
"Date": "2023/09/01",
"Number": "2023.09.00001",
"StateID": 1,
"PIC": "John Doe",
"Note": "Adjustment for damaged goods",
"CategoryID": "123e4567-e89b-12d3-a456-426614174000",
"CategoryName": "Top",
"ExpectedMethod": "Counted",
"CountMethod": "rfid",
"Variants": [
{
"Code": "907",
"Quantity": 2,
"Note": "Damaged during transport",
"TID": [
"ASDADKASKDAD021",
"ASDADKASKDAD022"
]
},
{
"Code": "908",
"Quantity": 5,
"Note": "Expired products",
"TID": [
"ASDADKASKDAD023",
"ASDADKASKDAD024"
]
}
]
}'{ "ID": "bcb2fff2-916a-4f60-9e12-36735d0790a9" }
Request
Update a count-type inventory adjustment by setting available quantities for draft adjustments. Requires one of the following roles: "ADD" in the "Adjustment" module or "EDIT" in the "Global" module. Products with type "Composite" and "Non Inventory" cannot be adjusted. When the InventoryAdjustment Approval config is enabled, updated adjustments may transition to StateID 1 (Draft) or StateID 2 (Pending).
- Production Serverhttps://subdomain.dealpos.net/api/v3/Adjustment/Set
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/Adjustment/Set \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Date": "2023/09/01",
"Number": "2023.09.00001",
"PIC": "John Doe",
"Note": "Adjustment for damaged goods",
"Variants": [
{
"Code": "907",
"Quantity": 10
},
{
"Code": "908",
"Quantity": 5
}
]
}'{ "ID": "bcb2fff2-916a-4f60-9e12-36735d0790a9" }
State of Adjustment. it will be required if config with Approval is turned on. 1= InProgress, 2= Waiting
Data source of adjustment. None = data not shown, Counted = Counted by user, All = All variants can be adjusted
Tag ID for RFID (This property is used only for product Standard type and adjustment type Count)
- Production Serverhttps://subdomain.dealpos.net/api/v3/Adjustment
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Adjustment \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Date": "2023/09/01",
"Number": "2023.09.00001",
"StateID": 1,
"PIC": "John Doe",
"Note": "Adjustment",
"CountMethod": "barcode",
"Variants": [
{
"Code": "907",
"Quantity": 2,
"Note": "Additional"
}
]
}'{ "ID": "a0e9653b-dd54-47a9-9dba-fb81da33ca60" }
Number of invoice adjusment. This is primary key for the object
- Production Serverhttps://subdomain.dealpos.net/api/v3/Adjustment
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/Adjustment \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Date": "2023/09/01",
"Number": "2023.09.00001",
"PIC": "John Doe",
"Note": "Adjustment",
"Variants": [
{
"Code": 907,
"Quantity": 10,
"Cost": 50000,
"Price": 100000,
"Note": "Additional"
}
]
}'{ "ID": "a0e9653b-dd54-47a9-9dba-fb81da33ca60" }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Adjustment
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/Adjustment \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "2023.09.00001"
}'"adjustment has been deleted"
Request
Also available as HTTP POST (endpoint: /api/v3/Adjustment/p)
Get List of Adjustment
Required Group Role: "Adjustment" - "VIEW"
- Production Serverhttps://subdomain.dealpos.net/api/v3/Adjustment
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Adjustment?PageNumber=1&PageSize=10&From=2023%2F09%2F01&To=2023%2F09%2F30&Outlet=Outlet1&State=Accepted&Type=Adjust' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'[ { "ID": "a0e9653b-dd54-47a9-9dba-fb81da33ca60", "Outlet": "Outlet1", "Date": "2018-10-30T00:00:00", "Number": "2018/11/07.0001", "SKUCount": 2, "QuantitySUM": 18, "Type": "Adjust", "TotalCost": 1800000, "PIC": "John Doe", "Note": "Test Adjustment", "State": "Accepted" }, { "ID": "1b1b1b1b-1b1b-1b1b-1b1b-1b1b1b1b1b1b", "Outlet": "Outlet1", "Date": "2018-10-29T00:00:00", "Number": "Oct 29, 2018.973265", "SKUCount": 5, "QuantitySUM": 12, "Type": "Count", "TotalCost": 200000, "PIC": "Royhan", "Note": "TestAdjustment", "State": "Accepted" } ]
- Production Serverhttps://subdomain.dealpos.net/api/v3/Adjustment/Detail
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Adjustment/Detail?Outlet=Outlet1&Number=20.08.00014&ID=7da1930f-7be5-4796-b55b-32dfbb0ac026' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "ID": "7da1930f-7be5-4796-b55b-32dfbb0ac026", "Outlet": "Outlet1", "Date": "2020-08-31T00:00:00", "Number": "20.08.00014", "PIC": "Ferdi", "Type": "Count", "State": "Accepted", "Note": "", "CountMethod": "rfid", "AdjustedInventory": [ { … } ], "CountedInventory": [ { … } ] }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Adjustment/ID
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Adjustment/ID?ID=7da1930f-7be5-4796-b55b-32dfbb0ac026' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "ID": "7da1930f-7be5-4796-b55b-32dfbb0ac026", "Outlet": "Outlet1", "Date": "2020-08-31T00:00:00", "Number": "20.08.00014", "PIC": "Ferdi", "Type": "Count", "State": "Accepted", "Note": "", "ExpectedMethod": "Counted", "CategoryID": "123e4567-e89b-12d3-a456-426614174000", "CategoryName": "Top", "CountMethod": "rfid", "CreatorID": "7da1930f-7be5-4796-b55b-32dfbb0ac026", "AdjustedInventory": [ { … } ], "CountedInventory": [ { … } ] }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Adjustment/WithTotalCount
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Adjustment/WithTotalCount?From=2018-10-01&To=2018-10-31&PageNumber=1&PageSize=20&Number=2018%2F11%2F07.0001' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "Data": [ { … }, { … } ], "TotalCount": 100 }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Adjustment/Workflow
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Adjustment/Workflow \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "Workflow": 1 }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Adjustment/Submit
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/Adjustment/Submit \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "Adjustment001"
}'{ "Message": "Inventory Adjustment Number Adjustment001 already Submitted" }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Adjustment/Accept
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/Adjustment/Accept \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "Adjustment001"
}'{ "Message": "Inventory Adjustment Number Adjustment001 Accepted" }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Adjustment/Reject
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/Adjustment/Reject \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "Adjustment001"
}'{ "Message": "Inventory Adjustment Number Adjustment001 Rejected" }