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

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

Get History by Email or Phone

Request

Also available as HTTP POST with the same endpoint


Get Loyalty Point History for a specific customer by Email, MobilePhone or Phone

Required Group Role: "Contacts" - "VIEW"

Bodyapplication/json
Fromstring

From Date

Tostring

To Date

PageNumbernumberrequired

The Page of data to be displayed

PageSizenumberrequired

The Number of rows returned by the API

Emailstring

Customer's email which will be used to pull the loyalty point history

MobilePhonestring

Customer's Mobile or Phone Number which will be used to pull the loyalty point history

curl -i -X GET \
  https://subdomain.dealpos.net/api/v3/LoyaltyPoint/EmailOrPhone \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "From": "2024-01-01",
    "To": "2024-12-31",
    "PageNumber": 1,
    "PageSize": 10,
    "Email": "customer@example.com",
    "MobilePhone": "1234567890"
  }'

Responses

Bodyapplication/jsonArray [
InvoiceIDstring

Invoice ID

Outletstring

Outlet Name

EntryDatestring

Date entry for transaction related to loyalty point (earned/redeemed)

Actionstring

The cause of change in loyalty point

Invoicestring

Invoice Number

Earnedinteger

Total Points earned/redeemed for the transaction

Balanceinteger

Total last points

Remaininginteger

Points will be / already expired

ExpiryDatestring

Point expired date

Notestring

Note for History Point

]
Response
application/json
[ { "InvoiceID": "c7224cbd-0292-4060-88f8-2f53f328f904", "Outlet": "Offline Store", "EntryDate": "2024-05-08T14:46:00.01", "Action": "Points Earned", "Invoice": "24.05.00041", "Earned": 50, "Balance": 60, "Remaining": 50, "ExpiryDate": "2024-06-08T14:44:37", "Note": "Paid" }, { "InvoiceID": "a6ca59c2-4dd8-48ef-8dd7-96ba6427c3f8", "Outlet": "Offline Store", "EntryDate": "2024-05-08T14:25:10.42", "Action": "Point Expired", "Invoice": "24.05.00039", "Earned": -990, "Balance": 10, "Remaining": 0, "ExpiryDate": "0001-01-01T00:00:00", "Note": "Expired on 08 May 2024" }, { "InvoiceID": "40c52cfe-6941-421b-b8cd-5cb71b705281", "Outlet": "Offline Store", "EntryDate": "2024-05-08T14:18:21.377", "Action": "Points Earned", "Invoice": "24.05.00040", "Earned": 10, "Balance": 1000, "Remaining": 10, "ExpiryDate": "2024-06-08T14:17:47", "Note": "Paid" }, { "InvoiceID": "6ccc6cc6-fc59-41bf-ae5a-8e2d81e1ff31", "Outlet": "Offline Store", "EntryDate": "2024-05-08T13:53:15.987", "Action": "Points Redeemed", "Invoice": "24.05.00037", "Earned": -10, "Balance": 990, "Remaining": 0, "ExpiryDate": "0001-01-01T00:00:00", "Note": "Points Redeemed" }, { "InvoiceID": "7eb83722-99e4-4fb9-a2db-103673ad258e", "Outlet": "Offline Store", "EntryDate": "2024-05-08T13:40:30.74", "Action": "Points Earned", "Invoice": "24.05.00036", "Earned": 1000, "Balance": 1000, "Remaining": 0, "ExpiryDate": "0001-01-01T00:00:00", "Note": "Points Earned" } ]

Get Loyalty Point Expiration By Email

Request

Get Loyalty Point Expiration for a specific customer by Email

Required Group Role: "Contacts" - "VIEW"

Bodyapplication/json
Emailstring

Customer's email which will be used to pull the loyalty point expiration date

curl -i -X GET \
  https://subdomain.dealpos.net/api/v3/LoyaltyPoint/ExpirationByEmail \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "Email": "ferdi@example.com"
  }'

Responses

Bodyapplication/jsonArray [
Pointsinteger

Total Points

ExpiryDatestring

Date of expiration point

]
Response
application/json
[ { "Points": 69, "ExpiryDate": "2023-01-31" }, { "Points": 70, "ExpiryDate": "2023-01-26" }, { "Points": 40, "ExpiryDate": "2023-01-24" } ]

Get Loyalty Point Expiration By Mobile Phone

Request

Get Loyalty Point Expiration for a specific customer by Mobile Phone

Required Group Role: "Contacts" - "VIEW"

Bodyapplication/json
MobilePhonestring

Customer's Mobile or Phone Number which will be used to pull the loyalty point expiration date

