DealPOS API (3.1.0)

Welcome Developer

This page lists the reference documentation for DealPOS APIs. For guides and tutorials.

Download OpenAPI description
Overview
URL https://www.dealpos.com
Customer Support info@dealpos.com
License
Languages
Servers
Production Server
https://{subdomain}/api/v3/

Token

Operations related to authentication tokens

Operations

Category

Operations related to category, including create, get, etc

Operations

Product

Operations related to product, including create, get, etc

Operations

Variant

Operations related to variant, including create, get, etc

Operations

Serial

Operation related to Serial product type

Operations

Estimate

Operations related to estimate, including create, get, etc

Operations

Sales Order

Operations related to sales order, including create, get, etc

Operations

Invoice

Operations related to invoice, including create, get, etc

Operations

Shift

Operation related to shift, including create, get, etc

Operations

Report

Operations related to report page, including create, get, etc

Operations

Customer

Operations related to customer data, including create, get, etc

Operations

Comment

Operations related to comment (Contact Feedback), including create, get, etc

Operations

Supplier

Operations related to supplier data, including create, get, etc

Operations

Invoice Payment

Operations related to invoice payment, including create, get, etc

Operations

Bill Payment

Operations related to bill payment, including create, get, etc

Operations

Invoice Write Off

Operations related to invoice write off, including create, get, etc

Operations

Inventory

Operations related to inventory, including create, get, etc

Operations

Inventory Log

Operations related to inventory log, including create, get, etc

Operations

Inventory Adjustment

Operations related to inventory adjustment, including create, get, etc

Operations

Bill

Operations related to bill, including create, get, etc

Operations

OutboundLogistic

Operations related to outbound logistic, including create, get, etc

Operations

InboundLogistic

Operations related to inbound logistic, including create, get, etc

Operations

TransferOrder

Operations related to transfer order, including create, get, etc

Operations

Create TransferOrder

Request

Previous Endpoint: /api/v3/OutletDelivery. As for now, both the new & the old ones can be use.

Create an Outlet Delivery

You must have "CREATE" role in "Logistic" Module

Bodyapplication/json
One of:
Outletstringrequired

Outlet Source Name

Example: "Outlet1"
Destinationstringrequired

Outlet destination name

Example: "Outlet2"
Datestringrequired

Transfer order date

Example: "10/10/2018"
Numberstringrequired

Transfer order number

Example: "18.07.02.0000002"
Courierstring

Courier name

Example: "JNE"
Statestring

Delivery Status of Transfer Order

  • If "State" is filled, the value gets from API push
  • When "State" is empty, the value will be following config Transfer Order Workflow
Enum"Approved""Dispatched""Received"
Notestring

Delivery note

Example: "Yes Kirim"
VariantsArray of objectsrequired
Example: [{"Code":"2012","Quantity":"6","Price":150000,"Note":"Cotton Combet 30's"},{"Code":"2012","Quantity":"6","Price":150000,"Note":"Cotton Combet 30's"}]
Variants[].​Codestringrequired

Variant code

Variants[].​Quantitystringrequired

Variant quantity to be sent

Variants[].​Pricenumberrequired

Variant price

Variants[].​Notestring

Variant note

Variants[].​SerialArray of objects(Variant Serial)

Use this property only for product type Serialized

curl -i -X POST \
  https://subdomain.dealpos.net/api/v3/TransferOrder \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "Outlet": "Outlet1",
    "Destination": "Outlet2",
    "Date": "10/10/2018",
    "Number": "18.07.02.0000002",
    "Courier": "JNE",
    "Note": "Yes Kirim",
    "Variants": [
      {
        "Code": "2012",
        "Quantity": "6",
        "Price": 150000,
        "Note": "Cotton Combet 30'\''s"
      },
      {
        "Code": "2012",
        "Quantity": "6",
        "Price": 150000,
        "Note": "Cotton Combet 30'\''s"
      }
    ]
  }'

Responses

