With this API you can integrate third party POS solutions with Profit365
Content:Resource information
Url |
https://api.profit365.eu/1.6/apps/POS
|
Authentication | required |
Access level | company |
Response | JSON / XML |
Class |
Get product items
Url |
https://api.profit365.eu/1.6/apps/POS/items?lastSync={lastSync}&tag={tag} |
||||
Method | GET | ||||
Params |
|
||||
Example | Get all items since last sync on June 1st 2017, 8:00 AM with Tag 'shop-A1' https://api.profit365.eu/1.6/apps/POS/items?lastSync=2017-06-01T08-00&tag=shop-A1 |
Create new sale
Url |
https://api.profit365.eu/1.6/apps/POS/sales |
Method | POST |
Content | A new sale transaction |
Example | POST https://api.profit365.eu/1.6/apps/POS/sales
|
Sale transaction
id required |
The unique ID of the transaction. ID must be generated by POS application, from which has been the sale transaction send. ID is used to identify transaction in Profit365 to avoid duplicates. ID may be generated randomly, but should be stored in POS internaly alongside the sale. Type: GUID |
request, response |
cashierId required |
A Code of a cashier from which was the sale made. Type: string |
request, response |
printedAt required |
Date when sale reciept was originaly printed at (business date not system date) Type: DateTime |
request |
receiptNumber required |
Number of the physical printed receipt which is also stored in fiscal memory of printer. Type: GUID |
request, response |
items required |
Array of sold items. See Sale transaction item description Type: Array of objects |
request |
payments required |
Array of payments. See Sale transaction payment description Type: Array of objects |
request |
Sale transaction item
itemId required |
An ID of sold item. Type: string |
request, response |
unitId required |
An unit ID of sold item. Type: GUID |
request, response |
warehouseId optional |
If supplied, issue card from this warehouse will be generated on the background. Type: GUID |
request, response |
code optional |
A code of sold item Type: string |
request, response |
name required |
A name of sold item Type: string |
request, response |
vatRate optional |
a VAT rate of sold item. If not VAT payer, ignore this field. Sample: 20%, 10%, 0% or NULL Type: Decimal |
request, response |
quantity required |
Quantity of sold item. Type: Decimal |
request, response |
pricePerUnit conditional required |
Price per unit of sold item. Either pricePerUnit or pricePerUnitBrutto must be supplied. Type: Decimal |
request, response |
pricePerUnitBrutto conditional required |
Brutto price (incl. VAT and all taxes) of sold item. Either pricePerUnit or pricePerUnitBrutto must be supplied. Type: Decimal |
request, response |
discountPerUnit optional |
Discount on pricePerUnit, optional, default = 0. Type: Decimal |
request, response |
price conditional required |
Should be calculated as (Price per unit - Discount per unit) * Quantity. Either price or priceBrutto must be supplied. Type: Decimal |
request, response |
priceBrutto conditional required |
Should be calculated as (Brutto price per unit - Discount per unit) * Quantity. Type: Decimal |
request, response |
discount optional |
Discount, optional, default = 0. Type: Decimal |
request, response |
priceTotal conditional required |
Price - Discount. Either priceTotal or priceTotalBrutto must be supplied. Type: Decimal |
request, response |
priceTotalBrutto conditional required |
PriceBrutto - Discount. Either priceTotal or priceTotalBrutto must be supplied. Type: Decimal |
request, response |
Sale transaction payment
type required |
Enum. Options: Cash, Card, MealVoucher Type: Enum |
request |
amount required |
Paid amount Type: Decimal |
request, response |
- Pubished at 4/27/2016 12:08:41 PM
- Last edited 10/19/2018 11:37:34 AM