XONIKA3 API Reference

The XONIKA3 REST API provides programmatic access to your organization's CRM records, general ledger, commerce orders, support tickets, and external integration connectors.

Authentication & Multi-Tenancy

All requests must include a valid JSON Web Token (JWT) in the Authorization header. Each token encodes your authenticated user ID and authorized tenant context.

curl https://api.xonika3.com/api/v1/crm/contacts \ -H "Authorization: Bearer <YOUR_API_TOKEN>" \ -H "Content-Type: application/json"

CRM & Lead Management

POST /api/v1/crm/leads

Creates a new sales inquiry lead with automated source tracking and duplicate resolution.

{ "first_name": "Alexander", "last_name": "Wright", "email": "alex.wright@example.com", "phone": "+1-555-0199", "company_name": "Wright Solutions", "source": "website_embed" }

Commerce & Configurable Tax Rates

XONIKA3 supports dynamic, realistic business rules: tax rates are never hardcoded and can be passed explicitly per order.

POST /api/v1/commerce/orders
{ "customer_id": "90e3863d-4952-4752-a5e2-6320fb7d30f3", "items": [ { "product_id": "4b7f8150-e837-4b77-8072-68b209d0cb5a", "quantity": 2, "unit_price": 4500 } ], "tax_rate_percent": 8.25, "currency": "USD" }

WordPress Official Connector Plugin

The official plugin is located at integrations/wordpress-plugin/xonika3-connector/. It connects using Application Passwords and dispatches HMAC-SHA256 webhooks to /api/v1/integrations/wordpress/webhook.

// WordPress plugin webhook signature header X-Xonika-Signature: sha256=4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945

Universal Client Embed SDK

Drop xonika-embed.js into any external HTML, React, Webflow, or Shopify page to render a branded contact capture form.

<!-- XONIKA3 Lead Capture Embed --> <form data-xonika-form="your-form-slug" data-success-message="Thanks, we will be in touch."> <input name="name" placeholder="Name" /> <input name="email" type="email" placeholder="Email" /> <button type="submit">Send</button> </form> <script src="https://crm.xonik.com/xonika-embed.js" defer></script> <!-- Input names must match the form's field ids. Or link to the hosted page: https://crm.xonik.com/public/form.html?f=your-form-slug -->