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"