ElectronicDevice

The ElectronicDevice object is used in conjunction with FURS and FINA to specify the electronic devices from which invoices are issued. Each ElectronicDevice is associated with a BusinessPremise, ensuring that the invoices are accurately linked to the correct location and device. This information is essential for maintaining compliance with Slovenian (FURS) and Croatian (FINA) fiscal regulations when reporting real-time invoice data.

Endpoints:

  • POST /v1/Organizations/:id/electronicDevices
  • GET /v1/Organizations/:id/electronicDevices
  • PATCH /v1/ElectronicDevices/:id

The ElectronicDevice object

Parameters

  • id string readonly

  • electronicDeviceId string

  • numbers object

  • provider string

  • environment string

  • businessPremiseId string

  • organizationId string

  • Additional propertiesExpand all
    
      {
  "electronicDeviceId": "string",
  "numbers": {},
  "provider": "furs",
  "environment": "production",
  "id": "string",
  "businessPremiseId": "string",
  "organizationId": "string",
  "createdAt": "2022-04-20T10:10:30+00:00Z",
  "updatedAt": "2022-04-20T10:10:30+00:00Z",
  "custom": {}
}    
  

Create ElectronicDevice

POST /v1/Organizations/:id/electronicDevices

Parameters

Path
  • id string required

    Organization id

Properties

  • electronicDeviceId string required

  • numbers object optional

  • provider string optional

    Default is: furs

  • environment string optional

    Default is: production

  • businessPremiseId string optional

  • organizationId string optional

  • Additional propertiesExpand all
      
        const response = await fetch('https://api.spaceinvoices.com/v1/Organizations/{id}/electronicDevices', {
  method: 'POST',
  headers: {
    'Authorization': 'ACCESS_TOKEN',
    'content-type': 'application/json'
  },
  body: JSON.stringify({
    electronicDeviceId: 'string',
    numbers: {},
    provider: 'furs',
    environment: 'production',
    businessPremiseId: 'string',
    organizationId: 'string',
    custom: {}
  })
});      
    

Your access token is displayed in examples.

Prerequisite: npm install node-fetch

        
          curl -X POST https://api.spaceinvoices.com/v1/Organizations/{id}/electronicDevices \
  -H 'Authorization: ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "electronicDeviceId": "string", \
    "numbers": {}, \
    "provider": "furs", \
    "environment": "production", \
    "businessPremiseId": "string", \
    "organizationId": "string", \
    "custom": {}
  }'        
      

Your access token displayed in examples.

        
          import requests
url = 'https://api.spaceinvoices.com/v1/Organizations/{id}/electronicDevices'
headers = {
  'Authorization': 'ACCESS_TOKEN',
  'content-type': 'application/json',
}
params = {
  'electronicDeviceId': 'string',
  'numbers': {},
  'provider': 'furs',
  'environment': 'production',
  'businessPremiseId': 'string',
  'organizationId': 'string',
  'custom': {}
}
response = requests.post(url, json=params, headers=headers)        
      

Your access token displayed in examples.

Response:

    
      {
  "electronicDeviceId": "string",
  "numbers": {},
  "provider": "furs",
  "environment": "production",
  "id": "string",
  "businessPremiseId": "string",
  "organizationId": "string",
  "createdAt": "2022-04-20T10:10:30+00:00Z",
  "updatedAt": "2022-04-20T10:10:30+00:00Z",
  "custom": {}
}    
  

Find ElectronicDevices

GET /v1/Organizations/:id/electronicDevices

Parameters

Path
  • id string required

    Organization id

Query
  • filter string optional

      
        const response = await fetch('https://api.spaceinvoices.com/v1/Organizations/{id}/electronicDevices', {
  method: 'GET',
  headers: {
    'Authorization': 'ACCESS_TOKEN',
    'content-type': 'application/json'
  }
});      
    

Your access token is displayed in examples.

Prerequisite: npm install node-fetch

        
          curl -X GET https://api.spaceinvoices.com/v1/Organizations/{id}/electronicDevices \
  -H 'Authorization: ACCESS_TOKEN' \
  -H 'Content-Type: application/json'        
      

Your access token displayed in examples.

        
          import requests
url = 'https://api.spaceinvoices.com/v1/Organizations/{id}/electronicDevices'
headers = {
  'Authorization': 'ACCESS_TOKEN',
  'content-type': 'application/json',
}
response = requests.get(url, params={}, headers=headers)        
      

Your access token displayed in examples.

Response:

    
      [
  {
    "electronicDeviceId": "string",
    "numbers": {},
    "provider": "furs",
    "environment": "production",
    "id": "string",
    "businessPremiseId": "string",
    "organizationId": "string",
    "createdAt": "2022-04-20T10:10:30+00:00Z",
    "updatedAt": "2022-04-20T10:10:30+00:00Z",
    "custom": {}
  }
]    
  

Patch ElectronicDevice

PATCH /v1/ElectronicDevices/:id

Parameters

Path
  • id string required

    ElectronicDevice id

Properties

  • electronicDeviceId string required

  • numbers object optional

  • provider string optional

    Default is: furs

  • environment string optional

    Default is: production

  • businessPremiseId string optional

  • organizationId string optional

  • Additional propertiesExpand all
      
        const response = await fetch('https://api.spaceinvoices.com/v1/ElectronicDevices/{id}', {
  method: 'PATCH',
  headers: {
    'Authorization': 'ACCESS_TOKEN',
    'content-type': 'application/json'
  },
  body: JSON.stringify({
    electronicDeviceId: 'string',
    numbers: {},
    provider: 'furs',
    environment: 'production',
    businessPremiseId: 'string',
    organizationId: 'string',
    custom: {}
  })
});      
    

Your access token is displayed in examples.

Prerequisite: npm install node-fetch

        
          curl -X PATCH https://api.spaceinvoices.com/v1/ElectronicDevices/{id} \
  -H 'Authorization: ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "electronicDeviceId": "string", \
    "numbers": {}, \
    "provider": "furs", \
    "environment": "production", \
    "businessPremiseId": "string", \
    "organizationId": "string", \
    "custom": {}
  }'        
      

Your access token displayed in examples.

        
          import requests
url = 'https://api.spaceinvoices.com/v1/ElectronicDevices/{id}'
headers = {
  'Authorization': 'ACCESS_TOKEN',
  'content-type': 'application/json',
}
params = {
  'electronicDeviceId': 'string',
  'numbers': {},
  'provider': 'furs',
  'environment': 'production',
  'businessPremiseId': 'string',
  'organizationId': 'string',
  'custom': {}
}
response = requests.patch(url, json=params, headers=headers)        
      

Your access token displayed in examples.

Response:

    
      {
  "electronicDeviceId": "string",
  "numbers": {},
  "provider": "furs",
  "environment": "production",
  "id": "string",
  "businessPremiseId": "string",
  "organizationId": "string",
  "createdAt": "2022-04-20T10:10:30+00:00Z",
  "updatedAt": "2022-04-20T10:10:30+00:00Z",
  "custom": {}
}