Versions in this module Expand all Collapse all v0 v0.2.0 Jul 14, 2026 Changes in this version + type AutoFilledField struct + Field string + Reason string + Value string + type ExtractionModelTier string + const TierAccurate + const TierFast type InvoiceRecord + ExtractionTier *string type InvoiceSubmission + AllowanceCharges []InvoiceSubmissionAllowanceChargeInput + BuyerAccountingReference string + ContractReference string + Delivery *InvoiceSubmissionDeliveryInput + DeliveryPeriodEnd Date + DeliveryPeriodStart Date + DespatchAdviceReference string + DueDate Date + InvoicePeriod *InvoiceSubmissionInvoicePeriodInput + InvoicedObjectID string + InvoicedObjectSchemeID string + Notes []string + OrderReference string + Payee *InvoiceSubmissionPartyInput + PaymentMeans []InvoiceSubmissionPaymentMeansInput + PaymentTermsNote string + PrecedingInvoiceReferences []InvoiceSubmissionPrecedingInvoiceReferenceInput + ProjectReference string + ReceivingAdviceReference string + SalesOrderReference string + SupportingDocuments []InvoiceSubmissionSupportingDocumentInput + TaxCurrencyCode string + TaxPointDate Date + TaxRepresentative *InvoiceSubmissionPartyInput + TenderOrLotReference string + type InvoiceSubmissionAddressInput struct + AdditionalStreetName string + AddressLine3 string + City string + CountryCode string + CountrySubdivision string + PostalZone string + StreetName string + type InvoiceSubmissionAllowanceChargeInput struct + Amount Number + BaseAmount Number + Charge bool + Percentage Number + Reason string + ReasonCode string + VatCategoryCode string + VatRate Number + type InvoiceSubmissionContactInput struct + Email string + Name string + Telephone string + type InvoiceSubmissionDeliveryInput struct + ActualDeliveryDate Date + Address *InvoiceSubmissionAddressInput + LocationID string + LocationSchemeID string + PartyName string + type InvoiceSubmissionInvoicePeriodInput struct + DescriptionCode string + EndDate Date + StartDate Date + type InvoiceSubmissionItemAttributeInput struct + Name string + Value string + type InvoiceSubmissionItemClassificationInput struct + Code string + ListID string + ListVersionID string + type InvoiceSubmissionLineAllowanceChargeInput struct + Amount Number + BaseAmount Number + Charge bool + Percentage Number + Reason string + ReasonCode string type InvoiceSubmissionLineInput + AccountingReference string + AllowanceCharges []InvoiceSubmissionLineAllowanceChargeInput + Attributes []InvoiceSubmissionItemAttributeInput + BuyerItemID string + Classifications []InvoiceSubmissionItemClassificationInput + ExemptionReason string + ExemptionReasonCode string + GrossPrice Number + ItemName string + Note string + ObjectID string + ObjectIDSchemeID string + OrderLineReference string + OriginCountryCode string + Period *InvoiceSubmissionInvoicePeriodInput + PriceBaseQuantity Number + PriceBaseQuantityUnit string + PriceDiscount Number + SellerItemID string + StandardItemID string + StandardItemIDSchemeID string + TaxCategoryCode string + type InvoiceSubmissionPartyIdentifierInput struct + ID string + SchemeID string type InvoiceSubmissionPartyInput + AdditionalLegalInfo string + Address *InvoiceSubmissionAddressInput + Contact *InvoiceSubmissionContactInput + EndpointID string + EndpointSchemeID string + Identifiers []InvoiceSubmissionPartyIdentifierInput + LegalRegistrationID string + LegalRegistrationSchemeID string + RegistrationName string + TaxRegistrationID string + type InvoiceSubmissionPaymentMeansInput struct + AccountName string + CardAccountNumber string + CardHolderName string + CreditTransferAccountID string + CreditorID string + DebitedAccountID string + MandateReferenceID string + PaymentMeansText string + RemittanceInformation string + ServiceProviderID string + TypeCode string + type InvoiceSubmissionPrecedingInvoiceReferenceInput struct + ID string + IssueDate Date + type InvoiceSubmissionSupportingDocumentInput struct + Description string + ExternalURI string + Filename string + ID string + MimeCode string + SchemeID string + TypeCode string type InvoicesService + func (s *InvoicesService) ExtractInvoice(ctx context.Context, path string, profile ValidationProfile, ...) (InvoiceSubmissionResult, error) + func (s *InvoicesService) ExtractInvoiceAndWait(ctx context.Context, path string, profile ValidationProfile, ...) (InvoiceRecord, error) + func (s *InvoicesService) ExtractInvoiceBytes(ctx context.Context, filename string, content []byte, ...) (InvoiceSubmissionResult, error) + func (s *InvoicesService) ExtractInvoiceBytesAndWait(ctx context.Context, filename string, content []byte, ...) (InvoiceRecord, error) + func (s *InvoicesService) GetAutoFilledFields(ctx context.Context) (map[string][]AutoFilledField, error) + func (s *InvoicesService) PatchInvoice(ctx context.Context, id string, rawJSONPatch []byte) (InvoiceRecord, error) + func (s *InvoicesService) PatchInvoiceMap(ctx context.Context, id string, patch map[string]any) (InvoiceRecord, error) v0.1.0 Jul 10, 2026 Changes in this version + type APIError struct + ErrorResponseBody *ErrorResponse + Message string + RawBody string + StatusCode int + func (e *APIError) Error() string + type APIKeysService struct + func (s *APIKeysService) Create(ctx context.Context, req CreateApiKeyRequest) (CreatedApiKey, error) + func (s *APIKeysService) List(ctx context.Context) ([]ApiKey, error) + func (s *APIKeysService) Revoke(ctx context.Context, id string) error + type Address struct + AdditionalStreetName *string + AddressLine3 *string + City *string + CountryCode *string + CountrySubdivision *string + PostalZone *string + StreetName *string + type AllowanceCharge struct + Amount *Number + BaseAmount *Number + Charge bool + Percentage *Number + Reason *string + ReasonCode *string + VatCategoryCode *string + VatRate *Number + type ApiKey struct + Active bool + CreatedAt time.Time + ID string + KeyPrefix string + LastUsedAt *time.Time + Name string + QuotaLimit *int + QuotaUsed int + RevokedAt *time.Time + Sandbox bool + type AuthenticationError struct + type Client struct + APIKeys *APIKeysService + Invoices *InvoicesService + func New(apiKey string, opts ...Option) (*Client, error) + type Contact struct + Email *string + Name *string + Telephone *string + type CreateApiKeyRequest struct + Name string + QuotaLimit *int + Sandbox bool + type CreatedApiKey struct + CreatedAt time.Time + ID string + Name string + QuotaLimit *int + RawKey string + Sandbox bool + type Date string + func NewDate(t time.Time) Date + func (d Date) IsZero() bool + func (d Date) String() string + func (d Date) Time() (time.Time, error) + type Delivery struct + ActualDeliveryDate *Date + Address *Address + LocationID *string + LocationSchemeID *string + PartyName *string + type ErrorResponse struct + Code int + Error string + FieldErrors map[string]string + Message string + Timestamp time.Time + type Invoice struct + AllowanceCharges []AllowanceCharge + AllowanceTotalAmount *Number + Buyer *Party + BuyerAccountingReference *string + BuyerReference *string + ChargeTotalAmount *Number + ContractReference *string + Currency *string + Delivery *Delivery + DeliveryPeriodEnd *Date + DeliveryPeriodStart *Date + DespatchAdviceReference *string + DueDate *Date + InvoiceNumber *string + InvoicePeriod *InvoicePeriod + InvoicedObjectID *string + InvoicedObjectSchemeID *string + IssueDate *Date + LineExtensionAmount *Number + Lines []InvoiceLine + Notes []string + OrderReference *string + PayableAmount *Number + PayableRoundingAmount *Number + Payee *Party + PaymentMeans []PaymentMeans + PaymentTermsNote *string + PrecedingInvoiceReferences []PrecedingInvoiceReference + PrepaidAmount *Number + ProfileID *string + ProjectReference *string + ProjectReferenceCount int + ReceivingAdviceReference *string + SalesOrderReference *string + SpecificationID *string + Supplier *Party + SupportingDocuments []SupportingDocument + TaxAmount *Number + TaxAmountInAccountingCurrency *Number + TaxBreakdowns []TaxBreakdown + TaxCurrencyCode *string + TaxExclusiveAmount *Number + TaxInclusiveAmount *Number + TaxPointDate *Date + TaxRepresentative *Party + TaxTotalWithSubtotalsCount int + TaxTotalWithoutSubtotalsCount int + TenderOrLotReference *string + TypeCode *string + type InvoiceLine struct + AccountingReference *string + AllowanceCharges []LineAllowanceCharge + Attributes []ItemAttribute + BuyerItemID *string + Classifications []ItemClassification + Description *string + DocumentReferenceCount int + DocumentReferenceTypeCode *string + GrossPrice *Number + ItemName *string + LineID *string + LineNetAmount *Number + Note *string + ObjectID *string + ObjectIDSchemeID *string + OrderLineReference *string + OriginCountryCode *string + Period *InvoicePeriod + Price *Number + PriceBaseQuantity *Number + PriceBaseQuantityUnit *string + PriceDiscount *Number + PriceHasCharge bool + Quantity *Number + SellerItemID *string + StandardItemID *string + StandardItemIDSchemeID *string + TaxCategoryCode *string + TaxRate *Number + Unit *string + type InvoicePeriod struct + DescriptionCode *string + EndDate *Date + StartDate *Date + type InvoiceRecord struct + APIKeyID *string + CreatedAt time.Time + ID string + Invoice *Invoice + InvoiceFormat string + Sandbox bool + Status InvoiceStatus + UploadedBy string + ValidationProfile string + ValidationResult *ValidationResult + type InvoiceStatus string + const StatusFailedValidation + const StatusProcessing + const StatusValidated + func (s InvoiceStatus) IsTerminal() bool + type InvoiceSubmission struct + Buyer InvoiceSubmissionPartyInput + BuyerReference string + Currency string + InvoiceNumber string + IssueDate Date + Lines []InvoiceSubmissionLineInput + Supplier InvoiceSubmissionPartyInput + ValidationProfile ValidationProfile + type InvoiceSubmissionLineInput struct + Description string + Price Number + Quantity Number + TaxRate Number + Unit string + type InvoiceSubmissionPartyInput struct + LeitwegID string + Name string + VatID string + type InvoiceSubmissionResult struct + ID string + Status InvoiceStatus + type InvoicesService struct + func (s *InvoicesService) DownloadIdocXML(ctx context.Context, id string) ([]byte, error) + func (s *InvoicesService) DownloadPDF(ctx context.Context, id string) ([]byte, error) + func (s *InvoicesService) Get(ctx context.Context, id string) (InvoiceRecord, error) + func (s *InvoicesService) List(ctx context.Context, page, size int, sort string) (Page[InvoiceRecord], error) + func (s *InvoicesService) ListAll(ctx context.Context, pageSize int) iter.Seq2[InvoiceRecord, error] + func (s *InvoicesService) Submit(ctx context.Context, submission InvoiceSubmission) (InvoiceSubmissionResult, error) + func (s *InvoicesService) SubmitAndWait(ctx context.Context, submission InvoiceSubmission, opts PollOptions) (InvoiceRecord, error) + func (s *InvoicesService) SubmitOData(ctx context.Context, rawJSON []byte, profile ValidationProfile) (InvoiceSubmissionResult, error) + func (s *InvoicesService) SubmitODataMap(ctx context.Context, payload map[string]any, profile ValidationProfile) (InvoiceSubmissionResult, error) + func (s *InvoicesService) ValidateFile(ctx context.Context, path string, profile ValidationProfile) (InvoiceSubmissionResult, error) + func (s *InvoicesService) ValidateFileAndWait(ctx context.Context, path string, profile ValidationProfile, opts PollOptions) (InvoiceRecord, error) + func (s *InvoicesService) ValidateFileBytes(ctx context.Context, filename string, content []byte, ...) (InvoiceSubmissionResult, error) + func (s *InvoicesService) ValidateFileBytesAndWait(ctx context.Context, filename string, content []byte, ...) (InvoiceRecord, error) + func (s *InvoicesService) ValidateIdoc(ctx context.Context, path string, profile ValidationProfile) (InvoiceSubmissionResult, error) + func (s *InvoicesService) ValidateIdocAndWait(ctx context.Context, path string, profile ValidationProfile, opts PollOptions) (InvoiceRecord, error) + func (s *InvoicesService) ValidateIdocBytes(ctx context.Context, filename string, content []byte, ...) (InvoiceSubmissionResult, error) + func (s *InvoicesService) ValidateIdocBytesAndWait(ctx context.Context, filename string, content []byte, ...) (InvoiceRecord, error) + type ItemAttribute struct + Name *string + Value *string + type ItemClassification struct + Code *string + ListID *string + ListVersionID *string + type KositResult struct + Errors []string + Valid bool + type LineAllowanceCharge struct + Amount *Number + BaseAmount *Number + Charge bool + Percentage *Number + Reason *string + ReasonCode *string + type NotFoundError struct + type Number = json.Number + type Option func(*clientConfig) + func WithBaseURL(baseURL string) Option + func WithConnectTimeout(d time.Duration) Option + func WithHTTPClient(httpClient *http.Client) Option + func WithRequestTimeout(d time.Duration) Option + type Page struct + Content []T + Empty bool + First bool + Last bool + Number int + NumberOfElements int + Size int + TotalElements int64 + TotalPages int + type Party struct + AdditionalLegalInfo *string + Address *Address + Contact *Contact + EndpointID *string + EndpointSchemeID *string + Identifiers []PartyIdentifier + LegalRegistrationID *string + LegalRegistrationSchemeID *string + LeitwegID *string + Name *string + RegistrationName *string + TaxRegistrationID *string + VatID *string + type PartyIdentifier struct + ID *string + SchemeID *string + type PaymentMeans struct + AccountName *string + CardAccountNumber *string + CardHolderName *string + CreditTransferAccountID *string + CreditorID *string + DebitedAccountID *string + MandateReferenceID *string + PaymentMeansText *string + RemittanceInformation *string + ServiceProviderID *string + TypeCode *string + type PermissionError struct + type PollCancelledError struct + Message string + func (e *PollCancelledError) Error() string + type PollOptions struct + BackoffMultiplier float64 + InitialInterval time.Duration + MaxInterval time.Duration + Timeout time.Duration + func DefaultPollOptions() PollOptions + type PollTimeoutError struct + Message string + PartialResult *InvoiceRecord + func (e *PollTimeoutError) Error() string + type PrecedingInvoiceReference struct + ID *string + IssueDate *Date + type QuotaExceededError struct + type Severity string + const SeverityError + const SeverityInfo + const SeverityWarning + type SupportingDocument struct + Description *string + EmbeddedPresent bool + ExternalURI *string + Filename *string + ID *string + MimeCode *string + SchemeID *string + TypeCode *string + type TaxBreakdown struct + CategoryCode *string + ExemptionReason *string + ExemptionReasonCode *string + Rate *Number + TaxAmount *Number + TaxableAmount *Number + type TransportError struct + Err error + Message string + func (e *TransportError) Error() string + func (e *TransportError) Unwrap() error + type ValidationError struct + Code *string + DocumentationURL *string + Field *string + Layer *ValidationLayer + Message *string + Severity *Severity + Suggestion *string + type ValidationLayer string + const LayerCore + const LayerNational + const LayerNetwork + type ValidationProfile string + const ProfileEN16931 + const ProfileFrance + const ProfileItaly + const ProfilePEPPOL + const ProfileXRechnung + type ValidationRequestError struct + FieldErrors map[string]string + type ValidationResult struct + Errors []ValidationError + KositResult *KositResult + Valid bool