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
- 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) orlvp_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:
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.
The same call in code (every other call works the same way: change the method, path and body) (pick your language)
Node.js
Python
PHP
Java
- 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_idkeeps 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.
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:
Check the signature, then show the order (pick your language)
Node.js
Python
PHP
Java
- 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.") andshop.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
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.
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.
| Method | Path (after /partner/v1) | What it does | Send |
|---|---|---|---|
POST | /shops | Add a business (owner's consent) | consent, owner_email, name, category, country, city, phone, address, description?, items?, hours? |
GET | /shops | Your businesses | – |
GET | /shops/{id} | Status (saved / live), AI score, counts, go-live link | – |
PUT | /shops/{id}/items | Full list of products and services | items: external_id, name, kind, price, unit, category, stock, duration_min, in_stock |
PATCH | /shops/{id}/stock | Stock after a sale or refill | items: external_id (or name), stock |
PUT | /shops/{id}/hours | Opening hours (full week) | hours: day_of_week, opens, closes |
GET | /shops/{id}/requests | Bookings, orders, quotes (backup to the webhook) | – |
POST | /requests/{ref}/decide | Accept, decline, or cancel a confirmed one | decision, note?, price? (quotes) |
POST | /shops/{id}/login-link | One-click login (dashboard or plans) | to?: "dashboard" | "plans" |
POST | /shops/{id}/test-request | Sandbox: a test order to your webhook | – (test key only) |
DELETE | /shops/{id} | The owner turned it off | – |
Test checklist (with your lvp_test_ key)
Test businesses are never shown to AI or customers. Tick these before asking for a live key:
- Turn the switch on for a test business → it appears in your partner dashboard.
- Send items with your external_id and stock →
GET /partner/v1/shops/{id}shows the item count. 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.- Accept it → its status is confirmed.
- Set an item's stock to 0 → it shows as sold out.
- Stop your webhook, send a test order, start it again → the order arrives on a retry.
- Tap "AI visibility" → the Loomivo dashboard opens, logged in.
- Turn the switch off →
DELETEremoves 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.