loomivo
Get my free AI scoreFree AI score

Loomivo › Partners › Integration guide

For developers of billing, POS, booking and clinic software

Connect your software to Loomivo.

Your customers' businesses get found, chosen and booked by ChatGPT, Claude, Gemini and other AI, and the orders and bookings arrive in your software. One integration for all your businesses.

How it fits together

YOUR SOFTWARE LOOMIVO 1. Owner turns on "Get found by AI" ── POST /shops ──────▶ AI profile (free listing) 2. Items, prices, sections ── PUT /items ─────▶ menu / services 3. Stock after every sale ── PATCH /stock ────▶ "3 left" / sold out 4. Opening hours ── PUT /hours ─────▶ hours ChatGPT, Claude, customers and AI agents book or order 5. New order or booking ◀── webhook request.created ──── with your item ids 6. Owner taps Accept ── POST /requests/{ref}/decide ▶ customer is told 7. "AI visibility" button ── POST /login-link ─────────▶ Loomivo dashboard, logged in
  • Base URL: https://loomivoai.com/partner/v1. JSON in, JSON out, HTTPS only.
  • Keys: Authorization: Bearer lvp_test_… (sandbox: test businesses only, never shown to AI) or lvp_live_… (after Loomivo approves your integration). Keys and the webhook secret live on your server only, never in an app or a web page.
  • One key for all your businesses. Each business has a Loomivo id (returned when you add it): save it next to the business in your database.
  • Limits: 6,000 calls an hour per partner. Send stock for many items in one call.
  • Errors: { "error": "bad_input", "message": "what to fix" } with status 400, 401, 403, 404 or 429.

1. The owner turns it on (with consent)

Add a switch in your settings, for example "Get found and booked by AI (Loomivo)", with a tickbox the owner must tick: "I agree to show my business to AI assistants through Loomivo." Only then add the business:

POST /partner/v1/shops { "consent": true, "owner_email": "[email protected]", "name": "Sea Shell Restaurant", "category": "restaurant_cafe", "country": "IN", "city": "Karaikal", "phone": "+91 98765 43210", "address": { "street": "12 Beach Road", "city": "Karaikal", "region": "Puducherry", "postal_code": "609602" }, "description": "Seafood restaurant near the beach, open for lunch and dinner.", "items": [ … see step 2 … ], "hours": [ { "day_of_week": 1, "opens": "11:00", "closes": "22:30" } ] } → 201 { "id": "sea-shell-restaurant-karaikal", "status": "saved", "go_live_url": "…" }

Categories: clinic_physio, clinic_dental, clinic_general, salon_spa, restaurant_cafe, shop_retail, pharmacy, tutor_coaching, gym_fitness, auto_services, home_services, professional_services, hotel_homestay, event_venue, real_estate, travel_agency, garden_landscaping, other. day_of_week: 0 = Sunday … 6 = Saturday. The owner gets a Loomivo login for the same email. When the owner turns the switch off: DELETE /partner/v1/shops/{id}.

2. Send items: products and services

Send the full list whenever it changes. Always include your own item id as external_id: stock updates and orders then match even if an item is renamed, and every order tells you which of your items to bill.

PUT /partner/v1/shops/{id}/items { "items": [ { "external_id": "BV-1042", "name": "Lobster masala", "price": 1200, "category": "Seafood", "stock": 4 }, { "external_id": "BV-1043", "name": "Prawn fry", "price": 360, "category": "Seafood" }, { "external_id": "BV-3007", "name": "Ponni rice", "price": 60, "unit": "per kg", "category": "Rice", "stock": 250 }, { "external_id": "BV-2001", "name": "Haircut", "kind": "service", "price": 300, "duration_min": 30 } ] } → { "id": "…", "items": 4 }

The same call in code (every other call works the same way: change the method, path and body) (pick your language)