Bodyapplication/json
IDstring

Transfer Order ID

Response
application/json
{ "ID": "0b151d3f-e7ab-44dd-a63a-dbc4019d5cad" }

Update TransferOrder

Request

Previous Endpoint: /api/v3/OutletDelivery. As for now, both the new & the old ones can be use.

Update an Outlet Delivery

You must have "EDIT" role in "Logistic" Module OR "EDIT" role in "Global" Module

Bodyapplication/json
One of:
Outletstringrequired

Outlet source name

Example: "Outlet1"
Destinationstringrequired

Outlet destination name

Example: "Outlet2"
Datestringrequired

Delivery date

Example: "10/10/2018"
Numberstringrequired

Invoice delivery number

Example: "18.07.02.0000002"
Courierstring

Courier name

Example: "JNE"
Notestring

Delivery note

Example: "Yes Kirim"
VariantsArray of objectsrequired
Example: [{"Code":"2012","Quantity":"6","Price":150000,"Note":"Cotton Combet 30's"},{"Code":"2012","Quantity":"6","Price":150000,"Note":"Cotton Combet 30's"}]
Variants[].​Codestringrequired

Variant code

Variants[].​Quantitystringrequired

Variant quantity to be delivered

Variants[].​Pricenumberrequired

Variant price

Variants[].​Notestring

Variant note

curl -i -X PUT \
  https://subdomain.dealpos.net/api/v3/TransferOrder \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "Outlet": "Outlet1",
    "Destination": "Outlet2",
    "Date": "10/10/2018",
    "Number": "18.07.02.0000002",
    "Courier": "JNE",
    "Note": "Yes Kirim",
    "Variants": [
      {
        "Code": "2012",
        "Quantity": "6",
        "Price": 150000,
        "Note": "Cotton Combet 30'\''s"
      },
      {
        "Code": "2012",
        "Quantity": "6",
        "Price": 150000,
        "Note": "Cotton Combet 30'\''s"
      }
    ]
  }'

Responses

Bodyapplication/json
IDstring

Transfer Order ID

Response
application/json
{ "ID": "0b151d3f-e7ab-44dd-a63a-dbc4019d5cad" }

List TransferOrder

Request

Previous Endpoint: /api/v3/OutletDelivery. As for now, both the new & the old ones can be use.

Also available as HTTP POST (endpoint: /api/v3/OutletDelivery/p)


Get List of Outlet Delivery

Required Group Role: "Logistic" - "VIEW"

Bodyapplication/json
Fromstring

Delivery date filter from

Example: "2019-01-01"
Tostring

Delivery Date filter To

Example: "2019-01-30"
PageNumbernumberrequired

Start page

Example: 1
PageSizenumberrequired

Total data delivery list that will be shown

Example: 20
Statusstring

Fulfillment Status (if value null / blank means show all status)

Example: "Request / Approved / Dispatched / Received"
curl -i -X GET \
  https://subdomain.dealpos.net/api/v3/TransferOrder \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "From": "2019-01-01",
    "To": "2019-01-30",
    "PageNumber": 1,
    "PageSize": 20,
    "Status": ""
  }'

Responses

