Operations related to authentication tokens
/
Received by Outlet
DealPOS API (3.1.0)
Download OpenAPI description
Overview
URL
Customer Support
Languages
Servers
Production Server
https://{subdomain}/
- Production Serverhttps://subdomain.dealpos.net/api/v3/Payment/Invoice
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Payment/Invoice?From=2023-01-01&To=2023-01-31' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
[ { "Outlet": "Outlet1", "Payments": [ … ] }, { "Outlet": "Outlet2", "Payments": [ … ] } ]
Bodyapplication/json
One of:
Example: [{"Date":"2023-01-01","Amount":80000,"BuyerPaidAmount":100000,"Method":"Cash","Note":""},{"Date":"2023-01-01","Amount":100000,"BuyerPaidAmount":100000,"Method":"Debit - Outlet Outlet1","Note":""}]
- Production Serverhttps://subdomain.dealpos.net/api/v3/Payment/Invoice
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Payment/Invoice \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "20.04.00019",
"Payments": [
{
"Date": "2023-01-01",
"Amount": 80000,
"BuyerPaidAmount": 100000,
"Method": "Cash",
"Note": ""
},
{
"Date": "2023-01-01",
"Amount": 100000,
"BuyerPaidAmount": 100000,
"Method": "Debit - Outlet Outlet1",
"Note": ""
}
]
}'Response
application/json
{ "Message": "Invoice Number 20.04.00019 has successfully completed a Paid" }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Payment/Invoice
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/Payment/Invoice \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "21.10.00001"
}'Response
application/json
{ "Message": "Invoice Number .21.10.00001 has successfully deleted" }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Payment/Invoice/Detail/ID
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Payment/Invoice/Detail/ID?ID=f2296e61-e405-4884-9e54-55f14a91748b' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "Outlet": "Outlet1", "Number": "Invoice001", "InvoiceID": "f2296e61-e405-4884-9e54-55f14a91748b", "Method": "Cash", "Amount": 100000, "Date": "2024-01-01T12:00:00Z" }
Request
StateFilter, will be changed into UnpaidValidation in the upcoming update, the old one will remain works.
This endpoint is a fractions from API/V3/Payment/Invoice. In This endpoint, you will not need to fill the exact payment amount in order to fill the entire payments (fully paid). You will only need to fill the Amount to 0 (zero). Please see the request example attached.
You must have "ADD" role in "Payment" Module OR "EDIT" role in "Global" Module
Security
OAuth2_clientCredentials
One of:
- Production Serverhttps://subdomain.dealpos.net/api/v3/Payment/Invoice/AddPaymentFull
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Payment/Invoice/AddPaymentFull \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Number": "20.04.00019",
"Outlet": "Outlet Name",
"Payments": [
{
"Date": "2020-04-01",
"Amount": 0,
"Method": "Cash",
"Note": ""
}
],
"UnpaidValidation": false
}'Response
application/json
{ "Message": "Invoice Number 20.04.00019 has successfully completed a Paid" }