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.
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
| Field | Type | Description |
|---|---|---|
[]. | string | Unique series identifier (use it as seriesId when creating an invoice) |
[]. | string · can be null | Series name |
[]. | boolean · can be null | Whether this is the account's default series |
[]. | string · can be null | Series status |
[]. | string · can be null | Where 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. |
[]. | object[] · can be null | Series entries per document type (with ATCUD) |
[]. | string · can be null | Document type the series entry applies to |
[]. | string · can be null | Series validation code (ATCUD) assigned by the AT |
[]. | boolean · can be null | Whether the entry is verified/reported to the AT |
Errors
401Unauthorized - API key missing or invalid429The 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.