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

List Promotion Coupons

Request

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


Get List of Promotion Coupons

Required Group Role: "Promotion" - "VIEW"

Bodyapplication/json
One of:
Fromstring

Start date of Created Promotion Coupon

Example: "2019-12-01T00:00:00"
Tostring

To date of Created Promotion Coupon

Example: "2019-12-19T00:00:00"
Typestring

Type of promotion coupon

Enum"DiscountPercentage""DiscountAmount""ParkedDeletion""Return""FullAccess"
Example: "DiscountPercentage"
UsageStatusstring

Status Coupon usage (If value null it will show only Active Coupon)

Enum"Active""Used""Expired""All"
Example: "Active"
PageNumbernumberrequired

The number of page data to be displayed

Example: 1
PageSizenumberrequired

The number of rows returned by the API

Example: 10
CustomerCodestring

The customer code that assigned to the coupon

Codestring

Promotion coupon code

Example: "Disc99"
curl -i -X GET \
  https://subdomain.dealpos.net/api/v3/PromotionCoupon \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "From": "2019-12-01T00:00:00",
    "To": "2019-12-19T00:00:00",
    "Type": "DiscountPercentage",
    "UsageStatus": "Active",
    "PageNumber": 1,
    "PageSize": 10,
    "Code": "Disc99"
  }'

Responses

Bodyapplication/jsonArray [
Codestring

Promotion Coupon Code

Limitinteger

the usage limit of the promotion coupon key

Balanceinteger

Remaining balance of the promotion coupon key

Discountinteger

the discount applied of the promotion coupon

Createdstring

the promotion coupon created time

StartDatestring

Started Date of Promotion Coupon

ExpiryDatestring

the promotion coupon expiry date

Typestring

the promotion coupon discount type

Descriptionstring

Description of promotion coupon

CustomerCodestring

Code of Customer (Member Code)

]
Response
application/json
[ { "Code": "Disc99", "Limit": 5, "Balance": 5, "Discount": 99, "Created": "2019-12-17T14:58:15.447", "StartDate": "2019-12-01T00:00:00", "ExpiryDate": "2019-12-19T00:00:00", "Type": "Discount", "Description": "Discount percentage 99%", "CustomerCode": "DP-001" }, { "Code": "Disc100", "Limit": 5, "Balance": 5, "Discount": 100000, "Created": "2019-12-17T14:58:15.447", "StartDate": "2019-12-01T00:00:00", "ExpiryDate": "2019-12-19T00:00:00", "Type": "DiscountAmount", "Description": "Discount amount 100k", "CustomerCode": "DP-001" } ]

Create a Promotion Coupon

Request

Create new promotion coupon

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

Bodyapplication/json
One of:
Codestringrequired

Promotion coupon code

Example: "Disc99"
Limitintegerrequired

limit the promotion coupon can be used

Example: 5
Discountintegerrequired

Number of percentage or amount that given from promotion coupon (Only take effect for type Discount Percentage or Discount Amount)

Example: 99
MinimumAmountnumberrequired

Minimum spending amount that allow to use the coupon code. Only for Type DiscountAmount and DiscountPercentage.

Example: 100000
FullPriceItemOnlyboolean

Only use if DiscountType Percentage. If set to "true", coupon discounts apply to regular-priced products

Default false
Example: "No"
MaximumDiscountnumber

Only use if DiscountType Percentage. The maximum discount amount achievable with this coupon

Example: 100000
ExpiryDatestringrequired

expiration date of promotion coupon

Example: "2019-11-18"
StartDatestring

Start date of promotion coupon

Descriptionstring

Promotion coupon description

Example: "Discount percentage 99%"
Typestringrequired

Type of promotion coupon

Enum"DiscountPercentage""DiscountAmount""Return""ParkedDeletion""FullAccess"
Example: "DiscountPercentage"
CustomerCodestring

This Associate coupon with Code of Customer (Member Code).

CustomerIDstring

ID of the customer assigned to this Coupon. Restrict coupon usage by attaching the ID of the Customer.

ReferenceIDstring

InvoiceID (need to be Unique)

curl -i -X POST \
  https://subdomain.dealpos.net/api/v3/PromotionCoupon \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "Code": "Disc99",
    "Limit": 5,
    "Discount": 99,
    "MinimumAmount": 100000,
    "FullPriceItemOnly": "No",
    "MaximumDiscount": 100000,
    "ExpiryDate": "2019-11-18",
    "Description": "Discount percentage 99%",
    "Type": "DiscountPercentage"
  }'

Responses

Bodyapplication/json
IDstring

the Promotion Coupon has been created

Response
application/json
{ "ID": "c0472252-57ad-47dd-9aa7-f61129e88831" }

Delete a Promotion Coupon

Request

Delete Promotion by Code

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

Bodyapplication/json
Codestringrequired

Key of promotion coupon

