Operations related to authentication tokens
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
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",
"Variants": [
{
"Code": "907",
"Quantity": 10
},
{
"Code": "908",
"Quantity": 5
}
]
}'
{ "ID": "bcb2fff2-916a-4f60-9e12-36735d0790a9" }
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)
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
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": 10
}
]
}'
{ "ID": "a0e9653b-dd54-47a9-9dba-fb81da33ca60" }
Number of invoice adjusment. This is primary key for the object
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" }
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"
Also available as HTTP POST (endpoint: /api/v3/Adjustment/p)
Required Group Role: "Adjustment" - "VIEW"
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,
"State": "Accepted",
"Type": "AdjustDifferences"
}'
[ { "ID": "a0e9653b-dd54-47a9-9dba-fb81da33ca60", "Outlet": "Outlet1", "Date": "2018-10-30T00:00:00", "Number": "2018/11/07.0001", "SKUCount": 2, "QuantitySUM": 18, "Type": "AdjustDifference", "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": "CountQuantity", "TotalCost": 200000, "PIC": "Royhan", "Note": "TestAdjustment", "State": "Accepted" } ]
Also available as HTTP POST with the same endpoint
Get Adjustment detail based on Number.
Required Group Role: "Adjustment" - "VIEW"
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Adjustment/Detail?Number=string&Outlet=string' \
-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": "UpdateInventory", "State": "Accepted", "Note": "", "AdjustedInventory": [ { … } ], "CountedInventory": [ { … } ] }
Also available as HTTP POST with the same endpoint
Get Adjustment detail based on ID Adjustment.
Required Group Role: "Adjustment" - "VIEW"
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Adjustment/ID?ID=string' \
-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": "UpdateInventory", "State": "Accepted", "Note": "", "AdjustedInventory": [ { … } ], "CountedInventory": [ { … } ] }
Also available as HTTP POST with the same endpoint
Get Adjustment List With Total Count
Required Group Role: "Adjustment" - "VIEW"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Adjustment/WithTotalCount \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"From": "2018-10-01",
"To": "2018-10-31",
"PageNumber": 1,
"PageSize": 10
}'
{ "Data": [ { … }, { … } ], "TotalCount": 100 }
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Adjustment/Workflow \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "Workflow": 1 }
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" }
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" }
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" }