Skip to content

Comments

#1 do add x-possystem-id header to all requests in howtos/lib#7

Merged
MaximilianFT merged 1 commit intomainfrom
feature/1-howtos-do-add-x-possystem-id-header-to-all-requests-where-it-is-required
Feb 11, 2026
Merged

#1 do add x-possystem-id header to all requests in howtos/lib#7
MaximilianFT merged 1 commit intomainfrom
feature/1-howtos-do-add-x-possystem-id-header-to-all-requests-where-it-is-required

Conversation

@turtletramp
Copy link
Collaborator

This pull request introduces support for specifying a POS System ID when initializing and using the ftPosAPI client, improving both development and production configuration. The changes ensure that the POS System ID is read from the environment, passed through the API, and included in HTTP headers, with clear warnings and documentation for proper usage.

Configuration and environment variable handling:

  • Added support for reading the FISKALTRUST_POS_SYSTEM_ID environment variable in Utils.cs, with fallback and warnings for development/testing if not set, and validation of its format.
  • Updated the documentation in README.MD to explain the use and requirements of the FISKALTRUST_POS_SYSTEM_ID environment variable for production and development.

API and client initialization:

  • Modified the Init method in ftPosAPI to accept a posSystemID parameter, store it, and document its usage, including guidance for production and sandbox environments.
  • Updated all calls to ftPosAPI.Init to pass the POS System ID, including test initialization and utility functions. [1] [2]

HTTP request handling:

  • Added the x-possystem-id header to all outgoing requests from ftPosAPI to include the POS System ID in API calls.

@MaximilianFT MaximilianFT merged commit 5b6a7e8 into main Feb 11, 2026
1 check passed
@MaximilianFT MaximilianFT deleted the feature/1-howtos-do-add-x-possystem-id-header-to-all-requests-where-it-is-required branch February 11, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DevKit] HOWTOs and Lib - do add x-possystem-id header to all requests where it is required

2 participants