FINA Devices
FINA Devices
Manage electronic devices within business premises
The FINA Device object
Attributes
{
"id": "fina_device_507f1f77bcf86cd799439011",
"premise_id": "fina_premise_507f1f77bcf86cd799439011",
"electronic_device_name": "1",
"is_active": true,
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z"
}Get electronic device
/fiscalization/fina/devices/{id}Get a single electronic device by ID
Header parameters
Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.
Path parameters
Device ID
import SpaceInvoices from '@spaceinvoices/js-sdk';
const sdk = new SpaceInvoices('YOUR_API_KEY');
const response = await sdk.finaDevices.getFinaDevice('FINADEVICES_ID');
console.log(response);Returns
{
"id": "fina_device_507f1f77bcf86cd799439011",
"premise_id": "fina_premise_507f1f77bcf86cd799439011",
"electronic_device_name": "1",
"is_active": true,
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z"
}Update electronic device
/fiscalization/fina/devices/{id}Update mutable FINA electronic device settings. The starting number can only be changed before invoices have been issued for the device-level sequence.
Header parameters
Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.
Path parameters
Device ID
Body parameters
import SpaceInvoices from '@spaceinvoices/js-sdk';
const sdk = new SpaceInvoices('YOUR_API_KEY');
const response = await sdk.finaDevices.update('FINADEVICES_ID', {
starting_number: 250
});
console.log(response);Returns
{
"id": "fina_device_507f1f77bcf86cd799439011",
"premise_id": "fina_premise_507f1f77bcf86cd799439011",
"electronic_device_name": "1",
"is_active": true,
"starting_number": 250,
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-02T00:00:00.000Z"
}Delete electronic device
/fiscalization/fina/devices/{id}Deactivate an electronic device.
Header parameters
Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.
Path parameters
Device ID
import SpaceInvoices from '@spaceinvoices/js-sdk';
const sdk = new SpaceInvoices('YOUR_API_KEY');
await sdk.finaDevices.delete('FINADEVICES_ID');
console.log('Deleted successfully');Returns
Name of the registered electronic device
{
"success": true,
"message": "Electronic device deactivated successfully",
"electronic_device_name": "1"
}List electronic devices
/fiscalization/fina/premises/{id}/devicesList all electronic devices for a business premise
Header parameters
Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.
Path parameters
Premise ID
import SpaceInvoices from '@spaceinvoices/js-sdk';
const sdk = new SpaceInvoices('YOUR_API_KEY');
const response = await sdk.finaDevices.listFinaDevices('FINADEVICES_ID');
console.log(response);[]Register electronic device
/fiscalization/fina/premises/{id}/devicesRegister an electronic device (cash register, POS) for a business premise. Device ID must be digits only.
Header parameters
Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.
Path parameters
Premise ID
Body parameters
Electronic device name (OznNapUr), digits only, 1-20 chars
import SpaceInvoices from '@spaceinvoices/js-sdk';
const sdk = new SpaceInvoices('YOUR_API_KEY');
const response = await sdk.finaDevices.registerFinaDevice('FINADEVICES_ID', {
electronic_device_name: "1",
starting_number: 100
});
console.log(response);Returns
Name of the registered electronic device
{
"success": true,
"message": "Electronic device registered successfully",
"electronic_device_name": "1"
}