Example: "Disc99"
curl -i -X DELETE \
  https://subdomain.dealpos.net/api/v3/PromotionCoupon \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "Code": "Disc99"
  }'

Responses

Bodyapplication/json
Messagestring
Response
application/json
{ "Message": "Coupon has been delete!" }

List Promotion Coupons With Total Count

Request

Also available as HTTP POST with the same endpoint
Get List of Promotion Coupons

Required Group Role: "Promotion" - "VIEW"

Bodyapplication/json
Fromstringrequired

From date

Example: "2019-12-17"
Tostringrequired

to date

Example: "2019-12-19"
Typestring

Type of promotion coupon

Enum"Discount""DiscountAmount""ParkedDeletion""Return""FullAccess"
Example: "Discount"
PageNumbernumber

The number of page data to be displayed

Example: 1
PageSizenumber

The number of rows returned by the API

Example: 10
curl -i -X GET \
  https://subdomain.dealpos.net/api/v3/PromotionCoupon/WithTotalCount \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "From": "2019-12-17",
    "To": "2019-12-19",
    "Type": "Discount",
    "PageNumber": 1,
    "PageSize": 10
  }'

Responses

Bodyapplication/json
DataArray of objects
TotalCountinteger

Total Count of the result

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

Get Promotion Coupon by Code

Request

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


Get Promotion Coupon Detail by Coupon Code

Required Group Role: "Promotion" - "VIEW"

Bodyapplication/json

The payload request that users should input

Codestringrequired

Promotion Coupon Code

Example: "889977"
curl -i -X GET \
  https://subdomain.dealpos.net/api/v3/PromotionCoupon/ByCode \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "Code": "889977"
  }'

Responses

The payload response that users will get.

Bodyapplication/json
Codestring

Coupon code

Example: "889977"
Limitinteger

Coupon limit

Example: 10
Balanceinteger

Coupon balance

Example: 5
Discountinteger

Coupon discount

Example: 10
Createdstring

Coupon created time

Example: "2019-12-17T14:58:15.447"
StartDatestring

Coupon start time

Example: "2019-12-17T14:58:15.447"
ExpiryDatestring

Coupon expiry time

Example: "2019-12-19T00:00:00"
Typestring

Coupon type

Example: "Discount"
Descriptionstring

Coupon description

Example: "Discount percentage 99%"
CustomerCodestring

The customer code that assigned to the coupon

Example: "CUST001"
Response
application/json
{ "Code": "889977", "Limit": 10, "Balance": 5, "Discount": 10, "Created": "2019-12-17T14:58:15.447", "StartDate": "2019-12-17T14:58:15.447", "ExpiryDate": "2019-12-19T00:00:00", "Type": "Discount", "Description": "Discount percentage 99%", "CustomerCode": "CUST001" }

Delete Promotion Coupon List

Request

Bulk Delete Promotion by Promotion Coupon Key. Please use NEW LINE as the separator.

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

Bodyapplication/json

Please use NEW LINE as the separator

Array [
string
]
curl -i -X DELETE \
  https://subdomain.dealpos.net/api/v3/PromotionCoupon/ListCode \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '[
    "Coupon001",
    "Coupon002"
  ]'

Responses

Bodyapplication/json
Messagestring
Example: "2 Coupon Key has been deleted successfully!"
Response
application/json
{ "Message": "2 Coupon Key has been deleted successfully!" }

Get Promotion Coupon By Reference ID

Request

Get Promotion Coupon Detail by ReferenceI Required Group Role: "Promotion" - "VIEW"

Query
ReferenceIDstring

Invoice ID

curl -i -X GET \
  'https://subdomain.dealpos.net/api/v3/PromotionCoupon/ByReferenceID?ReferenceID=string' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

OK

Bodyapplication/json
Codestring

Coupon Code

Example: "889977"
Limitinteger

Coupon Limit

Example: 5
Balanceinteger

Coupon Balance

Example: 5
Discountinteger

Coupon Discount

Example: 99
Createdstring

Coupon Created Time

Example: "2019-12-17T14:58:15.447"
StartDatestring

Coupon Start Time

Example: "2019-12-01T00:00:00"
ExpiryDatestring

Coupon Expired Time

Example: "2019-12-19T00:00:00"
Typestring

Coupon Type

Example: "Discount"
Descriptionstring

Coupon Description

Example: "Discount percentage 99%"
CustomerCodestring

The customer code that assigned to the coupon

Example: "DP-001"
Response
application/json
{ "Code": "889977", "Limit": 5, "Balance": 5, "Discount": 99, "Created": "2019-12-17T14:58:15.447", "StartDate": "2019-12-01T00:00:00", "ExpiryDate": "2019-12-19T00:00:00", "Type": "Discount", "Description": "Discount percentage 99%", "CustomerCode": "DP-001" }

Promotion Event

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

Operations

Outlet

Operations related to outlet, including create, get, etc

Operations

User

Operations related to user, 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