POS - Point Of Sale

With this API you can integrate third party POS solutions with Profit365

Content:

Resource information

Url https://api.profit365.eu/1.4/apps/POS
Authentication required
Access level company
Response JSON / XML
Class

Get product items

Url https://api.profit365.eu/1.4/apps/POS/items?lastSync={lastSync}&tag={tag}
Method GET
Params
{lastSync} optional Query only items that has been added or updated since this date (and time also)
{tag} optional Query only items that has been tagged with this tag(s)
Example

Get all items since last sync on June 1st 2017, 8:00 AM with Tag 'shop-A1'

https://api.profit365.eu/1.4/apps/POS/items?lastSync=2017-06-01T08-00&tag=shop-A1

Create new sale

Url https://api.profit365.eu/1.4/apps/POS/sales
Method POST
Content A new sale transaction
Example POST https://api.profit365.eu/1.4/apps/POS/sales

Authorization: Basic *** hidden credentials ***
CompanyID: CCA2...
Content-Type: application/json

{ "id" : "08ea5298-1f8b-4fd8-b9dc-99851f25c0dc",
"cashierId": "ec93d286-3137-43be-83f5-3c19113430c2",
"printedAt": "2015-06-20T14:00:00",

"items": [{ "itemId": "b1621f56-d04c-4445-9ab0-2b10d621ee60",
"unitId": "f607c9e1-005b-42e5-9082-9b9d777449c6",
"warehouseId": "0a26ef2b-c8a5-4929-860e-1b0c0f350551",

"code": "ENER91008",
"name": "Tyčinka POWER SPORT čokoláda 2x30g",

"qty": 10,
"pricePerUnitBrutto": 15,
"priceBrutto": 150,
"discount": 5,
"priceTotalBrutto" : 145,
"vatRate" : 20
},{ "itemId": "552faf0a-712c-42cd-88f3-ab711547fb47",
"unitId": "d3dd23b5-1d50-413b-839f-36aefdf75701",
"warehouseId": "2a867891-ca28-47a6-834d-24d7ea8b361d",

"code": "ENER91007",
"name": "Tyčinka POWER SPORT kokos 2x30g",

"qty": 5,
"pricePerUnitBrutto": 15,
"priceBrutto": 75,
"discount": 0,
"priceTotalBrutto" : 75,
"vatRate" : 20
},{ "itemId": "dcb386ae-4c86-4b69-bb46-a06a07587316",
"unitId": "090e254c-9b44-4c7d-bc24-9f1555f2dfb2",
"warehouseId": "590f2e7a-8791-40b8-8802-4f16d648cf7d",

"code": "KNI00055V00166",
"name": "Kniha VELO",

"qty": 1,
"pricePerUnitBrutto": 12.51,
"priceBrutto": 12.51,
"discount": 0,
"priceTotalBrutto" : 12.51,
"vatRate" : 10
}],

"payments": [{ "type": "cash",
"amount": 232.51
}]
}

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