{
  "openapi": "3.1.0",
  "info": {
    "title": "A-Cube HR API",
    "description": "A-Cube HR API set to manage electronic invoices for Croatian taxpayers",
    "version": "1.0.0",
    "x-logo": {
      "url": "https://assets.acubeapi.com/logo_rect_white.png"
    }
  },
  "servers": [
    {
      "url": "https://hr-sandbox.api.acubeapi.com",
      "description": "A-Cube GOV HR API sandbox environment"
    },
    {
      "url": "https://hr.api.acubeapi.com",
      "description": "A-Cube GOV HR API production environment",
      "x-production": "hide"
    }
  ],
  "paths": {
    "/credit-notes": {
      "get": {
        "operationId": "api_credit-notes_get_collection",
        "tags": [
          "CreditNote"
        ],
        "responses": {
          "422": {
            "description": "A filter value is invalid"
          },
          "200": {
            "description": "CreditNote collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "description": "CreditNote.CreditNoteOutput.jsonld collection.",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/HydraCollectionBaseSchema"
                    },
                    {
                      "type": "object",
                      "required": [
                        "hydra:member"
                      ],
                      "properties": {
                        "hydra:member": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/CreditNote.CreditNoteOutput.jsonld"
                          }
                        }
                      }
                    }
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CreditNote.CreditNoteOutput"
                  }
                }
              }
            }
          }
        },
        "summary": "Retrieves the collection of CreditNote resources.",
        "description": "Returns the paginated list of your credit notes, newest first. All filters are optional and combine with AND; a filter with several values matches any of them.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 100
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "legalEntityUuid[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc"
            ]
          },
          {
            "name": "createdAt[gt]",
            "in": "query",
            "description": "YYYY-MM-DD, or a UTC date-time YYYY-MM-DDThh:mm:ssZ. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "2026-11-01"
          },
          {
            "name": "createdAt[gte]",
            "in": "query",
            "description": "YYYY-MM-DD, or a UTC date-time YYYY-MM-DDThh:mm:ssZ. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "2026-11-01"
          },
          {
            "name": "createdAt[lt]",
            "in": "query",
            "description": "YYYY-MM-DD, or a UTC date-time YYYY-MM-DDThh:mm:ssZ. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "2026-11-01"
          },
          {
            "name": "createdAt[lte]",
            "in": "query",
            "description": "YYYY-MM-DD, or a UTC date-time YYYY-MM-DDThh:mm:ssZ. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "2026-11-01"
          },
          {
            "name": "createdAt[ne]",
            "in": "query",
            "description": "YYYY-MM-DD, or a UTC date-time YYYY-MM-DDThh:mm:ssZ. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "2026-11-01"
          },
          {
            "name": "creditNoteDate[gt]",
            "in": "query",
            "description": "YYYY-MM-DD. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "style": "form",
            "explode": true,
            "example": "2026-10-01"
          },
          {
            "name": "creditNoteDate[gte]",
            "in": "query",
            "description": "YYYY-MM-DD. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "style": "form",
            "explode": true,
            "example": "2026-10-01"
          },
          {
            "name": "creditNoteDate[lt]",
            "in": "query",
            "description": "YYYY-MM-DD. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "style": "form",
            "explode": true,
            "example": "2026-10-01"
          },
          {
            "name": "creditNoteDate[lte]",
            "in": "query",
            "description": "YYYY-MM-DD. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "style": "form",
            "explode": true,
            "example": "2026-10-01"
          },
          {
            "name": "creditNoteDate[ne]",
            "in": "query",
            "description": "YYYY-MM-DD. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "style": "form",
            "explode": true,
            "example": "2026-10-01"
          },
          {
            "name": "creditNoteNumber",
            "in": "query",
            "description": "Partial match, case-insensitive. Requires a creditNoteDate filter.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "CreditNote-Number"
          },
          {
            "name": "status[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "received",
                  "valid",
                  "sending_started",
                  "sending_queued",
                  "sending_failed",
                  "sent",
                  "delivered",
                  "delivery_failed",
                  "undeliverable"
                ]
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "delivered"
            ]
          },
          {
            "name": "direction[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "incoming",
                  "outgoing"
                ]
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "incoming"
            ]
          },
          {
            "name": "typeCode[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "81",
                  "83",
                  "261",
                  "381",
                  "396",
                  "458"
                ]
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "381"
            ]
          },
          {
            "name": "businessProcess[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "P1",
                  "P2",
                  "P3",
                  "P4",
                  "P5",
                  "P6",
                  "P7",
                  "P8",
                  "P9",
                  "P10",
                  "P11",
                  "P12",
                  "P99"
                ]
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "P1"
            ]
          },
          {
            "name": "downloaded",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": true,
            "example": false
          },
          {
            "name": "senderName",
            "in": "query",
            "description": "Partial match, case-insensitive.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "Example"
          },
          {
            "name": "senderTaxId",
            "in": "query",
            "description": "Tax identifier (OIB) of the sender; exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{11}$"
            },
            "style": "form",
            "explode": true,
            "example": "48780941616"
          },
          {
            "name": "recipientName",
            "in": "query",
            "description": "Partial match, case-insensitive.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "Example"
          },
          {
            "name": "recipientTaxId",
            "in": "query",
            "description": "Tax identifier (OIB) of the recipient; exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{11}$"
            },
            "style": "form",
            "explode": true,
            "example": "75608754333"
          },
          {
            "name": "order[creditNoteDate]",
            "in": "query",
            "description": "Sort by creditNoteDate.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "style": "form",
            "explode": true,
            "example": "desc"
          },
          {
            "name": "order[creditNoteNumber]",
            "in": "query",
            "description": "Sort by creditNoteNumber.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "style": "form",
            "explode": true,
            "example": "asc"
          },
          {
            "name": "order[uuid]",
            "in": "query",
            "description": "Sort by uuid.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "style": "form",
            "explode": true,
            "example": "asc"
          }
        ]
      },
      "post": {
        "operationId": "api_credit-notes_post",
        "tags": [
          "CreditNote"
        ],
        "responses": {
          "202": {
            "description": "The credit note has been accepted and will be processed and sent shortly",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/CreditNote.CreditNoteOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreditNote.CreditNoteOutput"
                }
              }
            },
            "links": {}
          },
          "415": {
            "description": "Unsupported request format"
          },
          "422": {
            "description": "Credit note validation failed or business rule violation, or the sender is not one of your legal entities",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentBusinessRules"
                }
              },
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentBusinessRules.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentBusinessRules"
                }
              }
            },
            "links": {}
          },
          "409": {
            "description": "The credit note cannot be sent while one or more rules are not met",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CreditNoteSendingBlocked"
                }
              },
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/CreditNoteSendingBlocked.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreditNoteSendingBlocked"
                }
              }
            },
            "links": {}
          }
        },
        "summary": "Create an outgoing credit note",
        "description": "Accepts a UBL 2.1 XML credit note directly as request body, sent by one of your legal entities. Once validated, the credit note is stored and sent to the recipient; if the recipient has no address in the Tax Authority's address directory (AMS), it becomes `undeliverable` and must be delivered another way, for example as a PDF. When fiscalisation is enabled, a Tax Data Document is filed with the Tax Authority once the credit note reaches the `delivered` or `undeliverable` status.",
        "parameters": [],
        "requestBody": {
          "description": "The payload of the credit note to send. Must be a valid UBL 2.1 credit note following the Croatian e-invoicing specification (HR CIUS 2025 with extensions).",
          "content": {
            "application/xml": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "text/xml": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "required": true
        }
      }
    },
    "/credit-notes/{uuid}": {
      "get": {
        "operationId": "api_credit-notes_uuid_get",
        "tags": [
          "CreditNote"
        ],
        "responses": {
          "404": {
            "description": "The credit note does not exist"
          },
          "200": {
            "description": "CreditNote resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/CreditNote.CreditNoteOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreditNote.CreditNoteOutput"
                }
              }
            }
          }
        },
        "summary": "Retrieves a CreditNote resource.",
        "description": "Returns the corresponding credit note by UUID.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "Internal identifier of the Credit note.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "example": "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6"
          }
        ]
      }
    },
    "/credit-notes/{uuid}/source": {
      "get": {
        "operationId": "api_credit-notes_uuidsource_get",
        "tags": [
          "CreditNote"
        ],
        "responses": {
          "200": {
            "description": "The credit note will be downloaded",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "404": {
            "description": "The credit note does not exist"
          },
          "406": {
            "description": "The requested format is not supported."
          }
        },
        "summary": "Download a credit note",
        "description": "Download a credit note in xml format. The first download marks the Credit note as downloaded.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "Internal identifier of the Credit note.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "example": "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6"
          }
        ]
      }
    },
    "/invoices": {
      "get": {
        "operationId": "api_invoices_get_collection",
        "tags": [
          "Invoice"
        ],
        "responses": {
          "422": {
            "description": "A filter value is invalid"
          },
          "200": {
            "description": "Invoice collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "description": "Invoice.InvoiceOutput.jsonld collection.",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/HydraCollectionBaseSchema"
                    },
                    {
                      "type": "object",
                      "required": [
                        "hydra:member"
                      ],
                      "properties": {
                        "hydra:member": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/Invoice.InvoiceOutput.jsonld"
                          }
                        }
                      }
                    }
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Invoice.InvoiceOutput"
                  }
                }
              }
            }
          }
        },
        "summary": "Retrieves the collection of Invoice resources.",
        "description": "Returns the paginated list of your invoices, newest first. All filters are optional and combine with AND; a filter with several values matches any of them.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 100
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "legalEntityUuid[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc"
            ]
          },
          {
            "name": "createdAt[gt]",
            "in": "query",
            "description": "YYYY-MM-DD, or a UTC date-time YYYY-MM-DDThh:mm:ssZ. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "2026-11-01"
          },
          {
            "name": "createdAt[gte]",
            "in": "query",
            "description": "YYYY-MM-DD, or a UTC date-time YYYY-MM-DDThh:mm:ssZ. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "2026-11-01"
          },
          {
            "name": "createdAt[lt]",
            "in": "query",
            "description": "YYYY-MM-DD, or a UTC date-time YYYY-MM-DDThh:mm:ssZ. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "2026-11-01"
          },
          {
            "name": "createdAt[lte]",
            "in": "query",
            "description": "YYYY-MM-DD, or a UTC date-time YYYY-MM-DDThh:mm:ssZ. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "2026-11-01"
          },
          {
            "name": "createdAt[ne]",
            "in": "query",
            "description": "YYYY-MM-DD, or a UTC date-time YYYY-MM-DDThh:mm:ssZ. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "2026-11-01"
          },
          {
            "name": "invoiceDate[gt]",
            "in": "query",
            "description": "YYYY-MM-DD. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "style": "form",
            "explode": true,
            "example": "2026-10-01"
          },
          {
            "name": "invoiceDate[gte]",
            "in": "query",
            "description": "YYYY-MM-DD. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "style": "form",
            "explode": true,
            "example": "2026-10-01"
          },
          {
            "name": "invoiceDate[lt]",
            "in": "query",
            "description": "YYYY-MM-DD. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "style": "form",
            "explode": true,
            "example": "2026-10-01"
          },
          {
            "name": "invoiceDate[lte]",
            "in": "query",
            "description": "YYYY-MM-DD. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "style": "form",
            "explode": true,
            "example": "2026-10-01"
          },
          {
            "name": "invoiceDate[ne]",
            "in": "query",
            "description": "YYYY-MM-DD. Combine operators for a range.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "style": "form",
            "explode": true,
            "example": "2026-10-01"
          },
          {
            "name": "invoiceNumber",
            "in": "query",
            "description": "Partial match, case-insensitive. Requires an invoiceDate filter.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "Invoice-Number"
          },
          {
            "name": "status[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "received",
                  "valid",
                  "sending_started",
                  "sending_queued",
                  "sending_failed",
                  "sent",
                  "delivered",
                  "delivery_failed",
                  "undeliverable"
                ]
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "delivered"
            ]
          },
          {
            "name": "direction[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "incoming",
                  "outgoing"
                ]
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "incoming"
            ]
          },
          {
            "name": "typeCode[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "82",
                  "130",
                  "325",
                  "326",
                  "331",
                  "380",
                  "383",
                  "384",
                  "385",
                  "386",
                  "387",
                  "388",
                  "389",
                  "390",
                  "393",
                  "394",
                  "395",
                  "457",
                  "527",
                  "575",
                  "623",
                  "780",
                  "870",
                  "875",
                  "876",
                  "877",
                  "935"
                ]
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "380"
            ]
          },
          {
            "name": "businessProcess[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "P1",
                  "P2",
                  "P3",
                  "P4",
                  "P5",
                  "P6",
                  "P7",
                  "P8",
                  "P9",
                  "P10",
                  "P11",
                  "P12",
                  "P99"
                ]
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "P1"
            ]
          },
          {
            "name": "downloaded",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": true,
            "example": false
          },
          {
            "name": "senderName",
            "in": "query",
            "description": "Partial match, case-insensitive.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "Example"
          },
          {
            "name": "senderTaxId",
            "in": "query",
            "description": "Tax identifier (OIB) of the sender; exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{11}$"
            },
            "style": "form",
            "explode": true,
            "example": "48780941616"
          },
          {
            "name": "recipientName",
            "in": "query",
            "description": "Partial match, case-insensitive.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "Example"
          },
          {
            "name": "recipientTaxId",
            "in": "query",
            "description": "Tax identifier (OIB) of the recipient; exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{11}$"
            },
            "style": "form",
            "explode": true,
            "example": "75608754333"
          },
          {
            "name": "order[invoiceDate]",
            "in": "query",
            "description": "Sort by invoiceDate.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "style": "form",
            "explode": true,
            "example": "desc"
          },
          {
            "name": "order[invoiceNumber]",
            "in": "query",
            "description": "Sort by invoiceNumber.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "style": "form",
            "explode": true,
            "example": "asc"
          },
          {
            "name": "order[uuid]",
            "in": "query",
            "description": "Sort by uuid.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "style": "form",
            "explode": true,
            "example": "asc"
          }
        ]
      },
      "post": {
        "operationId": "api_invoices_post",
        "tags": [
          "Invoice"
        ],
        "responses": {
          "202": {
            "description": "The invoice has been accepted and will be processed and sent shortly",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice.InvoiceOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice.InvoiceOutput"
                }
              }
            },
            "links": {}
          },
          "415": {
            "description": "Unsupported request format"
          },
          "422": {
            "description": "Invoice validation failed or business rule violation, or the sender is not one of your legal entities",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentBusinessRules"
                }
              },
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentBusinessRules.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentBusinessRules"
                }
              }
            },
            "links": {}
          },
          "409": {
            "description": "The invoice cannot be sent while one or more rules are not met",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceSendingBlocked"
                }
              },
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceSendingBlocked.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceSendingBlocked"
                }
              }
            },
            "links": {}
          }
        },
        "summary": "Create an outgoing invoice",
        "description": "Accepts a UBL 2.1 XML invoice directly as request body. Once validated, the invoice is stored and sent to the recipient; if the recipient has no address in the Tax Authority's address directory (AMS), it becomes `undeliverable` and must be delivered another way, for example as a PDF. When fiscalisation is enabled, a Tax Data Document is filed with the Tax Authority once the invoice reaches the `delivered` or `undeliverable` status.",
        "parameters": [],
        "requestBody": {
          "description": "The payload of the invoice to send. Must be a valid UBL 2.1 invoice following the Croatian e-invoicing specification (HR CIUS 2025 with extensions).",
          "content": {
            "application/xml": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "text/xml": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "required": true
        }
      }
    },
    "/invoices/{uuid}": {
      "get": {
        "operationId": "api_invoices_uuid_get",
        "tags": [
          "Invoice"
        ],
        "responses": {
          "404": {
            "description": "The invoice does not exist"
          },
          "200": {
            "description": "Invoice resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice.InvoiceOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice.InvoiceOutput"
                }
              }
            }
          }
        },
        "summary": "Retrieves a Invoice resource.",
        "description": "Returns the corresponding invoice by UUID.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "Internal identifier of the Invoice.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "example": "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6"
          }
        ]
      }
    },
    "/invoices/{uuid}/source": {
      "get": {
        "operationId": "api_invoices_uuidsource_get",
        "tags": [
          "Invoice"
        ],
        "responses": {
          "200": {
            "description": "The invoice will be downloaded",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "404": {
            "description": "The invoice does not exist"
          },
          "406": {
            "description": "The requested format is not supported."
          }
        },
        "summary": "Download an invoice",
        "description": "Download an invoice in xml format. The first download marks the Invoice as downloaded.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "Internal identifier of the Invoice.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "example": "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6"
          }
        ]
      }
    },
    "/legal-entities": {
      "get": {
        "operationId": "api_legal-entities_get_collection",
        "tags": [
          "LegalEntity"
        ],
        "responses": {
          "422": {
            "description": "A filter value is invalid"
          },
          "200": {
            "description": "LegalEntity collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "description": "LegalEntity.LegalEntityOutput.jsonld collection.",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/HydraCollectionBaseSchema"
                    },
                    {
                      "type": "object",
                      "required": [
                        "hydra:member"
                      ],
                      "properties": {
                        "hydra:member": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/LegalEntity.LegalEntityOutput.jsonld"
                          }
                        }
                      }
                    }
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LegalEntity.LegalEntityOutput"
                  }
                }
              }
            }
          }
        },
        "summary": "Retrieves the collection of LegalEntity resources.",
        "description": "Returns the paginated list of your legal entities, newest first. All filters are optional and combine with AND.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 100
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "taxId",
            "in": "query",
            "description": "Partial match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "4878094"
          },
          {
            "name": "name",
            "in": "query",
            "description": "Partial match, case-insensitive.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "Example"
          },
          {
            "name": "order[uuid]",
            "in": "query",
            "description": "Sort by uuid.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "style": "form",
            "explode": true,
            "example": "asc"
          },
          {
            "name": "order[taxId]",
            "in": "query",
            "description": "Sort by taxId.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "style": "form",
            "explode": true,
            "example": "asc"
          },
          {
            "name": "order[name]",
            "in": "query",
            "description": "Sort by name.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "style": "form",
            "explode": true,
            "example": "asc"
          }
        ]
      },
      "post": {
        "operationId": "api_legal-entities_post",
        "tags": [
          "LegalEntity"
        ],
        "responses": {
          "400": {
            "description": "Invalid request format",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error.jsonld"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "links": {}
          },
          "422": {
            "description": "Legal entity validation failed",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              }
            },
            "links": {}
          },
          "201": {
            "description": "LegalEntity resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalEntity.LegalEntityOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalEntity.LegalEntityOutput"
                }
              }
            },
            "links": {}
          }
        },
        "summary": "Create a legal entity",
        "description": "Creates a Legal entity for one of your companies, identified by its tax identifier (OIB). When document exchange is enabled, it is also registered in A-Cube's metadata service (SMP), so senders can reach it. Creating a Legal entity you deleted earlier, with the same OIB, restores it.",
        "parameters": [],
        "requestBody": {
          "description": "The legal entity to create.",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/LegalEntity.LegalEntityCreateInput"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LegalEntity.LegalEntityCreateInput"
              }
            }
          },
          "required": true
        }
      }
    },
    "/legal-entities/{uuid}": {
      "get": {
        "operationId": "api_legal-entities_uuid_get",
        "tags": [
          "LegalEntity"
        ],
        "responses": {
          "404": {
            "description": "The legal entity does not exist"
          },
          "200": {
            "description": "LegalEntity resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalEntity.LegalEntityOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalEntity.LegalEntityOutput"
                }
              }
            }
          }
        },
        "summary": "Retrieves a LegalEntity resource.",
        "description": "Returns the corresponding legal entity by UUID.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "Internal identifier of the Legal entity.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "example": "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc"
          }
        ]
      },
      "put": {
        "operationId": "api_legal-entities_uuid_put",
        "tags": [
          "LegalEntity"
        ],
        "responses": {
          "400": {
            "description": "Invalid request format",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error.jsonld"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "links": {}
          },
          "404": {
            "description": "The legal entity does not exist"
          },
          "422": {
            "description": "Legal entity validation failed",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              }
            },
            "links": {}
          },
          "502": {
            "description": "The legal entity could not be removed from A-Cube's metadata service (SMP); nothing was updated"
          },
          "200": {
            "description": "LegalEntity resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalEntity.LegalEntityOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalEntity.LegalEntityOutput"
                }
              }
            },
            "links": {}
          }
        },
        "summary": "Update a legal entity",
        "description": "Updates the Legal entity; its tax identifier (OIB) can't be changed. Optional fields that are left out keep their current value. Turning document exchange on or off registers or removes the Legal entity in A-Cube's metadata service (SMP), and turning a service on or off resets its confirmation status to `not_checked`.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "Internal identifier of the Legal entity.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "example": "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc"
          }
        ],
        "requestBody": {
          "description": "The new values of the legal entity.",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/LegalEntity.LegalEntityUpdateInput"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LegalEntity.LegalEntityUpdateInput"
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "operationId": "api_legal-entities_uuid_delete",
        "tags": [
          "LegalEntity"
        ],
        "responses": {
          "404": {
            "description": "The legal entity does not exist"
          },
          "502": {
            "description": "The legal entity could not be removed from A-Cube's metadata service (SMP); it was not deleted"
          },
          "409": {
            "description": "The legal entity cannot be deleted while one or more rules are not met",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalEntityDeletionBlocked"
                }
              },
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalEntityDeletionBlocked.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalEntityDeletionBlocked"
                }
              }
            },
            "links": {}
          },
          "204": {
            "description": "LegalEntity resource deleted"
          }
        },
        "summary": "Delete a legal entity",
        "description": "Deletes the Legal entity and its sub-accounts, and removes it from A-Cube's metadata service (SMP). Its documents and reports stay readable. Creating it again with the same OIB restores it.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "Internal identifier of the Legal entity.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "example": "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc"
          }
        ]
      }
    },
    "/legal-entities/{uuid}/onboarding-check": {
      "post": {
        "operationId": "api_legal-entities_uuidonboarding-check_post",
        "tags": [
          "LegalEntity"
        ],
        "responses": {
          "200": {
            "description": "The onboarding status of the legal entity",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalEntity.LegalEntityOnboardingOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalEntity.LegalEntityOnboardingOutput"
                }
              }
            },
            "links": {}
          },
          "404": {
            "description": "The legal entity does not exist"
          }
        },
        "summary": "Check the onboarding of a legal entity",
        "description": "Asks the Tax Authority whether the Legal entity has chosen A-Cube as its provider: for document exchange in the address directory (AMS), for fiscalisation in the fiscalisation system (CIS). Services that aren't enabled aren't checked. The result is also saved on the Legal entity.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "Internal identifier of the Legal entity.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "example": "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc"
          }
        ]
      }
    },
    "/legal-entities/{legalEntityUuid}/sub-accounts": {
      "get": {
        "operationId": "api_legal-entities_legalEntityUuidsub-accounts_get_collection",
        "tags": [
          "LegalEntitySubAccount"
        ],
        "responses": {
          "200": {
            "description": "LegalEntitySubAccount collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "description": "LegalEntitySubAccount.LegalEntitySubAccountOutput.jsonld collection.",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/HydraCollectionBaseSchema"
                    },
                    {
                      "type": "object",
                      "required": [
                        "hydra:member"
                      ],
                      "properties": {
                        "hydra:member": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/LegalEntitySubAccount.LegalEntitySubAccountOutput.jsonld"
                          }
                        }
                      }
                    }
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LegalEntitySubAccount.LegalEntitySubAccountOutput"
                  }
                }
              }
            }
          }
        },
        "summary": "Retrieves the collection of LegalEntitySubAccount resources.",
        "description": "Retrieves the collection of LegalEntitySubAccount resources.",
        "parameters": [
          {
            "name": "legalEntityUuid",
            "in": "path",
            "description": "LegalEntity identifier",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 100
            },
            "style": "form",
            "explode": true
          }
        ]
      },
      "post": {
        "operationId": "api_legal-entities_legalEntityUuidsub-accounts_post",
        "tags": [
          "LegalEntitySubAccount"
        ],
        "responses": {
          "201": {
            "description": "LegalEntitySubAccount resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalEntitySubAccount.LegalEntitySubAccountOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalEntitySubAccount.LegalEntitySubAccountOutput"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error.jsonld"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "links": {}
          },
          "422": {
            "description": "An error occurred",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              }
            },
            "links": {}
          }
        },
        "summary": "Creates a LegalEntitySubAccount resource.",
        "description": "Creates a LegalEntitySubAccount resource.",
        "parameters": [
          {
            "name": "legalEntityUuid",
            "in": "path",
            "description": "LegalEntity identifier",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "The new LegalEntitySubAccount resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/LegalEntitySubAccount.LegalEntitySubAccountCreateInput"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LegalEntitySubAccount.LegalEntitySubAccountCreateInput"
              }
            }
          },
          "required": true
        }
      }
    },
    "/legal-entities/{legalEntityUuid}/sub-accounts/{uuid}": {
      "get": {
        "operationId": "api_legal-entities_legalEntityUuidsub-accounts_uuid_get",
        "tags": [
          "LegalEntitySubAccount"
        ],
        "responses": {
          "200": {
            "description": "LegalEntitySubAccount resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalEntitySubAccount.LegalEntitySubAccountOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalEntitySubAccount.LegalEntitySubAccountOutput"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error.jsonld"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "links": {}
          }
        },
        "summary": "Retrieves a LegalEntitySubAccount resource.",
        "description": "Retrieves a LegalEntitySubAccount resource.",
        "parameters": [
          {
            "name": "legalEntityUuid",
            "in": "path",
            "description": "LegalEntity identifier",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "LegalEntitySubAccount identifier",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ]
      },
      "delete": {
        "operationId": "api_legal-entities_legalEntityUuidsub-accounts_uuid_delete",
        "tags": [
          "LegalEntitySubAccount"
        ],
        "responses": {
          "204": {
            "description": "LegalEntitySubAccount resource deleted"
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error.jsonld"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "links": {}
          }
        },
        "summary": "Removes the LegalEntitySubAccount resource.",
        "description": "Removes the LegalEntitySubAccount resource.",
        "parameters": [
          {
            "name": "legalEntityUuid",
            "in": "path",
            "description": "LegalEntity identifier",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "LegalEntitySubAccount identifier",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ]
      }
    },
    "/tax-data-documents": {
      "get": {
        "operationId": "api_tax-data-documents_get_collection",
        "tags": [
          "TaxDataDocument"
        ],
        "responses": {
          "422": {
            "description": "A filter value is invalid"
          },
          "200": {
            "description": "TaxDataDocument collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "description": "TaxDataDocument.TaxDataDocumentOutput.jsonld collection.",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/HydraCollectionBaseSchema"
                    },
                    {
                      "type": "object",
                      "required": [
                        "hydra:member"
                      ],
                      "properties": {
                        "hydra:member": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/TaxDataDocument.TaxDataDocumentOutput.jsonld"
                          }
                        }
                      }
                    }
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaxDataDocument.TaxDataDocumentOutput"
                  }
                }
              }
            }
          }
        },
        "summary": "Retrieves the collection of TaxDataDocument resources.",
        "description": "Returns the paginated list of your Tax Data Documents, newest first. All filters are optional and combine with AND; a filter with several values matches any of them.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 100
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "legalEntityUuid[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc"
            ]
          },
          {
            "name": "documentUuid[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6"
            ]
          },
          {
            "name": "type[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outgoing",
                  "incoming",
                  "report_only"
                ]
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "outgoing"
            ]
          },
          {
            "name": "status[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "queued",
                  "accepted",
                  "rejected",
                  "failed"
                ]
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "accepted"
            ]
          }
        ]
      }
    },
    "/tax-data-documents/{type}": {
      "post": {
        "operationId": "api_tax-data-documents_type_post",
        "tags": [
          "TaxDataDocument"
        ],
        "responses": {
          "202": {
            "description": "Tax data document queued for sending.",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxDataDocument.TaxDataDocumentOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxDataDocument.TaxDataDocumentOutput"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The tax data document type is not outgoing, incoming or report_only."
          },
          "409": {
            "description": "Fiscalisation is not enabled for the legal entity, or the legal entity has not confirmed A-Cube as its fiscalisation provider.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxDataDocumentBlocked"
                }
              },
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxDataDocumentBlocked.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxDataDocumentBlocked"
                }
              }
            },
            "links": {}
          },
          "415": {
            "description": "The request Content-Type is not `application/xml` or `text/xml`."
          },
          "422": {
            "description": "The document is invalid, or the legal entity is not one of yours.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentBusinessRules"
                }
              },
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentBusinessRules.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentBusinessRules"
                }
              }
            },
            "links": {}
          }
        },
        "summary": "File a Tax Data Document for an external document",
        "description": "Accepts a UBL 2.1 XML invoice or credit note that was not sent or received through A-Cube, directly as request body, and files a Tax Data Document for it with the Tax Authority. The Legal entity named by the type (the supplier for `outgoing` and `report_only`, the customer for `incoming`) must be one of yours, with fiscalisation enabled and confirmed.",
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "Type of the Tax Data Document: outgoing (I) when the Legal entity is the supplier, incoming (U) when it is the customer, and report_only (IR) when it is the supplier and no electronic invoice was issued.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "enum": [
                "outgoing",
                "incoming",
                "report_only"
              ]
            },
            "style": "simple",
            "explode": false,
            "example": "outgoing"
          }
        ],
        "requestBody": {
          "description": "The payload of the invoice or credit note to file the Tax Data Document for. Must be a valid UBL 2.1 invoice or credit note following the Croatian e-invoicing specification (HR CIUS 2025 with extensions).",
          "content": {
            "application/xml": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "text/xml": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "required": true
        }
      }
    },
    "/tax-data-documents/{uuid}": {
      "get": {
        "operationId": "api_tax-data-documents_uuid_get",
        "tags": [
          "TaxDataDocument"
        ],
        "responses": {
          "404": {
            "description": "The Tax Data Document does not exist"
          },
          "200": {
            "description": "TaxDataDocument resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxDataDocument.TaxDataDocumentOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxDataDocument.TaxDataDocumentOutput"
                }
              }
            }
          }
        },
        "summary": "Retrieves a TaxDataDocument resource.",
        "description": "Returns the corresponding Tax Data Document by UUID, with its processing status and any errors from the Tax Authority.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "Internal identifier of the Tax Data Document.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "example": "0199e8d3-1a2b-7c3d-8e4f-5a6b7c8d9e0f"
          }
        ]
      }
    },
    "/event-destinations": {
      "get": {
        "operationId": "api_event-destinations_get_collection",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "422": {
            "description": "A filter value is invalid"
          },
          "200": {
            "description": "EventDestination collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "description": "EventDestination.EventDestinationOutput.jsonld collection.",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/HydraCollectionBaseSchema"
                    },
                    {
                      "type": "object",
                      "required": [
                        "hydra:member"
                      ],
                      "properties": {
                        "hydra:member": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/EventDestination.EventDestinationOutput.jsonld"
                          }
                        }
                      }
                    }
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EventDestination.EventDestinationOutput"
                  }
                }
              }
            }
          }
        },
        "summary": "List your event destinations",
        "description": "Returns the paginated list of your event destinations, each routing one event type to one target, newest first. All filters are optional and combine with AND; a filter with several values matches any of them.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 100
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "event[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "invoice.outgoing",
                  "invoice.incoming",
                  "credit_note.outgoing",
                  "credit_note.incoming",
                  "tax_data_document.outgoing"
                ]
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "invoice.incoming"
            ]
          },
          {
            "name": "target",
            "in": "query",
            "description": "Partial match, case-insensitive.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "example": "example.com"
          }
        ]
      },
      "post": {
        "operationId": "api_event-destinations_post",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "400": {
            "description": "Invalid request format",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error.jsonld"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "links": {}
          },
          "422": {
            "description": "Event destination validation failed",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              }
            },
            "links": {}
          },
          "201": {
            "description": "EventDestination resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EventDestination.EventDestinationOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventDestination.EventDestinationOutput"
                }
              }
            },
            "links": {}
          }
        },
        "summary": "Create an event destination",
        "description": "Creates an event destination that sends one event type to one URL.",
        "parameters": [],
        "requestBody": {
          "description": "The event destination to create.",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/EventDestination.EventDestinationCreateInput"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventDestination.EventDestinationCreateInput"
              }
            }
          },
          "required": true
        }
      }
    },
    "/event-destinations/{uuid}": {
      "get": {
        "operationId": "api_event-destinations_uuid_get",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "404": {
            "description": "The event destination does not exist"
          },
          "200": {
            "description": "EventDestination resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EventDestination.EventDestinationOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventDestination.EventDestinationOutput"
                }
              }
            }
          }
        },
        "summary": "Get an event destination",
        "description": "Returns the corresponding event destination by UUID.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "Internal identifier of the Event destination.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "example": "0199e8f6-5d4e-7f3a-9b2c-3d4e5f6a7b8c"
          }
        ]
      },
      "put": {
        "operationId": "api_event-destinations_uuid_put",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "400": {
            "description": "Invalid request format",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error.jsonld"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "links": {}
          },
          "404": {
            "description": "The event destination does not exist"
          },
          "422": {
            "description": "Event destination validation failed",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              }
            },
            "links": {}
          },
          "200": {
            "description": "EventDestination resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EventDestination.EventDestinationOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventDestination.EventDestinationOutput"
                }
              }
            },
            "links": {}
          }
        },
        "summary": "Update an event destination",
        "description": "Updates how A-Cube authenticates to the URL of the event destination. To change the event type or the URL, delete it and create a new one.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "Internal identifier of the Event destination.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "example": "0199e8f6-5d4e-7f3a-9b2c-3d4e5f6a7b8c"
          }
        ],
        "requestBody": {
          "description": "The new authentication of the event destination.",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/EventDestination.EventDestinationUpdateInput"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventDestination.EventDestinationUpdateInput"
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "operationId": "api_event-destinations_uuid_delete",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "404": {
            "description": "The event destination does not exist"
          },
          "204": {
            "description": "EventDestination resource deleted"
          }
        },
        "summary": "Delete an event destination",
        "description": "Deletes the event destination. It can't be recovered.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "Internal identifier of the Event destination.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "example": "0199e8f6-5d4e-7f3a-9b2c-3d4e5f6a7b8c"
          }
        ]
      }
    },
    "/credit-notes/{uuid}/payment-reports": {
      "post": {
        "operationId": "api_credit-notes_uuidpayment-reports_post",
        "tags": [
          "eReporting"
        ],
        "responses": {
          "202": {
            "description": "The payment report has been accepted and will be sent to the Tax Authority shortly",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentReport.PaymentReportOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentReport.PaymentReportOutput"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "Invalid request format"
          },
          "404": {
            "description": "The credit note does not exist"
          },
          "422": {
            "description": "Payment report validation failed",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              }
            },
            "links": {}
          },
          "500": {
            "description": "The payment report could not be built"
          },
          "409": {
            "description": "The report cannot be filed while one or more rules are not met",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/EReportBlocked"
                }
              },
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EReportBlocked.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EReportBlocked"
                }
              }
            },
            "links": {}
          }
        },
        "summary": "Report a payment for a credit note",
        "description": "Reports a payment received for a credit note sent through A-Cube. The legal entity of the credit note must be its supplier, with fiscalisation enabled and confirmed.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "Internal identifier of the Credit note the payment is reported for.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "example": "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6"
          }
        ],
        "requestBody": {
          "description": "The payment received for the credit note.",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentReport.PaymentReportByDocumentUuidCreateInput"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentReport.PaymentReportByDocumentUuidCreateInput"
              }
            }
          },
          "required": true
        }
      }
    },
    "/credit-notes/{uuid}/rejection-reports": {
      "post": {
        "operationId": "api_credit-notes_uuidrejection-reports_post",
        "tags": [
          "eReporting"
        ],
        "responses": {
          "202": {
            "description": "The rejection report has been accepted and will be sent to the Tax Authority shortly",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/RejectionReport.RejectionReportOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RejectionReport.RejectionReportOutput"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "Invalid request format"
          },
          "404": {
            "description": "The credit note does not exist"
          },
          "422": {
            "description": "Rejection report validation failed",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              }
            },
            "links": {}
          },
          "500": {
            "description": "The rejection report could not be built for the Tax Authority"
          },
          "409": {
            "description": "The report cannot be filed while one or more rules are not met",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/EReportBlocked"
                }
              },
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EReportBlocked.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EReportBlocked"
                }
              }
            },
            "links": {}
          }
        },
        "summary": "Report the rejection of a credit note",
        "description": "Reports the rejection of a credit note received through A-Cube. The legal entity of the credit note must be its recipient, with fiscalisation enabled and confirmed, and the credit note's Tax Data Document must be accepted. A credit note can be rejected once; it can be rejected again after the earlier rejection was refused or failed.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "Internal identifier of the Credit note that is rejected.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "example": "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6"
          }
        ],
        "requestBody": {
          "description": "The rejection of the credit note.",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/RejectionReport.RejectionReportByDocumentUuidCreateInput"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectionReport.RejectionReportByDocumentUuidCreateInput"
              }
            }
          },
          "required": true
        }
      }
    },
    "/invoices/{uuid}/payment-reports": {
      "post": {
        "operationId": "api_invoices_uuidpayment-reports_post",
        "tags": [
          "eReporting"
        ],
        "responses": {
          "202": {
            "description": "The payment report has been accepted and will be sent to the Tax Authority shortly",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentReport.PaymentReportOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentReport.PaymentReportOutput"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "Invalid request format"
          },
          "404": {
            "description": "The invoice does not exist"
          },
          "422": {
            "description": "Payment report validation failed",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              }
            },
            "links": {}
          },
          "500": {
            "description": "The payment report could not be built"
          },
          "409": {
            "description": "The report cannot be filed while one or more rules are not met",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/EReportBlocked"
                }
              },
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EReportBlocked.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EReportBlocked"
                }
              }
            },
            "links": {}
          }
        },
        "summary": "Report a payment for an invoice",
        "description": "Reports a payment received for an invoice sent through A-Cube. The legal entity of the invoice must be its supplier, with fiscalisation enabled and confirmed.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "Internal identifier of the Invoice the payment is reported for.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "example": "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6"
          }
        ],
        "requestBody": {
          "description": "The payment received for the invoice.",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentReport.PaymentReportByDocumentUuidCreateInput"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentReport.PaymentReportByDocumentUuidCreateInput"
              }
            }
          },
          "required": true
        }
      }
    },
    "/invoices/{uuid}/rejection-reports": {
      "post": {
        "operationId": "api_invoices_uuidrejection-reports_post",
        "tags": [
          "eReporting"
        ],
        "responses": {
          "202": {
            "description": "The rejection report has been accepted and will be sent to the Tax Authority shortly",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/RejectionReport.RejectionReportOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RejectionReport.RejectionReportOutput"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "Invalid request format"
          },
          "404": {
            "description": "The invoice does not exist"
          },
          "422": {
            "description": "Rejection report validation failed",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              }
            },
            "links": {}
          },
          "500": {
            "description": "The rejection report could not be built for the Tax Authority"
          },
          "409": {
            "description": "The report cannot be filed while one or more rules are not met",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/EReportBlocked"
                }
              },
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EReportBlocked.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EReportBlocked"
                }
              }
            },
            "links": {}
          }
        },
        "summary": "Report the rejection of an invoice",
        "description": "Reports the rejection of an invoice received through A-Cube. The legal entity of the invoice must be its recipient, with fiscalisation enabled and confirmed, and the invoice's Tax Data Document must be accepted. An invoice can be rejected once; it can be rejected again after the earlier rejection was refused or failed.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "Internal identifier of the Invoice that is rejected.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "example": "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6"
          }
        ],
        "requestBody": {
          "description": "The rejection of the invoice.",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/RejectionReport.RejectionReportByDocumentUuidCreateInput"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectionReport.RejectionReportByDocumentUuidCreateInput"
              }
            }
          },
          "required": true
        }
      }
    },
    "/payment-reports": {
      "get": {
        "operationId": "api_payment-reports_get_collection",
        "tags": [
          "eReporting"
        ],
        "responses": {
          "422": {
            "description": "A filter value is invalid"
          },
          "200": {
            "description": "PaymentReport collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "description": "PaymentReport.PaymentReportOutput.jsonld collection.",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/HydraCollectionBaseSchema"
                    },
                    {
                      "type": "object",
                      "required": [
                        "hydra:member"
                      ],
                      "properties": {
                        "hydra:member": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/PaymentReport.PaymentReportOutput.jsonld"
                          }
                        }
                      }
                    }
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PaymentReport.PaymentReportOutput"
                  }
                }
              }
            }
          }
        },
        "summary": "Retrieves the collection of PaymentReport resources.",
        "description": "Returns the paginated list of your payment reports, newest first. All filters are optional and combine with AND; a filter with several values matches any of them.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 100
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "legalEntityUuid[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc"
            ]
          },
          {
            "name": "documentUuid[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6"
            ]
          },
          {
            "name": "invoiceNumber[]",
            "in": "query",
            "description": "Number of the document (invoice or credit note); exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "Invoice-Number-1"
            ]
          },
          {
            "name": "issueYear[]",
            "in": "query",
            "description": "Year the document was issued, YYYY; exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^\\d{4}$"
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "2026"
            ]
          },
          {
            "name": "customerTaxId[]",
            "in": "query",
            "description": "Tax identifier (OIB) of the customer; exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^\\d{11}$"
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "75608754333"
            ]
          },
          {
            "name": "paymentDate[]",
            "in": "query",
            "description": "YYYY-MM-DD; exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "date"
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "2026-10-15"
            ]
          }
        ]
      },
      "post": {
        "operationId": "api_payment-reports_post",
        "tags": [
          "eReporting"
        ],
        "responses": {
          "202": {
            "description": "The payment report has been accepted and will be sent to the Tax Authority shortly",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentReport.PaymentReportOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentReport.PaymentReportOutput"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "Invalid request format"
          },
          "422": {
            "description": "Payment report validation failed, or the supplier is not one of your legal entities",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              }
            },
            "links": {}
          },
          "500": {
            "description": "The payment report could not be built for the Tax Authority"
          },
          "409": {
            "description": "The report cannot be filed while one or more rules are not met",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/EReportBlocked"
                }
              },
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EReportBlocked.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EReportBlocked"
                }
              }
            },
            "links": {}
          }
        },
        "summary": "Report a payment for an external document",
        "description": "Reports a payment received for an invoice or credit note that was not sent through A-Cube, identified by its number, issue date, supplier and customer. The supplier must be one of your legal entities, with fiscalisation enabled and confirmed.",
        "parameters": [],
        "requestBody": {
          "description": "The payment received, and the document it was received for.",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentReport.PaymentReportByDocumentReferenceCreateInput"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentReport.PaymentReportByDocumentReferenceCreateInput"
              }
            }
          },
          "required": true
        }
      }
    },
    "/payment-reports/{uuid}": {
      "get": {
        "operationId": "api_payment-reports_uuid_get",
        "tags": [
          "eReporting"
        ],
        "responses": {
          "404": {
            "description": "The payment report does not exist"
          },
          "200": {
            "description": "PaymentReport resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentReport.PaymentReportOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentReport.PaymentReportOutput"
                }
              }
            }
          }
        },
        "summary": "Retrieves a PaymentReport resource.",
        "description": "Returns the corresponding payment report by UUID, with its processing status and any errors from the Tax Authority.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "Internal identifier of the Payment report.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "example": "0199e8b4-6f1a-7c2d-9e3f-4a5b6c7d8e9f"
          }
        ]
      }
    },
    "/rejection-reports": {
      "get": {
        "operationId": "api_rejection-reports_get_collection",
        "tags": [
          "eReporting"
        ],
        "responses": {
          "422": {
            "description": "A filter value is invalid"
          },
          "200": {
            "description": "RejectionReport collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "description": "RejectionReport.RejectionReportOutput.jsonld collection.",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/HydraCollectionBaseSchema"
                    },
                    {
                      "type": "object",
                      "required": [
                        "hydra:member"
                      ],
                      "properties": {
                        "hydra:member": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/RejectionReport.RejectionReportOutput.jsonld"
                          }
                        }
                      }
                    }
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RejectionReport.RejectionReportOutput"
                  }
                }
              }
            }
          }
        },
        "summary": "Retrieves the collection of RejectionReport resources.",
        "description": "Returns the paginated list of your rejection reports, newest first. All filters are optional and combine with AND; a filter with several values matches any of them.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 100
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "legalEntityUuid[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc"
            ]
          },
          {
            "name": "documentUuid[]",
            "in": "query",
            "description": "Exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6"
            ]
          },
          {
            "name": "invoiceNumber[]",
            "in": "query",
            "description": "Number of the document (invoice or credit note); exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "Invoice-Number-1"
            ]
          },
          {
            "name": "issueYear[]",
            "in": "query",
            "description": "Year the document was issued, YYYY; exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^\\d{4}$"
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "2026"
            ]
          },
          {
            "name": "supplierTaxId[]",
            "in": "query",
            "description": "Tax identifier (OIB) of the supplier; exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^\\d{11}$"
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "48780941616"
            ]
          },
          {
            "name": "customerTaxId[]",
            "in": "query",
            "description": "Tax identifier (OIB) of the customer; exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^\\d{11}$"
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "75608754333"
            ]
          },
          {
            "name": "rejectionDate[]",
            "in": "query",
            "description": "YYYY-MM-DD; exact match.",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "date"
              }
            },
            "style": "form",
            "explode": true,
            "example": [
              "2026-10-15"
            ]
          }
        ]
      },
      "post": {
        "operationId": "api_rejection-reports_post",
        "tags": [
          "eReporting"
        ],
        "responses": {
          "202": {
            "description": "The rejection report has been accepted and will be sent to the Tax Authority shortly",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/RejectionReport.RejectionReportOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RejectionReport.RejectionReportOutput"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "Invalid request format"
          },
          "422": {
            "description": "Rejection report validation failed, or the legal entity is not one of yours",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintViolation"
                }
              }
            },
            "links": {}
          },
          "500": {
            "description": "The rejection report could not be built for the Tax Authority"
          },
          "409": {
            "description": "The report cannot be filed while one or more rules are not met",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/EReportBlocked"
                }
              },
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EReportBlocked.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EReportBlocked"
                }
              }
            },
            "links": {}
          }
        },
        "summary": "Report the rejection of an external document",
        "description": "Reports the rejection of an invoice or credit note that was not received through A-Cube, identified by its number, issue date, supplier and customer. The Legal entity in the body must be its supplier or customer: the customer for a regular document, the supplier for a self-billed one. Fiscalisation must be enabled and confirmed for the legal entity. A document can be rejected once; it can be rejected again after the earlier rejection was refused or failed.",
        "parameters": [],
        "requestBody": {
          "description": "The rejection, and the document it is for.",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/RejectionReport.RejectionReportByDocumentReferenceCreateInput"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectionReport.RejectionReportByDocumentReferenceCreateInput"
              }
            }
          },
          "required": true
        }
      }
    },
    "/rejection-reports/{uuid}": {
      "get": {
        "operationId": "api_rejection-reports_uuid_get",
        "tags": [
          "eReporting"
        ],
        "responses": {
          "404": {
            "description": "The rejection report does not exist"
          },
          "200": {
            "description": "RejectionReport resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/RejectionReport.RejectionReportOutput.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RejectionReport.RejectionReportOutput"
                }
              }
            }
          }
        },
        "summary": "Retrieves a RejectionReport resource.",
        "description": "Returns the corresponding rejection report by UUID, with its processing status and any errors from the Tax Authority.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "Internal identifier of the Rejection report.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "example": "0199e8c2-1a2b-7c3d-8e4f-5a6b7c8d9e0f"
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ActionBlocker": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Code of the rule that blocks the action.",
            "example": "legal_entity_not_onboarded"
          },
          "message": {
            "type": "string",
            "description": "A human-readable explanation of the rule.",
            "example": "Legal entity has not been onboarded."
          },
          "count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of items that block the action, if any.",
            "example": null
          }
        }
      },
      "ActionBlocker.jsonld": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Code of the rule that blocks the action.",
            "example": "legal_entity_not_onboarded"
          },
          "message": {
            "type": "string",
            "description": "A human-readable explanation of the rule.",
            "example": "Legal entity has not been onboarded."
          },
          "count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of items that block the action, if any.",
            "example": null
          }
        }
      },
      "CisErrorOutput": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code returned by the Tax Authority. S998 and S999 are A-Cube's own: the outcome is unknown, or the answer had no recognised code.",
            "example": "S009",
            "enum": [
              "S001",
              "S002",
              "S003",
              "S004",
              "S005",
              "S006",
              "S007",
              "S008",
              "S009",
              "S010",
              "S011",
              "S012",
              "S998",
              "S999"
            ]
          },
          "description": {
            "type": "string",
            "description": "Meaning of the error code.",
            "example": "No recorded document for this identifier"
          }
        }
      },
      "CisErrorOutput.jsonld": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code returned by the Tax Authority. S998 and S999 are A-Cube's own: the outcome is unknown, or the answer had no recognised code.",
            "example": "S009",
            "enum": [
              "S001",
              "S002",
              "S003",
              "S004",
              "S005",
              "S006",
              "S007",
              "S008",
              "S009",
              "S010",
              "S011",
              "S012",
              "S998",
              "S999"
            ]
          },
          "description": {
            "type": "string",
            "description": "Meaning of the error code.",
            "example": "No recorded document for this identifier"
          }
        }
      },
      "ConstraintViolation": {
        "type": "object",
        "description": "Unprocessable entity",
        "properties": {
          "status": {
            "default": 422,
            "type": "integer"
          },
          "violations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "propertyPath": {
                  "type": "string",
                  "description": "The property path of the violation"
                },
                "message": {
                  "type": "string",
                  "description": "The message associated with the violation"
                },
                "code": {
                  "type": "string",
                  "description": "The code of the violation"
                },
                "hint": {
                  "type": "string",
                  "description": "An extra hint to understand the violation"
                },
                "payload": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "The serialized payload of the violation"
                }
              },
              "required": [
                "propertyPath",
                "message"
              ]
            }
          },
          "detail": {
            "readOnly": true,
            "type": "string"
          },
          "type": {
            "readOnly": true,
            "type": "string"
          },
          "title": {
            "readOnly": true,
            "type": [
              "string",
              "null"
            ]
          },
          "instance": {
            "readOnly": true,
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ConstraintViolation.jsonld": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HydraItemBaseSchema"
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "default": 422,
                "type": "integer"
              },
              "violations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "propertyPath": {
                      "type": "string",
                      "description": "The property path of the violation"
                    },
                    "message": {
                      "type": "string",
                      "description": "The message associated with the violation"
                    },
                    "code": {
                      "type": "string",
                      "description": "The code of the violation"
                    },
                    "hint": {
                      "type": "string",
                      "description": "An extra hint to understand the violation"
                    },
                    "payload": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "The serialized payload of the violation"
                    }
                  },
                  "required": [
                    "propertyPath",
                    "message"
                  ]
                }
              },
              "detail": {
                "readOnly": true,
                "type": "string"
              },
              "description": {
                "readOnly": true,
                "type": "string"
              },
              "type": {
                "readOnly": true,
                "type": "string"
              },
              "title": {
                "readOnly": true,
                "type": [
                  "string",
                  "null"
                ]
              },
              "instance": {
                "readOnly": true,
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        ],
        "description": "Unprocessable entity"
      },
      "CreditNote.CreditNoteOutput": {
        "type": "object",
        "description": "Send credit notes and read the credit notes your legal entities sent or received.",
        "properties": {
          "uuid": {
            "type": "string",
            "description": "Internal identifier of the Credit note.",
            "format": "uuid",
            "example": "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6"
          },
          "legalEntityUuid": {
            "type": "string",
            "description": "Internal identifier of the Legal entity that sent or received the Credit note.",
            "format": "uuid",
            "example": "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc"
          },
          "creditNoteNumber": {
            "type": "string",
            "description": "Credit note number as assigned by the issuer.",
            "example": "127/HR1/1"
          },
          "creditNoteDate": {
            "type": "string",
            "description": "Date the Credit note was issued.",
            "format": "date",
            "example": "2026-10-01"
          },
          "currency": {
            "type": "string",
            "description": "Currency of the Credit note.",
            "example": "EUR"
          },
          "totalAmount": {
            "type": "string",
            "description": "Total payable amount of the Credit note, tax included.",
            "example": "1656.25"
          },
          "netAmount": {
            "type": "string",
            "description": "Net amount of the Credit note, tax excluded.",
            "example": "1325.00"
          },
          "direction": {
            "type": "string",
            "description": "Direction of the Credit note: whether it was sent (outgoing) or received (incoming9.",
            "enum": [
              "incoming",
              "outgoing"
            ],
            "example": "incoming"
          },
          "typeCode": {
            "type": "string",
            "description": "Type code of the Credit note, UNTDID 1001: for example 381 (credit note) or 261 (self-billed credit note).",
            "enum": [
              "81",
              "83",
              "261",
              "381",
              "396",
              "458"
            ],
            "example": "381"
          },
          "businessProcess": {
            "type": "string",
            "description": "Business process of the Credit note, P1–P12 or P99.",
            "enum": [
              "P1",
              "P2",
              "P3",
              "P4",
              "P5",
              "P6",
              "P7",
              "P8",
              "P9",
              "P10",
              "P11",
              "P12",
              "P99"
            ],
            "example": "P1"
          },
          "sender": {
            "$ref": "#/components/schemas/DocumentPartyOutput"
          },
          "recipient": {
            "$ref": "#/components/schemas/DocumentPartyOutput"
          },
          "status": {
            "type": "string",
            "description": "The status of the Credit note in the system.",
            "enum": [
              "received",
              "valid",
              "sending_started",
              "sending_queued",
              "sending_failed",
              "sent",
              "delivered",
              "delivery_failed",
              "undeliverable"
            ],
            "example": "delivered"
          },
          "downloaded": {
            "type": "boolean",
            "description": "Whether the Credit note document has already been downloaded.",
            "example": false
          },
          "downloadedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date and time the Credit note document was downloaded, in ATOM format, if any.",
            "format": "date-time",
            "example": "2026-11-02T08:30:00+00:00"
          },
          "createdAt": {
            "type": "string",
            "description": "Date and time the Credit note was created in the system, in ATOM format.",
            "format": "date-time",
            "example": "2026-11-01T10:00:00+00:00"
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date and time the Credit note was last updated in the system, in ATOM format; null if it was never updated.",
            "format": "date-time",
            "example": "2026-11-01T10:05:00+00:00"
          }
        }
      },
      "CreditNote.CreditNoteOutput.jsonld": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HydraItemBaseSchema"
          },
          {
            "type": "object",
            "properties": {
              "uuid": {
                "type": "string",
                "description": "Internal identifier of the Credit note.",
                "format": "uuid",
                "example": "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6"
              },
              "legalEntityUuid": {
                "type": "string",
                "description": "Internal identifier of the Legal entity that sent or received the Credit note.",
                "format": "uuid",
                "example": "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc"
              },
              "creditNoteNumber": {
                "type": "string",
                "description": "Credit note number as assigned by the issuer.",
                "example": "127/HR1/1"
              },
              "creditNoteDate": {
                "type": "string",
                "description": "Date the Credit note was issued.",
                "format": "date",
                "example": "2026-10-01"
              },
              "currency": {
                "type": "string",
                "description": "Currency of the Credit note.",
                "example": "EUR"
              },
              "totalAmount": {
                "type": "string",
                "description": "Total payable amount of the Credit note, tax included.",
                "example": "1656.25"
              },
              "netAmount": {
                "type": "string",
                "description": "Net amount of the Credit note, tax excluded.",
                "example": "1325.00"
              },
              "direction": {
                "type": "string",
                "description": "Direction of the Credit note: whether it was sent (outgoing) or received (incoming9.",
                "enum": [
                  "incoming",
                  "outgoing"
                ],
                "example": "incoming"
              },
              "typeCode": {
                "type": "string",
                "description": "Type code of the Credit note, UNTDID 1001: for example 381 (credit note) or 261 (self-billed credit note).",
                "enum": [
                  "81",
                  "83",
                  "261",
                  "381",
                  "396",
                  "458"
                ],
                "example": "381"
              },
              "businessProcess": {
                "type": "string",
                "description": "Business process of the Credit note, P1–P12 or P99.",
                "enum": [
                  "P1",
                  "P2",
                  "P3",
                  "P4",
                  "P5",
                  "P6",
                  "P7",
                  "P8",
                  "P9",
                  "P10",
                  "P11",
                  "P12",
                  "P99"
                ],
                "example": "P1"
              },
              "sender": {
                "$ref": "#/components/schemas/DocumentPartyOutput.jsonld"
              },
              "recipient": {
                "$ref": "#/components/schemas/DocumentPartyOutput.jsonld"
              },
              "status": {
                "type": "string",
                "description": "The status of the Credit note in the system.",
                "enum": [
                  "received",
                  "valid",
                  "sending_started",
                  "sending_queued",
                  "sending_failed",
                  "sent",
                  "delivered",
                  "delivery_failed",
                  "undeliverable"
                ],
                "example": "delivered"
              },
              "downloaded": {
                "type": "boolean",
                "description": "Whether the Credit note document has already been downloaded.",
                "example": false
              },
              "downloadedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Date and time the Credit note document was downloaded, in ATOM format, if any.",
                "format": "date-time",
                "example": "2026-11-02T08:30:00+00:00"
              },
              "createdAt": {
                "type": "string",
                "description": "Date and time the Credit note was created in the system, in ATOM format.",
                "format": "date-time",
                "example": "2026-11-01T10:00:00+00:00"
              },
              "updatedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Date and time the Credit note was last updated in the system, in ATOM format; null if it was never updated.",
                "format": "date-time",
                "example": "2026-11-01T10:05:00+00:00"
              }
            }
          }
        ],
        "description": "Send credit notes and read the credit notes your legal entities sent or received."
      },
      "CreditNoteSendingBlocked": {
        "type": "object",
        "description": "The credit note cannot be sent while one or more rules are not met",
        "properties": {
          "blockers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActionBlocker"
            }
          },
          "type": {
            "readOnly": true,
            "type": "string",
            "description": "A URI reference that identifies the problem type"
          },
          "title": {
            "readOnly": true,
            "type": "string",
            "description": "A short, human-readable summary of the problem."
          },
          "status": {
            "readOnly": true,
            "type": "integer",
            "description": "HTTP status code of the problem."
          },
          "detail": {
            "readOnly": true,
            "type": "string",
            "description": "A human-readable explanation specific to this occurrence of the problem."
          }
        }
      },
      "CreditNoteSendingBlocked.jsonld": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HydraItemBaseSchema"
          },
          {
            "type": "object",
            "properties": {
              "blockers": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ActionBlocker.jsonld"
                }
              },
              "type": {
                "readOnly": true,
                "type": "string",
                "description": "A URI reference that identifies the problem type"
              },
              "title": {
                "readOnly": true,
                "type": "string",
                "description": "A short, human-readable summary of the problem."
              },
              "status": {
                "readOnly": true,
                "type": "integer",
                "description": "HTTP status code of the problem."
              },
              "detail": {
                "readOnly": true,
                "type": "string",
                "description": "A human-readable explanation specific to this occurrence of the problem."
              }
            }
          }
        ],
        "description": "The credit note cannot be sent while one or more rules are not met"
      },
      "DocumentBusinessRuleIssue": {
        "type": "object",
        "properties": {
          "level": {
            "type": "string",
            "description": "Severity of the issue.",
            "example": "ERROR"
          },
          "id": {
            "type": "string",
            "description": "Identifier of the business rule.",
            "example": "HR-BR-53"
          },
          "fieldName": {
            "type": "string",
            "description": "Location of the issue in the document, as an XPath.",
            "example": "/:Invoice[1]"
          },
          "text": {
            "type": "string",
            "description": "Description of the business rule, as published with the CIUS.",
            "example": "HR PDV identifikacijski broj (BT-31, BT-48, BT-63) ili porezni identifikator (BT-32) mora biti ispravan OIB"
          }
        }
      },
      "DocumentBusinessRuleIssue.jsonld": {
        "type": "object",
        "properties": {
          "level": {
            "type": "string",
            "description": "Severity of the issue.",
            "example": "ERROR"
          },
          "id": {
            "type": "string",
            "description": "Identifier of the business rule.",
            "example": "HR-BR-53"
          },
          "fieldName": {
            "type": "string",
            "description": "Location of the issue in the document, as an XPath.",
            "example": "/:Invoice[1]"
          },
          "text": {
            "type": "string",
            "description": "Description of the business rule, as published with the CIUS.",
            "example": "HR PDV identifikacijski broj (BT-31, BT-48, BT-63) ili porezni identifikator (BT-32) mora biti ispravan OIB"
          }
        }
      },
      "DocumentBusinessRules": {
        "type": "object",
        "description": "The document did not pass business rule validation against the Croatian e-invoicing specification (HR CIUS 2025 with extensions).",
        "properties": {
          "mostSevereErrorLevel": {
            "type": "string",
            "description": "Most severe level among the issues found.",
            "example": "ERROR"
          },
          "issues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentBusinessRuleIssue"
            }
          },
          "type": {
            "readOnly": true,
            "type": "string",
            "description": "A URI reference that identifies the problem type"
          },
          "title": {
            "readOnly": true,
            "type": "string",
            "description": "A short, human-readable summary of the problem."
          },
          "status": {
            "readOnly": true,
            "type": "integer",
            "description": "HTTP status code of the problem."
          },
          "detail": {
            "readOnly": true,
            "type": "string",
            "description": "A human-readable explanation specific to this occurrence of the problem."
          }
        }
      },
      "DocumentBusinessRules.jsonld": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HydraItemBaseSchema"
          },
          {
            "type": "object",
            "properties": {
              "mostSevereErrorLevel": {
                "type": "string",
                "description": "Most severe level among the issues found.",
                "example": "ERROR"
              },
              "issues": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DocumentBusinessRuleIssue.jsonld"
                }
              },
              "type": {
                "readOnly": true,
                "type": "string",
                "description": "A URI reference that identifies the problem type"
              },
              "title": {
                "readOnly": true,
                "type": "string",
                "description": "A short, human-readable summary of the problem."
              },
              "status": {
                "readOnly": true,
                "type": "integer",
                "description": "HTTP status code of the problem."
              },
              "detail": {
                "readOnly": true,
                "type": "string",
                "description": "A human-readable explanation specific to this occurrence of the problem."
              }
            }
          }
        ],
        "description": "The document did not pass business rule validation against the Croatian e-invoicing specification (HR CIUS 2025 with extensions)."
      },
      "DocumentPartyOutput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the party extracted from the document.",
            "example": "Example Company d.o.o."
          },
          "taxId": {
            "type": "string",
            "description": "Tax identifier (OIB) of the party.",
            "pattern": "^\\d{11}$",
            "example": "48780941616"
          }
        }
      },
      "DocumentPartyOutput.jsonld": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the party extracted from the document.",
            "example": "Example Company d.o.o."
          },
          "taxId": {
            "type": "string",
            "description": "Tax identifier (OIB) of the party.",
            "pattern": "^\\d{11}$",
            "example": "48780941616"
          }
        }
      },
      "EReportBlocked": {
        "type": "object",
        "description": "The report cannot be filed while one or more rules are not met",
        "properties": {
          "blockers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActionBlocker"
            }
          },
          "type": {
            "readOnly": true,
            "type": "string",
            "description": "A URI reference that identifies the problem type"
          },
          "title": {
            "readOnly": true,
            "type": "string",
            "description": "A short, human-readable summary of the problem."
          },
          "status": {
            "readOnly": true,
            "type": "integer",
            "description": "HTTP status code of the problem."
          },
          "detail": {
            "readOnly": true,
            "type": "string",
            "description": "A human-readable explanation specific to this occurrence of the problem."
          }
        }
      },
      "EReportBlocked.jsonld": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HydraItemBaseSchema"
          },
          {
            "type": "object",
            "properties": {
              "blockers": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ActionBlocker.jsonld"
                }
              },
              "type": {
                "readOnly": true,
                "type": "string",
                "description": "A URI reference that identifies the problem type"
              },
              "title": {
                "readOnly": true,
                "type": "string",
                "description": "A short, human-readable summary of the problem."
              },
              "status": {
                "readOnly": true,
                "type": "integer",
                "description": "HTTP status code of the problem."
              },
              "detail": {
                "readOnly": true,
                "type": "string",
                "description": "A human-readable explanation specific to this occurrence of the problem."
              }
            }
          }
        ],
        "description": "The report cannot be filed while one or more rules are not met"
      },
      "Error": {
        "type": "object",
        "description": "A representation of common errors.",
        "properties": {
          "title": {
            "readOnly": true,
            "description": "A short, human-readable summary of the problem.",
            "type": [
              "string",
              "null"
            ]
          },
          "detail": {
            "readOnly": true,
            "description": "A human-readable explanation specific to this occurrence of the problem.",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": [
              "integer",
              "null"
            ],
            "examples": [
              404
            ],
            "default": 400
          },
          "instance": {
            "readOnly": true,
            "description": "A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "readOnly": true,
            "description": "A URI reference that identifies the problem type",
            "type": "string"
          }
        }
      },
      "Error.jsonld": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HydraItemBaseSchema"
          },
          {
            "type": "object",
            "properties": {
              "title": {
                "readOnly": true,
                "description": "A short, human-readable summary of the problem.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "detail": {
                "readOnly": true,
                "description": "A human-readable explanation specific to this occurrence of the problem.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": [
                  "integer",
                  "null"
                ],
                "examples": [
                  404
                ],
                "default": 400
              },
              "instance": {
                "readOnly": true,
                "description": "A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "type": {
                "readOnly": true,
                "description": "A URI reference that identifies the problem type",
                "type": "string"
              },
              "description": {
                "readOnly": true,
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        ],
        "description": "A representation of common errors."
      },
      "EventDestination.EventDestinationCreateInput": {
        "type": "object",
        "description": "Receive notifications about your documents: each event destination sends one event type to one URL.",
        "properties": {
          "event": {
            "enum": [
              "invoice.outgoing",
              "invoice.incoming",
              "credit_note.outgoing",
              "credit_note.incoming",
              "tax_data_document.outgoing"
            ],
            "type": "string",
            "description": "Event type sent to the URL.",
            "example": "invoice.incoming"
          },
          "delivery": {
            "enum": [
              "webhook"
            ],
            "type": "string",
            "description": "Where the event notification must be submitted.",
            "example": "webhook"
          },
          "target": {
            "type": "string",
            "description": "URL the events are sent to.",
            "example": "https://example.com/webhook"
          },
          "authType": {
            "enum": [
              "none",
              "query",
              "header"
            ],
            "type": "string",
            "description": "How A-Cube authenticates to the URL: none, header (the token in a request header) or query (the token in the URL query).",
            "example": "header"
          },
          "authKey": {
            "type": [
              "string",
              "null"
            ],
            "description": "Token A-Cube sends with each event; null when authType is none.",
            "example": "xxxxxxxxxxxxxxxxx"
          },
          "authToken": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "target"
        ]
      },
      "EventDestination.EventDestinationOutput": {
        "type": "object",
        "description": "Receive notifications about your documents: each event destination sends one event type to one URL.",
        "properties": {
          "uuid": {
            "type": "string",
            "description": "Internal identifier of the Event destination.",
            "example": "0199e8f6-5d4e-7f3a-9b2c-3d4e5f6a7b8c",
            "format": "uuid"
          },
          "event": {
            "type": "string",
            "description": "Event type sent to the URL.",
            "example": "invoice.incoming",
            "enum": [
              "invoice.outgoing",
              "invoice.incoming",
              "credit_note.outgoing",
              "credit_note.incoming",
              "tax_data_document.outgoing"
            ]
          },
          "delivery": {
            "type": "string",
            "description": "Where the event notification must be submitted.",
            "example": "webhook",
            "enum": [
              "webhook"
            ]
          },
          "target": {
            "type": "string",
            "description": "URL the events are sent to.",
            "example": "https://example.com/webhook"
          },
          "authType": {
            "type": "string",
            "description": "How A-Cube authenticates to the URL: none, header (the token in a request header) or query (the token in the URL query).",
            "example": "header",
            "enum": [
              "none",
              "query",
              "header"
            ]
          },
          "authKey": {
            "type": [
              "string",
              "null"
            ]
          },
          "authToken": {
            "type": [
              "string",
              "null"
            ],
            "description": "Token A-Cube sends with each event; null when authType is none.",
            "example": "xxxxxxxxxxxxxxxxx"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "EventDestination.EventDestinationOutput.jsonld": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HydraItemBaseSchema"
          },
          {
            "type": "object",
            "properties": {
              "uuid": {
                "type": "string",
                "description": "Internal identifier of the Event destination.",
                "example": "0199e8f6-5d4e-7f3a-9b2c-3d4e5f6a7b8c",
                "format": "uuid"
              },
              "event": {
                "type": "string",
                "description": "Event type sent to the URL.",
                "example": "invoice.incoming",
                "enum": [
                  "invoice.outgoing",
                  "invoice.incoming",
                  "credit_note.outgoing",
                  "credit_note.incoming",
                  "tax_data_document.outgoing"
                ]
              },
              "delivery": {
                "type": "string",
                "description": "Where the event notification must be submitted.",
                "example": "webhook",
                "enum": [
                  "webhook"
                ]
              },
              "target": {
                "type": "string",
                "description": "URL the events are sent to.",
                "example": "https://example.com/webhook"
              },
              "authType": {
                "type": "string",
                "description": "How A-Cube authenticates to the URL: none, header (the token in a request header) or query (the token in the URL query).",
                "example": "header",
                "enum": [
                  "none",
                  "query",
                  "header"
                ]
              },
              "authKey": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "authToken": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Token A-Cube sends with each event; null when authType is none.",
                "example": "xxxxxxxxxxxxxxxxx"
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        ],
        "description": "Receive notifications about your documents: each event destination sends one event type to one URL."
      },
      "EventDestination.EventDestinationUpdateInput": {
        "type": "object",
        "description": "Receive notifications about your documents: each event destination sends one event type to one URL.",
        "properties": {
          "authType": {
            "enum": [
              "none",
              "query",
              "header"
            ],
            "type": "string",
            "description": "How A-Cube authenticates to the URL: none, header (the token in a request header) or query (the token in the URL query).",
            "example": "header"
          },
          "authKey": {
            "type": [
              "string",
              "null"
            ],
            "description": "Token A-Cube sends with each event; null when authType is none.",
            "example": "xxxxxxxxxxxxxxxxx"
          },
          "authToken": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "HydraCollectionBaseSchema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HydraCollectionBaseSchemaNoPagination"
          },
          {
            "type": "object",
            "properties": {
              "hydra:view": {
                "type": "object",
                "properties": {
                  "@id": {
                    "type": "string",
                    "format": "iri-reference"
                  },
                  "@type": {
                    "type": "string"
                  },
                  "hydra:first": {
                    "type": "string",
                    "format": "iri-reference"
                  },
                  "hydra:last": {
                    "type": "string",
                    "format": "iri-reference"
                  },
                  "hydra:previous": {
                    "type": "string",
                    "format": "iri-reference"
                  },
                  "hydra:next": {
                    "type": "string",
                    "format": "iri-reference"
                  }
                },
                "example": {
                  "@id": "string",
                  "@type": "string",
                  "hydra:first": "string",
                  "hydra:last": "string",
                  "hydra:previous": "string",
                  "hydra:next": "string"
                }
              }
            }
          }
        ]
      },
      "HydraCollectionBaseSchemaNoPagination": {
        "type": "object",
        "properties": {
          "hydra:totalItems": {
            "type": "integer",
            "minimum": 0
          },
          "hydra:search": {
            "type": "object",
            "properties": {
              "@type": {
                "type": "string"
              },
              "hydra:template": {
                "type": "string"
              },
              "hydra:variableRepresentation": {
                "type": "string"
              },
              "hydra:mapping": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "@type": {
                      "type": "string"
                    },
                    "variable": {
                      "type": "string"
                    },
                    "property": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "required": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "HydraItemBaseSchema": {
        "type": "object",
        "properties": {
          "@context": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "type": "string"
          },
          "@type": {
            "type": "string"
          }
        },
        "required": [
          "@id",
          "@type"
        ]
      },
      "Invoice.InvoiceOutput": {
        "type": "object",
        "description": "Send invoices and read the invoices your legal entities sent or received.",
        "properties": {
          "uuid": {
            "type": "string",
            "description": "Internal identifier of the Invoice.",
            "format": "uuid",
            "example": "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6"
          },
          "legalEntityUuid": {
            "type": "string",
            "description": "Internal identifier of the Legal entity that sent or received the Invoice.",
            "format": "uuid",
            "example": "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc"
          },
          "invoiceNumber": {
            "type": "string",
            "description": "Invoice number as assigned by the issuer.",
            "example": "125/HR1/1"
          },
          "invoiceDate": {
            "type": "string",
            "description": "Date the Invoice was issued.",
            "format": "date",
            "example": "2026-10-01"
          },
          "dueDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Payment due date of the Invoice, if any.",
            "format": "date",
            "example": "2026-10-31"
          },
          "currency": {
            "type": "string",
            "description": "Currency of the Invoice.",
            "example": "EUR"
          },
          "totalAmount": {
            "type": "string",
            "description": "Total payable amount of the Invoice, tax included.",
            "example": "1656.25"
          },
          "netAmount": {
            "type": "string",
            "description": "Net amount of the Invoice, tax excluded.",
            "example": "1325.00"
          },
          "direction": {
            "type": "string",
            "description": "Direction of the Invoice: whether it was sent (outgoing) or received (incoming).",
            "enum": [
              "incoming",
              "outgoing"
            ],
            "example": "incoming"
          },
          "typeCode": {
            "type": "string",
            "description": "Type code of the Invoice, UNTDID 1001: for example 380 (commercial invoice) or 389 (self-billed invoice).",
            "enum": [
              "82",
              "130",
              "325",
              "326",
              "331",
              "380",
              "383",
              "384",
              "385",
              "386",
              "387",
              "388",
              "389",
              "390",
              "393",
              "394",
              "395",
              "457",
              "527",
              "575",
              "623",
              "780",
              "870",
              "875",
              "876",
              "877",
              "935"
            ],
            "example": "380"
          },
          "businessProcess": {
            "type": "string",
            "description": "Business process of the Invoice, P1–P12 or P99.",
            "enum": [
              "P1",
              "P2",
              "P3",
              "P4",
              "P5",
              "P6",
              "P7",
              "P8",
              "P9",
              "P10",
              "P11",
              "P12",
              "P99"
            ],
            "example": "P1"
          },
          "sender": {
            "$ref": "#/components/schemas/DocumentPartyOutput"
          },
          "recipient": {
            "$ref": "#/components/schemas/DocumentPartyOutput"
          },
          "status": {
            "type": "string",
            "description": "The status of the Invoice in the system.",
            "enum": [
              "received",
              "valid",
              "sending_started",
              "sending_queued",
              "sending_failed",
              "sent",
              "delivered",
              "delivery_failed",
              "undeliverable"
            ],
            "example": "delivered"
          },
          "downloaded": {
            "type": "boolean",
            "description": "Whether the Invoice document has already been downloaded.",
            "example": false
          },
          "downloadedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date and time the Invoice document was downloaded, in ATOM format, if any.",
            "format": "date-time",
            "example": "2026-11-02T08:30:00+00:00"
          },
          "createdAt": {
            "type": "string",
            "description": "Date and time the Invoice was created in the system, in ATOM format.",
            "format": "date-time",
            "example": "2026-11-01T10:00:00+00:00"
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date and time the Invoice was last updated in the system, in ATOM format; null if it was never updated.",
            "format": "date-time",
            "example": "2026-11-01T10:05:00+00:00"
          }
        }
      },
      "Invoice.InvoiceOutput.jsonld": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HydraItemBaseSchema"
          },
          {
            "type": "object",
            "properties": {
              "uuid": {
                "type": "string",
                "description": "Internal identifier of the Invoice.",
                "format": "uuid",
                "example": "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6"
              },
              "legalEntityUuid": {
                "type": "string",
                "description": "Internal identifier of the Legal entity that sent or received the Invoice.",
                "format": "uuid",
                "example": "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc"
              },
              "invoiceNumber": {
                "type": "string",
                "description": "Invoice number as assigned by the issuer.",
                "example": "125/HR1/1"
              },
              "invoiceDate": {
                "type": "string",
                "description": "Date the Invoice was issued.",
                "format": "date",
                "example": "2026-10-01"
              },
              "dueDate": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Payment due date of the Invoice, if any.",
                "format": "date",
                "example": "2026-10-31"
              },
              "currency": {
                "type": "string",
                "description": "Currency of the Invoice.",
                "example": "EUR"
              },
              "totalAmount": {
                "type": "string",
                "description": "Total payable amount of the Invoice, tax included.",
                "example": "1656.25"
              },
              "netAmount": {
                "type": "string",
                "description": "Net amount of the Invoice, tax excluded.",
                "example": "1325.00"
              },
              "direction": {
                "type": "string",
                "description": "Direction of the Invoice: whether it was sent (outgoing) or received (incoming).",
                "enum": [
                  "incoming",
                  "outgoing"
                ],
                "example": "incoming"
              },
              "typeCode": {
                "type": "string",
                "description": "Type code of the Invoice, UNTDID 1001: for example 380 (commercial invoice) or 389 (self-billed invoice).",
                "enum": [
                  "82",
                  "130",
                  "325",
                  "326",
                  "331",
                  "380",
                  "383",
                  "384",
                  "385",
                  "386",
                  "387",
                  "388",
                  "389",
                  "390",
                  "393",
                  "394",
                  "395",
                  "457",
                  "527",
                  "575",
                  "623",
                  "780",
                  "870",
                  "875",
                  "876",
                  "877",
                  "935"
                ],
                "example": "380"
              },
              "businessProcess": {
                "type": "string",
                "description": "Business process of the Invoice, P1–P12 or P99.",
                "enum": [
                  "P1",
                  "P2",
                  "P3",
                  "P4",
                  "P5",
                  "P6",
                  "P7",
                  "P8",
                  "P9",
                  "P10",
                  "P11",
                  "P12",
                  "P99"
                ],
                "example": "P1"
              },
              "sender": {
                "$ref": "#/components/schemas/DocumentPartyOutput.jsonld"
              },
              "recipient": {
                "$ref": "#/components/schemas/DocumentPartyOutput.jsonld"
              },
              "status": {
                "type": "string",
                "description": "The status of the Invoice in the system.",
                "enum": [
                  "received",
                  "valid",
                  "sending_started",
                  "sending_queued",
                  "sending_failed",
                  "sent",
                  "delivered",
                  "delivery_failed",
                  "undeliverable"
                ],
                "example": "delivered"
              },
              "downloaded": {
                "type": "boolean",
                "description": "Whether the Invoice document has already been downloaded.",
                "example": false
              },
              "downloadedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Date and time the Invoice document was downloaded, in ATOM format, if any.",
                "format": "date-time",
                "example": "2026-11-02T08:30:00+00:00"
              },
              "createdAt": {
                "type": "string",
                "description": "Date and time the Invoice was created in the system, in ATOM format.",
                "format": "date-time",
                "example": "2026-11-01T10:00:00+00:00"
              },
              "updatedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Date and time the Invoice was last updated in the system, in ATOM format; null if it was never updated.",
                "format": "date-time",
                "example": "2026-11-01T10:05:00+00:00"
              }
            }
          }
        ],
        "description": "Send invoices and read the invoices your legal entities sent or received."
      },
      "InvoiceSendingBlocked": {
        "type": "object",
        "description": "The invoice cannot be sent while one or more rules are not met",
        "properties": {
          "blockers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActionBlocker"
            }
          },
          "type": {
            "readOnly": true,
            "type": "string",
            "description": "A URI reference that identifies the problem type"
          },
          "title": {
            "readOnly": true,
            "type": "string",
            "description": "A short, human-readable summary of the problem."
          },
          "status": {
            "readOnly": true,
            "type": "integer",
            "description": "HTTP status code of the problem."
          },
          "detail": {
            "readOnly": true,
            "type": "string",
            "description": "A human-readable explanation specific to this occurrence of the problem."
          }
        }
      },
      "InvoiceSendingBlocked.jsonld": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HydraItemBaseSchema"
          },
          {
            "type": "object",
            "properties": {
              "blockers": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ActionBlocker.jsonld"
                }
              },
              "type": {
                "readOnly": true,
                "type": "string",
                "description": "A URI reference that identifies the problem type"
              },
              "title": {
                "readOnly": true,
                "type": "string",
                "description": "A short, human-readable summary of the problem."
              },
              "status": {
                "readOnly": true,
                "type": "integer",
                "description": "HTTP status code of the problem."
              },
              "detail": {
                "readOnly": true,
                "type": "string",
                "description": "A human-readable explanation specific to this occurrence of the problem."
              }
            }
          }
        ],
        "description": "The invoice cannot be sent while one or more rules are not met"
      },
      "LegalEntity.LegalEntityCreateInput": {
        "type": "object",
        "description": "Register your companies as legal entities, choose the A-Cube services they use, and check their onboarding with the Tax Authority.",
        "required": [
          "taxId",
          "documentExchangeEnabled",
          "fiscalisationEnabled",
          "name",
          "address",
          "city",
          "zipCode"
        ],
        "properties": {
          "taxId": {
            "pattern": "^\\d{11}$",
            "type": "string",
            "description": "Tax identifier (OIB) of the Legal entity. Only one Legal entity can have it, and it can't be changed later.",
            "example": "48780941616"
          },
          "documentExchangeEnabled": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether A-Cube is the document exchange provider of the Legal entity.",
            "example": true
          },
          "fiscalisationEnabled": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether A-Cube is the fiscalisation provider of the Legal entity.",
            "example": true
          },
          "name": {
            "type": "string",
            "description": "Legal name of the Legal entity, as registered in the business registry",
            "example": "Example Company d.o.o."
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": [
              "string",
              "null"
            ],
            "description": "Email address of the Legal entity.",
            "example": "example@company.com"
          },
          "phoneNumber": {
            "pattern": "^(\\+?[1-9]\\d{1,14})$",
            "type": [
              "string",
              "null"
            ],
            "description": "Phone number of the Legal entity, in E.164 format.",
            "example": "+38514567890"
          },
          "country": {
            "minLength": 2,
            "maxLength": 2,
            "enum": [
              "HR"
            ],
            "type": [
              "string",
              "null"
            ],
            "description": "Country code ISO 3166-1 alpha-2 of the Legal entity. Only HR, the default.",
            "example": "HR"
          },
          "address": {
            "type": "string",
            "description": "Legal entity address",
            "example": "Ilica 1"
          },
          "city": {
            "type": "string",
            "description": "Legal entity city",
            "example": "Zagreb"
          },
          "county": {
            "type": [
              "string",
              "null"
            ],
            "description": "Legal entity county",
            "example": "Grad Zagreb"
          },
          "zipCode": {
            "type": "string",
            "description": "Legal entity zip code",
            "example": "10000"
          }
        }
      },
      "LegalEntity.LegalEntityOnboardingOutput": {
        "type": "object",
        "description": "Register your companies as legal entities, choose the A-Cube services they use, and check their onboarding with the Tax Authority.",
        "properties": {
          "documentExchangeConfirmationStatus": {
            "type": "string",
            "enum": [
              "not_checked",
              "confirmed",
              "not_confirmed",
              "check_failed"
            ],
            "description": "Whether the Legal entity has confirmed A-Cube as its document exchange provider with the Tax Authority, as of the last onboarding check.",
            "example": "confirmed"
          },
          "documentExchangeConfirmationError": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the last check got no answer; null when it got one.",
            "example": "The lookup in the Tax Authority's address directory (AMS) failed"
          },
          "fiscalisationConfirmationStatus": {
            "type": "string",
            "enum": [
              "not_checked",
              "confirmed",
              "not_confirmed",
              "check_failed"
            ],
            "description": "Whether the Legal entity has confirmed A-Cube as its fiscalisation provider with the Tax Authority, as of the last onboarding check.",
            "example": "confirmed"
          },
          "fiscalisationConfirmationError": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the last check got no answer; null when it got one.",
            "example": "The Tax Authority's fiscalisation system (CIS) could not be reached"
          }
        }
      },
      "LegalEntity.LegalEntityOnboardingOutput.jsonld": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HydraItemBaseSchema"
          },
          {
            "type": "object",
            "properties": {
              "documentExchangeConfirmationStatus": {
                "type": "string",
                "enum": [
                  "not_checked",
                  "confirmed",
                  "not_confirmed",
                  "check_failed"
                ],
                "description": "Whether the Legal entity has confirmed A-Cube as its document exchange provider with the Tax Authority, as of the last onboarding check.",
                "example": "confirmed"
              },
              "documentExchangeConfirmationError": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why the last check got no answer; null when it got one.",
                "example": "The lookup in the Tax Authority's address directory (AMS) failed"
              },
              "fiscalisationConfirmationStatus": {
                "type": "string",
                "enum": [
                  "not_checked",
                  "confirmed",
                  "not_confirmed",
                  "check_failed"
                ],
                "description": "Whether the Legal entity has confirmed A-Cube as its fiscalisation provider with the Tax Authority, as of the last onboarding check.",
                "example": "confirmed"
              },
              "fiscalisationConfirmationError": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why the last check got no answer; null when it got one.",
                "example": "The Tax Authority's fiscalisation system (CIS) could not be reached"
              }
            }
          }
        ],
        "description": "Register your companies as legal entities, choose the A-Cube services they use, and check their onboarding with the Tax Authority."
      },
      "LegalEntity.LegalEntityOutput": {
        "type": "object",
        "description": "Register your companies as legal entities, choose the A-Cube services they use, and check their onboarding with the Tax Authority.",
        "properties": {
          "uuid": {
            "type": "string",
            "description": "Internal identifier of the Legal entity.",
            "example": "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc",
            "format": "uuid"
          },
          "taxId": {
            "type": "string",
            "description": "Tax identifier (OIB) of the Legal entity.",
            "pattern": "^\\d{11}$",
            "example": "48780941616"
          },
          "name": {
            "type": "string",
            "description": "Legal name of the Legal entity, as registered in the business registry.",
            "example": "Example Company d.o.o."
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Email address of the Legal entity.",
            "example": "example@company.com"
          },
          "phoneNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Phone number of the Legal entity.",
            "example": "+38514567890"
          },
          "country": {
            "type": "string",
            "description": "Country code ISO 3166-1 alpha-2 of the Legal entity.",
            "example": "HR"
          },
          "address": {
            "type": "string",
            "description": "Legal entity address",
            "example": "Ilica 1"
          },
          "city": {
            "type": "string",
            "description": "Legal entity city",
            "example": "Zagreb"
          },
          "county": {
            "type": [
              "string",
              "null"
            ],
            "description": "Legal entity county",
            "example": "Grad Zagreb"
          },
          "zipCode": {
            "type": "string",
            "description": "Legal entity zip code",
            "example": "10000"
          },
          "createdAt": {
            "type": "string",
            "description": "Date and time the Legal entity was created in the system, in ATOM format.",
            "example": "2026-07-20T10:15:30+00:00",
            "format": "date-time"
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date and time the Legal entity was last updated in the system, in ATOM format; null if it was never updated.",
            "example": "2026-07-20T14:22:45+00:00",
            "format": "date-time"
          },
          "documentExchangeEnabled": {
            "type": "boolean",
            "description": "Whether A-Cube is the document exchange provider of the Legal entity.",
            "example": true
          },
          "documentExchangeConfirmationStatus": {
            "type": "string",
            "enum": [
              "not_checked",
              "confirmed",
              "not_confirmed",
              "check_failed"
            ],
            "description": "Whether the Legal entity has confirmed A-Cube as its document exchange provider with the Tax Authority, as of the last onboarding check.",
            "example": "confirmed"
          },
          "documentExchangeConfirmationError": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the last check got no answer; null when it got one.",
            "example": "The lookup in the Tax Authority's address directory (AMS) failed"
          },
          "fiscalisationEnabled": {
            "type": "boolean",
            "description": "Whether A-Cube is the fiscalisation provider of the Legal entity.",
            "example": true
          },
          "fiscalisationConfirmationStatus": {
            "type": "string",
            "enum": [
              "not_checked",
              "confirmed",
              "not_confirmed",
              "check_failed"
            ],
            "description": "Whether the Legal entity has confirmed A-Cube as its fiscalisation provider with the Tax Authority, as of the last onboarding check.",
            "example": "confirmed"
          },
          "fiscalisationConfirmationError": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the last check got no answer; null when it got one.",
            "example": "The Tax Authority's fiscalisation system (CIS) could not be reached"
          }
        }
      },
      "LegalEntity.LegalEntityOutput.jsonld": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HydraItemBaseSchema"
          },
          {
            "type": "object",
            "properties": {
              "uuid": {
                "type": "string",
                "description": "Internal identifier of the Legal entity.",
                "example": "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc",
                "format": "uuid"
              },
              "taxId": {
                "type": "string",
                "description": "Tax identifier (OIB) of the Legal entity.",
                "pattern": "^\\d{11}$",
                "example": "48780941616"
              },
              "name": {
                "type": "string",
                "description": "Legal name of the Legal entity, as registered in the business registry.",
                "example": "Example Company d.o.o."
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Email address of the Legal entity.",
                "example": "example@company.com"
              },
              "phoneNumber": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Phone number of the Legal entity.",
                "example": "+38514567890"
              },
              "country": {
                "type": "string",
                "description": "Country code ISO 3166-1 alpha-2 of the Legal entity.",
                "example": "HR"
              },
              "address": {
                "type": "string",
                "description": "Legal entity address",
                "example": "Ilica 1"
              },
              "city": {
                "type": "string",
                "description": "Legal entity city",
                "example": "Zagreb"
              },
              "county": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Legal entity county",
                "example": "Grad Zagreb"
              },
              "zipCode": {
                "type": "string",
                "description": "Legal entity zip code",
                "example": "10000"
              },
              "createdAt": {
                "type": "string",
                "description": "Date and time the Legal entity was created in the system, in ATOM format.",
                "example": "2026-07-20T10:15:30+00:00",
                "format": "date-time"
              },
              "updatedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Date and time the Legal entity was last updated in the system, in ATOM format; null if it was never updated.",
                "example": "2026-07-20T14:22:45+00:00",
                "format": "date-time"
              },
              "documentExchangeEnabled": {
                "type": "boolean",
                "description": "Whether A-Cube is the document exchange provider of the Legal entity.",
                "example": true
              },
              "documentExchangeConfirmationStatus": {
                "type": "string",
                "enum": [
                  "not_checked",
                  "confirmed",
                  "not_confirmed",
                  "check_failed"
                ],
                "description": "Whether the Legal entity has confirmed A-Cube as its document exchange provider with the Tax Authority, as of the last onboarding check.",
                "example": "confirmed"
              },
              "documentExchangeConfirmationError": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why the last check got no answer; null when it got one.",
                "example": "The lookup in the Tax Authority's address directory (AMS) failed"
              },
              "fiscalisationEnabled": {
                "type": "boolean",
                "description": "Whether A-Cube is the fiscalisation provider of the Legal entity.",
                "example": true
              },
              "fiscalisationConfirmationStatus": {
                "type": "string",
                "enum": [
                  "not_checked",
                  "confirmed",
                  "not_confirmed",
                  "check_failed"
                ],
                "description": "Whether the Legal entity has confirmed A-Cube as its fiscalisation provider with the Tax Authority, as of the last onboarding check.",
                "example": "confirmed"
              },
              "fiscalisationConfirmationError": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why the last check got no answer; null when it got one.",
                "example": "The Tax Authority's fiscalisation system (CIS) could not be reached"
              }
            }
          }
        ],
        "description": "Register your companies as legal entities, choose the A-Cube services they use, and check their onboarding with the Tax Authority."
      },
      "LegalEntity.LegalEntityUpdateInput": {
        "type": "object",
        "description": "Register your companies as legal entities, choose the A-Cube services they use, and check their onboarding with the Tax Authority.",
        "required": [
          "name",
          "address",
          "city",
          "zipCode"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Legal name of the Legal entity, as registered in the business registry",
            "example": "Example Company d.o.o."
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": [
              "string",
              "null"
            ],
            "description": "Email address of the Legal entity.",
            "example": "example@company.com"
          },
          "phoneNumber": {
            "pattern": "^(\\+?[1-9]\\d{1,14})$",
            "type": [
              "string",
              "null"
            ],
            "description": "Phone number of the Legal entity, in E.164 format.",
            "example": "+38514567890"
          },
          "country": {
            "minLength": 2,
            "maxLength": 2,
            "enum": [
              "HR"
            ],
            "type": [
              "string",
              "null"
            ],
            "description": "Country code ISO 3166-1 alpha-2 of the Legal entity. Only HR, the default.",
            "example": "HR"
          },
          "address": {
            "type": "string",
            "description": "Legal entity address",
            "example": "Ilica 1"
          },
          "city": {
            "type": "string",
            "description": "Legal entity city",
            "example": "Zagreb"
          },
          "county": {
            "type": [
              "string",
              "null"
            ],
            "description": "Legal entity county",
            "example": "Grad Zagreb"
          },
          "zipCode": {
            "type": "string",
            "description": "Legal entity zip code",
            "example": "10000"
          },
          "documentExchangeEnabled": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether A-Cube is the document exchange provider of the Legal entity. Left out, it keeps its current value.",
            "example": true
          },
          "fiscalisationEnabled": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether A-Cube is the fiscalisation provider of the Legal entity. Left out, it keeps its current value.",
            "example": true
          }
        }
      },
      "LegalEntityDeletionBlocked": {
        "type": "object",
        "description": "The legal entity cannot be deleted while one or more rules are not met",
        "properties": {
          "blockers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActionBlocker"
            }
          },
          "type": {
            "readOnly": true,
            "type": "string",
            "description": "A URI reference that identifies the problem type"
          },
          "title": {
            "readOnly": true,
            "type": "string",
            "description": "A short, human-readable summary of the problem."
          },
          "status": {
            "readOnly": true,
            "type": "integer",
            "description": "HTTP status code of the problem."
          },
          "detail": {
            "readOnly": true,
            "type": "string",
            "description": "A human-readable explanation specific to this occurrence of the problem."
          }
        }
      },
      "LegalEntityDeletionBlocked.jsonld": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HydraItemBaseSchema"
          },
          {
            "type": "object",
            "properties": {
              "blockers": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ActionBlocker.jsonld"
                }
              },
              "type": {
                "readOnly": true,
                "type": "string",
                "description": "A URI reference that identifies the problem type"
              },
              "title": {
                "readOnly": true,
                "type": "string",
                "description": "A short, human-readable summary of the problem."
              },
              "status": {
                "readOnly": true,
                "type": "integer",
                "description": "HTTP status code of the problem."
              },
              "detail": {
                "readOnly": true,
                "type": "string",
                "description": "A human-readable explanation specific to this occurrence of the problem."
              }
            }
          }
        ],
        "description": "The legal entity cannot be deleted while one or more rules are not met"
      },
      "LegalEntitySubAccount.LegalEntitySubAccountCreateInput": {
        "type": "object",
        "required": [
          "email",
          "password"
        ],
        "properties": {
          "email": {
            "format": "email",
            "description": "Email address of the sub-account user",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string"
          },
          "password": {
            "description": "Password for the sub-account user. If the sub-account is already present on the system, the password this value will be ignored",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "LegalEntitySubAccount.LegalEntitySubAccountOutput": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "LegalEntitySubAccount.LegalEntitySubAccountOutput.jsonld": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HydraItemBaseSchema"
          },
          {
            "type": "object",
            "properties": {
              "uuid": {
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        ]
      },
      "PaymentReport.PaymentReportByDocumentReferenceCreateInput": {
        "type": "object",
        "description": "Report payments and rejections of documents to the Tax Authority, and follow their processing status.",
        "required": [
          "document",
          "paymentDate",
          "collectedAmount",
          "paymentMethod"
        ],
        "properties": {
          "document": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PaymentReportDocumentReferenceInput"
              },
              {
                "type": "null"
              }
            ]
          },
          "paymentDate": {
            "externalDocs": {
              "url": "https://schema.org/Date"
            },
            "type": "string",
            "description": "Date the payment was received, YYYY-MM-DD.",
            "example": "2026-10-15",
            "format": "date"
          },
          "collectedAmount": {
            "pattern": "^-?\\d{1,13}\\.\\d{2}$",
            "type": "string",
            "description": "Amount collected, with exactly two decimals and not zero.",
            "example": "1250.00"
          },
          "paymentMethod": {
            "enum": [
              "transaction_account",
              "settlement",
              "other"
            ],
            "type": "string",
            "description": "Payment method: transaction_account (T) for a payment through a transaction account, settlement (O) for a settlement without a money transfer, or other (Z).",
            "example": "transaction_account"
          }
        }
      },
      "PaymentReport.PaymentReportByDocumentUuidCreateInput": {
        "type": "object",
        "description": "Report payments and rejections of documents to the Tax Authority, and follow their processing status.",
        "required": [
          "paymentDate",
          "collectedAmount",
          "paymentMethod"
        ],
        "properties": {
          "paymentDate": {
            "externalDocs": {
              "url": "https://schema.org/Date"
            },
            "type": "string",
            "description": "Date the payment was received, YYYY-MM-DD.",
            "example": "2026-10-15",
            "format": "date"
          },
          "collectedAmount": {
            "pattern": "^-?\\d{1,13}\\.\\d{2}$",
            "type": "string",
            "description": "Amount collected, with exactly two decimals and not zero.",
            "example": "1250.00"
          },
          "paymentMethod": {
            "enum": [
              "transaction_account",
              "settlement",
              "other"
            ],
            "type": "string",
            "description": "Payment method: transaction_account (T) for a payment through a transaction account, settlement (O) for a settlement without a money transfer, or other (Z).",
            "example": "transaction_account"
          }
        }
      },
      "PaymentReport.PaymentReportOutput": {
        "type": "object",
        "description": "Report payments and rejections of documents to the Tax Authority, and follow their processing status.",
        "properties": {
          "uuid": {
            "type": "string",
            "description": "Internal identifier of the Payment report.",
            "example": "0199e8b4-6f1a-7c2d-9e3f-4a5b6c7d8e9f",
            "format": "uuid"
          },
          "legalEntityUuid": {
            "type": "string",
            "description": "Internal identifier of the Legal entity that reported the payment.",
            "example": "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc",
            "format": "uuid"
          },
          "document": {
            "$ref": "#/components/schemas/ReportDocumentOutput"
          },
          "paymentDate": {
            "type": "string",
            "description": "Date the payment was received.",
            "example": "2026-10-15",
            "format": "date"
          },
          "collectedAmount": {
            "type": "string",
            "description": "Amount collected, with two decimals.",
            "example": "1250.00"
          },
          "paymentMethod": {
            "type": "string",
            "description": "Payment method: transaction_account (T) for a payment through a transaction account, settlement (O) for a settlement without a money transfer, or other (Z).",
            "example": "transaction_account",
            "enum": [
              "transaction_account",
              "settlement",
              "other"
            ]
          },
          "status": {
            "type": "string",
            "description": "The status of the Payment report in the system.",
            "example": "accepted",
            "enum": [
              "queued",
              "sending",
              "accepted",
              "rejected",
              "failed"
            ]
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CisErrorOutput"
            }
          },
          "acceptedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date and time the Tax Authority accepted the Payment report, in ATOM format; null until then.",
            "example": "2026-10-15T10:15:00+00:00",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "description": "Date and time the Payment report was created in the system, in ATOM format.",
            "example": "2026-10-15T10:00:00+00:00",
            "format": "date-time"
          }
        }
      },
      "PaymentReport.PaymentReportOutput.jsonld": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HydraItemBaseSchema"
          },
          {
            "type": "object",
            "properties": {
              "uuid": {
                "type": "string",
                "description": "Internal identifier of the Payment report.",
                "example": "0199e8b4-6f1a-7c2d-9e3f-4a5b6c7d8e9f",
                "format": "uuid"
              },
              "legalEntityUuid": {
                "type": "string",
                "description": "Internal identifier of the Legal entity that reported the payment.",
                "example": "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc",
                "format": "uuid"
              },
              "document": {
                "$ref": "#/components/schemas/ReportDocumentOutput.jsonld"
              },
              "paymentDate": {
                "type": "string",
                "description": "Date the payment was received.",
                "example": "2026-10-15",
                "format": "date"
              },
              "collectedAmount": {
                "type": "string",
                "description": "Amount collected, with two decimals.",
                "example": "1250.00"
              },
              "paymentMethod": {
                "type": "string",
                "description": "Payment method: transaction_account (T) for a payment through a transaction account, settlement (O) for a settlement without a money transfer, or other (Z).",
                "example": "transaction_account",
                "enum": [
                  "transaction_account",
                  "settlement",
                  "other"
                ]
              },
              "status": {
                "type": "string",
                "description": "The status of the Payment report in the system.",
                "example": "accepted",
                "enum": [
                  "queued",
                  "sending",
                  "accepted",
                  "rejected",
                  "failed"
                ]
              },
              "errors": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CisErrorOutput.jsonld"
                }
              },
              "acceptedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Date and time the Tax Authority accepted the Payment report, in ATOM format; null until then.",
                "example": "2026-10-15T10:15:00+00:00",
                "format": "date-time"
              },
              "createdAt": {
                "type": "string",
                "description": "Date and time the Payment report was created in the system, in ATOM format.",
                "example": "2026-10-15T10:00:00+00:00",
                "format": "date-time"
              }
            }
          }
        ],
        "description": "Report payments and rejections of documents to the Tax Authority, and follow their processing status."
      },
      "PaymentReportDocumentReferenceInput": {
        "type": "object",
        "required": [
          "number",
          "issueDate",
          "supplierTaxId",
          "customerTaxId"
        ],
        "properties": {
          "number": {
            "maxLength": 100,
            "type": "string",
            "description": "Number of the document, as assigned by the issuer.",
            "example": "125/HR1/1"
          },
          "issueDate": {
            "externalDocs": {
              "url": "https://schema.org/Date"
            },
            "type": "string",
            "description": "Date the document was issued, YYYY-MM-DD.",
            "example": "2026-10-01",
            "format": "date"
          },
          "supplierTaxId": {
            "pattern": "^\\d{11}$",
            "type": "string",
            "description": "Tax identifier (OIB) of the supplier: one of your legal entities, which reports the payment.",
            "example": "48780941616"
          },
          "customerTaxId": {
            "pattern": "^\\d{11}$",
            "type": "string",
            "description": "Tax identifier (OIB) of the customer.",
            "example": "75608754333"
          }
        }
      },
      "RejectionReport.RejectionReportByDocumentReferenceCreateInput": {
        "type": "object",
        "description": "Report payments and rejections of documents to the Tax Authority, and follow their processing status.",
        "required": [
          "legalEntityUuid",
          "document",
          "rejectionDate",
          "reasonType",
          "reason"
        ],
        "properties": {
          "legalEntityUuid": {
            "format": "uuid",
            "externalDocs": {
              "url": "https://schema.org/identifier"
            },
            "type": "string",
            "description": "Internal identifier of the Legal entity that reports the rejection: the customer of the document, or the supplier of a self-billed one.",
            "example": "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc"
          },
          "document": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectionReportDocumentReferenceInput"
              },
              {
                "type": "null"
              }
            ]
          },
          "rejectionDate": {
            "externalDocs": {
              "url": "https://schema.org/Date"
            },
            "type": "string",
            "description": "Date the document was rejected, YYYY-MM-DD.",
            "example": "2026-10-15",
            "format": "date"
          },
          "reasonType": {
            "enum": [
              "non_tax_mismatch",
              "tax_mismatch",
              "other"
            ],
            "type": "string",
            "description": "Reason type: non_tax_mismatch (N) for data that don't match but don't affect the tax calculation, tax_mismatch (U) for data that don't match and affect it, or other (O).",
            "example": "tax_mismatch"
          },
          "reason": {
            "maxLength": 1024,
            "type": "string",
            "description": "Reason for the rejection.",
            "example": "The VAT rate on line 2 is wrong."
          }
        }
      },
      "RejectionReport.RejectionReportByDocumentUuidCreateInput": {
        "type": "object",
        "description": "Report payments and rejections of documents to the Tax Authority, and follow their processing status.",
        "required": [
          "rejectionDate",
          "reasonType",
          "reason"
        ],
        "properties": {
          "rejectionDate": {
            "externalDocs": {
              "url": "https://schema.org/Date"
            },
            "type": "string",
            "description": "Date the document was rejected, YYYY-MM-DD.",
            "example": "2026-10-15",
            "format": "date"
          },
          "reasonType": {
            "enum": [
              "non_tax_mismatch",
              "tax_mismatch",
              "other"
            ],
            "type": "string",
            "description": "Reason type: non_tax_mismatch (N) for data that don't match but don't affect the tax calculation, tax_mismatch (U) for data that don't match and affect it, or other (O).",
            "example": "tax_mismatch"
          },
          "reason": {
            "maxLength": 1024,
            "type": "string",
            "description": "Reason for the rejection.",
            "example": "The VAT rate on line 2 is wrong."
          }
        }
      },
      "RejectionReport.RejectionReportOutput": {
        "type": "object",
        "description": "Report payments and rejections of documents to the Tax Authority, and follow their processing status.",
        "properties": {
          "uuid": {
            "type": "string",
            "description": "Internal identifier of the Rejection report.",
            "example": "0199e8c2-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
            "format": "uuid"
          },
          "legalEntityUuid": {
            "type": "string",
            "description": "Internal identifier of the Legal entity that reported the rejection.",
            "example": "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc",
            "format": "uuid"
          },
          "document": {
            "$ref": "#/components/schemas/ReportDocumentOutput"
          },
          "rejectionDate": {
            "type": "string",
            "description": "Date the document was rejected.",
            "example": "2026-10-15",
            "format": "date"
          },
          "reasonType": {
            "type": "string",
            "description": "Reason type: non_tax_mismatch (N) for data that don't match but don't affect the tax calculation, tax_mismatch (U) for data that don't match and affect it, or other (O).",
            "example": "tax_mismatch",
            "enum": [
              "non_tax_mismatch",
              "tax_mismatch",
              "other"
            ]
          },
          "reason": {
            "type": "string",
            "description": "Reason for the rejection.",
            "example": "The VAT rate on line 2 is wrong."
          },
          "status": {
            "type": "string",
            "description": "The status of the Rejection report in the system.",
            "example": "accepted",
            "enum": [
              "queued",
              "sending",
              "accepted",
              "rejected",
              "failed"
            ]
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CisErrorOutput"
            }
          },
          "acceptedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date and time the Tax Authority accepted the Rejection report, in ATOM format; null until then.",
            "example": "2026-10-15T10:15:00+00:00",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "description": "Date and time the Rejection report was created in the system, in ATOM format.",
            "example": "2026-10-15T10:00:00+00:00",
            "format": "date-time"
          }
        }
      },
      "RejectionReport.RejectionReportOutput.jsonld": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HydraItemBaseSchema"
          },
          {
            "type": "object",
            "properties": {
              "uuid": {
                "type": "string",
                "description": "Internal identifier of the Rejection report.",
                "example": "0199e8c2-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
                "format": "uuid"
              },
              "legalEntityUuid": {
                "type": "string",
                "description": "Internal identifier of the Legal entity that reported the rejection.",
                "example": "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc",
                "format": "uuid"
              },
              "document": {
                "$ref": "#/components/schemas/ReportDocumentOutput.jsonld"
              },
              "rejectionDate": {
                "type": "string",
                "description": "Date the document was rejected.",
                "example": "2026-10-15",
                "format": "date"
              },
              "reasonType": {
                "type": "string",
                "description": "Reason type: non_tax_mismatch (N) for data that don't match but don't affect the tax calculation, tax_mismatch (U) for data that don't match and affect it, or other (O).",
                "example": "tax_mismatch",
                "enum": [
                  "non_tax_mismatch",
                  "tax_mismatch",
                  "other"
                ]
              },
              "reason": {
                "type": "string",
                "description": "Reason for the rejection.",
                "example": "The VAT rate on line 2 is wrong."
              },
              "status": {
                "type": "string",
                "description": "The status of the Rejection report in the system.",
                "example": "accepted",
                "enum": [
                  "queued",
                  "sending",
                  "accepted",
                  "rejected",
                  "failed"
                ]
              },
              "errors": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CisErrorOutput.jsonld"
                }
              },
              "acceptedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Date and time the Tax Authority accepted the Rejection report, in ATOM format; null until then.",
                "example": "2026-10-15T10:15:00+00:00",
                "format": "date-time"
              },
              "createdAt": {
                "type": "string",
                "description": "Date and time the Rejection report was created in the system, in ATOM format.",
                "example": "2026-10-15T10:00:00+00:00",
                "format": "date-time"
              }
            }
          }
        ],
        "description": "Report payments and rejections of documents to the Tax Authority, and follow their processing status."
      },
      "RejectionReportDocumentReferenceInput": {
        "type": "object",
        "required": [
          "number",
          "issueDate",
          "supplierTaxId",
          "customerTaxId"
        ],
        "properties": {
          "number": {
            "maxLength": 100,
            "type": "string",
            "description": "Number of the document, as assigned by the issuer.",
            "example": "125/HR1/1"
          },
          "issueDate": {
            "externalDocs": {
              "url": "https://schema.org/Date"
            },
            "type": "string",
            "description": "Date the document was issued, YYYY-MM-DD.",
            "example": "2026-10-01",
            "format": "date"
          },
          "supplierTaxId": {
            "pattern": "^\\d{11}$",
            "type": "string",
            "description": "Tax identifier (OIB) of the supplier.",
            "example": "48780941616"
          },
          "customerTaxId": {
            "pattern": "^\\d{11}$",
            "type": "string",
            "description": "Tax identifier (OIB) of the customer.",
            "example": "75608754333"
          }
        }
      },
      "ReportDocumentOutput": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": [
              "string",
              "null"
            ],
            "description": "Internal identifier of the Invoice or Credit note; null when it was not sent or received through A-Cube.",
            "example": "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6",
            "format": "uuid"
          },
          "number": {
            "type": "string",
            "description": "Number of the document, as assigned by the issuer.",
            "example": "125/HR1/1"
          },
          "issueDate": {
            "type": "string",
            "description": "Date the document was issued.",
            "example": "2026-10-01",
            "format": "date"
          },
          "supplierTaxId": {
            "type": "string",
            "description": "Tax identifier (OIB) of the supplier.",
            "example": "48780941616",
            "pattern": "^\\d{11}$"
          },
          "customerTaxId": {
            "type": "string",
            "description": "Tax identifier (OIB) of the customer.",
            "example": "75608754333",
            "pattern": "^\\d{11}$"
          }
        }
      },
      "ReportDocumentOutput.jsonld": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": [
              "string",
              "null"
            ],
            "description": "Internal identifier of the Invoice or Credit note; null when it was not sent or received through A-Cube.",
            "example": "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6",
            "format": "uuid"
          },
          "number": {
            "type": "string",
            "description": "Number of the document, as assigned by the issuer.",
            "example": "125/HR1/1"
          },
          "issueDate": {
            "type": "string",
            "description": "Date the document was issued.",
            "example": "2026-10-01",
            "format": "date"
          },
          "supplierTaxId": {
            "type": "string",
            "description": "Tax identifier (OIB) of the supplier.",
            "example": "48780941616",
            "pattern": "^\\d{11}$"
          },
          "customerTaxId": {
            "type": "string",
            "description": "Tax identifier (OIB) of the customer.",
            "example": "75608754333",
            "pattern": "^\\d{11}$"
          }
        }
      },
      "TaxDataDocument.TaxDataDocumentOutput": {
        "type": "object",
        "description": "File Tax Data Documents (TDD) with the Tax Authority and follow their processing status.",
        "properties": {
          "uuid": {
            "type": "string",
            "description": "Internal identifier of the Tax Data Document.",
            "example": "0199e8d3-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
            "format": "uuid"
          },
          "legalEntityUuid": {
            "type": "string",
            "description": "Internal identifier of the Legal entity the Tax Data Document was filed for.",
            "example": "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc",
            "format": "uuid"
          },
          "type": {
            "type": "string",
            "description": "Type of the Tax Data Document: outgoing (I) when the Legal entity is the supplier, incoming (U) when it is the customer, and report_only (IR) when it is the supplier and no electronic invoice was issued.",
            "example": "outgoing",
            "enum": [
              "outgoing",
              "incoming",
              "report_only"
            ]
          },
          "documentUuid": {
            "type": [
              "string",
              "null"
            ],
            "description": "Internal identifier of the Invoice or Credit note this Tax Data Document refers to; null when it was filed for an external document.",
            "example": "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6",
            "format": "uuid"
          },
          "documentType": {
            "type": "string",
            "description": "Type of the document this Tax Data Document refers to.",
            "example": "invoice",
            "enum": [
              "invoice",
              "credit_note"
            ]
          },
          "status": {
            "type": "string",
            "description": "The status of the Tax Data Document in the system.",
            "example": "accepted",
            "enum": [
              "queued",
              "accepted",
              "rejected",
              "failed"
            ]
          },
          "fiscalisationRequestId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Request identifier the Tax Authority assigned when it answered; null until it answers.",
            "example": "3ac87da8-8056-40ec-9e68-2a0cfcc086b3"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CisErrorOutput"
            }
          },
          "acceptedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date and time the Tax Authority accepted the Tax Data Document, in ATOM format; null until then.",
            "example": "2026-10-15T10:15:00+00:00",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "description": "Date and time the Tax Data Document was created in the system, in ATOM format.",
            "example": "2026-10-15T10:00:00+00:00",
            "format": "date-time"
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date and time the Tax Data Document was last updated in the system, in ATOM format; null if it was never updated.",
            "example": "2026-10-15T10:15:00+00:00",
            "format": "date-time"
          }
        }
      },
      "TaxDataDocument.TaxDataDocumentOutput.jsonld": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HydraItemBaseSchema"
          },
          {
            "type": "object",
            "properties": {
              "uuid": {
                "type": "string",
                "description": "Internal identifier of the Tax Data Document.",
                "example": "0199e8d3-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
                "format": "uuid"
              },
              "legalEntityUuid": {
                "type": "string",
                "description": "Internal identifier of the Legal entity the Tax Data Document was filed for.",
                "example": "018f4a2e-7b3c-7f1a-b2c3-4d5e6f789abc",
                "format": "uuid"
              },
              "type": {
                "type": "string",
                "description": "Type of the Tax Data Document: outgoing (I) when the Legal entity is the supplier, incoming (U) when it is the customer, and report_only (IR) when it is the supplier and no electronic invoice was issued.",
                "example": "outgoing",
                "enum": [
                  "outgoing",
                  "incoming",
                  "report_only"
                ]
              },
              "documentUuid": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Internal identifier of the Invoice or Credit note this Tax Data Document refers to; null when it was filed for an external document.",
                "example": "0199e8a1-2b3c-7d4e-8f90-a1b2c3d4e5f6",
                "format": "uuid"
              },
              "documentType": {
                "type": "string",
                "description": "Type of the document this Tax Data Document refers to.",
                "example": "invoice",
                "enum": [
                  "invoice",
                  "credit_note"
                ]
              },
              "status": {
                "type": "string",
                "description": "The status of the Tax Data Document in the system.",
                "example": "accepted",
                "enum": [
                  "queued",
                  "accepted",
                  "rejected",
                  "failed"
                ]
              },
              "fiscalisationRequestId": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Request identifier the Tax Authority assigned when it answered; null until it answers.",
                "example": "3ac87da8-8056-40ec-9e68-2a0cfcc086b3"
              },
              "errors": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CisErrorOutput.jsonld"
                }
              },
              "acceptedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Date and time the Tax Authority accepted the Tax Data Document, in ATOM format; null until then.",
                "example": "2026-10-15T10:15:00+00:00",
                "format": "date-time"
              },
              "createdAt": {
                "type": "string",
                "description": "Date and time the Tax Data Document was created in the system, in ATOM format.",
                "example": "2026-10-15T10:00:00+00:00",
                "format": "date-time"
              },
              "updatedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Date and time the Tax Data Document was last updated in the system, in ATOM format; null if it was never updated.",
                "example": "2026-10-15T10:15:00+00:00",
                "format": "date-time"
              }
            }
          }
        ],
        "description": "File Tax Data Documents (TDD) with the Tax Authority and follow their processing status."
      },
      "TaxDataDocumentBlocked": {
        "type": "object",
        "description": "The Tax Data Document cannot be filed while one or more rules are not met",
        "properties": {
          "blockers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActionBlocker"
            }
          },
          "type": {
            "readOnly": true,
            "type": "string",
            "description": "A URI reference that identifies the problem type"
          },
          "title": {
            "readOnly": true,
            "type": "string",
            "description": "A short, human-readable summary of the problem."
          },
          "status": {
            "readOnly": true,
            "type": "integer",
            "description": "HTTP status code of the problem."
          },
          "detail": {
            "readOnly": true,
            "type": "string",
            "description": "A human-readable explanation specific to this occurrence of the problem."
          }
        }
      },
      "TaxDataDocumentBlocked.jsonld": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HydraItemBaseSchema"
          },
          {
            "type": "object",
            "properties": {
              "blockers": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ActionBlocker.jsonld"
                }
              },
              "type": {
                "readOnly": true,
                "type": "string",
                "description": "A URI reference that identifies the problem type"
              },
              "title": {
                "readOnly": true,
                "type": "string",
                "description": "A short, human-readable summary of the problem."
              },
              "status": {
                "readOnly": true,
                "type": "integer",
                "description": "HTTP status code of the problem."
              },
              "detail": {
                "readOnly": true,
                "type": "string",
                "description": "A human-readable explanation specific to this occurrence of the problem."
              }
            }
          }
        ],
        "description": "The Tax Data Document cannot be filed while one or more rules are not met"
      }
    },
    "responses": {},
    "parameters": {},
    "examples": {},
    "requestBodies": {},
    "headers": {},
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "description": "Received from Platform Authentication.",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "CreditNote",
      "description": "Send credit notes and read the credit notes your legal entities sent or received."
    },
    {
      "name": "Webhooks",
      "description": "Receive notifications about your documents: each event destination sends one event type to one URL."
    },
    {
      "name": "Invoice",
      "description": "Send invoices and read the invoices your legal entities sent or received."
    },
    {
      "name": "LegalEntity",
      "description": "Register your companies as legal entities, choose the A-Cube services they use, and check their onboarding with the Tax Authority."
    },
    {
      "name": "LegalEntitySubAccount",
      "description": "Resource 'LegalEntitySubAccount' operations."
    },
    {
      "name": "eReporting",
      "description": "Report payments and rejections of documents to the Tax Authority, and follow their processing status."
    },
    {
      "name": "TaxDataDocument",
      "description": "File Tax Data Documents (TDD) with the Tax Authority and follow their processing status."
    }
  ],
  "webhooks": {}
}
