Skip to main content
POST
/
apps
/
at-pt
/
v1
/
entry
/
{silo_entry_id}
/
series
cURL
curl --request POST \
  --url https://api.invopop.com/apps/at-pt/v1/entry/{silo_entry_id}/series \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "base": "SERIES-A",
  "document_type": "FT",
  "type": "N"
}
'
{
  "id": "1d8ab49a-bd14-11ef-925f-325096b39f47",
  "code": "FT SERIES-A",
  "base": "SERIES-A",
  "document_type": "FT",
  "type": "N",
  "validation_code": "AAJFJ3N5YS"
}
This endpoint registers a new series for the supplier. The series will be validated and registered with the Portuguese Tax Authority, and a validation code (used to generate ATCUD codes) will be returned.

Authorizations

Authorization
string
header
required

Use the Bearer scheme with a valid JWT token to authenticate requests.

Example: Authorization: Bearer <token>

Path Parameters

silo_entry_id
string
required

Silo entry ID of the supplier to register the series for.

Example:

"347c5b04-cde2-11ed-afa1-0242ac120002"

Body

application/json
base
string
required

Base code for the series (without the document type prefix).

Example:

"SERIES-A"

document_type
enum<string>
required

Document type for the series:

  • FT: Invoice (Fatura)
  • FS: Simplified Invoice (Fatura Simplificada)
  • FR: Invoice-Receipt (Fatura-Recibo)
  • ND: Debit Note (Nota de Dรฉbito)
  • NC: Credit Note (Nota de Crรฉdito)
  • RG: Receipt (Recibo)
  • GR: Waybill (Guia de Remessa)
Available options:
FT,
FS,
FR,
ND,
NC,
RG,
GR
Example:

"FT"

type
enum<string>
required

Type of the series:

  • N: Normal
  • F: Training (Formaรงรฃo)
  • R: Recovery (Recuperaรงรฃo)
Available options:
N,
F,
R
Example:

"N"

Response

Series registered successfully.

id
string

Series ID.

Example:

"1d8ab49a-bd14-11ef-925f-325096b39f47"

code
string

Full series code (document type + base code).

Example:

"FT SERIES-A"

base
string

Base code for the series.

Example:

"SERIES-A"

document_type
string

Document type for the series.

Example:

"FT"

type
string

Type of the series.

Example:

"N"

validation_code
string

AT validation code for the series used to generate ATCUD codes.

Example:

"AAJFJ3N5YS"