Getting Started

Catalog Update

Order Management

Total Sales

Suppliers Details

Buyers Details

POS API Documentation

1. Environments

2. Login

Logs the user into the system and retrieves an authentication token needed for other API calls.

This method uses Basic Authentication. The username and password are sent as one String with a column

between them, encoded in Base64 format.


Method: Post

URL: https://test-api.zester.co.il/Token

Header Parameters: Content-Type : application/x-www-form-urlencoded

Body:

Parameter 

Type

Description

Required

grant_type

String

Should always be the mention: “password”

Y

username

String

Your zester login username 

Y

password

String

Your zester login password

Y

Sample request

Method:Post

Url: https://test-api.zester.co.il/Token

HEADER: Content-Type: application/x-www-form-urlencoded

Body:

grant_type: password 

username: login username

password: login password

3. Z-Total from POS register​

Import total sales amount (Z total) from register

Method: Post

Url: {{base_url}}api/v1/POSIncome/ZTotals

Header Parameters: Authorization – TOKEN BEARER

Body: Object: allBranchZ – zBranch[];

zBranch Parameters description:

RequiredDescriptionTypeParameter 
TRUEBranch IDstringbranchId
TRUEDate ISO FORMAT – (yyyy-MM-ddTHH:mm:ss.SSST)datedate
FALSEZ Descriptionstringdescription
TRUE Z identification numberstringzNum
TRUETotal Income without VATdecimalzTotal
FALSETotal Orders numberintzNumberOfOrders
FALSETotal sales “Dine in”decimalzPriceTables
FALSETotal orders “Dine in”intzNumTables
FALSETotal TAKE AWAY salesdecimalzPriceTakeAway
FALSETotal TAKE AWAY ordersintzNumTakeAway
TRUETotal Tipsdecimaltips
FALSETotal Checks decimalzChequeTotal
FALSETotal Cash decimalzCashTotal
FALSETotal credit/debit cardsdecimalzCreditTotal
FALSETotal discountsdecimalreductions

Sample token header:

Authorization: Bearer 8W_0Lamq7iUlhCJ5gGTW4fYLnL99xTe42LLrLPDQ9Qzc80xItQcZaPY0Y7tMbNQVIoqxXFC0pYiWyqOzHqJ9HuDyOEdGN0WZYMYVBt_kU5nYkhZgnswsvQaPBOlJVEztSl5_H8A3n89qZh0otYEeRR1W72GEDCVfutj1Qmu5TUzqx8Kn95XTOaHs2jD7KfvPJuHnuSCVnYY08WutkOOFbAk6S09EIGFqUwC1IBHjU9lk0rN22IoZP0kTjRZ1BEnbqcbmkF5Dla5mUZUNO1p_HIAppgX3YiUjA5FV084TcpkbCQ2Mo76JEIbz4bdo1E4LC1X17ILeV1b_ZsNNe7Za1a1I6lonVvamXAkM5lPpyxxnrjPCMvwEyb9pXARbILkyvvtxpLWBd4oIzh1fMzq6Y72S5ApqNAqFdDDizPSAKdVHyPuwr9jOCLh7Es1GhHVZHbrBxmcg3a8u-sIqDnG0D9vfNPrjs-KQ8mOkZIeePrpJJ8LwQZhE5WNrBg1E4aTUyrO6jki-Ym57JTVL9_oPt770YCFsP3WYK0ud4bAhQGZghlHgfISLdGSyqEfW3v-WimsTOCnVu2MgulBQrWwdY1u95jrL93XjtOtCMOyEJOVwesGpaGy3J6f8TFLx4jlbMsh7XWy5GlfEMtBcnVLzH5dvE7XUysNzInXFDymUVokKPSVZj9KK7z7qSSBbWy

Sample Body:

{
“allBranchZ”: [
{
“branchId”: “8070556632s”,
“date”: “2022-02-22T11:53:00.975Z”,
“zNum”: “1”,
“zTotal”: 100.52,
“zNumberOfOrders”: 2,
“zPriceTables”: 70.30,
“zNumTables”: 1,
“zPriceTakeAway”: 30.22,
“zNumTakeAway”: 1,
“tips”: 0,
“zChequeTotal”: 0,
“zCashTotal”: 0,
“zCreditTotal”: 0,
“reductions”: 0
}
]
}

Success response: 200

4. Sales details by items

Get sales update sorted by items 

Method: Post

URL: {{base_url}}api/v1/POSIncome/SalesDetails

Header Parameters: Authorization – TOKEN BEARER

Body: Object: allBranchSale – BranchSale[]

BranchSale Parameters description:

Parameter DescriptionTypeRequired
branchIdBranch IDstringTRUE
zNumZ identification numberstringTRUE
itemCodeItem identification numberstringTRUE
itemNameProduct/item namestringTRUE
itemCountTotal items ordered amountstringTRUE
itemTotalTotal items ordered pricestringTRUE
itemLineOrder line numbernumberFALSE
itemKindMain categorynumberFALSE
itemClassSecondary categorystringFALSE
itemPriceItem price per unitstringTRUE
valueDate

Date in which the transaction is considered effective ISO FORMAT – (yyyy-MM-ddTHH:mm:ss.SSST)

stringTRUE

Sample Body:

{

  “allBranchSale”: [

    {

      “branchId”:  “8070556632s“,

      “zNum”: “1”,

      “valueDate”: “2023-03-01T12:00:00.000Z”,

      “itemCode”: “1”,

      “itemName”: “1”,

      “itemCount”: 1,

      “itemTotal”: 1.25,

      “itemPrice”: 20,

      “itemLine”: 1,

      “itemKind”: “1”,

      “itemClass”: “1”

    }

  ]

}

Success Response:

200