PT ATCUD Series
PT ATCUD Series
Manage Portugal ATCUD series registrations used for PT numbering and SAF-T exports.
The PT ATCUD Serie object
Attributes
Create PT ATCUD series
/fiscalization/pt/atcud-seriesCreate a Portugal ATCUD series registration for one PT document type.
Header parameters
Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.
Body parameters
Portugal fiscal document type tracked for ATCUD series numbering.
Possible values: "invoice", "advance_invoice", "credit_note", "estimate"
AT-communicated series code used in the PT document number.
Validation code assigned by AT for the communicated series.
First date for which the communicated series is valid.
curl -X POST "https://eu.spaceinvoices.com/fiscalization/pt/atcud-series" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-entity-id: YOUR_ENTITY_ID" \
-H "Content-Type: application/json" \
-d '{
"document_type": "invoice",
"series_code": "string",
"validation_code": "string",
"first_number": "string",
"start_date": "2025-01-15",
"is_manual": true,
"initial_sequence": 0
}'Returns
{
"id": "string",
"entity_id": "string",
"document_type": "invoice",
"series_code": "string",
"validation_code": "string",
"first_number": "string",
"start_date": "2025-01-15",
"is_manual": true,
"initial_sequence": 0
}Get active PT ATCUD series
/fiscalization/pt/atcud-series/activeReturn the current non-manual PT ATCUD series by document type, matching the legacy active-series lookup.
Header parameters
Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.
Query parameters
Possible values: "invoice", "advance_invoice", "credit_note", "estimate"
curl -X POST "https://eu.spaceinvoices.com/fiscalization/pt/atcud-series/active" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-entity-id: YOUR_ENTITY_ID"[
{
"id": "string",
"entity_id": "string",
"document_type": "invoice",
"series_code": "string",
"validation_code": "string",
"first_number": "string",
"start_date": "2025-01-15",
"is_manual": true,
"initial_sequence": 0
}
]List PT ATCUD series
/fiscalization/pt/atcud-seriesList PT ATCUD series registered on the selected PT entity.
Header parameters
Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.
Query parameters
Possible values: "invoice", "advance_invoice", "credit_note", "estimate"
curl "https://eu.spaceinvoices.com/fiscalization/pt/atcud-series" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-entity-id: YOUR_ENTITY_ID"[
{
"id": "string",
"entity_id": "string",
"document_type": "invoice",
"series_code": "string",
"validation_code": "string",
"first_number": "string",
"start_date": "2025-01-15",
"is_manual": true,
"initial_sequence": 0
}
]Get PT ATCUD series
/fiscalization/pt/atcud-series/{id}Get one PT ATCUD series by ID.
Header parameters
Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.
Path parameters
Space Invoices resource identifier (format: {prefix}_{hex24})
curl "https://eu.spaceinvoices.com/fiscalization/pt/atcud-series/{id}" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-entity-id: YOUR_ENTITY_ID"Returns
{
"id": "string",
"entity_id": "string",
"document_type": "invoice",
"series_code": "string",
"validation_code": "string",
"first_number": "string",
"start_date": "2025-01-15",
"is_manual": true,
"initial_sequence": 0
}