Skip to main content

Overview

What is the ConnectorSession?

The ConnectorSession is an immutable value object that holds all relevant data for an active punchout session. It is created as soon as a buyer enters the shop via a procurement system, and persists until the cart is transferred or the session is ended.

Internally the session is serialized and stored in the PHP/Symfony session under the key agiqon_connector.connector_session. This makes it available across multiple requests without requiring a database query.


Session fields

FieldTypeDescription
systemstring|nullTechnical name of the connector system
systemIdstring|nullUUID of the connector system
systemTypeConnectorSystemType|nullProtocol type: OCI or cXML
hookUrlstring|nullReturn URL of the procurement system (where the cart will be sent)
transmissionIdstring|nullUUID of the underlying transmission
transmissionModeConnectorTransmissionModeTransfer mode (default: manual)
additionalFieldsarray<string, mixed>Arbitrary extra data from the transmission (e.g. operation, isPunchoutLevel2)

TransmissionMode

The transmissionMode controls how the cart is transferred:

ValueDescription
manualThe buyer transfers the cart manually via a button in the shop
autoThe cart is transferred automatically (e.g. directly when adding an item)