Skip to main content

Complete API reference

This page is generated from the authoritative OpenAPI contract. Expand only the section you need; no query parameter or request-body field is left to inference.

Base URL: https://iiproxy.sekkun.co

Download the OpenAPI 3.1 YAML

Availability and authentication​

GET /public/v1/ping​

Public API liveness probe

Required permissions: Public endpoint

Responses
StatusDescriptionContent type
200Service is available—

POST /oauth2/token​

Exchange client credentials for an opaque access token

Required permissions: HTTP Basic (client_id + client_secret)

Request body

application/x-www-form-urlencoded​

FieldTypeRulesMeaning
grant_typestringrequired; = client_credentialsValue defined by the API contract.
scopestringoptionalValue defined by the API contract.
Responses
StatusDescriptionContent type
200Access tokenapplication/json
401Guard or validation failureapplication/json

POST /public/v1/oauth2/token​

Versioned alias for the client-credentials token exchange

Required permissions: HTTP Basic (client_id + client_secret)

Request body

application/x-www-form-urlencoded​

FieldTypeRulesMeaning
grant_typestringrequired; = client_credentialsValue defined by the API contract.
scopestringoptionalValue defined by the API contract.
Responses
StatusDescriptionContent type
200Access tokenapplication/json
401Guard or validation failureapplication/json

Outgoing invoices​

GET /public/v1/outgoing-invoices​

List outgoing invoices for the credential-bound tenant

Required permissions: invoices:read

Query parameters
FieldTypeRulesMeaning
statusstringoptionalReturn only documents whose unified status equals this value.
documentNumberstringoptionalCase-insensitive substring match against the document number.
fromstring (date)optionalInclude documents issued on or after this date.
tostring (date)optionalInclude documents issued on or before this date.
limitintegeroptional; default: 1000; ≥ 1Maximum number of matching documents returned.
Responses
StatusDescriptionContent type
200Invoice listapplication/json

POST /public/v1/outgoing-invoices​

Create a structured or raw UBL invoice draft

Required permissions: invoices:draft

Request headers
FieldTypeRulesMeaning
Idempotency-Keystringrequired; min 16; max 100Value defined by the API contract.
IIProxy-Auto-IssuebooleanoptionalDirect-XML equivalent of the JSON issue flag; also requires invoices:issue.
IIProxy-Delivery-Channelstringoptional; AS4 · FISCALIZATION_ONLYValue defined by the API contract.
Request body

application/json - variant 1​

