Operations related to authentication tokens
Number that associated with a specific invoice issued to a customer which gets from invoice Marketplace channel. (Backwards Compatibility with property PurchaseOrderNumber)
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/SalesOrder \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "20.06.00001",
"Date": "2020-06-24",
"SalesPerson": "Sales 1",
"TaxType": "No Tax",
"Discount1": 0,
"Discount2": 0,
"DiscountAmount": 0,
"LogisticServiceCode": "JNE-R",
"ReferenceNumber": "TKPD-001",
"Customer": {
"Name": "Hendry Wijaya",
"Email": "Hendry@dealpos.com",
"Phone": "02165498468",
"Mobile": "081514515156",
"Code": "HW021"
},
"Variants": [
{
"Code": "200536",
"Quantity": "10",
"Price": "3500",
"Discount": 0,
"Note": "Item 1"
},
{
"Code": "1315L",
"Quantity": "10",
"Price": "4000",
"Discount": 0,
"Note": "Item 2"
}
]
}'
{ "ID": "21e0dbb6-f240-4bda-8f03-769362f88d10", "Number": "20.06.00001" }
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/SalesOrder \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "20.06.00001"
}'
{ "Message": "SalesOrder 21.02.00011 has been deleted" }
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/SalesOrder/ConvertInvoice \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "20.06.00001"
}'
{ "ID": "21e0dbb6-f240-4bda-8f03-769362f88d10", "Number": "20.06.00001" }
Also available as HTTP POST with the same endpoint
Required Group Role: "Orders" - "View"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/SalesOrder/GetByListNumber \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": [
"20.11.00003",
"20.11.00002",
"20.11.00001"
]
}'
[ { "Outlet": "Outlet1", "Date": "2020-11-05T00:00:00", "Number": "20.11.00003", "InvoicedState": "Complete", "DeliveryState": "Sent", "PaymentState": "Paid", "Bin": false }, { "Outlet": "Outlet1", "Date": "2020-11-05T00:00:00", "Number": "20.11.00002", "InvoicedState": "Complete", "DeliveryState": "Sent", "PaymentState": "Paid", "Bin": false }, { "Outlet": "Outlet1", "Date": "2020-11-05T00:00:00", "Number": "20.11.00001", "InvoicedState": "Complete", "DeliveryState": "Sent", "PaymentState": "Paid", "Bin": false } ]
Also available as HTTP POST with the same endpoint
Required Group Role: "Orders" - "View"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/SalesOrder/GetIDByNumber \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "20.11.00003"
}'
{ "ID": "90ad0fb6-0340-4254-90f5-15e213b95a82" }
Also available as HTTP POST with the same endpoint
Required Group Role: "Orders" - "View"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/SalesOrder/TotalCount \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": [
"Outlet1",
"Outlet2"
],
"Tag": [
"Tokopedia",
"Shopee"
]
}'
{ "Count": 550 }
Also available as HTTP POST with the same endpoint
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/SalesOrder/GetParked \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"From": "2021-01-01",
"To": "2021-01-31",
"PageNumber": 1,
"PageSize": 20,
"Outlet": [
"Outlet1",
"Outlet2"
],
"Tag": [
"Tokopedia",
"Shopee"
]
}'
[ { "ID": "21a4168b-d2b5-48e8-8d60-ff63cd5e30f6", "Outlet": "Outlet2", "Number": "21.01.00002", "Date": "2021-01-21T00:00:00", "Created": "2021-01-21T09:36:14.07", "Customer": "hendry", "Tag": "Tokopedia" }, { "ID": "21a4we8b-d995-48ty-8880-ff6abc5e30f6", "Outlet": "Outlet2", "Number": "21.01.00001", "Date": "2021-01-21T00:00:00", "Created": "2021-01-21T09:14:56.447", "Customer": "Tafta", "Tag": "Shopee" }, { "ID": "21yu169b-dio5-48e8-8pp0-ff63bh5e30f6", "Outlet": "Outlet1", "Number": "21.01.00093", "Date": "2021-01-07T00:00:00", "Created": "2021-01-07T16:18:30.837", "Customer": "Aldi", "Tag": "Tokopedia" }, { "ID": "21a41vvb-d2b5-4ve8-8ven-ff63cd5ev0f6", "Outlet": "Outlet1", "Number": "21.01.00092", "Date": "2021-01-07T00:00:00", "Created": "2021-01-07T16:13:27.2", "Customer": "Syakri", "Tag": "Tokopedia" } ]
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/SalesOrder/GetReferenceNumber \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ListID": [
"1e9c45af-9916-4131-a138-01ffd0ec1eba",
"0b9657f4-5e12-4d4a-89d6-c104a55c6c49"
]
}'
[ { "ID": "1e9c45af-9916-4131-a138-01ffd0ec1eba", "ReferenceNumber": "TKPD-001" }, { "ID": "0b9657f4-5e12-4d4a-89d6-c104a55c6c49", "ReferenceNumber": "TKPD-002" } ]
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/SalesOrder/GetNextNumber \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1"
}'
{ "Number": "B1.24.06.00013" }