Bodyapplication/jsonArray [
Numberstring

Outlet Delivery Order Number

Datestring

Date time of outlet delivery

Courierstring

Courier Name

Outletstring

Source of outlet delivery

OutletCodestring

Code of source outlet delivery

Destinationstring

Destination of outlet delivery

DestinationCodestring

Code of destination outlet delivery

TypeNamestring

Outlet Delivery Type

Statusstring

Outlet delivery status

Createdstring

Datetime of outlet delivery order

Quantityinteger

Total quantity outlet delivery order

Pricenumber

Total price for the outlet delivery

]
Response
application/json
[ { "Number": "19.01.18.000000002", "Date": "2019-01-18T00:00:00", "Courier": "JsonSerializerOptions", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-18T15:14:48.64", "Quantity": 2 }, { "Number": "19.01.18.000000001", "Date": "2019-01-18T00:00:00", "Courier": "JsonSerializerOptions", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Dispatched", "Created": "2019-01-18T15:13:27.377", "Quantity": 2 }, { "Number": "19.01.17.000000005", "Date": "2019-01-17T00:00:00", "Courier": "JNI", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-17T16:48:30.813", "Quantity": 8 }, { "Number": "19.01.17.000000004", "Date": "2019-01-17T00:00:00", "Courier": "JNI", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Dispatched", "Created": "2019-01-17T16:47:09.893", "Quantity": 5 }, { "Number": "19.01.17.000000003", "Date": "2019-01-17T00:00:00", "Courier": "JNI", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-17T13:59:16.77", "Quantity": 1 }, { "Number": "19.01.17.000000001", "Date": "2019-01-17T00:00:00", "Courier": "JNI", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-17T10:08:34.61", "Quantity": 1 }, { "Number": "19.01.17.000000002", "Date": "2019-01-17T00:00:00", "Courier": "JNI", "Outlet": "Outlet 2", "OutletCode": "OT2", "Destination": "Outlet 3", "DestinationCode": "OT3", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-17T15:57:50.71", "Quantity": 7 }, { "Number": "19.01.17.000000001", "Date": "2019-01-17T00:00:00", "Courier": "JNI", "Outlet": "Outlet 2", "OutletCode": "OT2", "Destination": "Outlet 3", "DestinationCode": "OT3", "TypeName": "Restock", "Status": "Dispatched", "Created": "2019-01-17T15:49:20.533", "Quantity": 7 }, { "Number": "19.01.15.000000004", "Date": "2019-01-15T00:00:00", "Courier": "JNI", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-15T11:15:57.027", "Quantity": 3 }, { "Number": "19.01.15.000000003", "Date": "2019-01-15T00:00:00", "Courier": "JNI", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-15T11:14:21.953", "Quantity": 7 }, { "Number": "19.01.15.000000002", "Date": "2019-01-15T00:00:00", "Courier": "JNI", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-15T11:07:44.59", "Quantity": 3 }, { "Number": "19.01.15.000000001", "Date": "2019-01-15T00:00:00", "Courier": "JNI", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-15T10:43:41.89", "Quantity": 2 }, { "Number": "19.01.14.000000001", "Date": "2019-01-14T00:00:00", "Courier": "JNI", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-14T16:08:48.027", "Quantity": 10 } ]

Delete TransferOrder

Request

Previous Endpoint: /api/v3/OutletDelivery. As for now, both the new & the old ones can be use.

Delete Outlet Delivery

You must have "DELETE" role in "Logistic" Module

Bodyapplication/json
OutletSourcestringrequired

Outlet source name

Numberstringrequired

Delivery number

curl -i -X DELETE \
  https://subdomain.dealpos.net/api/v3/TransferOrder \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "OutletSource": "Outlet1",
    "Number": "18.07.02.0000002"
  }'

Responses

Bodyapplication/json
string

Delivery has been deleted

Response
application/json
"Number 18.07.02.0000002 from source Test2 succesfully deleted."

Get TransferOrder by Number

Request

Previous Endpoint: /api/v3/OutletDelivery/Detail. As for now, both the new & the old ones can be use.

Also available as HTTP POST with the same endpoint


Get Outlet Delivery detail

Required Group Role: "Logistic" - "VIEW"

Bodyapplication/json
Outletstringrequired

Outlet source name

Numberstringrequired

Delivery number

curl -i -X GET \
  https://subdomain.dealpos.net/api/v3/TransferOrder/Detail \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "Outlet": "Outlet1",
    "Number": "18.07.02.0000002"
  }'

Responses

Bodyapplication/json
Numberstring

Outlet Delivery number

Datestring

Outlet Delivery Date

Outletstring

Source of outlet delivery

OutletCodestring

Code of source outlet delivery

Destinationstring

Destination of outlet delivery

