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

Get WriteOff Invoice by Number

Request

Get detail of Write Off Invoice by Number

Query
Outletstringrequired

Outlet Name

Numberstringrequired

Number of invoice which want to cancel write off

OutletIDstringrequired

Guid of Outlet ID

Bodyapplication/json
object
curl -i -X GET \
  'https://subdomain.dealpos.net/api/v3/WriteOff/Invoice/Number?Number=string&Outlet=string&OutletID=string' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{}'

Responses

Body
Numberstring

Number of Invoice

Example: "OLT1/22/12/0058"
Outletstring

Outlet Name

Example: "Outlet1"
Createdstring

Write off time created

Example: "2023-01-04T11:13:21.33"
CreatedBystring

User that write off the invoice

Example: "dealpos"
Amountinteger

Amount of write off payment

Example: 2000
Tagstring

Reason of WriteOff Invoice

Response
{ "Number": "OLT1/22/12/0058", "Outlet": "Outlet1", "Created": "2023-01-04T11:13:21.33", "CreatedBy": "dealpos", "Amount": 2000, "Reason": "Logistics" }

List WriteOff Invoice

Request

List of WriteOff Invoice can filter by date and outlet

Query
Fromstring(date)required

From Date (format: yyyy/mm/dd)

Example: From=2023-01-01
Tostring(date)

To Date (format: yyyy/mm/dd)

Example: To=2023-01-01
Outletstring

Outlet Name

Example: Outlet=Outlet1
OutletIDstring(uuid)

Guid of Outlet ID

Example: OutletID=123e4567-e89b-12d3-a456-426614174000
curl -i -X GET \
  'https://subdomain.dealpos.net/api/v3/WriteOff/Invoice?From=2019-08-24&Outlet=Outlet1&OutletID=497f6eca-6276-4993-bfeb-53cbbbba6f08&To=2019-08-24' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Bodyapplication/jsonArray [
Numberstring

Number of Invoice

Outletstring

Outlet Name

Customerstring

Customer's Name

Createdstring

Write off time created

CreatedBystring

User that write off the invoice

Amountinteger

Amount of write off payment

Tagstring

Reason of WriteOff Invoice

]
Response
application/json
[ { "Number": "OLT1/22/12/0059", "Outlet": "Outlet1", "Customer": "John", "Created": "2023-01-04T11:13:21.33", "CreatedBy": "dealpos", "Amount": 5000, "Type": "Logistics" }, { "Number": "OLT1/22/12/0058", "Outlet": "Outlet1", "Customer": "Jane", "Created": "2023-01-04T11:13:21.33", "CreatedBy": "dealpos", "Amount": 10000, "Type": "BadDebt" } ]

Update Write Off

Request

UpdateWrite Off Payment in Invoice. You must have "ADD" role in "Payment" Module

Bodyapplication/json
One of:
Datestring

Write Off date created (yyyy/mm/dd), if value is null it will be set to today

Outletstringrequired

Name of the outlet

Example: "Outlet1"
Numberstringrequired

Invoice number to be writed off

Example: "OLT1.02.01.23.004"
Tagstringrequired

Get from Write off list option

Notestring

Reason of write off

Example: "not paid"
curl -i -X PUT \
  https://subdomain.dealpos.net/api/v3/WriteOff/Invoice \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "date": "2024/02/28",
    "Outlet": "Outlet1",
    "Number": "OLT1.02.01.23.004",
    "Type": "logistic",
    "Note": "not paid"
  }'

Responses

OK

Bodyapplication/json
Messagestring
Example: "Your Invoice has been successfully Write Off"
Response
application/json
{ "Message": "Your Invoice has been successfully Write Off" }

Add Write Off

Request

Write Off Payment in Invoice. This API still backwards compatibility with Endpoint api/v3/Payment/Invoice/WriteOff.

You must have "ADD" role in "Payment" Module

Bodyapplication/json
One of:
Datestring

Write Off date created (yyyy/mm/dd), if value is null it will be set to today

Outletstringrequired

Name of the outlet

Example: "Outlet1"
Numberstringrequired

Invoice number to be writed off

Example: "OLT1.02.01.23.004"
Tagstringrequired

Get from Write off list option

Notestring

Reason of write off

Example: "not paid"
curl -i -X POST \
  https://subdomain.dealpos.net/api/v3/WriteOff/Invoice \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "date": "2024/02/28",
    "Outlet": "Outlet1",
    "Number": "OLT1.02.01.23.004",
    "Type": "logistic",
    "Note": "not paid"
  }'

Responses

OK

Bodyapplication/json
Messagestring
Example: "Your Invoice has been successfully Write Off"
Response
application/json
{ "Message": "Your Invoice has been successfully Write Off" }

Delete Write Off

Request

Delete WriteOff payment in Invoice

Query
Outletstringrequired

Outlet Name

Numberstringrequired

Number of invoice which want to cancel write off

OutletIDstringrequired

Guid of Outlet ID

curl -i -X DELETE \
  'https://subdomain.dealpos.net/api/v3/WriteOff/Invoice?Number=string&Outlet=string&OutletID=string' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

OK

Bodyapplication/json
Messagestring
Example: "Write Off Invoice Number [OLT1/22/12/0058] has been cancelled"
Response
application/json
{ "Message": "Write Off Invoice Number [OLT1/22/12/0058] has been cancelled" }