3.02 List of cash registers
Connection URL
TEST URL | http://nap.dev.icash.bg/clientapi/v1/get-cash-registers |
( AL ) PRODUCTION URL | https://v1.icash.al/clientapi/v1/get-cash-registers |
( BG ) PRODUCTION URL | https://v5.icash.bg/clientapi/v1/get-cash-registers |
POST Request params
Param | Description | Field type | Required |
api_key | API Key | String | YES |
nonce | Nonce | Integer | YES |
signature | Signature | String | YES |
ses | Session indentificator | String | YES |
JSON Response on success
Param | Description | Field type | Required |
nonce | Nonce from request | Integer | YES |
status | Request status | Integer
1 – Success |
YES |
data | List of fiscal devices | Array of Item |
Structure of type “Item”
Param | Description | Field type | Always exist |
id | Indentificator | Integer | YES |
name | Name | String | YES |
type | Type | ENUM(VIRTUAL,HARDWARE) | YES |
storeID | Store ID | Integer | YES |
value | Name of cash register | String | YES |
Example result on success:
{ „nonce“: „1552998131“, „status“: 1, „data“: [ { „id“: 39, „value“: „Cash Register 2“, „type“: „VIRTUAL“, „storeID“: 1 }, { „id“: 40, „value“: „Cash register 3“, „type“: „HARDWARE“, „storeID“: 2 } ] } |
JSON response on unsuccess
Param | Description | Field type | Always exist |
nonce | Nonce from request | Integer | YES |
status | Request status | Integer
0 – unsuccess request |
YES |
error_message | Error Description | String | No |
Example result on unsuccess:
{ „nonce“: „1552990901“, „status“: 0, „error_message“: „Session expired“ } |