API reference
Company
The company the credential belongs to: its tax data, its activity codes (CAE) and whether it is ready to issue. 1 operation.
Get company and issuance readiness
GET /company
curl 'https://api.fiz.co/company' \
--header "x-api-key: $FIZ_API_KEY"import { Fiz } from '@fiz-co/sdk';
const fiz = new Fiz(); // reads FIZ_API_KEY
const result = await fiz.company.retrieve();from fiz_sdk import Fiz
fiz = Fiz() # reads FIZ_API_KEY
result = fiz.company.retrieve()<?php
require 'vendor/autoload.php';
$fiz = new Fiz\Fiz(); // reads FIZ_API_KEY
$result = $fiz->company->retrieve();Response 200
Connected company and preliminary issuance checks
| Field | Type | Description |
|---|---|---|
id | string | |
environment | string | Backend environment the key reaches: production (live AT) or sandbox (AT test webservices, no fiscal effect; fiz_test_ keys) One of: production, sandbox |
name | string | |
taxpayerNumber | string · can be null | |
cae | string[] | |
vatSettings | object | The VAT settings the company issues under: the company's own in FIZ, prefilled from the AT and editable, not the AT portal's record |
vatSettings. | string · can be null | The VAT regime configured for the company in FIZ (the starting point automatic VAT uses). Each line's rate and exemption reason also depend on the customer, the item and the operation. Null when not set in FIZ yet. One of: CASH_ACCOUNTING, EXEMPTION_ARTICLE_9, EXEMPTION_ARTICLE_53, FLATRATE_AGRICULTURAL, MARGIN_SCHEME_GOODS, MARGIN_SCHEME_TRAVEL, SMALL_RETAILERS, SPECIAL_SCHEME, STANDARD_MONTHLY, STANDARD_QUARTERLY |
vatSettings. | boolean · can be null | OSS (one-stop shop) regime enabled for sales to consumers in other Member States |
grantedScopes | string[] | OAuth scopes this token carries (wire form, e.g. invoicing.issue). An API key carries every scope. |
requestedScopes | string[] | Scopes the application asked for at consent. A difference from grantedScopes is reported as SCOPE_MISSING. |
installation | object · can be null | The company/application connection behind an OAuth token. A revoked authorization answers 401 instead, so a returned installation is always connected. Absent for API keys. |
installation. | string | |
installation. | boolean | Commercial coverage by the partner, independent of the company plan. |
installation. | string (date-time) · can be null | |
installation. | string (date-time) | |
readiness | object | |
readiness. | boolean | |
readiness. | string (date-time) | |
readiness. | object[] | |
readiness. | string | SCOPE_MISSING: the consent granted fewer scopes than the application asked for; only a new authorization widens it, and actionUrl is the application install page. One of: AT_CREDENTIALS_REQUIRED, AT_SYNC_REQUIRED, SERIES_REQUIRED, SCOPE_MISSING |
readiness. | string (uri) |
Errors
429The OAuth connection’s request limit is reached. Nothing was executed: repeat the same request after Retry-After seconds.
Errors
Errors share one shape: statusCode, message, code and error, with the request id in the X-Request-Id header.