Node.js
// Node.js 18+ (built-in fetch) const BASE = "https://loomivoai.com/partner/v1"; const res = await fetch(BASE + "/shops/" + shopId + "/items", { method: "PUT", headers: { Authorization: "Bearer " + process.env.LOOMIVO_KEY, "Content-Type": "application/json" }, body: JSON.stringify({ items: [{ external_id: "BV-1042", name: "Lobster masala", price: 1200, stock: 4 }] }), }); const data = await res.json(); if (!res.ok) console.error(data.error, data.message); // the message says what to fix
Python
# Python 3 (pip install requests) import os, requests BASE = "https://loomivoai.com/partner/v1" r = requests.put( BASE + "/shops/" + shop_id + "/items", headers={"Authorization": "Bearer " + os.environ["LOOMIVO_KEY"]}, json={"items": [{"external_id": "BV-1042", "name": "Lobster masala", "price": 1200, "stock": 4}]}, timeout=15, ) if not r.ok: print(r.json()["error"], r.json()["message"]) # the message says what to fix
PHP
<?php // PHP 7.4+ (curl) $base = "https://loomivoai.com/partner/v1"; $ch = curl_init($base . "/shops/" . $shopId . "/items"); curl_setopt_array($ch, [ CURLOPT_CUSTOMREQUEST => "PUT", CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("LOOMIVO_KEY"), "Content-Type: application/json"], CURLOPT_POSTFIELDS => json_encode(["items" => [["external_id" => "BV-1042", "name" => "Lobster masala", "price" => 1200, "stock" => 4]]]), CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 15, ]); $data = json_decode(curl_exec($ch), true); if (curl_getinfo($ch, CURLINFO_HTTP_CODE) >= 400) error_log($data["error"] . ": " . $data["message"]);
Java
// Java 11+ (java.net.http) var base = "https://loomivoai.com/partner/v1"; var json = "{\"items\":[{\"external_id\":\"BV-1042\",\"name\":\"Lobster masala\",\"price\":1200,\"stock\":4}]}"; var req = HttpRequest.newBuilder(URI.create(base + "/shops/" + shopId + "/items")) .header("Authorization", "Bearer " + System.getenv("LOOMIVO_KEY")) .header("Content-Type", "application/json") .PUT(HttpRequest.BodyPublishers.ofString(json)) .build(); var res = HttpClient.newHttpClient().send(req, HttpResponse.BodyHandlers.ofString()); if (res.statusCode() >= 400) System.err.println(res.body()); // { error, message }: what to fix
  • unit: what the price is for: "per kg", "per litre", "per pack", "each"… (services: "per visit", "starting price", "per month"). Stock and order quantities count in this unit: price 60, unit "per kg", stock 250 = ₹60 a kg, 250 kg left.
  • kind: "product" (default) or "service". Services can have duration_min: a 90-minute service takes 90 minutes of the calendar.
  • stock: leave it out if you don't count; 0 = sold out. in_stock: false hides an item for now.
  • category: the menu section customers and AI see. price: in the business's currency (₹ in India), what the customer pays.
  • Items you leave out of the list are hidden; the same external_id keeps the same Loomivo item.

3. Send stock after every sale

Small and fast: only the items whose stock changed. Use it after a sale, a refill, or when a recipe uses up an ingredient.

PATCH /partner/v1/shops/{id}/stock { "items": [ { "external_id": "BV-1042", "stock": 3 }, { "external_id": "BV-1043", "stock": 0 } ] } → { "id": "…", "updated": 2 } (unknown ids are listed in "unknown")

Hours change: PUT /partner/v1/shops/{id}/hours with the full week.

4. Receive orders and bookings (webhook)

In your partner dashboard, save your webhook address (HTTPS) and copy the webhook secret. Loomivo POSTs every new order, booking or quote there:

POST https://your-server.example/loomivo/webhook loomivo-event: request.created loomivo-delivery: 6b2f… (same id if it is sent again) loomivo-signature: sha256=… (HMAC-SHA256 of the raw body with your webhook secret) { "event": "request.created", "created_at": "2026-12-02T14:05:00Z", "shop": "sea-shell-restaurant-karaikal", "data": { "ref": "OTuCGOEFOfp4j6jc", "kind": "order", "status": "new", "items": [ { "external_id": "BV-1042", "name": "Lobster masala", "qty": 1, "price": 1200, "currency": "INR" } ], "fulfilment": "pickup", "address": null, "details": "Less spicy please", "slot": null, "ends": null, "party_size": null, "customer": { "name": "Priya S.", "phone": "+919876543210", "email": "[email protected]" }, "source": "ai_agent", "created_at": "…" } }

Check the signature, then show the order (pick your language)

