Get Shopify information for a session. Returns { customer, orders, shopDomain }; customer may be
null for guest checkouts; returns an empty object when the integration is not configured or no customer
matches.
Bearer <token>.Ok
A shop platform's key (shopify, woocommerce, custom, shopware, …).
The keys and where each platform keeps its connections come from the
platform registry (platforms/registry.ts): commerceProviderKeys(),
commerceIntegrationKey(provider).
How the panel found the shop data: verified (the signed-in storefront customer), email (the contact's
email, which the browser can set to anyone's), order (an order number + email the guest gave in the chat).
Shopify panel (the Gleap Shopify app): lines, totals, returns and the actions a teammate may run.
How the order is tied to the contact: the signed-in Shopify customer, or the contact's email.
Actions this teammate could run for the signed-in customer, shown disabled with the reason (email match only).
Shopify: what is left to refund (formatted) and the order currency with its decimals (refund dialog).
create_return (also exchanges) or refund.
Refund: the amount asked for, formatted ("€20.00"), or everything left when absent.
Construct a type with a set of properties K of type T