DestinationCodestring

Code of destination outlet delivery

Courierstring

Courier Name

TypeNamestring

Outlet Delivery Type

StateLabelstring

Outlet Delivery status

CreatedNamestring

User Creator of outlet delivery order

Notestring

Outlet delivery note

VariantsArray of objects
Totalobject
Deliveryobject
Response
application/json
{ "Number": "19.01.18.000000002", "Date": "2019-01-18T00:00:00", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "Courier": "JNE", "TypeName": "Restock", "StateLabel": "Received", "CreatedName": "Sys DealPOS", "Note": "Paid", "Variants": [ { … } ], "Total": { "Quantity": 2, "Total": 7000 }, "Delivery": { "ReceivedNote": "Good quality", "ReceivedDate": "2019-01-24T15:04:29.01", "ReceivedBy": "Sys DealPOS" } }

Update Status TransferOrder

Request

Update Status Delivery

You must have "EDIT" role in "Delivery" Module OR "EDIT" role in "Global" Module

Bodyapplication/json
Outletstringrequired

Outlet source name

Numberstringrequired

Deliver number

Statestringrequired

Transfer Order Status

Enum"Approved""Dispatched""Received"
curl -i -X PUT \
  https://subdomain.dealpos.net/api/v3/TransferOrder/UpdateStatus \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "Outlet": "Outlet1",
    "Number": "DO.0001",
    "State": "Dispatched"
  }'

Responses

Bodyapplication/json
Messagestring
Response
application/json
{ "Message": "Outlet Delivery status has been updated" }

List TransferOrder With Total Count

Request

Previous Endpoint: /api/v3/OutletDelivery/WithTotalCount. As for now, both the new & the old ones can be use.

Also available as HTTP POST with the same endpoint


Get list of Outlet Delivery with Total Count

Required Group Role: "Logistic" - "VIEW"

Bodyapplication/json
Fromstring

From Date (format: yyyy-mm-dd)

Tostring

To Date (format: yyyy-mm-dd)

PageNumbernumberrequired

The number of page data to be displayed

PageSizenumberrequired

The number of rows returned by the API

curl -i -X GET \
  https://subdomain.dealpos.net/api/v3/TransferOrder/WithTotalCount \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "From": "2019-01-01",
    "To": "2019-01-30",
    "PageNumber": 1,
    "PageSize": 20
  }'

Responses

Bodyapplication/json
DataArray of objects
TotalCountinteger

Total count of the result

Response
application/json
{ "Data": [ { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … } ], "TotalCount": 100 }

Fulfillment

Operations related to fulfillment, including create, get, etc

Operations

Prepaid Package

Operations related to prepaid package, including create, get, etc

Operations

Promotion Coupon

Operations related to promotion coupon, including create, get, etc

Operations

Promotion Event

Operations related to promotion event, including create, get, etc

Operations

Outlet

Operations related to outlet, including create, get, etc

Operations

Outlet Price

Operations related to outlet price, including create, get, etc

Operations

Loyalty Point

Operations related to loyalty point, including create, get, etc

Operations

Notification

Operations related to notification, including create, get, etc

Operations

Payment Method

Operations related to payment method, including create, get, etc

Operations

Invoice Write Off Option

Operations related to invoice write off option, including create, get, etc

Operations

Tax

Operations related to tax, including create, get, etc

Operations

Expense

Operations related to get expense

Operations

Logistics Service

Operations related to logistics service, including create, get, etc

Operations

Park Order Display

Operations related to parked order display, including create, get, etc

Operations

Midtrans Payment Gateway

Operations related to Midtrans Payment Gateway, including create, get, etc

Operations

Apps

Operations related to Apps, including create, get, etc

Operations

Barcode

Operations related to barcode, including create, get, etc

Operations

Client Secret

Operations related to client secret, including create, get, etc

Operations

Rate Limit

Operations related to rate limit, including create, get, etc

Operations

Deprecated API

Operations