Pohoda Integration

Stormware Pohoda is a Czech accounting and ERP system. MultiFlexi applications can integrate with Pohoda via its XML/mServer interface.

Overview

Pohoda exposes a TCP/IP XML interface through its companion service mServer. Applications send XML request documents and receive XML response documents over a persistent connection. MultiFlexi provides the multiflexi-mserver credential type so that any application can reference a Pohoda mServer endpoint without hardcoding connection details.

Installation

sudo apt install multiflexi-mserver

Credential Fields

Variable

Description

POHODA_HOST

Hostname or IP address of the Pohoda mServer

POHODA_PORT

TCP port (default 5336)

POHODA_ICO

Company registration number (IČO) identifying the Pohoda company database

POHODA_USERNAME

Pohoda user login

POHODA_PASSWORD

Pohoda user password

Assigning the Credential to a RunTemplate

multiflexi-cli run-template:assign-credential --id=<runtemplate_id> --credential_id=<credential_id>

Application Development

Applications that work with Pohoda data typically use the php-pohoda-connector library. Credential variables are injected as standard environment variables into the job process:

$connector = new \Pohoda\Connector(
    getenv('POHODA_HOST'),
    (int) getenv('POHODA_PORT'),
    getenv('POHODA_ICO'),
    getenv('POHODA_USERNAME'),
    getenv('POHODA_PASSWORD')
);

See Also