FieldTypeRulesMeaning
documentNumberstringoptionalRequired when numberMode is MANUAL; allocated by Klik Račun when numberMode is AUTO.
numberModestringoptional; AUTO · MANUAL; default: AUTOSelects automatic or caller-supplied numbering.
issueDatestring (date)requiredInvoice issue date in YYYY-MM-DD form.
deliveryDatestring (date)requiredSupply or service delivery date in YYYY-MM-DD form.
dueDatestring | null (date)optionalPayment due date; required by payment models with a remaining balance.
currencystringoptional; default: EUR; min 3; max 3ISO 4217 currency code.
documentTypestringoptional; Invoice · CreditNote · AdvanceInvoice; default: InvoiceBusiness document type; AdvanceInvoice selects the advance-declaration process.
paymentModelstringoptional; DUE · ADVANCE_AND_BALANCE · ONSITE · ADVANCE_DECLARATION; default: DUEDetermines due-date, immediate-payment, and advance settlement rules.
deliveryChannelstringoptional; AS4 · FISCALIZATION_ONLY; default: AS4Requested delivery path; Klik Račun may select an authoritative non-AS4 reporting path when recipient discovery requires it.
supplierobjectoptionalOptional ownership assertion. Klik Račun only accepts a matching OIB and replaces all supplier data with the credential-bound issuer profile.
supplier.oibstringoptional; pattern: ^[0-9]{11}$Must equal the OIB bound to the API credential.
customerobjectrequiredValue defined by the API contract.
customer.partnerIdstring (uuid)optionalOptional Klik Račun partner master-data identifier.
customer.partnerCodestringoptionalOptional caller or master-data partner code.
customer.namestringrequiredLegal name; accepted as an alias for fullName.
customer.fullNamestringoptionalLegal name; required when name is omitted.
customer.shortNamestringoptionalDisplay name; defaults to the legal name.
customer.oibstringrequired; pattern: ^[0-9]{11}$Croatian personal identification number.
customer.endpointSchemestringoptional; default: 9934; max 16Electronic-address identifier scheme.
customer.countryCodestringoptional; default: HR; min 2; max 2ISO 3166-1 alpha-2 country code.
customer.vatIdstringoptionalVAT identifier when applicable.
customer.citystringoptionalValue defined by the API contract.
customer.postalCodestringoptionalValue defined by the API contract.
customer.streetAddressstringoptionalValue defined by the API contract.
customer.additionalAddressstringoptionalValue defined by the API contract.
customer.addressDetailsstringoptionalValue defined by the API contract.
customer.countystringoptionalValue defined by the API contract.
customer.contactEmailstring (email)optionalValue defined by the API contract.
linesarray [object]required; min 1Value defined by the API contract.
lines.articleIdstring (uuid)optionalOptional Klik Račun article master-data identifier.
lines.codestringoptionalSeller's article or service code.
lines.namestringrequiredLine item name.
lines.quantitynumberrequired; > 0Value defined by the API contract.
lines.unitCodestringoptional; default: EA; max 16UNECE unit-of-measure code.
lines.unitPricenumberrequired; ≥ 0Net unit price before VAT.
lines.taxCodestringrequiredKlik Račun tax master-data code.
lines.taxRatenumberrequired; ≥ 0Applied VAT percentage.
lines.ublTaxCategorystringoptional; default: S; max 16EN 16931/UBL VAT category code.
lines.ublHrTaxCategorystringoptionalCroatian extension tax-category code when applicable.
lines.taxCategoryCodestringoptionalOptional Klik Račun tax-category code.
lines.classificationobjectrequiredValue defined by the API contract.
lines.classification.valuestringrequiredKPD classification value.
lines.classification.schemeIdstringoptional; = CG; default: CGCroatian KPD scheme identifier.
lines.classification.schemeVersionIdstringoptionalOptional KPD scheme version.
lines.salesAccountIdstring (uuid)optionalRequired on every line when splitSalesAccounts is true.
additionalTaxesarray [object]optionalValue defined by the API contract.
additionalTaxes.codestringrequiredValue defined by the API contract.
additionalTaxes.descriptionstringrequiredValue defined by the API contract.
additionalTaxes.hrCategorystringrequired; HR:PP · HR:PPMV · HR:POVNAK · HR:NValue defined by the API contract.
additionalTaxes.taxableAmountnumberrequired; ≥ 0Value defined by the API contract.
additionalTaxes.ratenumberrequired; ≥ 0Value defined by the API contract.
notesarray [string]optionalFree-form invoice notes; each note is limited to 2,000 characters.
paymentInstructionsobjectoptionalValue defined by the API contract.
paymentInstructions.meansCodestringoptional; default: 30; pattern: ^(?:[0-9]{1,3}|ZZZ)$UNCL 4461 payment-means code; 30 and 58 require iban.
paymentInstructions.ibanstringoptionalCreditor account IBAN; spaces are removed before validation.
paymentInstructions.bicstringoptionalCreditor bank BIC.
paymentInstructions.accountNamestringoptionalValue defined by the API contract.
paymentInstructions.paymentReferencestringoptionalValue defined by the API contract.
paymentInstructions.modelstringoptional; pattern: ^HR[0-9]{2}$Croatian payment-reference model.
paymentInstructions.purposeCodestringoptionalValue defined by the API contract.
paymentInstructions.descriptionstringoptionalValue defined by the API contract.
paymentInstructions.termsstringoptionalValue defined by the API contract.
paymentProfileIdstring (uuid)optionalOptional active Klik Račun payment profile; when supplied, its instructions replace paymentInstructions.
initialPaymentsarray [object]optionalPayments collected when the document is created; not allowed for DUE invoices.
initialPayments.methodCodestringrequiredPayment method code such as TRA
initialPayments.paymentDatestring (date)requiredDate on which the payment occurred.
initialPayments.amountnumberrequired; > 0Positive payment amount in the invoice currency.
initialPayments.referenceNumberstringoptionalBank
initialPayments.notestringoptionalOptional human-readable payment note.
stagedReferencesarray [object]optionalCommercial and supporting-document references inserted with the new draft.
stagedReferences.referenceKindstringrequired; RECURRING_CONTRACT · BUYER_CONTRACT · SALES_ORDER · PURCHASE_ORDER · DESPATCH · RECEIPT · TENDER · OFFER · SUPPORTING_DOCUMENT · BUYER_REFERENCE · PROJECT · INVOICED_OBJECT · BUYER_COST_CENTER · PREVIOUS_INVOICEDetermines the EN 16931/UBL reference mapping and whether input is manual or selected from Klik Račun.
stagedReferences.inputModestringoptional; MANUAL · SYSTEMMust match the selected reference kind; RECURRING_CONTRACT is SYSTEM and most other kinds are MANUAL.
stagedReferences.internalEntityIdstring (uuid)optionalRequired for a SYSTEM reference such as a selected recurring-contract occurrence.
stagedReferences.documentNumberstringoptionalRequired for MANUAL references.
stagedReferences.documentDatestring (date)optionalReferenced document date when applicable.
stagedReferences.descriptionstringoptionalHuman-readable reference description.
stagedReferences.externalUrlstring (uri)optionalExternal supporting-document URL.
stagedReferences.attachmentobjectoptionalValue defined by the API contract.
stagedReferences.attachment.namestringrequiredAttachment filename.
stagedReferences.attachment.typestringrequiredAttachment media type.
stagedReferences.attachment.datastring (byte)requiredBase64-encoded attachment content; decoded size is limited to 5 MiB.
stagedReferences.attachment.sizeintegeroptional; ≥ 0Optional decoded byte count used for early size validation.
salesAccountIdstring (uuid)optionalRevenue account to use when the API client has no default account, or to override that default.
splitSalesAccountsbooleanoptional; default: falseWhen true, every line must supply its own salesAccountId.
issuebooleanoptional; default: falseWhen true, create the draft and immediately queue guarded issuance; also requires invoices:issue.
advanceApplicationsarray [object]optionalAccepted advances to reserve and apply before issuance.
advanceApplications.sourceInvoiceIdstring (uuid)optionalKlik Račun identifier of the accepted advance invoice.
advanceApplications.documentNumberstringoptionalAdvance invoice number
advanceApplications.issueDatestring (date)optionalAdvance invoice date
advanceApplications.amountnumberrequired; > 0Gross advance amount to reserve and apply.

application/json - variant 2​

