Operations related to authentication tokens
- Create an Invoice
DealPOS API (3.1.0)
- With Variant Code
- With Variant ID
- With Outlet ID
- With Fulfillment
- With Reference Invoice Number
- With Reference Invoice ID
- With Serialized Variant (New)
- With Recipient
- With RegisterID + TagID + Payment MethodID
Channel Tagging system. (ex: Offline / Whatsapp / Shopee / Tokopedia) used in marketplace.dealpos.app. Backwards compatibility with property request "SalesType".
Promotion Coupon Code. Balance will be deducted. Discount must exist in request PAYLOAD according to the discount value.
Delivery Status. Backwards compatibility with property "Delivery". Default: Sent, Unsent.
The number of points to redeem (when redeemed points is > 0, DiscountAmount will be auto calculated by the system based on RedeemPointValue configuration).
Number associated with a specific invoice issued to a customer from the marketplace channel. Backwards compatibility with property PurchaseOrderNumber.
- Production Serverhttps://subdomain.dealpos.net/api/v3/Invoice
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Invoice \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'UpdateCustomer: false' \
-H 'WriteOff: false' \
-d '{
"Outlet": "Outlet1",
"Number": "20.05.00001",
"Date": "2020-05-27",
"SalesPerson": "Sales 1",
"Tag": "Tokopedia",
"TaxType": "No Tax",
"Register": "Outlet1",
"Discount1": 0,
"Discount2": 0,
"DiscountAmount": 0,
"Coupon": "887799",
"Fulfillment": "Sent",
"LogisticServiceCode": "JNE-R",
"Note": "Invoice Note",
"OrderNote": "Download omnichannel",
"PointUsed": 5,
"ReferenceNumber": "TKP001",
"Customer": {
"Name": "Hendry Wijaya",
"Email": "Hendry@dealpos.com",
"Mobile": 81514515156,
"Code": "HW021",
"Address": "Muara Karang no.88"
},
"Variants": [
{
"Code": "200535",
"Quantity": 20,
"Price": 50000,
"Discount": 0,
"Note": "Item 1"
},
{
"Code": "1315L",
"Quantity": 10,
"Price": 50000,
"Discount": 0,
"Note": "Item 2"
}
],
"Payments": [
{
"Amount": 145000,
"Method": "Cash",
"Code": "C001",
"Note": "Complete payment"
}
]
}'{ "ID": "bc85c04d-8e6d-4592-bc8d-85f3d854b156", "Number": "18.10.00009" }
Channel Tagging system. (ex: Offline / Whatsapp / Shopee / Tokopedia) used in marketplace.dealpos.app. Backwards compatibility with property request "SalesType".
Promotion Coupon Code. Balance will be deducted. Discount must exist in request PAYLOAD according to the discount value.
Delivery Status. Backwards compatibility with property "Delivery". Default: Sent, Unsent.
The number of points to redeem (when redeemed points is > 0, DiscountAmount will be auto calculated by the system based on RedeemPointValue configuration).
Where fulfillment is done from a different Outlet. When this property is null or not specified, it will get data from property "Outlet".
- Production Serverhttps://subdomain.dealpos.net/api/v3/Invoice
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/Invoice \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "20.05.00001",
"Date": "2020-05-27",
"SalesPerson": "Sales 1",
"Tag": "Tokopedia",
"TaxType": "No Tax",
"Discount1": 0,
"Discount2": 0,
"DiscountAmount": 0,
"Fulfillment": "Sent",
"PurchaseOrderNumber": "TKP001",
"Customer": {
"Name": "Hendry Wijaya",
"Email": "Hendry@dealpos.com",
"Phone": "02165498468",
"Mobile": "081514515156",
"Code": "HW021"
},
"Variants": [
{
"Code": "200535",
"Quantity": "10",
"Price": "50000",
"Discount": 0,
"Note": "Item 1"
},
{
"Code": "1315L",
"Quantity": "10",
"Price": "50000",
"Discount": 0,
"Note": "Item 2"
}
],
"Payments": [
{
"Amount": "100000",
"Method": "Cash",
"Code": null,
"Note": null
}
]
}'{ "ID": "e9e1edbd-3e37-4845-b243-e680fbd4b30c" }
Request can be send with payload Outlet+Number / OutletID + Number /InvoiceID only
- Production Serverhttps://subdomain.dealpos.net/api/v3/Invoice
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/Invoice \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "LM3002"
}'"Invoice has been delete!{}"