curl -i -X GET \
  https://subdomain.dealpos.net/api/v3/LoyaltyPoint/ExpirationByMobile \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "MobilePhone": "08968484805"
  }'

Responses

Bodyapplication/jsonArray [
Pointsinteger

Total Points

ExpiryDatestring

Date of expiration point

]
Response
application/json
[ { "Points": 69, "ExpiryDate": "2023-01-31" }, { "Points": 70, "ExpiryDate": "2023-01-26" }, { "Points": 40, "ExpiryDate": "2023-01-24" } ]

Add / Redeem Loyalty Point by Mobile

Request

Add / Redeem Loyalty Point Customer by Mobile

Bodyapplication/json
MobilePhonestringrequired

Customer mobile phone. This is primary key for the object

Example: "081251545454"
LoyaltyPointintegerrequired

The number of loyalty points you want to add / redeem

Example: 1000
Notestring

Note add loyalty point

Example: "Add loyalty point"
curl -i -X PUT \
  https://subdomain.dealpos.net/api/v3/LoyaltyPoint/Mobile \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "MobilePhone": "081251545454",
    "LoyaltyPoint": 1000,
    "Note": "Add loyalty point"
  }'

Responses

OK

Bodyapplication/json
Messagestring
Response
application/json
{ "Message": "Your loyalty point has been added by 100 points" }

Get Loyalty Point

Request

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


Get Loyalty Point History

Required Group Role: "Contacts" - "VIEW"

Bodyapplication/json
PageNumbernumberrequired

The page of data to be displayed

PageSizenumberrequired

The Number of rows returned by The API

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

Responses

Bodyapplication/jsonArray [
Namestring

Customer's Name

Codestring

Customer's member code

Emailstring

Customer's email

LoyaltyPointinteger

Customer's loyalty point

Timestampstring

Last transaction time related to loyalty point (earned/redeemed)

ExpiryDatestring

Loyalty point expired date

Redeemedinteger

Total of redeemed loyalty point

]
Response
application/json
[ { "Name": "John Doe", "Code": "ABC-001", "Email": "", "LoyaltyPoint": 25, "Timestamp": "2020-03-04T15:08:15.997", "ExpiryDate": "", "Redeemed": 8 }, { "Name": "Jane Doe", "Code": "ABC-002", "Email": "", "LoyaltyPoint": 15, "Timestamp": "2019-08-22T14:00:48.36", "ExpiryDate": "", "Redeemed": 5 }, { "Name": "Richard", "Code": "ABC-003", "Email": "", "LoyaltyPoint": 100, "Timestamp": "2020-02-18T16:53:58.697", "ExpiryDate": "", "Redeemed": 50 } ]

Add / Redeem Loyalty Point By Email

Request

Add / Redeem Loyalty Point Customer by Email

Bodyapplication/json
Emailstringrequired

Customer email address. This is primary key for the object

LoyaltyPointintegerrequired

The number of loyalty points you want to add / redeem

Notestring

Note add loyalty point

curl -i -X PUT \
  https://subdomain.dealpos.net/api/v3/LoyaltyPoint \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "Email": "riyan@gmail.com",
    "LoyaltyPoint": 100,
    "Note": "Adding loyalty points for promotion"
  }'

Responses

Successful response

Bodyapplication/json
Messagestring

Description of loyalty point action

Response
application/json
{ "Message": "Your loyalty point has been added by 100 points" }

Get Total Earn and Redeem Loyalty Point

Request

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


Get total Earn and Redeem Loyalty Point according period define

Required Group Role: "Contacts" - "VIEW"

Bodyapplication/json
Fromstring
Example: "2023-01-01"
Tostring
Example: "2023-01-31"
Emailstring
Example: "hendry@dealpos.com"
MobilePhonestring
Example: "081231234546"
curl -i -X GET \
  https://subdomain.dealpos.net/api/v3/LoyaltyPoint/EarnAndRedeem \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "From": "2023-01-01",
    "To": "2023-01-31",
    "Email": "hendry@dealpos.com",
    "MobilePhone": "081231234546"
  }'

Responses

Bodyapplication/json
Earninteger
Redeeminteger
Response
application/json
{ "Earn": 100, "Redeem": -28 }

Get Loyalty Point With Total Count

Request

Also available as HTTP POST with the same endpoint


Get Loyalty Point With Total Count

Required Group Role: "Contacts" - "VIEW"

Bodyapplication/json
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/LoyaltyPoint/WithTotalCount \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "PageNumber": 1,
    "PageSize": 20
  }'

Responses

Bodyapplication/json
DataArray of objects
TotalCountinteger

Total count of the result

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

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