FieldTypeRulesMeaning
formatstringrequired; = UBLValue defined by the API contract.
ublXmlstringrequiredValue defined by the API contract.
salesAccountIdstring (uuid)optionalValue defined by the API contract.
deliveryChannelstringoptional; AS4 · FISCALIZATION_ONLYValue defined by the API contract.
issuebooleanoptionalValue defined by the API contract.
advanceApplicationsarray [object]optionalValue defined by the API contract.
advanceApplications.sourceInvoiceIdstring (uuid)optionalKlik Račun identifier of the accepted advance invoice.
advanceApplications.documentNumberstringoptionalAdvance invoice number
advanceApplications.issueDatestring (date)optionalAdvance invoice date
advanceApplications.amountnumberrequired; > 0Gross advance amount to reserve and apply.

application/xml​

Send one complete standalone UBL 2.1/HR-CIUS Invoice or CreditNote XML document. Do not send a Croatian Tax Administration FIS message.

text/xml​

Send one complete standalone UBL 2.1/HR-CIUS Invoice or CreditNote XML document. Do not send a Croatian Tax Administration FIS message.

application/ubl+xml​

Send one complete standalone UBL 2.1/HR-CIUS Invoice or CreditNote XML document. Do not send a Croatian Tax Administration FIS message.

Responses
StatusDescriptionContent type
201Invoiceapplication/json
202Invoice created and issuance queuedapplication/json
422Guard or validation failureapplication/json

GET /public/v1/outgoing-invoices/{invoiceId}​

Read one outgoing invoice

Required permissions: invoices:read

Path parameters
FieldTypeRulesMeaning
invoiceIdstring (uuid)requiredValue defined by the API contract.
Responses
StatusDescriptionContent type
200Invoiceapplication/json
404Guard or validation failureapplication/json

PATCH /public/v1/outgoing-invoices/{invoiceId}​

Update a structured draft

Required permissions: invoices:draft

Path parameters
FieldTypeRulesMeaning
invoiceIdstring (uuid)requiredValue defined by the API contract.
Request headers
FieldTypeRulesMeaning
Idempotency-Keystringrequired; min 16; max 100Value defined by the API contract.
Request body

application/json​

