{"url":"https://whats91.com/solutions/miracle-whatsapp-api","title":"Miracle WhatsApp API and Web API Integration","description":"Connect Miracle Accounting Software to WhatsApp Cloud API for invoice PDFs, GST bills, challans, builty documents, ledgers, and payment reminders.","updated_at":"2026-05-29","language":"en","sections":[{"id":"miracle-whatsapp-api__overview","heading":"Overview","content":"Whats91 provides a custom Miracle WhatsApp API endpoint for Miracle Accounting Software users who need official WhatsApp Cloud API delivery for invoice PDFs, GST bills, challans, builty PDFs, ledger statements, receipts, and payment reminders.","keywords":["Miracle WhatsApp API","Miracle Accounting Software WhatsApp Integration","Miracle Accounting WhatsApp Cloud API"]},{"id":"miracle-whatsapp-api__web_api","heading":"What is Miracle Web API","content":"Miracle Web API is the external API configuration used by Miracle Accounting Software to send structured HTTP requests to another system. It is also described as Miracle API, Miracle Accounting API, Miracle ERP API, Miracle Integration API, or Miracle Accounting Software API. For WhatsApp delivery, Miracle sends accounting fields, recipient mobile, template values, and Base64 PDF attachment data to Whats91.","keywords":["Miracle Web API","Miracle API","Miracle Accounting API","Miracle ERP API","Miracle Integration API"]},{"id":"miracle-whatsapp-api__connection_flow","heading":"How Miracle Accounting Software Connects to WhatsApp","content":"The flow is Miracle -> API Request -> Whats91 -> WhatsApp Cloud API -> Customer. Miracle generates an invoice, GST invoice, challan, builty, ledger statement, receipt, or payment reminder. Miracle sends JSON to Whats91. Whats91 validates the token, template, recipient, variables, attachment, and sender, then sends the approved WhatsApp template and PDF through WhatsApp Cloud API.","keywords":["Miracle invoice WhatsApp","Miracle PDF WhatsApp","Miracle payment reminder automation","WhatsApp Cloud API"]},{"id":"miracle-whatsapp-api__endpoint","heading":"Custom Endpoint","content":"Use POST https://graph.whats91.com/api/custom/miracle/send-template in Miracle's WhatsApp Web API profile. The endpoint accepts Miracle-style JSON fields, aliases, template arguments, and Base64 PDF attachments.","keywords":["Miracle API endpoint","Whats91 custom Miracle endpoint","WhatsApp Web API profile"]},{"id":"miracle-whatsapp-api__payload","heading":"Payload Requirements","content":"Required fields include auth_token, template_id or template_name, country_code, and send_to. For PDF attachments use media_url_type=base64, base64 mapped to Miracle's attachment Base64 field, and file_name mapped to Miracle's attachment file-name field.","keywords":["auth_token","template_name","Base64 PDF attachment"]},{"id":"miracle-whatsapp-api__implementation","heading":"Implementation Steps","content":"Create and approve the WhatsApp template, generate a Whats91 API token, add the Miracle Web API profile, paste the JSON body, map send_to to party mobile, choose PDF and Log With Attachment, then send a controlled test document and review Whats91 logs.","keywords":["How to setup WhatsApp in Miracle Software","Miracle WhatsApp setup","Whats91 implementation"]},{"id":"miracle-whatsapp-api__web_vs_cloud","heading":"Miracle WhatsApp API vs WhatsApp Web Sending","content":"WhatsApp Web sending requires QR login and an active browser session. Whats91 Cloud API delivery does not require QR login, uses approved templates, supports Base64 PDF attachments, provides delivery logs, supports automation, and is better suited for scalable ERP and accounting document delivery.","keywords":["Miracle WhatsApp API vs WhatsApp Web","official WhatsApp Cloud API","QR login replacement"]},{"id":"miracle-whatsapp-api__industries","heading":"Industries Using Miracle WhatsApp Automation","content":"Common industries include textile businesses, ceramic businesses, FMCG distributors, manufacturers, wholesalers, commission agents, petrol pumps, and pharmaceutical distributors. Workflows include GST invoice delivery, builty PDFs, challans, transport documents, ledger statements, payment reminders, receipts, credit control, and customer communication.","keywords":["Miracle WhatsApp automation industries","Miracle ERP WhatsApp integration","accounting document automation"]},{"id":"miracle-whatsapp-api__workflow","heading":"Miracle WhatsApp API Workflow","content":"Miracle invoice generated -> Miracle Web API trigger -> Whats91 endpoint -> template validation -> Base64 PDF attachment check -> WhatsApp Cloud API -> customer receives PDF. Logs cover missing tokens, invalid phone numbers, missing templates, invalid Base64, missing file names, sender health, and Cloud API delivery responses.","keywords":["Miracle WhatsApp API workflow","Base64 PDF attachments","template validation","delivery logs"]},{"id":"miracle-whatsapp-api__security","heading":"Token Security","content":"Never publish a live Whats91 token in screenshots, website content, or public documentation. Use YOUR_WHATS91_API_TOKEN in examples and rotate any token that was exposed in setup material.","keywords":["Whats91 token security","auth_token","API token rotation"]}]}