How to Integrate Developer API & Webhook

Templates for WhatsApp messages allow businesses to communicate more effectively with customers using WhatsApp. It is important to note that these templates are subject to WhatsApp’s review and approval processes. They are organized according to their different use cases. These are the primary categories of WhatsApp message templates:

Followu Steps

Most Important steps to upload data into ampala whatsapp api crm.

  • Step 1 – Go To Dashboard 
  • Step 2- Click On More
  • Step 3- Click On WhatsApp
  • Step 4 – Check On right side ( API )
  • Step 5 – Click On API

1 Conversation Validity Check API

If you are chatting with a customer and you want to check whether the chat has expired, we will use this API for that.

https://login.ampala.in/api/conversationvalidity.php?LicenseNumber=*********&APIKey=**********&Contact=91XXXXXXXXXX

2 Send Template Message API

To Send Invoice, Reminder, OTP, Payment Record This API helps you to send following things.

  • Invoice
  • Reminder
  • Renewal
  • Order Details
  • Other Template Messages

Step 1 – Create a Utility Template ( Goto-> More-> Whatsapp -> Templates )

  1. Mention Template Name
  2. Category – Select Message Category UTILITY ( for Invoice, Reminder, Order Info )
  3. Language – Your Message Language
  4. Template Types –1. Standard Text ( if you want to send only text ) 2. Media and Interactive
    ( If you want to send any attachment – Attach any dummy file with extension for ex : xyz.pdf )
  5. Body – Type your message
  6. Add Variable – To add parameter use variable ( for example if you want to send message with Name,
    email or any changeable value )
  7. Save It
  8. Wait for two minutes to get template approval
  9. Once it is approved then goto API section

Step 2– Goto More -> WhatsApp -> API

  1. Check Second API Which is Send Template Message
  2. You can find below API to send messages via existing CRM

    https://login.ampala.in/api/sendtemplate.php?LicenseNumber=**********&APIKey=***********&Contact=91XXXXXXXXXX&Template=XXXXXXXXXX&Param=xxx,xxx,xx
    &Fileurl=xxxxxx&URLParam=xxxxxx&HeadURL=xxxxx&HeadParam=xxxxx&Name=xxxxx&PDFName=xxxx
  3. To test API Put your mobile number follow this steps

    Contact = Your mobile number
    Template = Title of your approved message tempalate
    Param = Variable Filed ( Like, Name, Email, Invoice Number, amount )
    Fileurl = Your URL
    URLParam = if you use dynamic URL

    Example
    https://login.ampala.in/api/sendtemplate.php?LicenseNumber=******&APIKey=*******&Contact=918200948043&
    Template=Invoice&Param={Name},{Invoice_Number},{Invoice_Date}{Invoice_Amount}
    &Fileurl=https://ampalainfo.com/invoice_110.pdf.

Dear Ampala

Your invoice has been generated #INV Number : 4444
Total Amount : 59,900 INR


Download Invoice

3. Send text message

Send text message api is used when you are giving the option to chat with the customer in your CRM, if you have to give a normal reply
to the customer then with the help of Send Text Message API you can chat with the customer.

https://login.ampala.in/api/api/sendtextmessage.php? LicenseNumber=********&APIKey=*******&Contact=91XXXXXXXXXX&
Message=Your Message

4. Send Media message

Send Media message api is used when you are giving the option to chat with the customer in your CRM, if you want to send media
file while chatting with the customer then with the help of Send Media Message API you can chat and send media file with the customer.

5. Webhook

  • Step 1 – Go To Dashboard 
  • Step 2- Click On More
  • Step 3- Click On WhatsApp
  • Step 4 – Check On right side ( API )
  • Step 5 – Click On API 
  • Step 6 – In the end of API you will get the webhook url configure option
  • Step 7 -If you need more option of webhook Click on – > Settings
Scroll to Top