FieldTypeRulesMeaning
documentNumberstringoptionalRequired when numberMode is MANUAL; allocated by Klik Račun when numberMode is AUTO.
numberModestringoptional; AUTO · MANUAL; default: AUTOSelects automatic or caller-supplied numbering.
issueDatestring (date)requiredInvoice issue date in YYYY-MM-DD form.
deliveryDatestring (date)requiredSupply or service delivery date in YYYY-MM-DD form.
dueDatestring | null (date)optionalPayment due date; required by payment models with a remaining balance.
currencystringoptional; default: EUR; min 3; max 3ISO 4217 currency code.
documentTypestringoptional; Invoice · CreditNote · AdvanceInvoice; default: InvoiceBusiness document type; AdvanceInvoice selects the advance-declaration process.
paymentModelstringoptional; DUE · ADVANCE_AND_BALANCE · ONSITE · ADVANCE_DECLARATION; default: DUEDetermines due-date, immediate-payment, and advance settlement rules.
deliveryChannelstringoptional; AS4 · FISCALIZATION_ONLY; default: AS4Requested delivery path; Klik Račun may select an authoritative non-AS4 reporting path when recipient discovery requires it.
supplierobjectoptionalOptional ownership assertion. Klik Račun only accepts a matching OIB and replaces all supplier data with the credential-bound issuer profile.
supplier.oibstringoptional; pattern: ^[0-9]{11}$Must equal the OIB bound to the API credential.
customerobjectrequiredValue defined by the API contract.
customer.partnerIdstring (uuid)optionalOptional Klik Račun partner master-data identifier.
customer.partnerCodestringoptionalOptional caller or master-data partner code.
customer.namestringrequiredLegal name; accepted as an alias for fullName.
customer.fullNamestringoptionalLegal name; required when name is omitted.
customer.shortNamestringoptionalDisplay name; defaults to the legal name.
customer.oibstringrequired; pattern: ^[0-9]{11}$Croatian personal identification number.
customer.endpointSchemestringoptional; default: 9934; max 16Electronic-address identifier scheme.
customer.countryCodestringoptional; default: HR; min 2; max 2ISO 3166-1 alpha-2 country code.
customer.vatIdstringoptionalVAT identifier when applicable.
customer.citystringoptionalValue defined by the API contract.
customer.postalCodestringoptionalValue defined by the API contract.
customer.streetAddressstringoptionalValue defined by the API contract.
customer.additionalAddressstringoptionalValue defined by the API contract.
customer.addressDetailsstringoptionalValue defined by the API contract.
customer.countystringoptionalValue defined by the API contract.
customer.contactEmailstring (email)optionalValue defined by the API contract.
linesarray [object]required; min 1Value defined by the API contract.
lines.articleIdstring (uuid)optionalOptional Klik Račun article master-data identifier.
lines.codestringoptionalSeller's article or service code.
lines.namestringrequiredLine item name.
lines.quantitynumberrequired; > 0Value defined by the API contract.
lines.unitCodestringoptional; default: EA; max 16UNECE unit-of-measure code.
lines.unitPricenumberrequired; ≥ 0Net unit price before VAT.
lines.taxCodestringrequiredKlik Račun tax master-data code.
lines.taxRatenumberrequired; ≥ 0Applied VAT percentage.
lines.ublTaxCategorystringoptional; default: S; max 16EN 16931/UBL VAT category code.
lines.ublHrTaxCategorystringoptionalCroatian extension tax-category code when applicable.
lines.taxCategoryCodestringoptionalOptional Klik Račun tax-category code.
lines.classificationobjectrequiredValue defined by the API contract.
lines.classification.valuestringrequiredKPD classification value.
lines.classification.schemeIdstringoptional; = CG; default: CGCroatian KPD scheme identifier.
lines.classification.schemeVersionIdstringoptionalOptional KPD scheme version.
lines.salesAccountIdstring (uuid)optionalRequired on every line when splitSalesAccounts is true.
additionalTaxesarray [object]optionalValue defined by the API contract.
additionalTaxes.codestringrequiredValue defined by the API contract.
additionalTaxes.descriptionstringrequiredValue defined by the API contract.
additionalTaxes.hrCategorystringrequired; HR:PP · HR:PPMV · HR:POVNAK · HR:NValue defined by the API contract.
additionalTaxes.taxableAmountnumberrequired; ≥ 0Value defined by the API contract.
additionalTaxes.ratenumberrequired; ≥ 0Value defined by the API contract.
notesarray [string]optionalFree-form invoice notes; each note is limited to 2,000 characters.
paymentInstructionsobjectoptionalValue defined by the API contract.
paymentInstructions.meansCodestringoptional; default: 30; pattern: ^(?:[0-9]{1,3}|ZZZ)$UNCL 4461 payment-means code; 30 and 58 require iban.
paymentInstructions.ibanstringoptionalCreditor account IBAN; spaces are removed before validation.
paymentInstructions.bicstringoptionalCreditor bank BIC.
paymentInstructions.accountNamestringoptionalValue defined by the API contract.
paymentInstructions.paymentReferencestringoptionalValue defined by the API contract.
paymentInstructions.modelstringoptional; pattern: ^HR[0-9]{2}$Croatian payment-reference model.
paymentInstructions.purposeCodestringoptionalValue defined by the API contract.
paymentInstructions.descriptionstringoptionalValue defined by the API contract.
paymentInstructions.termsstringoptionalValue defined by the API contract.
paymentProfileIdstring (uuid)optionalOptional active Klik Račun payment profile; when supplied, its instructions replace paymentInstructions.
initialPaymentsarray [object]optionalPayments collected when the document is created; not allowed for DUE invoices.
initialPayments.methodCodestringrequiredPayment method code such as TRA
initialPayments.paymentDatestring (date)requiredDate on which the payment occurred.
initialPayments.amountnumberrequired; > 0Positive payment amount in the invoice currency.
initialPayments.referenceNumberstringoptionalBank
initialPayments.notestringoptionalOptional human-readable payment note.
stagedReferencesarray [object]optionalCommercial and supporting-document references inserted with the new draft.
stagedReferences.referenceKindstringrequired; RECURRING_CONTRACT · BUYER_CONTRACT · SALES_ORDER · PURCHASE_ORDER · DESPATCH · RECEIPT · TENDER · OFFER · SUPPORTING_DOCUMENT · BUYER_REFERENCE · PROJECT · INVOICED_OBJECT · BUYER_COST_CENTER · PREVIOUS_INVOICEDetermines the EN 16931/UBL reference mapping and whether input is manual or selected from Klik Račun.
stagedReferences.inputModestringoptional; MANUAL · SYSTEMMust match the selected reference kind; RECURRING_CONTRACT is SYSTEM and most other kinds are MANUAL.
stagedReferences.internalEntityIdstring (uuid)optionalRequired for a SYSTEM reference such as a selected recurring-contract occurrence.
stagedReferences.documentNumberstringoptionalRequired for MANUAL references.
stagedReferences.documentDatestring (date)optionalReferenced document date when applicable.
stagedReferences.descriptionstringoptionalHuman-readable reference description.
stagedReferences.externalUrlstring (uri)optionalExternal supporting-document URL.
stagedReferences.attachmentobjectoptionalValue defined by the API contract.
stagedReferences.attachment.namestringrequiredAttachment filename.
stagedReferences.attachment.typestringrequiredAttachment media type.
stagedReferences.attachment.datastring (byte)requiredBase64-encoded attachment content; decoded size is limited to 5 MiB.
stagedReferences.attachment.sizeintegeroptional; ≥ 0Optional decoded byte count used for early size validation.
salesAccountIdstring (uuid)optionalRevenue account to use when the API client has no default account, or to override that default.
splitSalesAccountsbooleanoptional; default: falseWhen true, every line must supply its own salesAccountId.
issuebooleanoptional; default: falseWhen true, create the draft and immediately queue guarded issuance; also requires invoices:issue.
advanceApplicationsarray [object]optionalAccepted advances to reserve and apply before issuance.
advanceApplications.sourceInvoiceIdstring (uuid)optionalKlik Račun identifier of the accepted advance invoice.
advanceApplications.documentNumberstringoptionalAdvance invoice number
advanceApplications.issueDatestring (date)optionalAdvance invoice date
advanceApplications.amountnumberrequired; > 0Gross advance amount to reserve and apply.
Responses
StatusDescriptionContent type
200Invoiceapplication/json
409Guard or validation failureapplication/json

POST /public/v1/outgoing-invoices/{invoiceId}/validate​

Validate the effective UBL without issuing it

Required permissions: invoices:issue

Path parameters
FieldTypeRulesMeaning
invoiceIdstring (uuid)requiredValue defined by the API contract.
Request headers
FieldTypeRulesMeaning
Idempotency-Keystringrequired; min 16; max 100Value defined by the API contract.
Responses
StatusDescriptionContent type
200Validation passedapplication/json
422Guard or validation failureapplication/json

