Migration to V4
Thi article describes breaking changes between PORTOS API v3.X and v4.0.
Authorization result
TokenId
property AccessToken
has been renamed to TokenId
in authorization result.
Article category
SortHint
SortHint
property has been added to achieve user defined article categories sorting in cash register application. This optional property is of nullable integer type. Article categories with lowest value are displayed first, null
have lowest priority. Categories with same SortHint
value are sorted alphabetically.
Example:
SortHint | Description |
---|---|
0 | Beers |
0 | Drinks |
1 | Pizza |
2 | Wine |
null | Beverages |
null | Specials |
Tags
New optional string
collection property that helps to associate user-defined tags with article category. Based on tags collection, new reports are available in statistics in both PORTOS CashRegister (Pokladลa) and PORTOS BackOffice applications.
Customer
The customer resource has has undergone many improvements, e.g. each customer account can now be associated with multiple cards. Please see table below for more information.
Name (v3) | Name (v4) | Note |
---|---|---|
- |
| New property that specifies date and time, from which customer account can be associated with |
|
| Object properties has been changed. |
- |
| Optional customer birth date. |
| - | This property has been removed. Card identifier is moved to |
- |
| Collection of cards associated with this customer. |
- |
| New property that aggregates company-related information. Properties: |
| - | This property has been removed. |
| Collection of transactions that affects | |
| - | Moved to |
- |
| New optional delivery address property of type |
|
| Renamed. |
- |
| Optional unique identifier supplied by external system. |
- |
| Optional customer first (given) name. |
| Optional gender. One of folowing: | |
- |
| New unique identifier (in v3, |
- |
| Boolean value that specifies whether this customer represents company. |
| Optional customer last (family) name. | |
|
| Renamed. |
- |
| Optional note related to customer. |
- |
| Object that hold any additional data (may be supplied by external system). |
- |
| New overall status of customer card. Value is one of following: |
| - | Moved to |
| - | Moved to |
Plu
Name (v3) | Name (v4) | Note |
---|---|---|
|
| Now stored as price excluding VAT (in previous version, this property included VAT). |
|
| Now stored as price excluding VAT (in previous version, this property included VAT). |
|
| Now stored as price excluding VAT (in previous version, this property included VAT). |
|
| Range of allowed values has been reduced to |
- |
| Optional property that describes reason to associate given product with 0% VAT rate. This property has been added to comply with eKasa legislation. |
- |
| Determines whether the sale of this product will generate cashback to the customer. |
- |
| Boolean property to easier product lookup in cash register application. |
- |
| Same sorting rules as |
Ticket
Serveral new properties were added to Ticket
model. No properties were removed nor renamed.
Name (v4) | Note |
---|---|
| Formerly located in |
| Optional identifier supplied by external system. |
| Invoice number. Has value only when |
| Specifies whether this ticket represents paragon. |
| Date of issue. May be different from |
| Paragon sequence number. Has value only when |
| Specifies ticket status. Allowed values: |
| Specifies ticket type. Allowed values: |
TicketCloseInfo
CloseInfo
property of Ticket
.
Name (v3) | Name (v4) | Note |
---|---|---|
CloseDate | - | Property has been removed in favor of |
- |
| Contains properties related to eKasa legislation. Properties: |
TicketItem
Name (v3) | Name (v4) | Note |
---|---|---|
- |
| Optional identifier supplied by external system. |
- |
| Type of ticket item. Allowed values: |
|
| Property has been renamed and value now contains unit price excluding VAT. |
- |
| Reference to ticket identifier, which can be found in |
- |
| Voucher number. Specified only when |
- |
| Specifies whether Quantity cannot be changed. |
- |
| Formerly located in |
TicketItemPlu
Name (v3) | Name (v4) | Note |
---|---|---|
| - | Property was moved up, to |
- |
| Determines whether the sale of this product will generate cashback to the customer. |
- |
| Optional property that describes reason to associate given product with 0% VAT rate. This property has been added to comply with eKasa legislation. |
|
| Range of allowed values has been reduced to |
Last updated