Node.js
// Node.js + Express import crypto from "node:crypto"; app.post("/loomivo/webhook", express.raw({ type: "application/json" }), (req, res) => { const expected = "sha256=" + crypto.createHmac("sha256", process.env.LOOMIVO_WEBHOOK_SECRET).update(req.body).digest("hex"); const got = req.get("loomivo-signature") || ""; if (got.length !== expected.length || !crypto.timingSafeEqual(Buffer.from(got), Buffer.from(expected))) return res.sendStatus(401); if (alreadySeen(req.get("loomivo-delivery"))) return res.sendStatus(200); // a repeat: ignore const event = JSON.parse(req.body); if (event.event === "request.created") showNewOnlineOrder(event.shop, event.data); // your order / KOT / booking res.sendStatus(200); // within 5 seconds });
Python
# Python + Flask import hmac, hashlib, os from flask import request, abort @app.post("/loomivo/webhook") def loomivo_webhook(): raw = request.get_data() # the raw body, before parsing expected = "sha256=" + hmac.new(os.environ["LOOMIVO_WEBHOOK_SECRET"].encode(), raw, hashlib.sha256).hexdigest() if not hmac.compare_digest(expected, request.headers.get("loomivo-signature", "")): abort(401) if already_seen(request.headers.get("loomivo-delivery")): return "", 200 # a repeat: ignore event = request.get_json() if event["event"] == "request.created": show_new_online_order(event["shop"], event["data"]) # your order / KOT / booking return "", 200 # within 5 seconds
PHP
<?php // PHP (any framework): read the raw body first $raw = file_get_contents("php://input"); $expected = "sha256=" . hash_hmac("sha256", $raw, getenv("LOOMIVO_WEBHOOK_SECRET")); if (!hash_equals($expected, $_SERVER["HTTP_LOOMIVO_SIGNATURE"] ?? "")) { http_response_code(401); exit; } if (alreadySeen($_SERVER["HTTP_LOOMIVO_DELIVERY"] ?? "")) { http_response_code(200); exit; } // a repeat $event = json_decode($raw, true); if ($event["event"] === "request.created") showNewOnlineOrder($event["shop"], $event["data"]); // your order / KOT http_response_code(200); // within 5 seconds
Java
// Java 17+: rawBody = the request body bytes, before parsing Mac mac = Mac.getInstance("HmacSHA256"); mac.init(new SecretKeySpec(System.getenv("LOOMIVO_WEBHOOK_SECRET").getBytes(StandardCharsets.UTF_8), "HmacSHA256")); String expected = "sha256=" + HexFormat.of().formatHex(mac.doFinal(rawBody)); String got = request.getHeader("loomivo-signature"); if (got == null || !MessageDigest.isEqual(expected.getBytes(StandardCharsets.UTF_8), got.getBytes(StandardCharsets.UTF_8))) { response.setStatus(401); return; } if (alreadySeen(request.getHeader("loomivo-delivery"))) { response.setStatus(200); return; } // a repeat // parse rawBody as JSON; on "request.created" create the order / KOT / booking in your software response.setStatus(200); // within 5 seconds
  • kind: "order" (items and/or the customer's own words in details), "book" (slot and ends in the business's local time, YYYY-MM-DDTHH:MM; party_size for table bookings; the service is in items) or "quote" (details).
  • status "new": show Accept / Decline. status "confirmed": the owner chose instant confirmation in Loomivo; just show it.
  • Other events: request.decided (accepted, declined or cancelled, also when done in Loomivo's dashboard or when the customer cancels through their AI; the note then says "Cancelled by the customer.") and shop.went_live (the owner chose a plan; the business is now shown to AI).
  • Retries: if your server doesn't answer 2xx within 5 seconds, Loomivo tries again after 1, 5, 30, 120 and 360 minutes. Your partner dashboard shows each delivery. As a backup after downtime: GET /partner/v1/shops/{id}/requests.
  • Customer details are sent only for that business's own orders, so it can serve the customer. Keep them for the order only.

5. Accept, decline or cancel

POST /partner/v1/requests/{ref}/decide { "decision": "confirmed", "note": "Ready at 8 pm" } // or "declined"; "cancelled" for a confirmed one // quotes: { "decision": "confirmed", "price": 18000, "note": "Includes paint" } → the request as in the webhook, with the new status

Loomivo tells the customer (and their AI agent) straight away, with how to pay the business. Customers always pay the business directly; Loomivo never handles the money.

6. "AI visibility" and "Upgrade" buttons (one-click login)

Add a menu item such as "AI visibility (Loomivo)". When the owner taps it, ask Loomivo for a login link from your server and open it. The owner lands in their Loomivo dashboard (AI score, what ChatGPT says, bookings, stickers, settings) without a password.

POST /partner/v1/shops/{id}/login-link { "to": "dashboard" } // or "plans" for an "Upgrade" button → { "url": "https://loomivoai.com/login/verify?token=…", "expires_in": 300 }

The link works once and expires in 5 minutes: make a new one on every tap, never store or email it. Businesses go live (shown to AI with booking) when the owner chooses a plan; plans are paid to Loomivo, and your share is shown in your partner dashboard.

API reference

Every call, with its fields and examples, is described in OpenAPI: https://loomivoai.com/partner/v1/openapi.json. Import it into Postman, Insomnia or your code generator, add your test key, and try each call.

MethodPath (after /partner/v1)What it doesSend
POST/shopsAdd a business (owner's consent)consent, owner_email, name, category, country, city, phone, address, description?, items?, hours?
GET/shopsYour businesses–
GET/shops/{id}Status (saved / live), AI score, counts, go-live link–
PUT/shops/{id}/itemsFull list of products and servicesitems: external_id, name, kind, price, unit, category, stock, duration_min, in_stock
PATCH/shops/{id}/stockStock after a sale or refillitems: external_id (or name), stock
PUT/shops/{id}/hoursOpening hours (full week)hours: day_of_week, opens, closes
GET/shops/{id}/requestsBookings, orders, quotes (backup to the webhook)–
POST/requests/{ref}/decideAccept, decline, or cancel a confirmed onedecision, note?, price? (quotes)
POST/shops/{id}/login-linkOne-click login (dashboard or plans)to?: "dashboard" | "plans"
POST/shops/{id}/test-requestSandbox: a test order to your webhook– (test key only)
DELETE/shops/{id}The owner turned it off–
# Try it (replace the key and id) curl -X PUT https://loomivoai.com/partner/v1/shops/YOUR_SHOP_ID/items \ -H "Authorization: Bearer lvp_test_YOUR_KEY" -H "Content-Type: application/json" \ -d '{"items":[{"external_id":"BV-1042","name":"Lobster masala","price":1200,"stock":4}]}'

Test checklist (with your lvp_test_ key)

Test businesses are never shown to AI or customers. Tick these before asking for a live key:

  1. Turn the switch on for a test business → it appears in your partner dashboard.
  2. Send items with your external_id and stock → GET /partner/v1/shops/{id} shows the item count.
  3. POST /partner/v1/shops/{id}/test-request → a test order with your own items arrives at your webhook, the signature checks out, and it shows in your software.
  4. Accept it → its status is confirmed.
  5. Set an item's stock to 0 → it shows as sold out.
  6. Stop your webhook, send a test order, start it again → the order arrives on a retry.
  7. Tap "AI visibility" → the Loomivo dashboard opens, logged in.
  8. Turn the switch off → DELETE removes the business.

Your partner dashboard ticks each step by itself as your calls work. When all are ticked, press Request live access: Loomivo checks your integration and approves it by email. Then create a live key in your dashboard; it works on real businesses.

Help and changes

  • Stuck? Email [email protected] with your partner login, the call you made and the error message. We usually reply within one working day.
  • Changes: new fields may be added at any time, so ignore fields you don't know. Anything that would break an integration (removing or renaming a field or call) is announced to partners by email at least 30 days ahead, and the version in the API reference goes up.
  • Sandbox and live are the same API: only the key changes.

Data and security

  • Only what AI needs: business details, items, prices, stock and hours. Never send invoices, sales, GST data, purchase prices, staff or your customer lists; the API doesn't accept them.
  • AI assistants see only public facts (menu, prices, hours), never orders or customer details.
  • HTTPS everywhere; keys are stored hashed; every webhook is signed; each partner sees only its own businesses; test and live are kept apart.
  • Consent first: a business is added only with the owner's tick, and removed the moment they turn it off.