POST /public/v1/outgoing-invoices/{invoiceId}/issue​

Queue guarded routing, transmission, reporting, and fiscalization

Required permissions: invoices:issue

Path parameters
FieldTypeRulesMeaning
invoiceIdstring (uuid)requiredValue defined by the API contract.
Request headers
FieldTypeRulesMeaning
Idempotency-Keystringrequired; min 16; max 100Value defined by the API contract.
Responses
StatusDescriptionContent type
202Asynchronous operationapplication/json

GET /public/v1/outgoing-invoices/{invoiceId}/status​

Read unified and dimensional invoice status

Required permissions: invoices:read

Path parameters
FieldTypeRulesMeaning
invoiceIdstring (uuid)requiredValue defined by the API contract.
Responses
StatusDescriptionContent type
200Invoice statusapplication/json

GET /public/v1/outgoing-invoices/{invoiceId}/extract-xml/ubl​

Download the effective UBL used for issuance

Required permissions: invoices:read

Path parameters
FieldTypeRulesMeaning
invoiceIdstring (uuid)requiredValue defined by the API contract.
Responses
StatusDescriptionContent type
200UBL Invoice or CreditNoteapplication/xml

Reversals, corrections, and advances​

POST /public/v1/outgoing-invoices/{invoiceId}/reverse​

Create a guarded full reversal

Required permissions: invoices:reverse

Path parameters
FieldTypeRulesMeaning
invoiceIdstring (uuid)requiredValue defined by the API contract.
Request headers
FieldTypeRulesMeaning
Idempotency-Keystringrequired; min 16; max 100Value defined by the API contract.
Request body

application/json​

FieldTypeRulesMeaning
reasonstringrequiredValue defined by the API contract.
issueDatestring (date)optionalValue defined by the API contract.
documentNumberstringoptionalValue defined by the API contract.
numberModestringoptional; AUTO · MANUALValue defined by the API contract.
issuebooleanoptional; default: trueValue defined by the API contract.
Responses
StatusDescriptionContent type
201Generated correction documents and optional issue operationapplication/json
202Generated correction documents and optional issue operationapplication/json

POST /public/v1/outgoing-invoices/{invoiceId}/correct/preview​

Calculate and persist a short-lived correction plan

Required permissions: invoices:correct

Path parameters
FieldTypeRulesMeaning
invoiceIdstring (uuid)requiredValue defined by the API contract.
Request headers
FieldTypeRulesMeaning
Idempotency-Keystringrequired; min 16; max 100Value defined by the API contract.
IIProxy-Correction-Reasonstringoptional; max 2000Required when the preview body is direct XML.
Request body

application/json - variant 1​

