X-Source Header β Propagation & Persistence
Platform engineers tracing how the X-Source header is persisted and re-injected by the Envoy sidecar across session, payment-method, payment, and refund tables. See X-Source header (merchant-facing) for the public contract this internal flow backs.
Processing detail for the X-Source developer page.
Session Storage and Sidecar Propagationβ
When a session is created with the x-source header, its value is saved in the checkout-session table by the auth-service. Later, when a user or agent creates a payment method or payment in the widget, the call is intercepted by the sidecar, which retrieves the x-source value from the auth-service and includes it in the request.
For implementation details, see config/templates/envoyfilter.yaml in customer-service or payment-service.
Because the sidecar β not the widget or the merchant β injects the header on these downstream calls, X-Source does not need to be resent on every request once the session exists; it is resolved from the session.
Related Database Tablesβ
The x-source value is persisted in the following database tables:
| Operation | Table | Column | Data Type | Nullable |
|---|---|---|---|---|
| SESSION | CHECKOUT_SESSION | SOURCE | VARCHAR2(50) | YES |
| SETUP PAYMENT METHOD | SETUP_PAYMENT_METHOD | SOURCE | VARCHAR2(50) | YES |
| PAYMENT | CC_PAYMENT | SOURCE | VARCHAR2(50) | YES |
| REFUND | CC_REFUND | SOURCE | VARCHAR2(50) | YES |
Related Documentationβ
- X-Source header (merchant-facing) β the public contract this page's internals back
- Internal API Reference