class QueryDataTransmissionWs extends SoapClient (View source)

FinanzOnline query data transmission webservice.

Requirements for this service:

  • A registration for FinanzOnline
  • A user for the web service, which can be created in the user administration of FinanzOnline

Error codes

  • 0 = All fine :)
  • -1 = The session ID is invalid or expired.
  • -2 = The web service is currently not available due to maintenance work.
  • -3 = A technical error has occurred.
  • -4 = User is not allowed for this function
  • -5 = The FastNr is not valid
  • -6 = The period have to be between the (current year - 7) and the current year
  • -7 = Not allowed to query this FastNr

Constants

WSDL

Online WSDL url.

WSDL_LOCAL

Local WSDL file.

TYPES

Methods

__construct(SessionWs $sessionWs, array $soapOptions = [])

Constructor.

query(string $fastNr, string $period = '', QueryDataType|string|null $type = null)

Query data transmissions from FinanzOnline.

Details

__construct(SessionWs $sessionWs, array $soapOptions = [])

Constructor.

Parameters

SessionWs $sessionWs

Session webservice

array $soapOptions

PHP SOAP client options

QueryDataTransmission query(string $fastNr, string $period = '', QueryDataType|string|null $type = null)

Query data transmissions from FinanzOnline.

Parameters

string $fastNr

The FASTNR/tax number to query

string $period

The period (year) to query, format YYYY (defaults to current year)

QueryDataType|string|null $type

The query type (use QueryDataType enum, string support deprecated)

Return Value

QueryDataTransmission

The query result containing transmission data

Exceptions

Exception