FieldTypeRulesMeaning
issueDatestring (date)requiredValue defined by the API contract.
reasonstringrequiredValue defined by the API contract.
targetobjectrequiredStructured invoice data from which Klik Račun builds canonical UBL 2.1/HR-CIUS XML.
target.documentNumberstringoptionalRequired when numberMode is MANUAL; allocated by Klik Račun when numberMode is AUTO.
target.numberModestringoptional; AUTO · MANUAL; default: AUTOSelects automatic or caller-supplied numbering.
target.issueDatestring (date)requiredInvoice issue date in YYYY-MM-DD form.
target.deliveryDatestring (date)requiredSupply or service delivery date in YYYY-MM-DD form.
target.dueDatestring | null (date)optionalPayment due date; required by payment models with a remaining balance.
target.currencystringoptional; default: EUR; min 3; max 3ISO 4217 currency code.
target.documentTypestringoptional; Invoice · CreditNote · AdvanceInvoice; default: InvoiceBusiness document type; AdvanceInvoice selects the advance-declaration process.
target.paymentModelstringoptional; DUE · ADVANCE_AND_BALANCE · ONSITE · ADVANCE_DECLARATION; default: DUEDetermines due-date, immediate-payment, and advance settlement rules.
target.deliveryChannelstringoptional; AS4 · FISCALIZATION_ONLY; default: AS4Requested delivery path; Klik Račun may select an authoritative non-AS4 reporting path when recipient discovery requires it.
target.supplierobjectoptionalOptional ownership assertion. Klik Račun only accepts a matching OIB and replaces all supplier data with the credential-bound issuer profile.
target.supplier.oibstringoptional; pattern: ^[0-9]{11}$Must equal the OIB bound to the API credential.
target.customerobjectrequiredValue defined by the API contract.
target.customer.partnerIdstring (uuid)optionalOptional Klik Račun partner master-data identifier.
target.customer.partnerCodestringoptionalOptional caller or master-data partner code.
target.customer.namestringrequiredLegal name; accepted as an alias for fullName.
target.customer.fullNamestringoptionalLegal name; required when name is omitted.
target.customer.shortNamestringoptionalDisplay name; defaults to the legal name.
target.customer.oibstringrequired; pattern: ^[0-9]{11}$Croatian personal identification number.
target.customer.endpointSchemestringoptional; default: 9934; max 16Electronic-address identifier scheme.
target.customer.countryCodestringoptional; default: HR; min 2; max 2ISO 3166-1 alpha-2 country code.
target.customer.vatIdstringoptionalVAT identifier when applicable.
target.customer.citystringoptionalValue defined by the API contract.
target.customer.postalCodestringoptionalValue defined by the API contract.
target.customer.streetAddressstringoptionalValue defined by the API contract.
target.customer.additionalAddressstringoptionalValue defined by the API contract.
target.customer.addressDetailsstringoptionalValue defined by the API contract.
target.customer.countystringoptionalValue defined by the API contract.
target.customer.contactEmailstring (email)optionalValue defined by the API contract.
target.linesarray [object]required; min 1Value defined by the API contract.
target.lines.articleIdstring (uuid)optionalOptional Klik Račun article master-data identifier.
target.lines.codestringoptionalSeller's article or service code.
target.lines.namestringrequiredLine item name.
target.lines.quantitynumberrequired; > 0Value defined by the API contract.
target.lines.unitCodestringoptional; default: EA; max 16UNECE unit-of-measure code.
target.lines.unitPricenumberrequired; ≥ 0Net unit price before VAT.
target.lines.taxCodestringrequiredKlik Račun tax master-data code.
target.lines.taxRatenumberrequired; ≥ 0Applied VAT percentage.
target.lines.ublTaxCategorystringoptional; default: S; max 16EN 16931/UBL VAT category code.
target.lines.ublHrTaxCategorystringoptionalCroatian extension tax-category code when applicable.
target.lines.taxCategoryCodestringoptionalOptional Klik Račun tax-category code.
target.lines.classificationobjectrequiredValue defined by the API contract.
target.lines.classification.valuestringrequiredKPD classification value.
target.lines.classification.schemeIdstringoptional; = CG; default: CGCroatian KPD scheme identifier.
target.lines.classification.schemeVersionIdstringoptionalOptional KPD scheme version.
target.lines.salesAccountIdstring (uuid)optionalRequired on every line when splitSalesAccounts is true.
target.additionalTaxesarray [object]optionalValue defined by the API contract.
target.additionalTaxes.codestringrequiredValue defined by the API contract.
target.additionalTaxes.descriptionstringrequiredValue defined by the API contract.
target.additionalTaxes.hrCategorystringrequired; HR:PP · HR:PPMV · HR:POVNAK · HR:NValue defined by the API contract.
target.additionalTaxes.taxableAmountnumberrequired; ≥ 0Value defined by the API contract.
target.additionalTaxes.ratenumberrequired; ≥ 0Value defined by the API contract.
target.notesarray [string]optionalFree-form invoice notes; each note is limited to 2,000 characters.
target.paymentInstructionsobjectoptionalValue defined by the API contract.
target.paymentInstructions.meansCodestringoptional; default: 30; pattern: ^(?:[0-9]{1,3}|ZZZ)$UNCL 4461 payment-means code; 30 and 58 require iban.
target.paymentInstructions.ibanstringoptionalCreditor account IBAN; spaces are removed before validation.
target.paymentInstructions.bicstringoptionalCreditor bank BIC.
target.paymentInstructions.accountNamestringoptionalValue defined by the API contract.
target.paymentInstructions.paymentReferencestringoptionalValue defined by the API contract.
target.paymentInstructions.modelstringoptional; pattern: ^HR[0-9]{2}$Croatian payment-reference model.
target.paymentInstructions.purposeCodestringoptionalValue defined by the API contract.
target.paymentInstructions.descriptionstringoptionalValue defined by the API contract.
target.paymentInstructions.termsstringoptionalValue defined by the API contract.
target.paymentProfileIdstring (uuid)optionalOptional active Klik Račun payment profile; when supplied, its instructions replace paymentInstructions.
target.initialPaymentsarray [object]optionalPayments collected when the document is created; not allowed for DUE invoices.
target.initialPayments.methodCodestringrequiredPayment method code such as TRA
target.initialPayments.paymentDatestring (date)requiredDate on which the payment occurred.
target.initialPayments.amountnumberrequired; > 0Positive payment amount in the invoice currency.
target.initialPayments.referenceNumberstringoptionalBank
target.initialPayments.notestringoptionalOptional human-readable payment note.
target.stagedReferencesarray [object]optionalCommercial and supporting-document references inserted with the new draft.
target.stagedReferences.referenceKindstringrequired; RECURRING_CONTRACT · BUYER_CONTRACT · SALES_ORDER · PURCHASE_ORDER · DESPATCH · RECEIPT · TENDER · OFFER · SUPPORTING_DOCUMENT · BUYER_REFERENCE · PROJECT · INVOICED_OBJECT · BUYER_COST_CENTER · PREVIOUS_INVOICEDetermines the EN 16931/UBL reference mapping and whether input is manual or selected from Klik Račun.
target.stagedReferences.inputModestringoptional; MANUAL · SYSTEMMust match the selected reference kind; RECURRING_CONTRACT is SYSTEM and most other kinds are MANUAL.
target.stagedReferences.internalEntityIdstring (uuid)optionalRequired for a SYSTEM reference such as a selected recurring-contract occurrence.
target.stagedReferences.documentNumberstringoptionalRequired for MANUAL references.
target.stagedReferences.documentDatestring (date)optionalReferenced document date when applicable.
target.stagedReferences.descriptionstringoptionalHuman-readable reference description.
target.stagedReferences.externalUrlstring (uri)optionalExternal supporting-document URL.
target.stagedReferences.attachmentobjectoptionalValue defined by the API contract.
target.stagedReferences.attachment.namestringrequiredAttachment filename.
target.stagedReferences.attachment.typestringrequiredAttachment media type.
target.stagedReferences.attachment.datastring (byte)requiredBase64-encoded attachment content; decoded size is limited to 5 MiB.
target.stagedReferences.attachment.sizeintegeroptional; ≥ 0Optional decoded byte count used for early size validation.
target.salesAccountIdstring (uuid)optionalRevenue account to use when the API client has no default account, or to override that default.
target.splitSalesAccountsbooleanoptional; default: falseWhen true, every line must supply its own salesAccountId.
target.issuebooleanoptional; default: falseWhen true, create the draft and immediately queue guarded issuance; also requires invoices:issue.
target.advanceApplicationsarray [object]optionalAccepted advances to reserve and apply before issuance.
target.advanceApplications.sourceInvoiceIdstring (uuid)optionalKlik Račun identifier of the accepted advance invoice.
target.advanceApplications.documentNumberstringoptionalAdvance invoice number
target.advanceApplications.issueDatestring (date)optionalAdvance invoice date
target.advanceApplications.amountnumberrequired; > 0Gross advance amount to reserve and apply.
documentNumberstringoptionalValue defined by the API contract.
numberModestringoptional; AUTO · MANUALValue defined by the API contract.

