The key points
- Push API sends each lead to your HTTPS webhook as an HTTP POST. Your endpoint must return HTTP 200 or IndiaMART treats the push as failed and retries.
- Pull API is polling: no more than one call every 5 minutes, a 7-day maximum range per call, and a key that lapses after 7 days without use.
- Use UNIQUE_QUERY_ID as the dedupe key on both APIs.
- A first message to a buyer who has not messaged you must be an approved template, and WhatsApp requires opt-in before you message people.
Push API or Pull API: which should feed WhatsApp?
IndiaMART's Push API guide describes the real-time route. IndiaMART sends an HTTP POST with a JSON body to a webhook URL you supply, as each lead arrives. You switch it on in Lead Manager under Import/Export Leads, then Push API, confirm an OTP sent to your primary mobile number, and enter an https:// URL on your own domain. The guide labels it a DIY integration and an add-on for paid sellers.
The Pull API guide covers the polling route. You generate a key in Lead Manager and call `https://mapi.indiamart.com/wservce/crm/crmListing/v2/` with the key and a start and end time in IST. Calls must be at least 5 minutes apart, a range can span at most 7 days, and the key lapses if it is not used for 7 days. Pull is the fallback when you have nowhere to host a webhook. For a reply that should reach the buyer while the enquiry is fresh, Push is the better fit.
What does an IndiaMART lead contain?
Inside the RESPONSE object, every lead carries UNIQUE_QUERY_ID, QUERY_TYPE, QUERY_TIME, SENDER_NAME, SENDER_COUNTRY_ISO and at least one of SENDER_MOBILE or SENDER_EMAIL. Optional fields include SENDER_CITY, SENDER_COMPANY, SUBJECT, QUERY_PRODUCT_NAME and QUERY_MESSAGE. QUERY_TYPE tells you the source: W for a direct enquiry, B for a buy-lead, P for a PNS call, BIZ for a catalog view and WA for a WhatsApp enquiry.
A lead can arrive with an email and no mobile number, so the automation needs a branch: no mobile means no WhatsApp send, and the lead goes to a person or an email. Buyers who enquired by phone call (P) or through a catalog view (BIZ) also need their own message wording, because the first line of a template that says "thanks for your enquiry about X" only fits a W or B lead that names a product.
How do you send the WhatsApp reply?
Through the WhatsApp Cloud API. Meta's message templates overview says template messages are the only type you can send to a WhatsApp user outside a customer service window, and only templates with the status APPROVED can be sent. A send is a POST to the messages endpoint of your business phone number with `type` set to `template`, the template `name`, a `language.code` and the body parameters, such as the buyer's name and product. Meta's send messages page says the 24-hour customer service window starts when the WhatsApp user messages you, so a new IndiaMART lead has no open window and the first message is a template.
Templates belong to one of three categories: authentication, marketing or utility, and the category affects the price. A reply that acknowledges a specific enquiry and asks one qualifying question is the shape most teams submit for review. Meta reviews every template when it is created or edited, so submit the wording before the automation goes live, and keep the template count small so each one is easy to monitor.
What about opt-in?
Meta's opt-in page says businesses must obtain opt-in before messaging people on WhatsApp. The permission can be general, but the person must have shared their number and confirmed they want to hear from your business, and the opt-in must clearly name the business. Whether an IndiaMART enquiry meets that standard depends on the wording the buyer saw and on the law that applies to you, so confirm the position with your lawyer or adviser before the first send. Many teams add a consent line to the order or enquiry form on their own website, and use the IndiaMART flow for a first reply that the buyer can answer.
Once the buyer replies, the 24-hour window opens and you can answer in free-form text. Keep an opt-out path in the template and honour it.
Where should the lead and the result go?
Write one row or record per lead before the WhatsApp send: UNIQUE_QUERY_ID, buyer name, mobile, product, QUERY_TIME, QUERY_TYPE and a status. Then write the send outcome back, including the WhatsApp message id and any delivery status from the webhook. In a Google Sheet that is one row per lead and a status column. In a CRM it is a lead with an owner, a source of IndiaMART and a timeline. A CRM matters once more than one person works the leads, because assignment, follow-up reminders and a stop on automation when a person replies live there.
IndiaMART's guide recommends UNIQUE_QUERY_ID to avoid duplicates, and the Pull guide suggests a rolling overlap between calls with deduplication on the same id. The same rule makes the Push endpoint safe to retry: store the id first, respond 200, and skip the send when the id already exists. See why WhatsApp webhooks fail for the delivery-status side.
How does Softivum build this?
The build is a Push API endpoint with the lead stored before anything else happens, a lead rules step for no-mobile and query-type branches, a template send from your WhatsApp Business Account, and a sync into your CRM or sheet. Failed pushes and failed sends land in a retry queue and an owner alert instead of disappearing. The IndiaMART key, the WhatsApp number and the CRM stay in your name.
LeadFlow is the packaged version of this lead pipeline, workflow automation covers the IndiaMART and WhatsApp wiring, and custom CRM development fits when the leads need a pipeline built around how your team sells.
IndiaMART Push API and Pull API for a WhatsApp reply workflow
| Point | Push API | Pull API |
|---|---|---|
| How leads arrive | IndiaMART POSTs each lead to your HTTPS webhook | Your system requests leads on a schedule |
| Speed | Real time | At least 5 minutes between calls |
| What you host | A public HTTPS endpoint that returns 200 | A scheduled job and a stored key |
| Limits to plan for | API is deactivated if your endpoint fails for more than 48 hours continuously | 7-day maximum range per call, 365 days of history, key lapses after 7 days unused |
| Dedupe key | UNIQUE_QUERY_ID | UNIQUE_QUERY_ID |
| Leads before activation | Pull API only | Available, up to 365 days back |
Before the first automated reply goes out
- Push API is active, the endpoint is HTTPS and returns 200 quickly
- UNIQUE_QUERY_ID is stored before the send, so a retry cannot message twice
- Leads without a mobile number go to a person, not to WhatsApp
- The WhatsApp template is APPROVED and matches the query type it is used for
- The buyer's opt-in to WhatsApp messages is recorded and the wording names your business
- Send results and delivery status are written back to the CRM or sheet
- A person replying stops further automated messages to that buyer
Sources
Rules and guidance this answer relies on. Policies change, so check the current version before acting on it.
