Fiscal register
create
POST /api/v2/fiscal-register HTTP/1.1
{
"adminConfigJson" : "{\"login\":\"0004455205\",\"password\":\"11111\"}",
"configJson" : "{\"login\":\"0004455205\",\"password\":\"11111\"}",
"externalId" : "3705",
"name" : "Касса 2",
"type" : "LIGHT_KASSA"
}
| Path | Type | Description | Constraints |
|---|---|---|---|
adminConfigJson |
String |
adminConfigJson |
|
configJson |
String |
Configuration for the fiscal register (e.g. login and password) as JSON |
|
externalId |
String |
Id of the fiscal register as received from here |
Must not be blank |
name |
String |
The fiscal register’s visible name |
|
type |
String |
The fiscal register’s type. For possible values see here. Field 'isNative' for the type must be false |
Must not be null. |
HTTP/1.1 201 Created
Location: /api/v2/fiscal-register/1
{
"id" : 1,
"configJson" : "{\"departmentId\":1000000003,\"credential\":{\"login\":\"0004455205\",\"password\":\"11111\"}}",
"externalId" : "3705",
"name" : "Касса 2",
"type" : "LIGHT_KASSA"
}
| Path | Type | Description |
|---|---|---|
|
|
The fiscal register’s id |
|
|
Configuration for the fiscal register (e.g. login and password) as JSON |
|
|
External id of the fiscal register as received from here |
|
|
The fiscal register’s visible name |
|
|
The fiscal register’s type. For possible values see here. Field 'isNative' for the type must be false |
list
GET /api/v2/fiscal-register?type=LIGHT_KASSA HTTP/1.1
| Parameter | Description |
|---|---|
|
Fiscal register type |
HTTP/1.1 200 OK
[ {
"id" : 1,
"configJson" : "{\"departmentId\":1000000003,\"credential\":{\"login\":\"0004455205\",\"password\":\"11111\"}}",
"externalId" : "3705",
"name" : "Касса 2",
"type" : "LIGHT_KASSA"
} ]
| Path | Type | Description |
|---|---|---|
|
|
List of fiscal registers |
|
|
The fiscal register’s id |
|
|
Configuration for the fiscal register (e.g. login and password) as JSON |
|
|
External id of the fiscal register as received from here |
|
|
The fiscal register’s visible name |
|
|
The fiscal register’s type. For possible values see here. Field 'isNative' for the type must be false |
update
PUT /api/v2/fiscal-register/1 HTTP/1.1
{
"adminConfigJson" : "{\"login\":\"0004455205\",\"password\":\"11111\"}",
"configJson" : "{\"login\":\"0004455205\",\"password\":\"11111\"}",
"externalId" : "3705",
"name" : "Касса 1",
"type" : "LIGHT_KASSA"
}
| Parameter | Description |
|---|---|
|
The fiscal register’s id |
| Path | Type | Description | Constraints |
|---|---|---|---|
adminConfigJson |
String |
adminConfigJson |
|
configJson |
String |
Configuration for the fiscal register (e.g. login and password) as JSON |
|
externalId |
String |
Id of the fiscal register as received from here |
Must not be blank |
name |
String |
The fiscal register’s visible name |
|
type |
String |
The fiscal register’s type. For possible values see here. Field 'isNative' for the type must be false |
Must not be null. |
HTTP/1.1 200 OK
list external
GET /api/v2/fiscal-register/external?type=LIGHT_KASSA&adminConfigJson=%7B%22login%22:%220004455205%22,%22password%22:%2211111%22%7D HTTP/1.1
| Parameter | Description |
|---|---|
|
Configuration to make an external API request (e.g. admin API login and password) |
|
Fiscal register type |
HTTP/1.1 200 OK
[ {
"type" : "LIGHT_KASSA",
"id" : "3705",
"name" : "Касса 1"
} ]
| Path | Type | Description |
|---|---|---|
|
|
List of external info |
|
|
The fiscal register’s type |
|
|
The fiscal register’s external id |
|
|
The fiscal register’s visible name |
list types
GET /api/v2/fiscal-register/types HTTP/1.1
HTTP/1.1 200 OK
[ {
"type" : "ATOL",
"regions" : null,
"native" : true
}, {
"type" : "SHTRIH_M",
"regions" : null,
"native" : true
}, {
"type" : "TEST",
"regions" : null,
"native" : true
} ]
| Path | Type | Description |
|---|---|---|
|
|
List of info about fiscal register types |
|
|
The type’s id |
|
|
Are fiscal registers of this type handled by Optima Native? |
|
|
List of regions where the type is supported. Empty list means the type is supported everywhere |