API reference

Series

The company’s document series. Pass a series id when creating a document to issue it in that series. 1 operation.

List series

GET /series

Returns the account's active series. Use the "id" field as "seriesId" when creating an invoice to issue it in a specific series.

Authentication: an API key (x-api-key) or an OAuth access token.

curl 'https://api.fiz.co/series' \
  --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.series.list();
from fiz_sdk import Fiz

fiz = Fiz()  # reads FIZ_API_KEY
result = fiz.series.list()
<?php
require 'vendor/autoload.php';

$fiz = new Fiz\Fiz(); // reads FIZ_API_KEY
$result = $fiz->series->list();

Response 200

List of series returned successfully

FieldTypeDescription
[].idstringUnique series identifier (use it as seriesId when creating an invoice)
[].namestring · can be nullSeries name
[].isDefaultboolean · can be nullWhether this is the account's default series
[].statusstring · can be nullSeries status
[].managementModestring · can be nullWhere the series came from: AUTOMATIC (created by FIZ) or MANUAL (created by the user). It does not affect numbering: in both, FIZ assigns the number and the ATCUD on issue.
[].entriesobject[] · can be nullSeries entries per document type (with ATCUD)
[].entries[].documentTypestring · can be nullDocument type the series entry applies to
[].entries[].validationCodestring · can be nullSeries validation code (ATCUD) assigned by the AT
[].entries[].isVerifiedboolean · can be nullWhether the entry is verified/reported to the AT

Errors

  • 401 Unauthorized - API key missing or invalid
  • 429 The 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.

All resources