application/json - variant 2​

FieldTypeRulesMeaning
formatstringrequired; = UBLValue defined by the API contract.
ublXmlstringrequiredValue defined by the API contract.
salesAccountIdstring (uuid)optionalValue defined by the API contract.
deliveryChannelstringoptional; AS4 · FISCALIZATION_ONLYValue defined by the API contract.
issuebooleanoptionalValue defined by the API contract.
advanceApplicationsarray [object]optionalValue defined by the API contract.
advanceApplications.sourceInvoiceIdstring (uuid)optionalKlik Račun identifier of the accepted advance invoice.
advanceApplications.documentNumberstringoptionalAdvance invoice number
advanceApplications.issueDatestring (date)optionalAdvance invoice date
advanceApplications.amountnumberrequired; > 0Gross advance amount to reserve and apply.
reasonstringrequiredValue defined by the API contract.

application/xml​

Send one complete standalone UBL 2.1/HR-CIUS Invoice or CreditNote XML document. Do not send a Croatian Tax Administration FIS message.

Responses
StatusDescriptionContent type
200Protected correction planapplication/json

POST /public/v1/outgoing-invoices/{invoiceId}/correct​

Consume a correction plan once

Required permissions: invoices:correct

Path parameters
FieldTypeRulesMeaning
invoiceIdstring (uuid)requiredValue defined by the API contract.
Request headers
FieldTypeRulesMeaning
Idempotency-Keystringrequired; min 16; max 100Value defined by the API contract.
Request body

application/json​

FieldTypeRulesMeaning
planIdstring (uuid)requiredValue defined by the API contract.
issuebooleanoptional; default: trueValue defined by the API contract.
Responses
StatusDescriptionContent type
201Generated correction documents and optional issue operationapplication/json
202Generated correction documents and optional issue operationapplication/json

POST /public/v1/outgoing-invoices/{invoiceId}/advance-applications​

Reserve an accepted advance against a draft

Required permissions: advances:write

Path parameters
FieldTypeRulesMeaning
invoiceIdstring (uuid)requiredValue defined by the API contract.
Request headers
FieldTypeRulesMeaning
Idempotency-Keystringrequired; min 16; max 100Value defined by the API contract.
Request body

application/json​

FieldTypeRulesMeaning
sourceInvoiceIdstring (uuid)optionalKlik Račun identifier of the accepted advance invoice.
documentNumberstringoptionalAdvance invoice number
issueDatestring (date)optionalAdvance invoice date
amountnumberrequired; > 0Gross advance amount to reserve and apply.
Responses
StatusDescriptionContent type
201Reserved advance application—

DELETE /public/v1/outgoing-invoices/{invoiceId}/advance-applications/{applicationId}​

Release a draft advance reservation

Required permissions: advances:write

Path parameters
FieldTypeRulesMeaning
invoiceIdstring (uuid)requiredValue defined by the API contract.
applicationIdstring (uuid)requiredValue defined by the API contract.
Request headers
FieldTypeRulesMeaning
Idempotency-Keystringrequired; min 16; max 100Value defined by the API contract.
Responses
StatusDescriptionContent type
204Released—

Outgoing-invoice payments​

GET /public/v1/outgoing-invoices/{invoiceId}/payments​

List payment evidence and settlement

Required permissions: payments:read

Path parameters
FieldTypeRulesMeaning
invoiceIdstring (uuid)requiredValue defined by the API contract.
Responses
StatusDescriptionContent type
200Payments and settlement—

POST /public/v1/outgoing-invoices/{invoiceId}/payments​

Record payment evidence

Required permissions: payments:write

Path parameters
FieldTypeRulesMeaning
invoiceIdstring (uuid)requiredValue defined by the API contract.
Request headers
FieldTypeRulesMeaning
Idempotency-Keystringrequired; min 16; max 100Value defined by the API contract.
Request body

application/json​

FieldTypeRulesMeaning
methodCodestringrequiredPayment method code such as TRA
paymentDatestring (date)requiredDate on which the payment occurred.
amountnumberrequired; > 0Positive payment amount in the invoice currency.
referenceNumberstringoptionalBank
notestringoptionalOptional human-readable payment note.
Responses
StatusDescriptionContent type
201Payment recorded—

POST /public/v1/outgoing-invoices/{invoiceId}/payments/{paymentId}/void​

Void payment evidence and queue a reporting correction when required

Required permissions: payments:write

