Operations related to authentication tokens
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Bill \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "05.23.2018.0001",
"Date": "2018-02-23",
"DueDate": "2018-08-25",
"TaxType": "PPN 10%",
"Discount1": 5,
"DiscountAmount": 10000,
"Note": "Test note Outlet1",
"Delivery": "Waiting",
"Supplier": {
"Name": "Supplier A",
"Email": "supplier@dealpos.com",
"Phone": "085741254",
"Address": "JL. Muara Karang Cantik Blok P3 Timur No. 30",
"Gender": "Male"
},
"Variants": [
{
"Code": "2005",
"Quantity": "10",
"Price": "102000",
"Discount": 10,
"Note": "Cotton Combet 30'\''s"
},
{
"Code": "2002",
"Quantity": "10",
"Price": "120000",
"Discount": 5,
"Note": "Denim Shirt(M)"
}
],
"Payments": [
{
"Date": "2018-02-23",
"Amount": "2150610",
"Method": "Cash"
}
]
}'
{ "ID": "410ba2b7-8eff-4759-b5f1-cf47b33ef1cc" }
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/Bill \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "05.23.2018.0001",
"Date": "2018-02-23",
"DueDate": "2018-08-25",
"TaxType": "PPN 10%",
"Discount1": 5,
"DiscountAmount": 10000,
"Note": "Test note Outlet1",
"Delivery": "Waiting",
"Supplier": {
"Name": "Supplier A",
"Email": "supplier@dealpos.com",
"Phone": "085741254",
"Address": "JL. Muara Karang Cantik Blok P3 Timur No. 30",
"Gender": "Male"
},
"Variants": [
{
"Code": "2005",
"Quantity": "10",
"Price": "102000",
"Discount": 10,
"Note": "Cotton Combet 30'\''s"
},
{
"Code": "2002",
"Quantity": "10",
"Price": "120000",
"Discount": 5,
"Note": "Denim Shirt(M)"
}
],
"Payments": [
{
"Date": "2018-02-23",
"Amount": "2150610",
"Method": "Cash"
}
]
}'
{ "ID": "410ba2b7-8eff-4759-b5f1-cf47b33ef1cc" }
Also available as HTTP POST (endpoint: /api/v3/Bill/p)
You must have "SupplierBill" role in "Orders" Module
The name of the outlet making a purchase order. This is primary key for the object
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Bill \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"From": "2020-06-01",
"To": "2020-06-30",
"Outlet": "Outlet1",
"PageNumber": 1,
"PageSize": 10
}'
[ { "ID": "d688ff9e-0671-456a-b6f0-223acaa5ee7b", "Outlet": "Outlet1", "Number": "20.06.00004", "Supplier": "hendry", "Type": 1, "Date": "2020-06-24T00:00:00", "Due": "2020-06-24T00:00:00", "Amount": 100000, "Delivery": "Received", "Payment": "Paid", "Created": "2020-06-24T13:36:12.97" }, { "ID": "ed6ffe55-f08e-4806-be1d-e55f3927e11b", "Outlet": "Outlet1", "Number": "20.06.00003", "Supplier": "PT ABC", "Type": 1, "Date": "2020-06-24T00:00:00", "Due": "2020-06-24T00:00:00", "Amount": 100000, "Delivery": "Received", "Payment": "Paid", "Created": "2020-06-24T11:40:27.703" }, { "ID": "8169eac5-c2a7-4845-8f96-0b5a8980957a", "Outlet": "Outlet1", "Number": "20.06.00002", "Supplier": "PT ABC", "Type": 1, "Date": "2020-06-24T00:00:00", "Due": "2020-06-24T00:00:00", "Amount": 100000, "Delivery": "Received", "Payment": "Paid", "Created": "2020-06-24T11:24:53.027" }, { "ID": "057a8d3f-3927-4d61-a533-cd554d2c01e8", "Outlet": "Outlet1", "Number": "OTL01-20-06-02", "Supplier": "PT ABC", "Type": 1, "Date": "2020-06-19T00:00:00", "Due": "2020-06-19T00:00:00", "Amount": 87289, "Delivery": "Received", "Payment": "Paid", "Created": "2020-06-19T14:13:13.817" }, { "ID": "1b5f9f1f-e836-4330-b79d-9e7737893a78", "Outlet": "Outlet1", "Number": "OTL01-20-06-01", "Supplier": "PT ABC", "Type": 1, "Date": "2020-06-08T00:00:00", "Due": "2020-06-08T00:00:00", "Amount": 3138, "Delivery": "Received", "Payment": "Paid", "Created": "2020-06-08T08:40:54.55" } ]
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/Bill \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "18.10.00009"
}'
{ "Message": "Supplier bill has been deleted!" }
Also available as HTTP POST with the same endpoint
You must have "SupplierBill" role in "Orders" Module