Operations related to authentication tokens
DealPOS API (3.1.0)
Number that associated with a specific invoice issued to a customer which gets from invoice Marketplace channel. (Backwards Compatibility with property PurchaseOrderNumber)
- Production Serverhttps://subdomain.dealpos.net/api/v3/SalesOrder
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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",
"Register": "Cashier 1",
"Number": "20.06.00001",
"Date": "2020-06-24",
"Tag": "Tokopedia",
"SalesPerson": "Sales 1",
"TaxType": "No Tax",
"Discount1": 0,
"Discount2": 0,
"DiscountAmount": 0,
"OrderNote": "Order from Omnichannel",
"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" }
- Production Serverhttps://subdomain.dealpos.net/api/v3/SalesOrder
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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" }
- Production Serverhttps://subdomain.dealpos.net/api/v3/SalesOrder/ConvertInvoice
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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" }
Request
Update the fields (Reference Number, Logistic Service Code, Note) of an existing Sales Order.
You must have "Edit" role in "Sell" Module OR "EDIT" role in "Global" Module
POS Condition
The system sets the fulfillment state to
AWAITING_COLLECTIONwhen a payload containing"Fulfillment": "AwaitingCollection"is received.A transition to
AWAITING_COLLECTIONoccurs only if the current fulfillment state isUNSENTor any earlier state.When duplicate updates are received, the existing fulfillment state remains unchanged. Metadata fields (
ReferenceNumberand/orLogisticServiceCode) are updated only when new values are provided.
Channel Service Condition
"Fulfillment": "AwaitingCollection"is emitted to the Channel Service only when at least one of the following fields is included:ReferenceNumberLogisticServiceCode
Number related to this Order ex: logistic tracking_number or purchase_order number (If this property is null or empty, it will not update the Reference Number)
Code of the logistic service (if this property is null or empty, it will not update the Logistic Service Code)
Sales Order Note (if this property is null or empty, it will not update the Note)
- Production Serverhttps://subdomain.dealpos.net/api/v3/SalesOrder/Field
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/SalesOrder/Field \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'IgnoreFulfillment: true' \
-d '{
"Outlet": "Outlet1",
"Number": "20.06.00001",
"ReferenceNumber": "TKPD-001",
"LogisticServiceCode": "JNE123",
"Note": "This is a note for Sales Order",
"Fulfillment": "AwaitingCollection"
}'{ "Message": "reference number for sales order 20.06.00001 has been updated" }
Request
Also available as HTTP POST with the same endpoint
Get Sales Order List based on Number
Required Group Role: "Orders" - "View"
- Production Serverhttps://subdomain.dealpos.net/api/v3/SalesOrder/GetByListNumber
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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"
]
}'[ { "ID": "d5f8e8b3-1c4e-4f7a-9f3a-2b8e5d6c7a9b", "Outlet": "Outlet1", "Date": "2020-11-05T00:00:00", "Number": "20.11.00003", "ReferenceNumber": "JX2020110500001", "InvoicedState": "Complete", "DeliveryState": "Sent", "PaymentState": "Paid", "Bin": false }, { "ID": "a3c9e7b2-2d4f-4e8b-8f3b-3c9e6d7e8b0c", "Outlet": "Outlet1", "Date": "2020-11-05T00:00:00", "Number": "20.11.00002", "ReferenceNumber": "JX2020110500002", "InvoicedState": "Complete", "DeliveryState": "Sent", "PaymentState": "Paid", "Bin": false }, { "ID": "b4d0f9c3-3e5f-4f9c-9f4c-4d0f7e8f9c1d", "Outlet": "Outlet1", "Date": "2020-11-05T00:00:00", "Number": "20.11.00001", "ReferenceNumber": "JX2020110500003", "InvoicedState": "Complete", "DeliveryState": "Sent", "PaymentState": "Paid", "Bin": false } ]
Request
Also available as HTTP POST with the same endpoint
Get Sales Order ID by Number
Required Group Role: "Orders" - "View"
- Production Serverhttps://subdomain.dealpos.net/api/v3/SalesOrder/GetIDByNumber
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/SalesOrder/GetIDByNumber?Outlet=Outlet1&Number=20.11.00003' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "20.11.00003"
}'{ "ID": "90ad0fb6-0340-4254-90f5-15e213b95a82" }
Request
Also available as HTTP POST with the same endpoint
Get Sales Order Total Count based on selected outlet(s).
Required Group Role: "Orders" - "View"
- Production Serverhttps://subdomain.dealpos.net/api/v3/SalesOrder/TotalCount
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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 }
Request
Also available as HTTP POST with the same endpoint
Get Parked Order List with multiple outlet
- Production Serverhttps://subdomain.dealpos.net/api/v3/SalesOrder/GetParked
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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" } ]
- Production Serverhttps://subdomain.dealpos.net/api/v3/SalesOrder/GetReferenceNumber
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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" } ]
- Production Serverhttps://subdomain.dealpos.net/api/v3/SalesOrder/GetNextNumber
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/SalesOrder/GetNextNumber?Outlet=Outlet1' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "Number": "B1.24.06.00013" }