Integrate Telegroup services into your own systems. SMS API — send and receive SMS from any system, using Telegroup as your SMS aggregator. CRM API — integrate telephony, robocalls, messaging and appointments with the Telegroup contact centre CRM.
Purpose and how to use it
The Telegroup API is built for companies and their IT partners who want customer communication to happen automatically — straight from the systems you already use every day. There is no need to change your existing software or switch between several programs: your CRM, ERP, online store, booking or accounting system sends the message, starts the call or receives the reply on its own.
Who it is for
- Medical practices and beauty salons — automatic appointment reminders by SMS or robocall, where the customer confirms or cancels the appointment themselves.
- Online stores and logistics companies — order confirmations, delivery notifications, one-time passcodes (OTP).
- Customer service centres — call history, recordings and missed calls in your CRM, one-click calling, agent queue management.
- Service providers and municipalities — invoice and debt reminders, service outage notifications, customer surveys.
- Software developers and integrators — add SMS, WhatsApp and voice features to your own products, with Telegroup as your telecom operator.
Which API to choose
| SMS API | CRM API | |
|---|---|---|
| Purpose | Send and receive SMS from any system, using Telegroup as your SMS aggregator | Integrate the Telegroup contact centre CRM with your other systems |
| Channels | SMS | Telephony, robocalls, SMS, WhatsApp, email |
| Best if | You already have your own system and just need reliable SMS sending | You use the Telegroup CRM / contact centre and want to connect it to other systems |
| Also includes | Delivery statuses, inbound SMS, webhooks, limits | Customers, appointments and calendar, requests, eParaksts, Smart-ID |
Common use cases
- The evening before a visit, the booking system sends an SMS or places a robocall; the customer's reply (confirmed / cancelled) flows back into your system automatically.
- When a customer calls, their record appears on the agent's screen right away, and after the call a request is logged together with the call recording.
- Missed calls land in a callback list in your CRM, so no customer is left without an answer.
- On your website, customers pick a free time slot, confirm their phone number with an SMS code and receive a reminder on WhatsApp.
- An online store sends SMS updates on order status, and customers' SMS replies come back into your system via webhook.
Getting started
- Contact Telegroup — info@telegroup.lv or +371 67799888. Together we will work out which API and which channels you need.
- Get access — Telegroup will create an API key or token, register your sender name and, if needed, assign numbers.
- Integrate and test — your developer connects your system to the API using this documentation. Our technical support will help you during testing.
- Go live — once testing is successful, the service is launched and you can see message and call statistics.
Why Telegroup
- A Latvian telecom operator with its own numbers and direct connections to mobile networks.
- Servers are located in Latvia, access is encrypted only, and we sign a GDPR data processing agreement with every customer.
- One partner for telephony, SMS, WhatsApp and CRM, plus local technical support in Latvian, English and Russian.
This documentation is intended for developers. If you are not a technical specialist, just get in touch — we will help you choose a solution and, if needed, recommend an integration partner.
SMS API
The SMS API lets you send and receive SMS from any of your systems (CRM, ERP, online store, booking system) — Telegroup acts as the SMS aggregator and delivers messages to all Latvian and international mobile networks.
https://proxy-mailer-server.tg.lvx-api-key headerAccess and security
Telegroup sets up access for each customer with a unique API key. The key must be included in every request:
x-api-key: YOUR_API_KEY- IP restriction — access can be limited to your servers' IP addresses only. A request from any other address will receive a
403 IP not allowedresponse. - Senders — the sender can be a phone number or a name (up to 11 Latin letters/digits). Telegroup registers sender names for your access in advance.
- Limits — message limits can be set per customer for a day, week, month or in total. When a limit is exceeded, the response is
429. - Servers are located in Latvia, and connections are HTTPS only. Data processing is governed by a GDPR data processing agreement (DPA).
To get an API key, contact Telegroup: info@telegroup.lv, phone +371 67799888.
Sending SMS
Send an SMS
https://proxy-mailer-server.tg.lv/public_api/messagesAdds a message to the sending queue. The response contains the message id, which you can later use to check its status or match webhook notifications.
| Parameter | Type | Description |
|---|---|---|
sender | string | Sender — a registered name (up to 11 characters) or a number. Required. |
recipient | string | Recipient number in international E.164 format with +, e.g. +37120000000. Required. |
message | string | Message text. Long messages are automatically split into multiple parts (max. 65,535 characters). Required. |
{
"sender": "Telegroup",
"recipient": "+37120000000",
"message": "Your appointment on 12.12 at 10:00"
}{
"status": "queued",
"id": 123
}Code examples
curl -X POST "https://proxy-mailer-server.tg.lv/public_api/messages" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"sender":"Telegroup","recipient":"+37120000000","message":"Your appointment on 12.12 at 10:00"}'<?php
$ch = curl_init("https://proxy-mailer-server.tg.lv/public_api/messages");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: YOUR_API_KEY",
],
CURLOPT_POSTFIELDS => json_encode([
"sender" => "Telegroup",
"recipient" => "+37120000000",
"message" => "Your appointment on 12.12 at 10:00",
]),
]);
$response = json_decode(curl_exec($ch), true);
echo $response["id"];import requests
r = requests.post(
"https://proxy-mailer-server.tg.lv/public_api/messages",
headers={"x-api-key": "YOUR_API_KEY"},
json={
"sender": "Telegroup",
"recipient": "+37120000000",
"message": "Your appointment on 12.12 at 10:00",
},
)
print(r.status_code, r.json())const res = await fetch("https://proxy-mailer-server.tg.lv/public_api/messages", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY",
},
body: JSON.stringify({
sender: "Telegroup",
recipient: "+37120000000",
message: "Your appointment on 12.12 at 10:00",
}),
});
console.log(await res.json());Error codes
Every error response is a JSON object with an error field and, where available, an additional details field.
| HTTP | When | Example response |
|---|---|---|
| 401 | The x-api-key header is missing | { "error": "API key required" } |
| 401 | API key not found | { "error": "Invalid API key" } |
| 403 | Request from an IP address that is not allowed | { "error": "IP not allowed", "ip": "203.0.113.5" } |
| 403 | The sender is not allowed for this customer | { "error": "Sender not allowed for this client" } |
| 400 | Invalid JSON | { "error": "SyntaxError: Unexpected token ..." } |
| 400 | No recipient specified | { "error": "Invalid recipient", "details": "Recipient is required" } |
| 400 | The recipient does not start with + | { "error": "Invalid recipient", "details": "Recipient must start with '+' (E.164 format)" } |
| 400 | The number has more than 15 digits | { "error": "Invalid recipient", "details": "Recipient is too long (E.164 max is 15 digits)" } |
| 400 | Invalid phone number / country code / length | { "error": "Invalid recipient", "details": "Recipient is not a valid phone number" } |
| 400 | Empty message text | { "error": "Message is required" } |
| 400 | The message exceeds the maximum length | { "error": "Message is too long", "details": "Maximum length is 65535 characters" } |
| 413 | The request is larger than 1 MB | { "error": "PayloadTooLargeError: request entity too large" } |
| 429 | Daily / weekly / monthly / total limit exceeded | { "error": "Limit exceeded", "violations": [{ "period": "day", "max_messages": 100, "used": 100, ... }] } |
| 500 | Internal server error | { "error": "Internal error" } |
Reading messages
List messages
https://proxy-mailer-server.tg.lv/public_api/messages?limit=100Returns your sent (outbox) and received (inbox) messages, sorted by id in ascending order. Use last_id for pagination — request the next page with the next_last_id value from the response.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of records per page, e.g. 100. |
last_id | integer | Returns messages whose id is greater than this value. |
{
"messages": [ ... ],
"limit": 100,
"last_id": 0,
"next_last_id": 223
}Each message has the fields created_at, status_updated_at and direction (outbox or inbox).
curl "https://proxy-mailer-server.tg.lv/public_api/messages?last_id=123&limit=100" \
-H "x-api-key: YOUR_API_KEY"Get a single message
https://proxy-mailer-server.tg.lv/public_api/messages/:idReturns the data and current status of a single message by its id.
Message statuses
| Status | Meaning |
|---|---|
queued | The message has been accepted and added to the sending queue (response to POST). |
sent | The message has been accepted by the operator for sending. |
delivered | The operator has confirmed delivery to the recipient. |
failed | Sending or delivery failed. |
failed_24h | The message did not receive a final delivery confirmation within 24 hours. |
failed_policy | The message was blocked by an internal policy or operator configuration. |
failed_transport | A network error occurred while sending to the operator (connection, timeout, DNS, etc.); all retries have been exhausted. |
Webhook notifications
So you don't have to poll for statuses, Telegroup can send events to a URL in your system. The webhook URL and event types (status changes and/or inbound SMS) are configured by Telegroup on request. We send a POST with Content-Type: application/json; your endpoint must respond with 200 OK.
Status change (action: "status")
{
"id": 123,
"status": "delivered",
"status_updated_at": "2026-05-18T14:25:00.000Z",
"action": "status"
}{
"id": 123,
"status": "sent",
"direction": "outbox",
"status_updated_at": "2026-05-18T14:25:00.000Z",
"action": "status",
"operator_name": "Latvia Mobile LMT",
"operator_message_id": "provider-message-id-123"
}Inbound SMS (action: "inbound")
Sent when we receive an SMS to a number assigned to you.
{
"id": 456,
"sender": "+37120000000",
"recipient": "+37120000001",
"message": "Thank you, I confirm",
"direction": "inbox",
"status": "delivered",
"created_at": "2026-05-18T14:25:00.000Z",
"action": "inbound"
}Inbound SMS can only be received on mobile +371 2xxxxxxx numbers. Geographic +371 67xxxxxx numbers can send SMS but cannot receive them.
CRM API
The Telegroup CRM API lets you integrate your contact centre with other information systems: telephony (calls, recordings, queues, calling from the CRM), robocalls, SMS / WhatsApp / email, customer records, appointments and calendar, customer requests, and identity verification with eParaksts and Smart-ID.
{domain} — your CRM address, provided by TelegroupAuthorization headerAuthentication and conventions
Every request must include the token issued by Telegroup:
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json- Dates — in
YYYY-MM-DD HH:MM:SSformat, e.g.2026-01-01 00:00:00. In URL parameters, encode the space as%20. - Phone numbers — in CRM methods, Latvian numbers are given as 8 digits (
20000000); when sending messages, include the country code (37120000000). - Extension (
extension) — the agent's internal number in the PBX system, e.g.404. - A trailing slash
/is required on all paths.
curl "{domain}api/crm/pbx/calls/list/?dateFrom=2026-01-01%2000:00:00&dateTo=2026-02-01%2000:00:00" \
-H "Authorization: Bearer YOUR_TOKEN"Telephony (PBX)
Call history, missed calls, call recordings, calling from your system and real-time monitoring.
List calls
{domain}api/crm/pbx/calls/list/?dateFrom=...&dateTo=...Returns inbound and outbound calls for the specified period.
| Parameter | Type | Description |
|---|---|---|
dateFrom | datetime | Start of the period. |
dateTo | datetime | End of the period. |
Missed calls
{domain}api/crm/pbx/callsMissed/list/?processedBy=no&dateFrom=...&dateTo=...A list of missed calls — for example, to build callback lists.
| Parameter | Type | Description |
|---|---|---|
processedBy | string | no — only calls that have not been handled yet. |
dateFrom | datetime | Start of the period. |
dateTo | datetime | End of the period. |
Call recording
{domain}api/crm/pbx/records/download/?linkedid=...&subject=incomingDownloads the audio recording of a call.
| Parameter | Type | Description |
|---|---|---|
linkedid | string | Call identifier from the call list. |
subject | string | incoming or outgoing. |
Place a call (click-to-call)
{domain}api/crm/pbx/outgoing/make/Starts a call from the agent's extension to the specified number: the agent's phone rings first, and once picked up, the call is connected to the customer.
| Parameter | Type | Description |
|---|---|---|
extension | string | The agent's extension. |
destination | string | The number to call. |
subject | string | outgoing. |
{
"extension": "404",
"destination": "20000000",
"subject": "outgoing"
}Active channels (Live Monitor)
{domain}api/crm/pbx/LiveMonitor/getChannels/Calls currently in progress, in real time.
Queue status (Live Monitor)
{domain}api/crm/pbx/LiveMonitor/getQueues/Call queue status — waiting calls and agents.
Agents and queues
Add agents to queues and manage pauses — for example, to sync with a time-tracking system.
Add to queue
{domain}api/crm/pbx/login/addQueue/| Parameter | Type | Description |
|---|---|---|
extension | string | Extension. |
queue | string | Queue identifier. |
penalty | integer | Priority in the queue (a lower number means higher priority). |
{
"extension": "404",
"queue": "1001*Q-TEST",
"penalty": 1
}Remove from queue
{domain}api/crm/pbx/login/removeQueue/{
"extension": "404",
"queue": "1001*Q-TEST"
}Pause
{domain}api/crm/pbx/pause/pause/The agent temporarily stops receiving queue calls.
| Parameter | Type | Description |
|---|---|---|
extension | string | Extension. |
reason | string | Pause reason, e.g. other. |
{
"extension": "404",
"reason": "other"
}End pause
{domain}api/crm/pbx/pause/unpause/{
"extension": "404"
}Robocalls
Automated voice calls with Latvian speech synthesis — appointment reminders with confirm/cancel options, surveys, notifications.
List robocalls
{domain}api/crm/pbx/outgoingAutoDial/list/?dateFrom=...A list of completed robocalls and their results (including keys pressed).
| Parameter | Type | Description |
|---|---|---|
dateFrom | datetime | Start of the period. |
Robocall — survey / notification
{domain}api/crm/pbx/outgoingAutoDial/save/The elements of the text array are read out in order.
| Parameter | Type | Description |
|---|---|---|
service | string | callback, callback2 or reklama. |
caller | string | The number the call is placed from (your number on the Telegroup network). |
recipient | string | The call recipient. |
text | array | string | object | Text read out by the speech synthesis (see the variants below). |
options.voice | string | lv-LV-NilsNeural (male), lv-LV-EveritaNeural (female) or lv-LV. |
options.speed | integer | Speech rate (0 — default). |
options.pitch | integer | Voice pitch (0 — default). |
options.operator | string | The number to forward the call to if the customer chooses to speak with an administrator. |
{
"service": "callback",
"caller": "67000000",
"recipient": "20000000",
"text": [
"Sveiki. Kā jūs vērtējat mūsu darbu?",
"Nospiediet 1, ja viss ir kārtībā. Nospiediet 2, ja slikti. Nospiediet 3, lai sazinātos ar mums."
],
"options": {
"voice": "lv-LV-NilsNeural",
"speed": 5,
"pitch": 0
}
}Appointment reminder (callback2)
{domain}api/crm/pbx/OutgoingAutoDialCallback2/save/A single text containing the appointment details.
{
"service": "callback2",
"caller": "67000000",
"recipient": "20000000",
"text": "Labdien, Jums zvana klīnikas XXX robobalss saistībā ar parīt plānoto pierakstu 01.02.2026 plkst. 19:30.",
"options": { "voice": "lv-LV-NilsNeural", "speed": 0, "pitch": 0 }
}Appointment reminder with data (callback2 JSON)
{domain}api/crm/pbx/OutgoingAutoDialCallback2/save/Instead of text, pass the appointment data as a JSON string — the text is generated from a preconfigured template.
{
"service": "callback2",
"caller": "67000000",
"recipient": "20000000",
"text": ["{\"name\": \"Anna\", \"date\": \"2026-07-22 10:45:00\", \"full_name\": \"Anna Bērziņa\", \"room\": \"Ārsts XXX\", \"information\": \"konsultācija\", \"start_time\": \"22.07.2026 11:45\", \"time\": \"11:45\", \"date_short\": \"22.07\", \"id\": \"A8PAMX\", \"section\": \"\", \"section_address\": \"\"}"],
"options": { "voice": "lv-LV-NilsNeural", "speed": 0, "pitch": 0 }
}Appointment reminder with menu (saveSimple)
{domain}api/crm/pbx/OutgoingAutoDialCallback2/saveSimple/The full scenario in a single request: an intro, responses to key 1 (confirm) and key 2 (cancel), and a cancellation confirmation (22). The [DATE] placeholder is replaced with the appointment time.
{
"service": "callback2",
"caller": "67000000",
"recipient": "20000000",
"text": {
"intro": [
"Labdien, Jums zvana klīnikas XXX robobalss. Jūsu pieraksts [DATE].",
"Ja apstiprināt pierakstu, spiediet viens. Ja vēlaties atcelt, spiediet divi. Lai pārceltu pierakstu, spiediet trīs. Lai noklausītos atkārtoti, spiediet nulle."
],
"answer1": "Paldies, gaidīsim Jūs uz vizīti!",
"answer2": "Lai atceltu pierakstu, lūdzu vēlreiz nospiediet divi.",
"answer22": "Apstiprinām, ka Jūsu vizīte ir atcelta."
},
"options": {
"operator": "67000000",
"voice": "lv-LV-NilsNeural",
"speed": 0,
"pitch": 0
}
}Messaging: SMS, WhatsApp, email
A unified message sending mechanism for all channels. The request body is an array — you can send several messages in a single request.
Send SMS
{domain}api/crm/mailer/mailer/queue/| Parameter | Type | Description |
|---|---|---|
source | string | SMS, WhatsApp or Email. |
from | string | Sender (registered name or number). |
to | string | Recipient; for phone numbers, include the country code. |
message | string | Message text. |
[
{
"source": "SMS",
"from": "Telegroup",
"to": "37120000000",
"message": "Your message text"
}
]Send WhatsApp (template)
{domain}api/crm/mailer/mailer/queue/A message based on an approved WhatsApp template with variables.
| Parameter | Type | Description |
|---|---|---|
data.template | string | Template name. |
data.language | string | Template language, e.g. lv. |
data.variables | object | Template variables: {"1": "..."}. |
[
{
"source": "WhatsApp",
"from": "Telegroup WhatsApp",
"to": "37120000000",
"data": {
"template": "atgadinajums",
"language": "lv",
"variables": { "1": "12.12 at 10:00" }
}
}
]Send email
{domain}api/crm/mailer/mailer/queue/[
{
"source": "Email",
"to": "klients@example.com",
"subject": "Subject",
"message": "Message text"
}
]List messages
{domain}api/crm/mailer/mailer/list/?dateFrom=...&dateTo=...&source=SMS&lastId=0Sent and received messages.
| Parameter | Type | Description |
|---|---|---|
dateFrom | datetime | Start of the period. |
dateTo | datetime | End of the period. |
source | string | SMS, WhatsApp or Email. |
lastId | integer | Returns messages after this ID (for pagination / loading new messages). |
Message status
{domain}api/crm/mailer/mailer/state/Pass an array of message IDs to get their delivery statuses.
[10, 11, 12, 13]Mark a conversation as important
{domain}api/crm/mailer/recipients/markConversationImportant/| Parameter | Type | Description |
|---|---|---|
source | string | Channel. |
sender | string | Sender. |
recipient | string | Recipient. |
important | integer | Importance flag. |
{
"source": "WhatsApp",
"sender": "TEST",
"recipient": "37120000000",
"important": 2
}Conversations by importance
{domain}api/crm/mailer/recipients/getConversationImportant/?important=0| Parameter | Type | Description |
|---|---|---|
important | integer | Importance flag to filter by. |
Send a confirmation code (OTP)
{domain}api/crm/mailer/confirmation/make/Sends a one-time code to a phone — e.g. to confirm an appointment or a phone number.
{
"phone": "20000000"
}Verify a confirmation code
{domain}api/crm/mailer/confirmation/makeCheck/{
"phone": "20000000",
"code": 123456
}Requests (tickets)
Log and read customer requests, including linking them to a call and its recording.
List requests
{domain}api/crm/requests/requests/list/?dateFrom=...&dateTo=...| Parameter | Type | Description |
|---|---|---|
dateFrom | datetime | Start of the period. |
dateTo | datetime | End of the period. |
List categories
{domain}api/crm/requests/requests/categories/Returns the category IDs to use when adding a request.
Add a request
{domain}api/crm/requests/requests/add/| Parameter | Type | Description |
|---|---|---|
subject | string | Outgoing, Incoming or another subject. |
type | string | For a call request: outgoing or incoming. |
operator | string | The agent's first and last name. |
uniqueid | string | Call ID (from the call list) — links the request to the call recording. |
category_id | integer | Category from the category list. |
caller_category_id | integer | Caller category from the category list. |
phone | string | Customer phone number. |
comment | string | Comment. |
{
"subject": "Outgoing",
"type": "outgoing",
"operator": "First Last",
"uniqueid": "",
"category_id": 1,
"caller_category_id": 3,
"phone": "20000000",
"comment": "Request from API"
}Customers
Sync customer records with your system. The outer_id field is the customer's ID in your system.
Customer details
{domain}api/crm/customers/customers/get/?code=...| Parameter | Type | Description |
|---|---|---|
code | string | Customer identifier. |
Search customers
{domain}api/crm/customers/customers/list/?dateFrom=...&dateTo=...&phone=...&email=...| Parameter | Type | Description |
|---|---|---|
dateFrom | datetime | Created/modified from. |
dateTo | datetime | To. |
phone | string | Search by phone number. |
email | string | Search by email. |
Add a customer
{domain}api/crm/customers/customers/add/{
"name": "Anna",
"surname": "Bērziņa",
"phone": ["20000000"],
"email": ["klients@example.com"],
"outer_id": 111
}Update a customer
{domain}api/crm/customers/customers/update/Phone numbers and email addresses can be given a label (e.g. Home, Work).
{
"id": 1,
"outer_id": 111,
"name": "Anna",
"surname": "Bērziņa",
"personal_code": "XXXXXX-XXXXX",
"company": "Uzņēmums SIA",
"phones": [
{ "contact": "20000000", "title": "Home" },
{ "contact": "20000001", "title": "Work" }
],
"emails": [
{ "contact": "klients@example.com", "title": "" }
]
}Appointments and calendar
Manage appointments (visits, bookings): rooms/specialists, available time slots, and creating, updating and cancelling appointments, as well as invoices.
Rooms / specialists
{domain}api/crm/meetings/rooms/list/A list of resources (rooms, specialists, departments) that appointments can be booked for.
Appointment fields
{domain}api/crm/meetings/meetings/moduleFields/A description of the appointment form fields (including custom fields).
Available time slots
{domain}api/crm/meetings/scheduler/list/?service=...&id=...¶ms[time_end]=...Returns available appointment times for the selected service and resource.
| Parameter | Type | Description |
|---|---|---|
service | string | Service name. |
id | integer | Room / specialist ID. |
params[time_end] | datetime (ISO) | Search up to this time. |
{
"2025-08-27 10:30:00": { "room_id": 28, "scheduler_id": 9802, "participantsMax": 1 },
"2025-08-27 10:45:00": { "room_id": 28, "scheduler_id": 9802, "participantsMax": 1 },
...
}List appointments
{domain}api/crm/meetings/events/list/?dateFrom=...&dateTo=...&phone=...&customer_id=...| Parameter | Type | Description |
|---|---|---|
dateFrom | datetime | Start of the period. |
dateTo | datetime | End of the period. |
phone | string | Filter by phone number. |
customer_id | integer | Filter by customer. |
Appointment details
{domain}api/crm/meetings/events/event/?code=...| Parameter | Type | Description |
|---|---|---|
code | string | Appointment code (UUID). |
Create an appointment
{domain}api/crm/meetings/events/event/| Parameter | Type | Description |
|---|---|---|
room_id | integer | Room / specialist. |
outer_customer_id | integer | Customer ID in your system. |
name_surname | string | Customer's first and last name. |
phone | string | Phone number. |
language | string | Communication language: lv, ru, en. |
start_time | datetime | Start. |
end_time | datetime | End (optional). |
{
"room_id": 1,
"outer_customer_id": 1,
"name_surname": "Anna Bērziņa",
"phone": "20000000",
"language": "lv",
"start_time": "2026-03-05 09:10:00"
}Update an appointment
{domain}api/crm/meetings/events/event/{
"id": 14,
"room_id": 1,
"name_surname": "Anna Bērziņa",
"start_time": "2026-03-05 08:10:00"
}Delete an appointment
{domain}api/crm/meetings/events/event/{
"id": 14
}Create an invoice
{domain}api/crm/meetings/invoices/create/Creates an invoice for an appointment; send: true — sends it to the customer.
{
"id": 1,
"send": true
}Orders and payments
Register a payment
{domain}api/orders/transactions/create/Adds a payment transaction to an order (e.g. a card terminal payment).
| Parameter | Type | Description |
|---|---|---|
order_id | string | Order ID. |
transaction_amount | number | Amount in EUR. |
transaction_reason | string | Payment type, e.g. Terminal. |
{
"order_id": "4755",
"transaction_amount": 10,
"transaction_reason": "Terminal"
}Identity verification
Verify a customer's identity with eParaksts (LVRTC) and Smart-ID.
eParaksts — authentication link
{domain}api/crm/integration/LVRTC/authentication/Returns a link the customer uses to verify their identity with eParaksts.
Smart-ID — start
{domain}api/crm/integration/smartID/init/Sends a request to the customer's Smart-ID app and returns a verification code and session ID.
| Parameter | Type | Description |
|---|---|---|
idn | string | Personal identification code. |
country | string | Country code: LV, LT, EE. |
{
"idn": "XXXXXX-XXXXX",
"country": "LV"
}Smart-ID — check
{domain}api/crm/integration/smartID/process/Checks whether the customer has confirmed the request.
{
"idn": "XXXXXX-XXXXX",
"country": "LV",
"sessionId": "SESSION_ID"
}