Send Whatsapp Order (Payment) Message

Sends an order details (Review and Pay) message so the customer can review items and pay inside WhatsApp.

Before you call

  • Send to as the customer's phone number with country code (e.g. +919999999999), or customerId for a customer without a phone number.
  • from is optional: your connected WhatsApp number with country code. If omitted, a connected number of your organisation is used.
  • content.body and content.orderDetails are required. content.footer is optional.
  • orderDetails.items needs at least one item, each with name (up to 60 characters), amount (readable price, e.g. 2.00) and quantity (1 or more).
  • Choose a payment method: paymentLink, upiIntentLink, or configurationName (a payment configuration on your WhatsApp account). configurationName is required if neither link is sent.
  • content.header.link is optional and must point to an image.
  • referenceId is optional, up to 35 characters of letters, digits, _, . or -. currency defaults to INR.

How it works

  • Subtotal and total are calculated for you. Send readable amounts, not Meta's value/offset format.
  • If referenceId is omitted, one is generated. Keep it to send updates with Send Whatsapp Order Status Message.
  • If both links are sent, paymentLink takes precedence over upiIntentLink.
  • The response contains the messageId. Use it with Get Message Status.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
length between 10 and 15

The phone number to which the message is sent, with the country code.

string
length between 10 and 15

The WABA phone number the message is sent from, with the country code.

string
length between 36 and 36

Message ID (UUID v4). Generated if not provided.

content
object
required
Responses
201

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json