Skip to content
Loyvo

Documentation

Build with Loyvo

Send SMS, award loyalty points and keep customers' wallet cards up to date from your own POS, website or app. Every Loyvo API lives at one address.

SMS API

Send SMS and personalised campaigns to Sri Lankan numbers, check delivery and sender IDs.

7 endpoints →

Loyalty API

Points, customers, branches and PIN-confirmed redemptions for your point-of-sale.

20 endpoints →

Wallet API

Apple Wallet and Google Wallet loyalty cards, kept up to date from your POS.

14 endpoints →

Base URL

All requests go to https://api.loyvo.lk over HTTPS, with JSON bodies. Each product has its own path: /v1/sms, /v1/loyalty and /v1/wallet.

Every response carries an X-Request-Id header. Include it when you contact support@loyvo.lk about a request.

Base URL
https://api.loyvo.lk

Quickstart: send your first SMS

  1. Sign in to Loyvo, create your business and turn on SMS.
  2. In app.loyvo.lk, open Settings → API keys and create a test key (lvo_test_…) that can send SMS. Test keys behave exactly like live keys but never reach a phone, so you can build safely.
  3. Send the request on the right. You get the message ID back straight away; delivery follows within seconds.
  4. Check delivery with Retrieve a message, then switch to a live key (lvo_live_…) when you're ready.
POST /v1/sms/send
curl -X POST https://api.loyvo.lk/v1/sms/send \
  -H "Authorization: Bearer lvo_test_xxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Idempotency-Key: order-1055" \
  -H "Content-Type: application/json" \
  -d '{
    "sender_id": "LOYVO",
    "to": "0771234567",
    "message": "Your order A-101 is ready for pickup."
  }'
Response 202
{
  "campaign_id": "cmp_df2jgawxjjy2bcoiwyvsentt",
  "sender_id": "LOYVO",
  "encoding": "GSM-7",
  "segments": 1,
  "total_segments": 1,
  "recipients": 1,
  "status": "queued",
  "test": true,
  "messages": [
    { "id": "msg_5iu6f43yfldhvqilzajrh2qq", "to": "94771234567", "status": "queued" }
  ]
}

Next steps