xrechnung-kit API reference

TaxId
in package

FinalYes

A tax identifier: VAT registration number, local company-registration number, or other scheme. Maps to the UBL <cac:PartyTaxScheme> structure.

Two named constructors cover the common cases and pin the schemeId so callers do not get to invent their own.

Table of Contents

Properties

$companyId  : string
$schemeId  : string

Methods

__construct()  : mixed
companyRegistration()  : self
Local company-registration identifier (e.g., German HRB number). The schemeId is "FC" per UBL convention for company registration.
vatId()  : self
Standard EU VAT identification number. The schemeId is "VAT" per UBL.

Properties

$companyId read-only

public string $companyId

$schemeId read-only

public string $schemeId

Methods

__construct()

public __construct(string $companyId, string $schemeId) : mixed
Parameters
$companyId : string
$schemeId : string

companyRegistration()

Local company-registration identifier (e.g., German HRB number). The schemeId is "FC" per UBL convention for company registration.

public static companyRegistration(string $registrationNumber) : self
Parameters
$registrationNumber : string
Return values
self

vatId()

Standard EU VAT identification number. The schemeId is "VAT" per UBL.

public static vatId(string $vatNumber) : self
Parameters
$vatNumber : string
Return values
self

        
On this page

Search results