Path parameters
FieldTypeRulesMeaning
invoiceIdstring (uuid)requiredValue defined by the API contract.
paymentIdstring (uuid)requiredValue defined by the API contract.
Request headers
FieldTypeRulesMeaning
Idempotency-Keystringrequired; min 16; max 100Value defined by the API contract.
Responses
StatusDescriptionContent type
200Payment voided—

Incoming invoices and their payments​

GET /public/v1/incoming-invoices​

List tenant-owned AP documents

Required permissions: incoming:read

Query parameters
FieldTypeRulesMeaning
statusstringoptionalReturn only documents whose unified status equals this value.
documentNumberstringoptionalCase-insensitive substring match against the document number.
fromstring (date)optionalInclude documents issued on or after this date.
tostring (date)optionalInclude documents issued on or before this date.
limitintegeroptional; default: 1000; ≥ 1Maximum number of matching documents returned.
Responses
StatusDescriptionContent type
200Incoming invoice list—

GET /public/v1/incoming-invoices/{documentKey}​

Read a tenant-owned AP document

Required permissions: incoming:read

Path parameters
FieldTypeRulesMeaning
documentKeystringrequired; min 1; max 1000Value defined by the API contract.
Responses
StatusDescriptionContent type
200Incoming invoice—
404Guard or validation failureapplication/json

GET /public/v1/incoming-invoices/{documentKey}/extract-xml/ubl​

Download the retained incoming UBL

Required permissions: incoming:read

Path parameters
FieldTypeRulesMeaning
documentKeystringrequired; min 1; max 1000Value defined by the API contract.
Responses
StatusDescriptionContent type
200Incoming UBL Invoice or CreditNoteapplication/xml

GET /public/v1/incoming-invoices/{documentKey}/process-status​

Project the recipient business process status from recorded facts

Required permissions: incoming:read

Path parameters
FieldTypeRulesMeaning
documentKeystringrequired; min 1; max 1000Value defined by the API contract.
Responses
StatusDescriptionContent type
200Recipient process statusapplication/json

POST /public/v1/incoming-invoices/{documentKey}/approve​

Record recipient business approval

Required permissions: incoming:respond

Path parameters
FieldTypeRulesMeaning
documentKeystringrequired; min 1; max 1000Value defined by the API contract.
Request headers
FieldTypeRulesMeaning
Idempotency-Keystringrequired; min 16; max 100Value defined by the API contract.
Responses
StatusDescriptionContent type
200Approved—

POST /public/v1/incoming-invoices/{documentKey}/reject​

Validate and submit recipient rejection

Required permissions: incoming:respond

Path parameters
FieldTypeRulesMeaning
documentKeystringrequired; min 1; max 1000Value defined by the API contract.
Request headers
FieldTypeRulesMeaning
Idempotency-Keystringrequired; min 16; max 100Value defined by the API contract.
Request body

application/json​

FieldTypeRulesMeaning
rejectionDatestring (date)requiredValue defined by the API contract.
reasonTypestringrequired; N · U · OValue defined by the API contract.
reasonstringrequired; min 1; max 2000Value defined by the API contract.
Responses
StatusDescriptionContent type
202Rejection submitted—

GET /public/v1/incoming-invoices/{documentKey}/payments​

Read AP payment events and settlement

Required permissions: payments:read

Path parameters
FieldTypeRulesMeaning
documentKeystringrequired; min 1; max 1000Value defined by the API contract.
Responses
StatusDescriptionContent type
200AP payment events and settlement—

POST /public/v1/incoming-invoices/{documentKey}/payments​

Record a dated AP payment event

Required permissions: payments:write

Path parameters
FieldTypeRulesMeaning
documentKeystringrequired; min 1; max 1000Value defined by the API contract.
Request headers
FieldTypeRulesMeaning
Idempotency-Keystringrequired; min 16; max 100Value defined by the API contract.
Request body

application/json​

FieldTypeRulesMeaning
methodCodestringrequiredPayment method code such as TRA
paymentDatestring (date)requiredDate on which the payment occurred.
amountnumberrequired; > 0Positive payment amount in the invoice currency.
referenceNumberstringoptionalBank
notestringoptionalOptional human-readable payment note.
Responses
StatusDescriptionContent type
201AP payment recorded—

POST /public/v1/incoming-invoices/{documentKey}/payments/{paymentId}/void​

Void an AP payment event

Required permissions: payments:write

Path parameters
FieldTypeRulesMeaning
documentKeystringrequired; min 1; max 1000Value defined by the API contract.
paymentIdstring (uuid)requiredValue defined by the API contract.
Request headers
FieldTypeRulesMeaning
Idempotency-Keystringrequired; min 16; max 100Value defined by the API contract.
Responses
StatusDescriptionContent type
200AP payment voided—

Asynchronous operations​

GET /public/v1/events​

Stream client-owned operation updates over Server-Sent Events

Required permissions: events:read

Request headers
FieldTypeRulesMeaning
Last-Event-IDstringoptional; min 1; max 512Opaque SSE id from the last completely processed event. Omit it for a new stream starting at the current position.
Responses
StatusDescriptionContent type
200Server-Sent Events stream of ready and operation.updated eventstext/event-stream
400Guard or validation failureapplication/json
401Guard or validation failureapplication/json
403Guard or validation failureapplication/json

GET /public/v1/operations/{operationId}​

Read a client-owned asynchronous operation

Required permissions: invoices:read

Path parameters
FieldTypeRulesMeaning
operationIdstring (uuid)requiredValue defined by the API contract.
Responses
StatusDescriptionContent type
200Asynchronous operationapplication/json
404Guard or validation failureapplication/json