Developer API Docs
Integrate specific D-Modulus features securely into your own applications like Zoho. Our modular APIs let you consume only what you need—be it billing, chat, contacts, or network links.
Onboarding Process
Before making API requests, you must register your integration to obtain standard API credentials. Follow these simple steps to start using our modules in your application.
Register an API App
Log in to your D-Modulus Developer Dashboard and create a new App. Specify the exact modules you need (e.g., Billing, Chat) to ensure least-privilege security.
Obtain Credentials
Once registered, you'll receive a Client ID and a
Client Secret. Keep the secret secure. Do not expose it in client-side
code.
Test in Sandbox
Route your requests to https://sandbox.api.dmodulus.com during development
to test your integrations safely without affecting live data.
Authentication
All production and sandbox endpoints require a Bearer token passed in the Authorization header. You can exchange your Client credentials for a token via our Auth server.
Header Format
Include the token in your requests like so:
Authorization: Bearer YOUR_ACCESS_TOKEN
Billing & Notifications Module
Use this module if you already have a billing engine (e.g., Zoho Billing) and only need to trigger Email or SMS invoice deliveries to customers using D-Modulus's reliable notification infrastructure.
Send an invoice or bill notification to a customer via the specified channel (SMS, Email, or WhatsApp).
| Parameter | Type | Description |
|---|---|---|
sale_id |
Path | The unique identifier of the sale/invoice. |
channel |
Path | Must be sms, email, or whatsapp. |
phone |
Query | Required if channel is SMS or WhatsApp. |
email |
Query | Required if channel is Email. |
Contact & CRM Module
Integrate our Contact feature directly into your storefront or internal application. This allows external applications to push lead data or sales requests directly into the D-Modulus CRM.
Submit a new contact or sales inquiry request to be managed by the D-Modulus admin team.
| Body Field | Type | Description |
|---|---|---|
name |
String | Name of the person making the inquiry (Required) |
email |
String | Contact email address (Required) |
message |
String | The actual message or inquiry details (Required) |
phone |
String | Optional phone number |
Network Link Module
D-Modulus features a LinkedIn-style Business Network. Use the link APIs to discover and connect with other merchants and suppliers, allowing external apps to establish network connections.
Send a connection request to link your business with another merchant or supplier in the network.
| Body Field | Type | Description |
|---|---|---|
target_user_id |
String | The ID of the business you wish to link with. |
Retrieve a list of all your active linked business connections.
Real-time Chat Module
Embed our robust chat feature into any interface. Powered by WebSockets and Redis pub/sub, it ensures instantaneous messaging between business connections or staff.
Establish a persistent WebSocket connection to send and receive real-time messages. Requires token-based authentication during the handshake.
Payload Format (Send Message):
{ "type": "message", "recipient_id": "user_456", "content": "Hello!" }
Fetch a list of recent chat conversations including the last message snippet and unread counts.