Operations related to authentication tokens
- Get Adjustment By Number
DealPOS API (3.1.0)
Request
Update Inventory - Set available quantity to a given value
You must have "ADD" role in "Adjustment" Module OR "EDIT" role in "Global" Module
Product with type "Composite" and "Non Inventory" cannot be adjusted.
When config InventoryAdjustment Approval is turned on, when adjustment is created state will be StateID: 1 (In Progress) / 2 (Waiting for Approval)
State of Adjustment. it will be required if config with Approval is turned on. 1= InProgress, 2= Waiting
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",
"Source": "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
Count - Set available quantity to a given value and when quantity is still Draft
You must have "ADD" role in "Adjustment" Module OR "EDIT" role in "Global" Module
Product with type "Composite" and "Non Inventory" cannot be adjusted.
When config InventoryAdjustment Approval is turned on, when adjustment is created state will be StateID: 1 (Draft) / 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
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",
"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 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"From": "2023/09/01",
"To": "2023/09/30",
"PageNumber": 1,
"PageSize": 10,
"Outlet": "Outlet1",
"State": "Accepted",
"Type": "Adjust"
}'[ { "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" } ]
Request
Also available as HTTP POST with the same endpoint
Get Adjustment detail based on Number.
Required Group Role: "Adjustment" - "VIEW"
- 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' \
-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": "", "Source": "rfid", "AdjustedInventory": [ { … } ], "CountedInventory": [ { … } ] }
Request
Also available as HTTP POST with the same endpoint
Get Adjustment detail based on ID Adjustment.
Required Group Role: "Adjustment" - "VIEW"
- 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": "", "Source": "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" }