Custom e-shop
Introduction#
Your online store, your rules – one platform for customer service!
Don't use one of the popular e-commerce platforms? Or perhaps your store runs on custom software? Integrate it with Thulium and give consultants convenient access to order information, without having to switch between systems.
With the Custom e-shop integration, you can connect Thulium to any online store that provides a suitable API. Consultants gain access to order history, statuses, and purchase details directly while serving the customer.
Less switching between systems, faster responses, and fuller context for every conversation.
Integration scope#
Connecting your own online store with Thulium allows consultants to access purchase information faster and serve customers more efficiently, regardless of the contact channel.
- Order history always at hand – check the customer's orders together with their statuses, dates, costs, purchased products, and delivery addresses directly in Thulium.
- The latest order in sight – quickly get the context of the customer's latest purchases to answer questions about order fulfillment more efficiently.
- Quick access to details in the store – go directly to the selected order in the store panel without having to search for it manually.
- Multiple stores in one place – connect several online stores to Thulium, e.g. B2B and B2C, and easily identify the source of individual orders.
The integration is intended for stores that have their own software or a platform without a ready-made integration with Thulium. If your platform is on the integration list, it will be more convenient to use the ready-made integration.
Step by step#
- Go to Administration → Integrations and select Custom e-shop.
- Complete the required fields in the authentication section.
where:
- Store URL – your store address; it must start with
https://– the login and password are sent to the store, so the connection must be encrypted.
Login – the login for the store API.
Password – the password for the store API.
- Click the authentication button. Thulium will connect to the store and check whether it responds correctly.
- Complete the Integration name field so that agents can easily identify which store an order comes from – especially if you use several stores. Then click Save and activate to save the settings and activate the integration. You can also launch it later using the activation slider.
If you change the address, login, or password after authentication, the integration will no longer be marked as authenticated and you will need to authenticate it again.
🚀 Done – from now on, customers' orders will appear in Thulium.
Order information in Thulium#
All the most important information about the customer's purchases in one place! Thanks to the integration, consultants can check order details directly in Thulium, both from the contact history and while handling a conversation.
Thulium searches for orders by the customer's email address. If the customer does not have an email address saved, the system will use their phone number. If the customer has neither an email address nor a phone number, orders cannot be searched for and the list will be empty.
The following information is available for each order:
- order number and status (exactly as returned by the store),
- order date,
- total cost, product cost, and delivery cost,
- list of products with quantities,
- delivery address (city, postal code, street, country),
- link to the order in the store.
This gives the consultant the information needed to efficiently handle order-related questions, without having to open the store panel each time.
Contact history:
Contact channel:
API requirements#
Thulium calls your store at the address provided in the Store URL field, passing the login and password (according to the integration developers' description: as HTTP Basic authentication).
Registration – POST /thulium/integrations/register
Thulium sends the integration identifier (id), client name (client), and optionally redirectUrl in the JSON body. The store's response determines what happens next:
- 200 or 204 – registration is completed immediately, and the system then checks whether the store returns orders correctly.
- Another response – the integration will be marked as failed.
Orders – GET /thulium/integrations/orders
The X-Thulium-Integration-Id header contains the integration identifier. Parameters: email or phoneNumber, page (numbering starts at 0), size, and optionally sort. The store returns JSON:
orders– list of orders,page,size.- Each order:
id,status,orderDate(UTC time in the format2026-01-31T12:00:00Z),totalCosts,productsCosts,shippingCosts(objects withamountas text, e.g."12.50", andcurrencyas a three-letter code, e.g.PLN),products(a list withnameandquantity≥ 1),orderUrl(the order address in the store), andshippingAddress(city,postcode,street,country). - Text fields cannot be empty.
During authentication, Thulium retrieves one order without filters to check the response format – the store must therefore handle a request without email and phoneNumber.
API specification#
openapi: 3.1.0
info:
title: Thulium custom e-commerce shop contract
version: 0.1.0
description: |
Contract a shop must implement to be integrated with Thulium as a custom e-commerce integration.
The endpoints below are implemented by the **shop** and called by Thulium (server-to-server).
This is not the API of Thulium itself.
The shop exposes exactly two endpoints under its own `baseUrl`. The paths are a fixed convention,
the only thing the client configures in Thulium is the `baseUrl` (plus credentials).
After a successful registration Thulium immediately verifies the integration by fetching one order
(`GET /thulium/integrations/orders?page=0&size=1`). The integration becomes active only when that
response matches the schema of `GET /thulium/integrations/orders`.
Request bodies may gain new optional fields over time, the shop should ignore unknown fields.
servers:
- url: '{baseUrl}'
description: Shop base URL configured in Thulium.
variables:
baseUrl:
default: https://shop.example.com
security:
- basicAuth: []
paths:
/thulium/integrations/register:
post:
operationId: register
summary: Register a Thulium integration in the shop
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RegisterRequest'
responses:
'200':
description: Registration completed. The response body is ignored.
'204':
description: Registration completed, same as `200`.
default:
description: |
Any other status means the registration was rejected and fails the integration with
`PROVIDER_ERROR`. Redirects are not supported. A connection failure or timeout fails it with
`PROVIDER_UNREACHABLE`.
/thulium/integrations/orders:
get:
operationId: getOrders
summary: Fetch orders of a customer
description: |
Serves both the order list and the latest order (`size=1`). Also used by Thulium to verify
the integration after registration.
parameters:
- name: X-Thulium-Integration-Id
in: header
required: true
description: '`id` of the integration sent in the registration request.'
schema:
type: string
format: uuid
- name: phoneNumber
in: query
required: false
schema:
type: string
- name: email
in: query
required: false
schema:
type: string
- name: sort
in: query
required: false
description: Sort criteria as `field,direction` pairs, repeated for each criterion.
style: form
explode: true
schema:
type: array
items:
type: string
examples:
- ['orderDate,desc']
- name: page
in: query
required: true
description: Zero-based page index.
schema:
type: integer
minimum: 0
- name: size
in: query
required: true
schema:
type: integer
minimum: 1
responses:
'200':
description: |
Orders page. Besides matching the schema, every `currency` must be a known ISO 4217 code,
otherwise the response is rejected as `SCHEMA_INVALID`. An empty body is rejected the same way.
content:
application/json:
schema:
$ref: '#/components/schemas/OrdersPage'
example:
orders:
- id: '10045'
status: shipped
orderDate: '2026-10-01T12:30:00Z'
totalCosts:
amount: '164.99'
currency: PLN
productsCosts:
amount: '149.99'
currency: PLN
shippingCosts:
amount: '15.00'
currency: PLN
products:
- name: Running shoes
quantity: 1
orderUrl: https://shop.example.com/orders/10045
shippingAddress:
city: Kraków
postcode: 30-001
street: Długa 1
country: Poland
customer:
id: '4711'
firstName: Jan
lastName: Kowalski
email: jan.kowalski@example.com
phoneNumber: '+48600100200'
paymentMethod: BLIK
deliveryMethod: InPost Paczkomat
trackingNumber: '602677016330421016183457'
page: 0
size: 1
default:
description: |
Any `4xx` or `5xx` status fails the verification of the integration with `PROVIDER_ERROR`.
components:
securitySchemes:
basicAuth:
type: http
scheme: basic
description: Login and password configured for the integration in Thulium.
schemas:
RegisterRequest:
type: object
required: [id, client]
properties:
id:
type: string
format: uuid
description: Integration id, later sent in `X-Thulium-Integration-Id`.
client:
type: string
description: Thulium client (instance) the integration belongs to.
OrdersPage:
type: object
required: [orders, page, size]
properties:
orders:
type: array
items:
$ref: '#/components/schemas/Order'
page:
type: integer
minimum: 0
size:
type: integer
minimum: 0
Order:
type: object
required:
- id
- status
- orderDate
- totalCosts
- products
properties:
id:
$ref: '#/components/schemas/NonBlankString'
status:
$ref: '#/components/schemas/NonBlankString'
orderDate:
type: string
pattern: '^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$'
description: UTC timestamp in ISO 8601 format with the `Z` suffix, optionally with fractional seconds.
examples:
- '2026-10-01T12:30:00Z'
totalCosts:
$ref: '#/components/schemas/Money'
productsCosts:
$ref: '#/components/schemas/Money'
shippingCosts:
$ref: '#/components/schemas/Money'
products:
type: array
items:
$ref: '#/components/schemas/Product'
orderUrl:
type: string
format: uri
shippingAddress:
$ref: '#/components/schemas/Address'
customer:
$ref: '#/components/schemas/Customer'
paymentMethod:
$ref: '#/components/schemas/NonBlankString'
deliveryMethod:
$ref: '#/components/schemas/NonBlankString'
trackingNumber:
$ref: '#/components/schemas/NonBlankString'
Money:
type: object
required: [amount, currency]
properties:
amount:
type: string
pattern: '^-?\d+(\.\d+)?$'
description: Decimal amount as a string, with `.` as the decimal separator.
examples:
- '149.99'
currency:
type: string
pattern: '^[A-Z]{3}$'
description: ISO 4217 currency code.
examples:
- PLN
Product:
type: object
required: [name, quantity]
properties:
name:
$ref: '#/components/schemas/NonBlankString'
quantity:
type: integer
minimum: 1
Address:
type: object
description: Shipping address. Optional as a whole, send what you have.
properties:
city:
type: string
postcode:
type: string
street:
type: string
country:
type: string
Customer:
type: object
description: Person who placed the order. Optional as a whole, send what you have.
properties:
id:
$ref: '#/components/schemas/NonBlankString'
firstName:
$ref: '#/components/schemas/NonBlankString'
lastName:
$ref: '#/components/schemas/NonBlankString'
email:
$ref: '#/components/schemas/NonBlankString'
phoneNumber:
$ref: '#/components/schemas/NonBlankString'
NonBlankString:
type: string
pattern: '\S'
description: String containing at least one non-whitespace character.
Your store, your customers, all information in one place. Connect your own e-shop with Thulium and give consultants access to purchase data that helps them resolve issues faster and build better customer experiences.