Payments
- Payments API — India | Developer Documentation
- Onboarding APIs | Developer Documentation
- Receive UPI Payments Through WhatsApp(Recommended) | Developer Documentation
- Cashfree Payment Gateway Integration Guide | Developer Documentation
- Billdesk Payment Gateway Integration Guide | Developer Documentation
- CCAvenue Payment Gateway Integration Guide | Developer Documentation
- Accept Payments via Payment Links | Developer Documentation
- Enhanced Payment Links | Developer Documentation
- Send order details template message | Developer Documentation
- Send order status template message | Developer Documentation
- Checkout button templates | Developer Documentation
- Payments API - Brazil | Developer Documentation
- Orders | Developer Documentation
- Offsite Pix payments | Developer Documentation
- Payment links | Developer Documentation
- Boleto | Developer Documentation
- One-Click Payments | Developer Documentation
- Send order details template message | Developer Documentation
- Receive UPI Payments Through WhatsApp | Developer Documentation
- Receive payments via payment gateways on WhatsApp | Developer Documentation
Payments API — India | Developer Documentation
Payments API — India
Updated: Nov 26, 2025
The Payments API enables you to accept payments from your customers through all UPI apps installed on their devices and other payment methods like cards, NetBanking, and wallets via WhatsApp.
You can send invoice (
order_details) messages to your customers, then get notified about payment status updates through webhook notifications from the payment gateway.Know the differences in the models of integration
The integration model you use depends on your payment gateway. The two models differ in the following ways:
| User Experience | UPI Intent Mode | Payment Gateway Deep Integration Mode |
|---|---|---|
Native support for “Other payment methods” For example: Netbanking, cards, wallets | ❌ Alternative: Send payment links | ✅ |
Native support for UPI Intent | ✅ | ✅ |
Native Payment Status Notification | ❌ | ✅ |
| Integration Features | UPI Intent Mode | Payment Gateway Deep Integration Mode |
|---|---|---|
Refunds from WhatsApp APIs | ❌ | ✅ |
Payment Status from WhatsApp webhooks | ❌ | ✅ |
Prerequisites for integration
Full payment gateway deep integration mode
UPI Intent mode
Example use cases and features needed
| Use case | Essential Feature Set |
|---|---|
Buying Tickets For example: Metro, bus, event tickets | |
Payment Reminders Example: Bill payments, subscription renewals, insurance renewals |
Support
Onboarding APIs | Developer Documentation
Onboarding APIs
Updated: Nov 14, 2025
To receive payments on WhatsApp, you must have a payment configuration linked to the corresponding WhatsApp Business Account. Each payment configuration is associated with a unique name. As part of the order_details message, you can specify the payment configuration to use for a specific checkout.
Onboarding APIs allows you to programatically perform certain operations:
Get all payment configurations linked to a WhatsApp Business Account.Get a specific payment configuration linked to a WhatsApp Business Account.Create a payment configuration.Regenerate payment gateway OAuth link to link payment configuration to a payment gateway.Remove a payment configuration.
Payment Configuration Webhook
Businesses receive updates via WhatsApp webhooks when the status of the payment configuration changes.
To receive webhook, Businesses must subscribe to “payment_configuration_update” event for their respective application.
Webhook contains the following fields:
| Field | Description |
|---|---|
configuration_namestring |
Required.
The name of the payment configuration to be used in the Order Details message. |
provider_namestring |
Required.
Provider name of the payment configuration. Must be one of [“razorpay”, “payu”, “zaakpay”]. |
provider_midstring |
Required.
Payment gateway account merchant ID. |
statusstring |
Required.
Status of the payment configuration. Must be one of [“Active”, “Needs_Connecting”, “Needs_Testing”]. |
created_timestampinteger |
Required.
Time when payment configuration was created. |
updated_timestampinteger |
Required.
Time when payment configuration was last updated. |
Sample Payment Configuration Webhook
Errors
WhatsApp Payments Terms of Service Acceptance Pending
If you see the following error, accept the WhatsApp Payments terms of service using the link provided in the error message before trying again.
For all other errors that can be returned and guidance on how to handle them, see WhatsApp Cloud API, Error Codes.
Receive UPI Payments Through WhatsApp(Recommended) | Developer Documentation
Receive UPI Payments Through WhatsApp(Recommended)
Updated: Mar 11, 2026
For businesses working with Billdesk or Zaakpay payment gateways, use the deeper integration with these PGs. Refer to Payment Gateway Integration Guide
For businesses working with Razorpay, PayU, or Cashfree payment gateways, use a faster integration path. Refer to Enhanced Payment Links
This is the recommended UPI Intent integration. Using the older payment configuration method? See previous docs and plan to migrate to dynamic VPA.
Your business can enable customers to pay for their orders using all the UPI Apps installed on their devices via WhatsApp. Businesses can send customers invoice (
order_details) messages, then get notified about payment status updates via webhook notifications from Payment Gateway.Overview
Currently, customers browse business catalogs, add products to cart, and send orders in with our set of commerce messaging solutions, which includes Single Product Message, Multi Product Message, and Product Detail Page.
With the WhatsApp Payments API, businesses can send customers a bill so the customer can complete their order with all the UPI Apps.
How It Works
The business must send an
order_details message for the consumer to initiate payment. This type of message is a new type of interactive message, which always contains the same 4 main components: header, body, footer, and action. Inside the action component, the business includes all the information needed for the customer to complete their payment.An order_details message contains the following fields that are worth noting:
upi_intent_link - Fields that will be supplied by your payment gateway and denote where a payment will be sent.reference_id - This is used to track the lifecycle of the order. Payment statuses are published against this ID. This could be order-id or transaction-id used to create the upi-intent at payment gateway.
Once the message is sent, the business waits for a payment or transaction status updates directly from Payment Gateway. Upon receiving payment signal for an order, Business should relay this payment signal to consumer through interactive order status (
order_status) message.Updating users about the payment signal is important as this message updates the order details message and order details view for the consumer reflecting the order confirmation from the merchant. This is shown with an example in subsequent sections.
Purchase Flow in App
In the WhatsApp customer app, the purchase flow has the following steps:
Customer sends an order with selected products to the business, or the business identifies the products that the customer has shown interest to purchase.
After receiving the order/identifying the product, if a merchant accepts payment methods other than UPI, such as credit cards and payment wallets, then the merchant will send a message to the user to get their preferred payment method for the order.

When consumers want to pay using UPI payment method, then merchants should retrieve the UPI payment intent by calling Payment Gateway. Merchant needs to use UPI intent to construct order details messages and send it to the consumer.


When the consumer taps the Pay now/continue button, they will be given the option to choose UPI payment Apps - WhatsApp or any other UPI payments apps. Consumers may choose any UPI option to pay for the order.


Consumer pays for the order and the payment method is saved for the future and automatically selected for the next payment transaction. Also, one quick note is the order details screen order-status will continue to show “Order pending” until the merchant sends order status interactive message.


Once the payment is complete, the business receives a notification from Payment Gateway and the merchant needs to send order status updates to the consumer client notifying consumers about the progress to the order, this will update the order details message CTAs and order details screen - order status description.



Integration Steps
The steps outlined below assume that the business is about to send order details message to the consumer client.
The following sequence diagram demonstrates the typical integration flow for WA Payments API: 

Step 1: Get UPI Intent from Payment Gateway
Once the consumer has expressed their interest to purchase an item using UPI payment method, merchant needs to call payment gateway to create a UPI intent, the following is the sample UPI intent link:
upi://pay?pa=abc@psp&pn=ABC&tr=877376394&
am=10.00&cu=INR&mode=00&purpose=00&mc=5399&tn=877376394
Merchant/Partner could send the entire UPI intent as it is in the
upi_intent_link type payload. These will be discussed in detail below.Step 2: Assemble the Interactive Object
To send an
order_details message, businesses must assemble an interactive object of type order_details with the following components:| Object | Description |
|---|---|
typeobject |
Required.
Must be “order_details”. |
headerobject |
Optional.
Header content displayed on top of a message. If a header is not provided, the API uses an image of the first available product as the header |
bodyobject |
Required.
An object with the body of the message. The object contains the following field:
text stringbody is present. The content of the message. Emojis and markdown are supported. Maximum length is 1024 characters |
footerobject |
Optional.
An object with the footer of the message. The object contains the following fields:
text stringfooter is present. The footer content. Emojis, markdown, and links are supported. Maximum length is 60 characters |
actionobject |
Required.
An action object you want the user to perform after reading the message. This action object contains the following fields:
name stringparameters object |
Parameters Object
| Object | Description |
|---|---|
reference_idstring |
Required.
Unique identifier for the order or invoice provided by the business. It is case sensitive and cannot be an empty string and can only contain English letters, numbers, underscores, dashes, or dots, and should not exceed 35 characters.
The reference_id must be unique for each order_details message for a given business. If there is a need to send multiple order_details messages for the same order, it is recommended to include a sequence number in the reference_id (for example, “BM345A-12”) to ensure reference_id uniqueness. |
typeobject |
Required.
The type of goods being paid for in this order. Current supported options are digital-goods and physical-goods |
beneficiariesarray |
Required for shipped physical-goods.
An array of beneficiaries for this order. A beneficiary is an intended recipient for shipping the physical goods in the order. It contains the following fields:
Beneficiary information isn’t shown to users but is needed for legal and compliance reasons. name stringaddress_line1 stringaddress_line2 stringcity stringstate stringcountry stringpostal_code string |
currency |
Required.
The currency for this order. Currently the only supported value is INR. |
total_amountobject |
Required.
The
total_amount object contains the following fields:offset integer100 for INR.
value integertotal_amount.value must be equal to order.subtotal.value + order.tax.value + order.shipping.value - order.discount.value. |
payment_settingsobject |
Required.
See Payment Settings object for more information. |
orderobject |
Required.
See order object for more information. |
Payment Settings Object
You can pass UPI intent as it is or parse the UPI intent parameters and pass them in a json structure. We support both the formats, so following are the two variants of payments settings objects:
Payment Settings Object for UPI intent link
| Object | Description |
|---|---|
typestring |
Required.
Must be set to “upi_intent_link” |
upi_intent_linkobject |
Required.
An object that describes payment account information:
link string&” separated attributes- pa, pn, mc, purpose and tr
Example: upi://pay?pa=merchant_vpa&pn=Merchant_Name&mc=merchant_category_code&purpose=purpose_code&tr=pg_generated_id |
Order Object
| Object | Description |
|---|---|
statusstring |
Required.
Only supported value in the
order_details message is pending.In an order_status message, status can be: pending, captured, or failed. |
typestring |
Optional.
Only supported value is quick_pay. When this field is passed in we hide the “Review and Pay” button and only show the “Pay Now” button in the order details bubble. |
itemsobject |
Required.
An object with the list of items for this order, containing the following fields:
retailer_id stringname stringimage objectUsing this image field will limit the items array to a maximum of 10 items and this cannot be used with retailer_id or catalog_id.amount amount object with value and offset -- refer total amount field abovesale_amount amount objectquantity integercountry_of_origin stringcatalog_id is not present. The country of origin of the product
importer_name stringcatalog_id is not present. Name of the importer company
importer_adress stringcatalog_id is not present. Address of importer company |
subtotalobject |
Required.
The value must be equal to sum of
order.amount.value * order.amount.quantity. Refer to total_amount description for explanation of offset and value fieldsThe following fields are part of the
subtotal object:offset integer100 for INR
value integer |
taxobject |
Required.
The tax information for this order which contains the following fields:
offset integer100 for INR
value integerdescription string |
shippingobject |
Optional.
The shipping cost of the order. The object contains the following fields:
offset integer100 for INR
value integerdescription string |
discountobject |
Optional.
The discount for the order. The object contains the following fields:
offset integer100 for INR
value integerdescription stringdiscount_program_name string |
catalog_idobject |
Optional.
Unique identifier of the Facebook catalog being used by the business.
If you do not provide this field, you must provide the following fields inside the items object: country_of_origin, importer_name, and importer_address |
expirationobject |
Optional.
Expiration for that order. Business must define the following fields inside this object:
timestamp string – UTC timestamp in seconds of time when order should expire. Minimum threshold is 300 secondsdescription string – Text explanation for expiration. Max character limit is 120 characters |
Item Image Object
| Object | Description |
|---|---|
link string |
Required. A link to the image that will be shown to the user. Must be an image/jpeg or image/png and 8-bit, RGB or RGBA. Follows same requirements as image in media |
By the end, the interactive object should look something like this for a merchant upi intent type catalog-based integration:
Step 3: Add Common Message Parameters
Once the interactive object is complete, append the other parameters that make a message:
recipient_type, to, and type. Remember to set the type to interactive.These are parameters common to all message types.
Step 4:Make a POST Call to Messages Endpoint
Make a POST call to the
/[PHONE_NUMBER_ID]/messages endpoint with the JSON object you have assembled. If your message is sent successfully, you get the following response:Errors
WhatsApp Payments Terms of Service Acceptance Pending
If you see the following error, accept the WhatsApp Payments terms of service using the link provided in the error message before trying again.
For all other errors that can be returned and guidance on how to handle them, see WhatsApp Cloud API, Error Codes.
Step 5: Consumer Pays for the Order
Consumers can pay using WhatsApp payment method or using any UPI supported app that is installed on the device.
Step 6: Get Notified About Transaction Status Updates from payment gateway
Businesses receive updates to the invoice via payment gateway webhooks, when the status of the user-initiated transaction changes. The unique identifier reference-id passed in
order_details message can be used to map the transaction to the consumer invoice or interactive order details message.Step 7: Update order status
Upon receiving transaction signals from payment gateway through webhook, the business must update the order status to keep the user up to date. Currently we support the following order status values:

| Value | Description |
|---|---|
pending |
User has not successfully paid yet |
processing |
User payment authorized, merchant/partner is fulfilling the order, performing service, etc. |
partially-shipped |
A portion of the products in the order have been shipped by the merchant |
shipped |
All the products in the order have been shipped by the merchant |
completed |
The order is completed and no further action is expected from the user or the partner/merchant |
canceled |
The partner/merchant would like to cancel the order_details message for the order/invoice. The status update will fail if there is already a successful or pending payment for this order_details message |
Typically businesses update the
order_status using either the WhatsApp payment status change notifications or their own internal processes. To update order_status, the partner sends a order_status message to the user.The following table describes the returned values:
| Value | Description |
|---|---|
reference_id |
The ID provided by the partner in the order_details message |
status |
The new order status |
description |
Optional text for sharing status related information in order_details. Could be useful while sending cancellation. Max character limit is 120 characters |
Merchant should always post this order-status message to the consumer after receiving transaction updates for an order. As the order_details message and order details screen experience is tied to to the order status updates.
Security Considerations
Businesses should comply with local security and regulatory requirements in India. They should not rely solely on the status of the transaction provided in the webhook and must use payment lookup API to retrieve the statuses directly from WhatsApp. Businesses must always sanitize/validate the data in the API responses or webhooks to protect against SSRF attacks.
Checklist for Integrated Merchants
Ensure that an
order_status message is send to consumer informing them about updates to an order after receiving transaction updates for an order.Ensure the merchant is verified and WABA contact is marked with a verified check.
Verify the WABA is mapped to appropriate merchant initiated messaging tier(1k, 10k and 100k per day)
Merchant should list the customer support information in the profile screen in case the consumer wants to report any issues.
Cashfree Payment Gateway Integration Guide | Developer Documentation
Cashfree Payment Gateway Integration Guide
Updated: Oct 31, 2025
Purpose
The purpose of this document is to lay down the payment integration with Cashfree that is required for a merchant or Solution Partner that has setup a chatbot using WhatsApp Business APIs and needs to receive payments from WhatsApp users.
This document covers the set of APIs that need to be integrated and how the integration works in tandem with the WhatsApp Business API integration. For additional details regarding Cashfree payment integration, please refer to the Cashfree documentation.
Where this fits into the entire flow in terms of integration to the WA P2M product : The following document covers the requests, responses in red in the flow diagram below. 

Handling Special cases
Order Expiry
Handling failed payments
Canceling Order for successful transaction
There may arise a scenario where Cashfree shared a successful payment signal but the order cannot be fulfilled by the merchant. In such scenario, process refund for the payment via one of the following mechanisms:
Billdesk Payment Gateway Integration Guide | Developer Documentation
Billdesk Payment Gateway Integration Guide
Updated: Nov 14, 2025
The purpose of this document is to lay down the payment integration with Billdesk that is required for a merchant, or a Solution Partner, that has implemented a chatbot using WhatsApp Business APIs and needs to accept payments from WhatsApp users.
This document outlines the necessary APIs that must be integrated and how the integration works in conjunction with the WhatsApp Business API integration. While not a comprehensive guide, it serves as a general overview to assist in understanding the payment gateway integration process. Any specific or unique details related to the payment gateway must be determined by the merchant or Solution Partner.
In terms of integrating with the WA P2M product, this document covers the requests and responses highlighted in red in the flow diagram.

Billdesk payment integration
Setup
To authenticate with Billdesk's API, a client must be created and an authentication method must be selected between HMAC and Javascript Object Signing and Encryption (JOSE) with JOSE being the preferred method. These methods are used to encrypt/decrypt the request/response from Billdesk's APIs.
To simplify the explanation, the following examples will only address the body of final payload that will ultimately be included in the final object required for successful authentication with their API. It is important to consult Billdesk's documentation for guidance on how this final object must be structured.
You must have the following details before you can proceed:
Parse the response
Use the value of
wa_txnid on the response and pass it as the reference_id while setting up the parameters object to send for the order details message using the API.Make sure to verify the values in the intent you receive:
intent key has the base64 encoded value of the intentDecoding the intent should give a value that should be similar to this: upi://pay?pa=billdesk@hdfcbank&pn=SIDDHIVINKamp;mc=6300&tr=XHD50477676443&tn=Pay&am=2.00&malORSThe value of pa is the merchant VPA. This value must match the VPA on the payment_configuration you send in the parameters object
Status webhook
Billdesk will post a transaction object to the return URL (
ru) you specified in the initiate payment API.| Key | Data type | Description |
|---|---|---|
|
objectid (Mandatory) |
string |
String representing the object's type. This value will be fixed as transaction |
|
transactionid |
string |
Unique transaction ID generation by BillDesk for the transaction |
|
orderid |
string |
Unique orderid generated by merchant to for the transaction |
|
mercid |
string |
Unique identifier as defined by BillDesk for each merchant |
|
transaction_date |
timestamp |
BillDesk transaction date and time in YYYY-MM DDThh:mm:ssTZD format |
|
amount |
string |
Transaction amount in two decimals |
|
surcharge |
string |
Customer surcharge in two decimals applied to the transaction amount, if any |
|
discount |
string |
Customer discount in two decimals applied to the transaction amount, if any |
|
charge_amount |
string |
Total charge to the customer |
|
currency |
integer |
ISO currency of the transaction amount |
|
txn_process_type |
string |
Indicates transaction processing type.
Intent for payment_method_type is upi and the method of payment is UPI intent |
|
bankid |
string |
BillDesk defined unique identifier for bank or acquirer |
|
txn_process_type |
string |
Indicates transaction processing type.
Intent for payment_method_type is upi and the method of payment is UPI intent. |
|
ru |
string |
Merchant return url |
|
additional_info |
object |
Array of 10 additional_info values that can be attached to the transaction. Note: Merchant is advised to not pass customer PII information in additional info fields. |
|
itemcode |
string |
Itemcode value provided by BillDesk, with a default value of DIRECT |
|
bank_ref_no |
string |
Transaction reference number generated by bank or acquirer |
|
auth_status |
string |
Represents the authorization status of the transaction with the possible values:
0300 - transaction is successful0002 - transaction is pending for authorization0399 - transaction failed |
|
settlement_lob |
string |
Settlement line of business pre-configured by BillDesk for funds settlement to merchant account |
|
customer |
object |
Customer object |
|
device |
object |
Device object |
|
transaction_error_code |
string |
Represents the error code for a transaction with 0399 status |
|
transaction_error_type |
string |
Represents the standard error category for a transaction with 0399 status |
|
transaction_error_desc |
string |
Represents the description of the error code for a transaction with 0399 status |
|
authcode |
string |
Authorization code received from the acquirer for a successfully authorized card transaction |
|
eci |
string |
eci value for the authentication taken for the card transaction |
|
payment_method_type |
string |
Represents the method of payment e.g. upi |
|
card |
Object |
Payment method object (applicable when payment method is card) |
|
customer_refid |
string |
Unique customer identifier as per merchant |
|
links |
object |
Associated links with the object |
Parsing the response
Use the
auth_status retrieved from the response above and transmit the corresponding status message via the WhatsApp API.CCAvenue Payment Gateway Integration Guide | Developer Documentation
CCAvenue Payment Gateway Integration Guide
Updated: Dec 10, 2025
The purpose of this document is to lay down the payment integration with CCAvenue that is required for a merchant (or BSP) that has implemented a chatbot using WhatsApp Business APIs and needs to accept payments from WhatsApp users.
This document outlines the necessary APIs that must be integrated and how the integration works in conjunction with the WhatsApp Business API integration. While not a comprehensive guide, it serves as a general overview to assist in understanding the payment gateway integration process. Any specific or unique details related to the payment gateway must be determined by the merchant (or BSP).
In terms of integrating with the WA P2M product, this document covers the requests and responses highlighted in red within the flow diagram.

Accept Payments via Payment Links | Developer Documentation
Accept Payments via Payment Links
Updated: Nov 14, 2025
This feature is not publicly available yet. Please reach out to whatsappindia-bizpayments-support@meta.com to know more.
Your businesses can enable customers to pay for their orders by bringing in all the payment methods supported on your platform to WhatsApp. Businesses can send customers invoice(
order_details) messages, then get notified about payment status updates via webhook notifications from Payment Gateway.Overview
Currently, customers browse business catalogs, add products to cart, and send orders in with our set of commerce messaging solutions, which includes Single Product Message, Multi Product Message, and Product Detail Page.
With the WhatsApp Messaging API, businesses can send customers a bill to complete the order with one of the supported payment instrument.
How It Works
The business must send an
order_details message for the consumer to initiate payment. This type of message is a new type of interactive message, which always contains the same 4 main components: header, body, footer, and action. Inside the action component, the business includes all the information needed for the customer to complete their payment.Each
order_details message contains a unique reference_id provided by the business, and that unique number is used throughout the flow to track the order. This reference_id is used to generate the payment link from Payment Gateway.Once the message is sent, the business waits for a payment or transaction status updates directly from Payment Gateway. Upon receiving payment signal for an order, business should relay this payment signal to consumer client through interactive order status(
order_status) message.Updating user about the payment signal is important as this message updates the order details message and order details view for the consumer reflecting the order confirmation from merchant. This is shown with an example in subsequent sections.
Purchase Flow in App
In the WhatsApp customer app, the purchase flow has the following steps:
Customer sends an order with selected products to the business or business identifies the products that the customer has shown interest to purchase.
After receiving the order or identifying the product, if a business accepts payment methods other than UPI, such as credit cards and payment wallets, etc. then business will send a message to the user to get their preferred payment method for the order.

When consumers want to pay using other payment method option, the business should generate the payment link by calling Payment Gateway by providing the unique “reference-id” and other information like amount, validity etc, then business can use the generated payment link to construct the order details message and send to the consumer.


When the consumer taps the Pay now/continue button, consumer will be redirected to the payment link within specially designed In-App browser to present with the list of supported payment options such as credit card, debit card, wallet or UPI apps. Consumers can choose any one of the payment option to pay for the order.
The following is a sample payment link redirect within In-App Browser accepting various payment methods like credit, debit, wallet and UPI apps.


Once the payment is complete, the business will receive a notification from Payment Gateway and the business needs to send order status updates to the consumer client notifying consumers about the progress on their order, this will update the order details message CTAs, Order details screen and Order status. The order status should contain the matching “reference-id” of order details.


Integration Steps
The steps outlined below assume that the business is about to send order details message to consumer client.
The following sequence diagram demonstrates the typical integration flow for WA Payments API: 

Step 1: Get Payment Link from Payment Gateway
Once the consumer has expressed their interest to purchase an item using payment link. Business needs to call payment gateway with necessary information like reference-id, amount and validity to generate the payment link. Following is a sample payment link:
https://rzp.io/i/rNiAagU8y
Business needs to use the same reference-id, amount and expiration in invoice(
order_details) interactive message.Step 2: Assemble the Interactive Object
To send an
order_details message, businesses must assemble an interactive object of type order_details with the following components:| Object | Description |
|---|---|
typeobject |
Required.
Must be “order_details”. |
headerobject |
Optional.
Header content displayed on top of a message. If a header is not provided, the API uses an image of the first available product as the header |
bodyobject |
Required.
An object with the body of the message. The object contains the following field:
text stringbody is present. The content of the message. Emojis and markdown are supported. Maximum length is 1024 characters |
footerobject |
Optional.
An object with the footer of the message. The object contains the following fields:
text stringfooter is present. The footer content. Emojis, markdown, and links are supported. Maximum length is 60 characters |
actionobject |
Required.
An action object you want the user to perform after reading the message. This action object contains the following fields:
name stringparameters object |
Parameters Object
| Object | Description |
|---|---|
reference_idstring |
Required.
Unique identifier for the order or invoice provided by the business. It is case sensitive and cannot be an empty string and can only contain English letters, numbers, underscores, dashes, or dots, and should not exceed 35 characters.
The reference_id must be unique for each order_details message for the same business. If the partner would like to send multiple order_details messages for the same order, invoice, etc. it is recommended to include a sequence number in the reference_id (for example, <order-or-invoice-id>-<sequence-number>) to ensure reference_id uniqueness. |
typeobject |
Required.
The type of goods being paid for in this order. Current supported options are digital-goods and physical-goods |
beneficiariesarray |
Required for shipped physical-goods.
An array of beneficiaries for this order. A beneficiary is an intended recipient for shipping the physical goods in the order. It contains the following fields:
Beneficiary information isn’t shown to users but is needed for legal and compliance reasons. name stringaddress_line1 stringaddress_line2 stringcity stringstate stringcountry stringpostal_code string |
payment_type |
Required.
Must be “upi”. |
payment_settings |
Required. See Payment Settings Object for more details. |
currency |
Required.
The currency for this order. Currently the only supported value is INR. |
total_amountobject |
Required.
The
total_amount object contains the following fields:offset integer100 for INR.
value integertotal_amount.value must be equal to order.subtotal.value + order.tax.value + order.shipping.value - order.discount.value. |
orderobject |
Required.
See order object for more information. |
Payment Setting Object
| Object | Description |
|---|---|
type string |
Required. Must be payment_link. |
payment_link object |
Required. Refer Payment Link Object for more information. |
Payment Link Object
| Object | Description |
|---|---|
uri string |
Required. A valid payment link generated through payment gateway.
Generated payment links domains needs to be enabled to accept payments. Please reach out to whatsappindia-bizpayments-support@meta.com to know more. |
success_url string |
Optional. The flow terminated with success status, when success_url is hit. |
cancel_url string |
Optional. The flow ends with failure, when the cancel_url is triggered. |
Order Object
| Object | Description |
|---|---|
statusstring |
Required.
Only supported value in the
order_details message is pending.In an order_status message, status can be: pending, captured, or failed. |
typestring |
Optional.
Only supported value is quick_pay. When this field is passed in we hide the “Review and Pay” button and only show the “Pay Now” button in the order details bubble. |
itemsobject |
Required.
An object with the list of items for this order, containing the following fields:
retailer_id stringname stringimage objectUsing this image field will limit the items array to a maximum of 10 items and this cannot be used with retailer_id or catalog_id.amount amount object with value and offset -- refer total amount field abovesale_amount amount objectquantity integercountry_of_origin stringcatalog_id is not present. The country of origin of the product
importer_name stringcatalog_id is not present. Name of the importer company
importer_adress stringcatalog_id is not present. Address of importer company |
subtotalobject |
Required.
The value must be equal to sum of
order.amount.value * order.amount.quantity. Refer to total_amount description for explanation of offset and value fieldsThe following fields are part of the
subtotal object:offset integer100 for INR
value integer |
taxobject |
Required.
The tax information for this order which contains the following fields:
offset integer100 for INR
value integerdescription string |
shippingobject |
Optional.
The shipping cost of the order. The object contains the following fields:
offset integer100 for INR
value integerdescription string |
discountobject |
Optional.
The discount for the order. The object contains the following fields:
offset integer100 for INR
value integerdescription stringdiscount_program_name string |
catalog_idobject |
Optional.
Unique identifier of the Facebook catalog being used by the business.
If you do not provide this field, you must provide the following fields inside the items object: country_of_origin, importer_name, and importer_address |
expirationobject |
Optional.
Expiration for that order. Business must define the following fields inside this object:
timestamp string – UTC timestamp in seconds of time when order should expire. Minimum threshold is 300 secondsdescription string – Text explanation for expiration. Max character limit is 120 characters |
Item Image Object
| Object | Description |
|---|---|
link string |
Required. A link to the image that will be shown to the user. Must be an image/jpeg or image/png and 8-bit, RGB or RGBA. Follows same requirements as image in media |
The
parameters value is a stringified JSON object.By the end, the interactive object should look something like this for a catalog-based integration:
The
parameters value is a stringified JSON object.For a non-catalog based integration i.e. when catalog-id is not present, an example payload looks as follows:
Step 3: Add Common Message Parameters
Once the interactive object is complete, append the other parameters that make a message:
recipient_type, to, and type. Remember to set the type to interactive.These are parameters common to all message types.
Step 4:Make a POST Call to Messages Endpoint
Make a POST call to the
/[PHONE_NUMBER_ID]/messages endpoint with the JSON object you have assembled. If your message is sent successfully, you get the following response:Errors
WhatsApp Payments Terms of Service Acceptance Pending
If you see the following error, accept the WhatsApp Payments terms of service using the link provided in the error message before trying again.
For all other errors that can be returned and guidance on how to handle them, see WhatsApp Cloud API, Error Codes.
Step 5: Consumer Pays for the Order
Consumers can pay using WhatsApp payment method or using any UPI supported app that is installed on the device.
Step 6: Get Notified About Transaction Status Updates from payment gateway
Businesses receive updates to the invoice via payment gateway webhooks, when the status of the user-initiated transaction changes. The unique identifier reference-id passed in
order_details message can be used to map the transaction to the consumer invoice or interactive order details message.Step 7: Update order status
Upon receiving transaction signals from payment gateway through webhook, the business must update the order status to keep the user up to date. Currently we support the following order status values:

| Value | Description |
|---|---|
pending |
User has not successfully paid yet |
processing |
User payment authorized, merchant/partner is fulfilling the order, performing service, etc. |
partially-shipped |
A portion of the products in the order have been shipped by the merchant |
shipped |
All the products in the order have been shipped by the merchant |
completed |
The order is completed and no further action is expected from the user or the partner/merchant |
canceled |
The partner/merchant would like to cancel the order_details message for the order/invoice. The status update will fail if there is already a successful or pending payment for this order_details message |
Typically businesses update the
order_status using either the WhatsApp payment status change notifications or their own internal processes. To update order_status, the partner sends an order_status message to the user.The following table describes the returned values:
| Value | Description |
|---|---|
reference_id |
The ID provided by the partner in the order_details message |
status |
The new order status |
description |
Optional text for sharing status related information in order_details. Could be useful while sending cancellation. Max character limit is 120 characters |
Merchant should always post this order-status message to consumer after receiving transaction updates for an order. As the order_details message and order details screen experience is tied to to the order status updates.
Step 8: Reconcile Payments
Businesses should use their bank statements to reconcile the payments using the
reference_id provided in the order_details messages.Checklist for Integrated Merchants
Ensure that
order_status message is send to consumer informing them about updates to an order after receiving transaction updates for an order.Ensure the merchant is verified and WABA contact is marked with a verified check.
Verify the WABA is mapped to appropriate merchant initiated messaging tier(1k, 10k and 100k per day)
Merchant should list the customer support information in the profile screen incase consumer wants to report any issues.
Enhanced Payment Links | Developer Documentation
Enhanced Payment Links
Updated: Dec 12, 2025
Overview
Enhanced Payment Links is a feature that transforms existing payment gateway URLs into rich, native payment experiences within WhatsApp.
It converts existing payment links into an in-app checkout flow - no changes to your payment backend, reconciliation, or callback setup are required. When a supported payment link is sent through a message template, it automatically renders as a structured payment bubble featuring:
This feature significantly improves payment conversion rates by reducing checkout friction and increasing consumer trust.
Superfast Setup: Merchants can independently create the required WhatsApp templates and embed payment links from supported payment gateways - no BSP involvement is needed.
This feature is not publicly available yet. To request access, please reach out to your BSP or Meta representative with your WABA ID, sample payment link, and preferred Payment Gateway (Razorpay, PayU, or Cashfree).
User Experience
On supported WhatsApp versions, the payment link renders as an enhanced bubble:

Prerequisites
Enhanced Payment Links is an experience that works with both existing BSP APIs and WhatsApp Business Cloud API. Neither BSPs nor merchants need to make any backend, API, reconciliation, or callback changes to enable this feature. Your existing payment gateway integration remains completely unchanged.
To use Enhanced Payment Links:
| Requirement | Description |
|---|---|
|
Allowlisted WABA |
Your WABA ID must be enabled for Enhanced Payment Links. Submit a request to your BSP or Meta representative with your WABA ID, preferred payment gateway(s), and sample payment links for validation. |
|
Supported Payment Gateway |
An active account with Razorpay, PayU, or Cashfree |
|
Compliant Template |
A message template configured with no header and a dynamic URL button (see Template Requirements) |
Supported Payment Gateways
| Payment Gateway | Status |
|---|---|
|
Razorpay |
✅ Supported |
|
PayU |
✅ Supported |
|
Cashfree |
✅ Supported |
Integration Flow
The following diagram illustrates the end-to-end flow, from sending an Enhanced Payment Link to payment completion and callbacks:

Steps:
https://rzp.io/i/abc123XYZ).Send template message - Your server sends a template message via the Cloud API or your BSP, embedding the dynamic portion of the payment link (the suffix) in the button component.Message delivered on WhatsApp - The consumer receives an enhanced payment bubble with the amount, currency, and a “Pay Now” button for in-app checkout.Consumer completes payment - The consumer taps “Pay Now” and pays via UPI apps, cards, net banking, or wallets within WhatsApp.Payment gateway sends callback to merchant - Your existing webhook endpoint receives the payment status callback with the same payload format as before. No changes to your webhook URL, payload handling, or reconciliation logic are needed.WhatsApp updates the payment card - The payment card automatically reflects the payment status (success, or expiry) and disables the “Pay Now” button to prevent duplicate payments. This happens independently and requires no merchant action.
Template Requirements
Enhanced Payment Link templates must follow these constraints:
| Component | Requirement |
|---|---|
|
Header |
None — templates must not include a media header (image, video, or document) |
|
Button |
Exactly one dynamic URL button with a supported PG link prefix |
Merchants can independently create these templates without involving their BSP. Templates can be created using any one of the following methods:
Example Template Configuration
Your business can enable customers to pay using their favorite UPI apps or other payment methods accepted by supporting Payment Gateways without leaving WhatsApp.
Body:"Hi 1, reminder to pay for your insurance renewal #2. Amount: ₹3"Button:-Type of Action:"Visit website"-ButtonText:"Pay Now"- URL Type:Dynamic-Website URL: https://pg.io/i/Important: The button URL must be configured as dynamic to pass the payment link at send time.
Dynamic URL Prefix Configuration
When creating your template, the dynamic URL button requires a URL prefix that matches your payment gateway’s domain. Use one of the following prefixes based on your PG:
Razorpay
| URL Prefix |
|---|
https://rzp.io/rzp/ |
https://rzp.io/i/ |
PayU
| URL Prefix |
|---|
https://pmny.in/PAYUMN/ |
https://api.payu.in/ |
https://u.payu.in/PAYUMN/ |
Cashfree
| URL Prefix |
|---|
https://payments.cashfree.com/links |
https://payments.cashfree.com/link/ |
https://cfre.in/CSHFRE/ |
Note: The URL prefix you configure in your template must match the format of payment links generated by your PG. When sending the message, pass only the dynamic portion (e.g., the link ID) in the button parameter.
Payment Link Requirements
| Requirement | Details |
|---|---|
|
Environment |
Must be from production environment (not sandbox/test mode) |
|
Status |
Link must be active and not expired |
|
Gateway |
Must be from a supported PG (see Supported Payment Gateways) |
|
URL Format |
Must match one of the supported URL prefixes for your PG |
Using wrapped or redirected payment links? Enhanced Payment Links requires direct payment gateway URLs that match the supported URL prefixes. If your implementation wraps payment gateway links under your own domain (e.g.,
yourdomain.com/pay/...) or redirects to the payment gateway from a hosted page, the enhanced experience will not render automatically. In such cases, you will need to update your workflow to pass the direct payment gateway link in the template button instead of your wrapped or redirected URL.Generating Payment Links
Refer to your payment gateway’s documentation:
Payment Reconciliation and Callbacks
Enhanced Payment Links does not modify your existing payment processing or backend infrastructure. This means:
| Aspect | Impact |
|---|---|
|
Payment callbacks/webhooks |
No change. Your existing webhook endpoints and callback flows from your payment gateway continue to work as-is. |
|
Reconciliation |
No change. Reconciliation remains the same as configured on your payment gateway (Razorpay, PayU, or Cashfree). |
|
Settlement |
No change. Settlement flows and timelines are unaffected. |
No backend integration changes are required to adopt Enhanced Payment Links.
Reporting
Reporting for Enhanced Payment Links is split across two sources:
| Metric | Source | Details |
|---|---|---|
|
Link clicks |
WhatsApp |
Click metrics on payment gateway links are available from WhatsApp analytics. |
|
Payment status, success/failure rates, refunds, settlements |
Payment gateway |
All payment-level reporting remains on your payment gateway (Razorpay, PayU, or Cashfree). Use your existing dashboards and reports. |
No additional reporting setup is required. WhatsApp provides visibility into link engagement, while your payment gateway continues to be the source of truth for all payment and transaction metrics.
Best Practices
| Practice | Details |
|---|---|
|
Use production links |
Sandbox/test links will not render enhanced bubbles |
|
Set reasonable expiry |
24-48 hours balances conversion and security |
|
Include context |
Add amount and order details in the message body |
|
One button only |
Multiple buttons are not supported |
|
Match URL prefix |
Ensure template URL prefix matches your PG’s link format |
Limitations
Troubleshooting
Payment link not rendering as enhanced bubble
| Check | Action |
|---|---|
|
WABA allowlisted? |
Confirm with your BSP or Meta representative |
|
Supported PG? |
Must be Razorpay, PayU, or Cashfree |
|
URL prefix correct? |
Template URL prefix must match your PG’s supported formats |
|
Link active? |
Verify link hasn’t expired |
|
Template compliant? |
No header, single dynamic URL button |
Note: If your template gets miscategorized, you can appeal the assigned category. See the Template Categorization Guide for details on the appeal process. To avoid categorization uncertainty altogether, consider using a Utility Template from the template library, this ensures correct categorization and provides guidance on template content structure.
Getting Help
Send order details template message | Developer Documentation
Send order details template message
Updated: Oct 31, 2025
Overview
Order details message template is a template with interactive components that extends the call-to-action button to support sending order details and provides a richer experience compared to templates with only text components.
Once your Order details message templates have been created and approved, you can use the approved template to send the template message with order or bill information to prompt them to make a payment.
Before sending an order details template message, businesses need to create a template with an “open order details” call-to-action button. See Create Message Templates for Your WhatsApp Business Account for more information on prerequisites and how to create a template.
Creating an order details template on WhatsApp Manager
To create an order details template, business needs a business portfolio with a WhatsApp Business Account.
In WhatsApp Manager > Account tools:
Click on create templateSelect Utility category to expand Order details message optionEnter the desired template name and supported locale Depending on the number of locales selected there will be an equal number of template variants and businesses need to fill in the template details in respective locale.Please fill in template components such as Header, Body and optional footer text and submit.Once submitted, templates will be categorized as per the guidelines and undergo the approval process refrain from having marketing content as part of template components.The template will be approved or rejected after the template components are verified by the system. If business believe the category determined is not consistent with our template category guidelines, please confirm there are no common issues that leads to rejections and if you are looking for further clarification you may request a review of the template via Business SupportOnce approved template status will be changed to ACTIVE Please be informed that template’s status can change automatically from ACTIVE to PAUSED or DISABLED based on customer feedback and engagement. We recommend that you monitor status changes and take appropriate actions whenever such change occurs.

Sending order details template message
Order details template message allows the businesses to send invoice(order_details) message as predefined
Open order details call-to-action button component parameters. It supports businesses to send all payment integration (such as UPI Intent, Payment Gateway or Payment Links) integration as button parameters.To send an order details template message, make a
POST call to /PHONE_NUMBER_ID/messages endpoint and attach a message object with type=template. Then, add a template object with a predefined Open order details call-to-action button.For example following sample describes how to send UPI Intent in order details template message parameters to prompt the consumer to make a payment.
The below example shows an example payload with
upi as the payment type. For other variants of the payment_settings block (for example, for the type payment_gateway type), refer to this document.Once the order details template message is delivered, a successful response will include an object with an identifier prefixed with wamid. Use the ID listed after wamid to track your message status.
Post order details template message flow
After the order details template message delivery the rest of the payment flow is the same as “Sending invoice in customer session window” and depends on the chosen payment integration order details parameters. For more details refer UPI Intent, Payment Gateway and Payment Links post payments flows.
Send order status template message | Developer Documentation
Send order status template message
Updated: Nov 14, 2025
Overview
An Order status template is a template with interactive components that extends the call-to-action button to support updating order status through a template. It allows the businesses to update the order status outside of the customer session window in use cases such as charging the card for past order and updating about a shipment on order placed in the past.
Upon receiving the payment signals, the businesses must update the order status to keep the user up to date. Currently we support the following order status values

| Value | Description |
|---|---|
pending |
User has not successfully paid yet |
processing |
User payment authorized, merchant/partner is fulfilling the order, performing service, etc. |
partially-shipped |
A portion of the products in the order have been shipped by the merchant |
shipped |
All the products in the order have been shipped by the merchant |
completed |
The order is completed and no further action is expected from the user or the partner/merchant |
canceled |
The partner/merchant would like to cancel the order_details message for the order/invoice. The status update will fail if there is already a successful or pending payment for this order_details message |
Creating an order status template
To create an order status template, the business needs a business portfolio with a WhatsApp Business Account, and access to the WhatsApp Manager.
In WhatsApp Manager > Account tools:
Click on create templateSelect Utility category to expand Order details message optionEnter the desired template name and supported locale Depending on the number of locales selected there will be an equal number of template variants and businesses need to fill in the template details in respective locale.Please fill in template components such as Body and optional footer text and submit.Once submitted, templates will be categorized as per the guidelines and undergo the approval process refrain from having marketing content as part of template components.The template will be approved or rejected after the template components are verified by the system. If business believe the category determined is not consistent with our template category guidelines, please confirm there are no common issues that leads to rejections and if you are looking for further clarification you may request a review of the template via Business Support?Once approved template status will be changed to ACTIVE Please be informed that template's status can change automatically from ACTIVE to PAUSED or DISABLED based on customer feedback and engagement. We recommend that you monitor status changes and take appropriate actions whenever such change occurs.

Sending order status template message
Order status template message allows the businesses to send update on the status of the order as template component parameters.
To send an order status template message, make a
POST call to /<PHONE_NUMBER_ID>/messages endpoint and attach a message object with type=template. Then, add a template object with a order_status component and parameters with latest status on order with order reference-id.For example, the following sample describes how to send
shipped status on the placed order.Upon sending an
order_status message with an invalid transition, you will receive an error webhook with the error code 2046 and message New order status was not correctly transitioned.Canceling an order
An order can be canceled by sending an
order_status message with the status canceled. The customer cannot pay for an order that is canceled. The customer receives an order_status message and the order details page is updated to show that the order is canceled and the Continue button removed. The optional text shown below Order canceled on the order details page can be specified using the description field in the order_status message.An order can be canceled only if the user has not already paid for the order. If the user has paid and the business sends a order_status message with canceled status will receive an error webhook with error code
2047 and message Could not change order status to 'canceled'.Checkout button templates | Developer Documentation
Payments API - Brazil | Developer Documentation
Payments API - Brazil
Updated: Nov 14, 2025
Payments API enable businesses to accept payments from their customers via WhatsApp. Businesses send
order_details messages (Orders API) to their customers, then get notified about payment status updates via webhook notifications.Based on the selected use case, businesses can collect payment from the customers using one of the following integrations:
How It Works
First, the business composes and sends an
order_details message, which is a new type of interactive message. It contains the same 4 main components: header, body, footer, and action. Inside the action component, the business includes all the information needed for the customer to complete their payment.Each
order_details message must contain a unique reference_id provided by the business. This reference id is used throughout the flow to track the order.Once the message is sent, the business waits for a payment or transaction status update. The type of the update depends on the integration type (e.g.: Pix, Payment Links, etc.). WhatsApp does NOT support payment reconciliations. The business must reconcile the payment with their payment service provider (PSP) using the
reference_id of the order.Purchase Flow in App
In the WhatsApp customer app, the purchase flow has the following steps:
order_details message to the buyer.Buyers pay the order. For Pix, they will switch to their bank app and use the Pix Copy and Paste functionality. For Payment Links, the payment/checkout link opens in the web browser, and they complete the payment there.Businesses send an order_status message indicating that the order is now processing.Orders | Developer Documentation
Orders
Updated: Mar 25, 2026
Payments API introduces two new types of interactive messages:
order_details and order_status. They are the entrypoint to collect payment in WhatsApp.order_details messages are sent to create an order in the buyer’s WhatsApp client app. This message includes the payment settings used to collect payment and can optionally include an order object with itemized products, fees, and discounts. Without the order object, you can send a simplified order details message with just the total amount and payment settings. The payment settings will vary depending on the integration type (Pix, payment links, Boleto, One Click Payments).order_status messages are sent when businesses update the order status either based on the WhatsApp payment status change notification or based on their internal processes. You can also send a simplified status update without the order object.

When attached to an order details message, orders start in
pending status. When the merchant has fully fulfilled the order and the buyer should not expect any further updates, it must be marked as completed.Full API Reference
Order Details
To send an order_details message, businesses must assemble an interactive object of type order_details with the following components:
Interactive Object
| Field Name | Optional? | Type | Description |
|---|---|---|---|
|
type |
Required |
String |
Must be order_details. |
|
header |
Optional |
Object |
Thumbnail image for order details message. It has the following fields:
type: Must be image.image: See Image Object.
If the header is not present, the API finds the first product with an image and uses that for the thumbnail image. |
|
body |
Required |
Object |
An object with the body of the message. The object contains the following field:
text string: The content of the message. Emojis and markdown are supported. Maximum length is 1024 characters. |
|
footer |
Optional |
Object |
An object with the footer of the message. The object contains the following field:
text string: Required if footer is present. The footer content. Emojis, markdown, and links are supported. Maximum length is 60 characters. |
|
action |
Required |
Action Object |
See Action Object below. |
Image Object
| Field Name | Optional? | Type | Description |
|---|---|---|---|
|
link |
Required |
String |
Url of the image. |
|
provider |
Optional |
String |
Name of the url provider. |
Action Object
| Field Name | Optional? | Type | Description |
|---|---|---|---|
|
name |
Required |
String |
Must be review_and_pay. |
|
parameters |
Required |
Parameters Object |
See Parameters Object. |
Parameters Object
| Field Name | Optional? | Type | Description |
|---|---|---|---|
|
reference_id |
Required |
String |
Unique identifier for the order or invoice provided by the business. This cannot be an empty string and can only contain English letters, numbers, underscores, dashes, or dots, and should not exceed 60 characters.
The reference_id must be unique for each order_details message for the same business. If the partner would like to send multiple order_details messages for the same order, invoice, etc. it is recommended to include a sequence number in the reference_id to ensure reference_id uniqueness. |
|
type |
Required |
String |
Must be one of digital-goods or physical-goods. |
|
payment_type |
Required |
String |
Must be br. |
|
payment_settings |
Optional |
List of payment related configuration objects. | |
|
currency |
Required |
String |
ISO 4217 currency code for the order. Must be BRL (Brazilian Real). |
|
total_amount |
Required |
Amount Object |
See Amount Object.
total_amount.value must be equal to order.subtotal.value + order.tax.value + order.shipping.value - order.discount.value |
|
order |
Optional |
Order Object |
See Order Object. |
Payment Settings
| Field Name | Optional? | Type | Description |
|---|---|---|---|
type |
Required |
String |
One of pix_dynamic_code, payment_link, boleto. |
|
One of the following objects: pix_dynamic_code, payment_link, boleto. |
Required |
Object |
Payment instructions which will be displayed to buyers during the checkout process. |
Order Object
| Field Name | Optional? | Type | Description |
|---|---|---|---|
|
status |
Required |
String |
Status of the order. Only supported value here is pending. |
|
catalog_id |
Optional |
String |
Unique identifier of the Facebook catalog being used by the business. |
|
expiration |
Optional |
Expiration Object |
Expiration for that order. The CTA for payment will be disabled after expiry on the user end. See Expiration Object. |
|
items |
Required |
List of Item Objects |
List must have at least one item. See Item Object. |
|
subtotal |
Required |
Amount Object |
See Amount Object.
The value must be equal to sum of ( item.amount.value or item.sale_amount.value) * item.quantity.The following fields are part of the
subtotal object:offset string100 for BRL.
value string |
|
tax |
Required |
Amount With Description Object |
The tax information for this order. Even though the object is required, the amount can be zero. When zero is used, the tax line is not rendered in the client. See Amount With Description Object. |
|
shipping |
Optional |
Amount With Description Object |
See Amount Object. |
|
discount |
Optional |
Discount Object |
The discount for the order. See Discount object. |
Expiration Object
| Field Name | Optional? | Type | Description |
|---|---|---|---|
|
timestamp |
Required |
String |
UTC time in seconds. Minimum threshold is 300 seconds. |
|
description |
Required |
String |
Text explanation for when the order will expire. Max character limit is 120 characters. |
Item Object
| Field Name | Optional? | Type | Description |
|---|---|---|---|
|
retailer_id |
Required |
String |
Content ID for an item in the order from your catalog. |
|
name |
Required |
String |
The item’s name to be displayed to the user. Cannot exceed 60 characters. |
|
amount |
Required |
Amount Object |
The price per item. See Amount Object. |
|
quantity |
Required |
Integer |
Number of items in this order. |
|
sale_amount |
Optional |
Amount Object |
The discounted price per item. This should be less than the original amount. If included, this field is used to calculate the subtotal amount. See Amount Object. |
Discount Object
| Field Name | Optional? | Type | Description |
|---|---|---|---|
|
value |
Required |
Integer |
Positive integer representing the amount value multiplied by offset. For example, 12.34 BRL has value 1234. |
|
offset |
Required |
Integer |
Must be 100 for BRL. |
|
description |
Optional |
String |
Max character limit is 60 characters. |
|
discount_program_name |
Optional |
String |
Text used for defining incentivised orders. If order is incentivised, the merchant needs to define this information. Max character limit is 60 characters. |
Amount Object
| Field Name | Optional? | Type | Description |
|---|---|---|---|
|
value |
Required |
Integer |
Positive integer representing the amount value multiplied by offset. For example, 12.34 BRL has value 1234. |
|
offset |
Required |
Integer |
Must be 100 for BRL. |
Amount Object (With Description)
| Field Name | Optional? | Type | Description |
|---|---|---|---|
|
value |
Required |
Integer |
Positive integer representing the amount value multiplied by offset. For example, 12.34 BRL has value 1234. |
|
offset |
Required |
Integer |
Must be 100 for BRL. |
|
description |
Optional |
String |
Max character limit is 60 characters. |
Order Status
To send an order_status message, businesses must assemble an interactive object of type order_status with the following components:
Interactive Object
| Field Name | Optional? | Type | Description |
|---|---|---|---|
|
type |
Required |
String |
Must be order_status. |
|
header |
Optional |
Object |
Optional object for the message’s header for the message. |
|
body |
Required |
Object |
An object with the body of the message. The object contains the following field:
text string: The content of the message. Emojis and markdown are supported. Maximum length is 1024 characters. |
|
footer |
Optional |
Object |
An object with the footer of the message. The object contains the following field:
text string: Required if footer is present. The footer content. Emojis, markdown, and links are supported. Maximum length is 60 characters. |
|
action |
Required |
Action Object |
See Action Object below. |
Action Object
| Field Name | Optional? | Type | Description |
|---|---|---|---|
|
name |
Required |
String |
Must be review_order. |
|
parameters |
Required |
Parameters Object |
See Parameters Object. |
Parameters Object
| Field Name | Optional? | Type | Description |
|---|---|---|---|
|
reference_id |
Required |
String |
The unique ID provided in the order_details message. |
|
order |
Optional |
Order Object |
See Order Object. |
|
payment |
Optional |
Payment Object |
See Payment Object. |
Order Object
| Field Name | Optional? | Type | Description |
|---|---|---|---|
|
status |
Required |
String |
The new order status. See supported order status. |
|
description |
Optional |
String |
Optional text for sharing status related information in order-details page. Could be useful while sending cancellation. Length should not exceed 120 characters. |
Payment Object
| Field Name | Optional? | Type | Description |
|---|---|---|---|
|
status |
Required |
String |
The new payment status. See supported payment status. |
|
timestamp |
Optional |
Integer |
Optional epoch timestamp in seconds |
Supported Order Status
Currently we support the following order status values:
| Value | Description |
|---|---|
pending |
Order is pending / not processed yet. |
processing |
Merchant/partner is fulfilling the order, performing service, etc. |
partially-shipped |
Part of the products in order have been shipped by the merchant. |
shipped |
All the products in order have been shipped by the merchant. |
completed |
The order is completed and no further action is expected from the user or the partner/merchant. |
canceled |
The partner/merchant would like to cancel the order_details message for the order/invoice. The status update will fail if there is already a successful or pending payment for this order_details message. |
Supported Payment Status
Currently we support the following payment status values:
| Value | Description |
|---|---|
pending |
Payment is pending. |
captured |
Payment was successfully captured. Receiving this payment status will update the order bubble to include the “paid” label (with green checkmark). |
failed |
Payment failed. |
Errors and Statuses
These are the relevant errors for the WhatsApp Payments API:
| Error Code | Description |
|---|---|
2040 - Message is not supported |
The message you are trying to send cannot be received by this user |
2046 - Order status invalid transition |
The order status cannot be updated from the existing value to the new one |
2047 - Order cancellation failure |
The order could not be cancelled |
For a comprehensive list with detailed descriptions of error codes and HTTP status codes, please refer to our Error Codes document.
Offsite Pix payments | Developer Documentation
Offsite Pix payments
Updated: Nov 14, 2025
Payments API also enables businesses to collect payments from their customers via WhatsApp using dynamic Pix codes.
When using this integration, WhatsApp only facilitates the communication between merchants and buyers. Merchants are responsible for integrating with a bank or PSP in order to generate dynamic Pix codes, and confirm their payment.
Before you start
Payment links | Developer Documentation
Payment links
Updated: Nov 14, 2025
Payments API also enables businesses to collect payments from their customers via WhatsApp using Payment Links.
When using this integration, WhatsApp only facilitates the communication between merchants and buyers. Merchants are responsible for integrating with a PSP from which they can generate Payment Links, and confirm their payment.
Before You Start
Boleto | Developer Documentation
Boleto
Updated: Nov 14, 2025
Payments API also enables businesses to collect payments from their customers via WhatsApp using Boleto.
When using this integration, WhatsApp only facilitates the communication between merchants and buyers. Merchants are responsible for integrating with a PSP from which they can generate Boleto codes, and confirm their payment.
Before you start
One-Click Payments | Developer Documentation
One-Click Payments
Updated: Nov 14, 2025
This feature is not publicly available yet and is only available for businesses based in Brazil and their Brazilian customers. To enable payments for your businesses, please contact your Solution Partner.
Payments API also enables businesses to collect payments from their customers via WhatsApp using One-Click Payments.
When using this integration, WhatsApp facilitates communication between merchants and buyers. Merchants are responsible for storing payment credentials and integrating with a payment service provider (PSP) to submit these credentials, completing and confirming their payments.
Before you start
Send order details template message | Developer Documentation
Send order details template message
Updated: Nov 4, 2025
Overview
Order details message template is a template with interactive components that extends the call-to-action button to support sending order details and provides a richer experience compared to templates with only text components.
Once your Order details message templates have been created and approved, you can use the approved template to send the template message with order or bill information to prompt customers to make a payment.
Before sending an order details template message, businesses need to create a template with an “order details” call-to-action button. See Create Message Templates for Your WhatsApp Business Account for more information on prerequisites and how to create a template.
Creating an order details template on WhatsApp Manager
To create an order details template, business needs a business portfolio with a WhatsApp Business Account.
In WhatsApp Manager > Account tools:
Click on create templateSelect Utility or Marketing category to see the Order details template format option.Select Order details template format, and click NextEnter the desired template name and supported locale Depending on the number of locales selected there will be an equal number of template variants and businesses need to fill in the template details in respective locale.Fill in template components such as Header, Body and optional footer text. For the Header, you can choose one of three media types: Text, Image or Document. Choose Document if you want to send PDF files in the header of this template.Click submit.Once submitted, templates will be categorized as per the guidelines and undergo the approval process.The template will be approved or rejected after the template components are verified by the system. If business believe the category determined is not consistent with our template category guidelines, please confirm there are no common issues that leads to rejections and if you are looking for further clarification you may request a review of the template via Business SupportOnce approved template status will be changed to ACTIVE Please be informed that template’s status can change automatically from ACTIVE to PAUSED or DISABLED based on customer feedback and engagement. We recommend that you monitor status changes and take appropriate actions whenever such change occurs.
Sending order details template message
Order details template message allows the businesses to send invoice (order_details) message as predefined
order details call-to-action button component parameters. It supports businesses to send all payment integration (such as Dynamic Pix code, Payment Links, Boleto, etc) integration as button parameters.To send an order details template message, make a
POST call to /PHONE_NUMBER_ID/messages endpoint and attach a message object with type=template. Then, add a template object with a predefined order details call-to-action button.You can optionally include a PDF file as attachment in the
header component of the template message. To do so, you use type=document in the parameter object of the header component object, as described in our Components document.For example following sample describes how to send Copy Pix code in order details template message parameters to prompt the consumer to make a payment.
Post order details template message flow
After the order details template message delivery the rest of the payment flow is the same as “Sending invoice in customer session window” and depends on the chosen payment integration order details parameters.
Receive UPI Payments Through WhatsApp | Developer Documentation
Receive UPI Payments Through WhatsApp
Updated: Nov 14, 2025
This is NOT the recommended UPI Intent integration. Migrate to dynamic VPA. With dynamic VPA, you can rotate VPAs on UPI intents without requiring any configuration changes on your end - simplifying integration and ongoing maintenance.
Your business can enable customers to pay for their orders using all the UPI Apps installed on their devices via WhatsApp. Businesses can send customers invoice(
order_details) messages, then get notified about payment status updates via webhook notifications from Payment Gateway.Overview
Currently, customers browse business catalogs, add products to cart, and send orders in with our set of commerce messaging solutions, which includes Single Product Message, Multi Product Message, and Product Detail Page.
With the WhatsApp Payments API, businesses can send customers a bill so the customer can complete their order with all the UPI Apps.
How It Works
The business must send an
order_details message for the consumer to initiate payment. This type of message is a new type of interactive message, which always contains the same 4 main components: header, body, footer, and action. Inside the action component, the business includes all the information needed for the customer to complete their payment.Each
order_details message contains a unique reference_id provided by the business, and that unique number is used throughout the flow to track the order. This reference_id is fetched from UPI intent link(tr value from the UPI payment intent) generated for a business order from Payment Gateway.Once the message is sent, the business waits for a payment or transaction status updates directly from Payment Gateway. Upon receiving payment signal for an order, Business should relay this payment signal to consumer through interactive order status(
order_status) message.Updating user about the payment signal is important as this message updates the order details message and order details view for the consumer reflecting the order confirmation from merchant. This is shown with an example in subsequent sections.
Purchase Flow in App
In the WhatsApp customer app, the purchase flow has the following steps:
Customer sends an order with selected products to the business or Business identifies the products that the customer has shown interest to purchase.
After receiving the order/identifying the product, if a merchant accepts payment methods other than UPI, such as credit cards and payment wallets, then merchant will send a message to the user to get their preferred payment method for the order.

When consumers want to pay using UPI payment method, then merchants should retrieve the UPI payment intent by calling Payment Gateway. Merchant needs to use UPI intent to construct order details messages and send it to the consumer.


When the consumer taps the Pay now/continue button, they will be given the option to choose UPI payment Apps - WhatsApp or any other UPI payments apps. Consumers may choose any UPI option to pay for the order.


Consumer pays for the order and the payment method is saved for the future and automatically selected for the next payment transaction. Also, one quick note is the order details screen order-status will continue to show “Order pending” until merchant sends order status interactive message.


Once the payment is complete, the business receives a notification from Payment Gateway and the merchant needs to send order status updates to the consumer client notifying consumers about the progress to the order, this will update the order details message CTAs and order details screen - order status description.



Before You Start
To receive UPI payments on WhatsApp merchants have to set up their VPA on WhatsApp Business Manager using the direct payment methods option.
Each configuration must have a unique name, merchant categorization code (mcc), purpose code, and VPA handles as shown below. A business can have multiple payment configurations, but for each order merchant must specify a specific configuration to be used for payment. See
payment_configuration field in order_details message.name for each payment type must be unique. name will be used to reference the specific configurations for each payment type. If WA is unable to find a payment configuration name, the user will not be able to make the payment upon receiving the order_details message. mcc refers to a merchant categorization code for the items in the order. upi_pc refers to the purpose of the transaction. Some sample codes are below:| Code | Title |
|---|---|
|
00 |
Default |
|
01 |
SEMI |
|
02 |
AMC |
|
03 |
Travel |
|
04 |
Hospitality |
|
05 |
Hospital |
|
06 |
Telecom |
|
07 |
Insurance |
|
08 |
Education |
|
09 |
Gifting |
|
10 |
Others |
If merchant/partner is not sure of the MCC and purpose code, then they may contact Payment Gateway to get this information as Payment Gateway sets up these values based on the type of business while generating business VPAs.
Manage Your Payment Methods (Beta Feature)
Self-service Payment Configuration allows you to add multiple payment configurations to your WhatsApp Manager profile. Each payment configuration will have its own UPI handle(VPA), MCC, and purpose code (for physical goods) so that merchants can accept payments for different categories with different UPI accounts. After setup, merchant can send invoice(
order_details) messages to users with the corresponding payment configuration to collect payments.Pre-requisites
Manage Payment Methods feature is in Beta, so please contact Business Engineering team to allow merchants/partners access the page in WhatsApp Business Manager portal.
Steps to link Payment Configuration for a Business Service Provider
You can create a payment configuration for a WhatsApp Business Account using the ‘Payment configurations’ page and under ‘India’ in WhatsApp Business Manager.
After linking your payment configuration, you must integrate with the Payments APIs below. This will allow you to send an
order_details message to customers with the payment configuration to receive payments.Steps to unlink Payment Configuration
Note: Make sure no new order messages requesting payment from consumer are sent with the payment config your are trying to remove before you perform the unlink action.
Integration Steps
The steps outlined below assume that the business is about to send order details message to consumer client.
The following sequence diagram demonstrates the typical integration flow for WA Payments API: 

Step 1: Get UPI Intent from Payment Gateway
Once the consumer has expressed their interest to purchase an item using UPI payment method. Merchant needs to call payment gateway to create a UPI intent, the following is the sample UPI intent link:
upi://pay?pa=cfsukoonaa@yesbank&pn=Sukoon&tr=877376394&
am=10.00&cu=INR&mode=00&purpose=00&mc=5399&tn=877376394
Merchant needs to parse the
tr value from the above URI and use this as the reference id in invoice(order_details) interactive message.Step 2: Assemble the Interactive Object
To send an
order_details message, businesses must assemble an interactive object of type order_details with the following components:| Object | Description |
|---|---|
typeobject |
Required.
Must be “order_details”. |
headerobject |
Optional.
Header content displayed on top of a message. If a header is not provided, the API uses an image of the first available product as the header |
bodyobject |
Required.
An object with the body of the message. The object contains the following field:
text stringbody is present. The content of the message. Emojis and markdown are supported. Maximum length is 1024 characters |
footerobject |
Optional.
An object with the footer of the message. The object contains the following fields:
text stringfooter is present. The footer content. Emojis, markdown, and links are supported. Maximum length is 60 characters |
actionobject |
Required.
An action object you want the user to perform after reading the message. This action object contains the following fields:
name stringparameters object |
Parameters Object
| Object | Description |
|---|---|
reference_idstring |
Required.
Unique identifier for the order or invoice provided by the business. This cannot be an empty string and can only contain English letters, numbers, underscores, dashes, or dots, and should not exceed 35 characters.
The reference_id must be unique for each order_details message for the same business. If the partner would like to send multiple order_details messages for the same order, invoice, etc. it is recommended to include a sequence number in the reference_id (for example, <order-or-invoice-id>-<sequence-number>) to ensure reference_id uniqueness. |
typeobject |
Required.
The type of goods being paid for in this order. Current supported options are digital-goods and physical-goods |
beneficiariesarray |
Required for shipped physical-goods.
An array of beneficiaries for this order. A beneficiary is an intended recipient for shipping the physical goods in the order. It contains the following fields:
Beneficiary information isn’t shown to users but is needed for legal and compliance reasons. name stringaddress_line1 stringaddress_line2 stringcity stringstate stringcountry stringpostal_code string |
payment_type |
Required.
Must be “upi”. |
payment_configuration |
Required.
The name of the pre-configured payment configuration to use for this order and must not exceed 60 characters. |
currency |
Required.
The currency for this order. Currently the only supported value is INR. |
total_amountobject |
Required.
The
total_amount object contains the following fields:offset integer100 for INR.
value integertotal_amount.value must be equal to order.subtotal.value + order.tax.value + order.shipping.value - order.discount.value. |
orderobject |
Required.
See order object for more information. |
Order Object
| Object | Description |
|---|---|
statusstring |
Required.
Only supported value in the
order_details message is pending.In an order_status message, status can be: pending, captured, or failed. |
typestring |
Optional.
Only supported value is quick_pay. When this field is passed in we hide the “Review and Pay” button and only show the “Pay Now” button in the order details bubble. |
itemsobject |
Required.
An object with the list of items for this order, containing the following fields:
retailer_id stringname stringimage objectUsing this image field will limit the items array to a maximum of 10 items and this cannot be used with retailer_id or catalog_id.amount amount object with value and offset -- refer total amount field abovesale_amount amount objectquantity integercountry_of_origin stringcatalog_id is not present. The country of origin of the product
importer_name stringcatalog_id is not present. Name of the importer company
importer_adress stringcatalog_id is not present. Address of importer company |
subtotalobject |
Required.
The value must be equal to
order.amount.value multiplied by order.amount.quantity.Refer to
total_amount description for explanation of offset and value fieldsThe following fields are part of the
subtotal object:offset integer100 for INR
value integer |
taxobject |
Required.
The tax information for this order which contains the following fields:
offset integer100 for INR
value integerdescription string |
shippingobject |
Optional.
The shipping cost of the order. The object contains the following fields:
offset integer100 for INR
value integerdescription string |
discountobject |
Optional.
The discount for the order. The object contains the following fields:
offset integer100 for INR
value integerdescription stringdiscount_program_name string |
catalog_idobject |
Optional.
Unique identifier of the Facebook catalog being used by the business. |
expirationobject |
Optional.
Expiration for that order. Business must define the following fields inside this object:
timestamp string – UTC timestamp in seconds of time when order should expire. Minimum threshold is 300 secondsdescription string – Text explanation for expiration. Max character limit is 120 characters |
Item Image Object
| Object | Description |
|---|---|
link string |
Required. A link to the image that will be shown to the user. Must be an image/jpeg or image/png and 8-bit, RGB or RGBA. Follows same requirements as image in media |
By the end, the interactive object should look something like this for a catalog-based integration:
For a non-catalog based integration i.e. when catalog-id is not present, an example payload looks as follows:
Step 3: Add Common Message Parameters
Once the interactive object is complete, append the other parameters that make a message:
recipient_type, to, and type. Remember to set the type to interactive.These are parameters common to all message types.
Step 4:Make a POST Call to Messages Endpoint
Make a POST call to the
/[PHONE_NUMBER_ID]/messages endpoint with the JSON object you have assembled. If your message is sent successfully, you get the following response:For all errors that can be returned and guidance on how to handle them, see WhatsApp Cloud API, Error Codes.
Step 5: Consumer Pays for the Order
Consumers can pay using WhatsApp payment method or using any UPI supported app that is installed on the device.
Step 6: Get Notified About Transaction Status Updates from payment gateway
Businesses receive updates to the invoice via payment gateway webhooks, when the status of the user-initiated transaction changes. The unique identifier tr(reference-id passed in
order_details message) can be used to map the transaction to the consumer invoice or interactive order details message.Please refer to your PG’s documentation for the exact payment signals. If you are not receiving webhooks from your PG, then work with them to enable it.
Step 7: Update order status
Upon receiving transaction signals from payment gateway through webhook, the business must update the order status to keep the user up to date. Currently we support the following order status values:

| Value | Description |
|---|---|
pending |
User has not successfully paid yet |
processing |
User payment authorized, merchant/partner is fulfilling the order, performing service, etc. |
partially-shipped |
A portion of the products in the order have been shipped by the merchant |
shipped |
All the products in the order have been shipped by the merchant |
completed |
The order is completed and no further action is expected from the user or the partner/merchant |
canceled |
The partner/merchant would like to cancel the order_details message for the order/invoice. The status update will fail if there is already a successful or pending payment for this order_details message |
Typically businesses update the
order_status using either the WhatsApp payment status change notifications or their own internal processes. To update order_status, the partner sends an order_status message to the user.The following table describes the returned values:
| Value | Description |
|---|---|
reference_id |
The ID provided by the partner in the order_details message |
status |
The new order status |
description |
Optional text for sharing status related information in order_details. Could be useful while sending cancellation. Max character limit is 120 characters |
Merchant should always post this order-status message to consumer after receiving transaction updates for an order. As the order_details message and order details screen experience is tied to to the order status updates.
Step 8: Reconcile Payments
Businesses should use their bank statements to reconcile the payments using the
reference_id provided in the order_details messages.Merchant Preferred UPI Payment Method
Now merchants can specify up to
one UPI Payment app to showup in checkout flow. Merchant preferred payment app will be shown on top of the list of available UPI apps in - “Choose payment method” screen. To enable this capability we require partners to specify the external app-id in the Order Details or order-invoice message.Note: This feature is available on consumer apps on and above version: 2.24.21.0
Updates to Order Details Payload
List of supported apps:
| UPI Application | Application ID to be passed in Order Details payload |
|---|---|
|
Google Pay |
gpay |
|
PhonePe |
phonepe |
|
PayTm |
paytm |
|
Amazon Pay |
amazonpay |
|
CRED |
cred |
|
Mobikwik |
mobikwik |
Checklist for Integrated Merchants
Ensure that
order_status message is send to consumer informing them about updates to an order after receiving transaction updates for an order.Ensure the merchant is verified and WABA contact is marked with a verified check.
Verify the WABA is mapped to appropriate merchant initiated messaging tier(1k, 10k and 100k per day)
Merchant should list the customer support information in the profile screen incase consumer wants to report any issues.
Receive payments via payment gateways on WhatsApp | Developer Documentation
Receive payments via payment gateways on WhatsApp
Updated: Dec 12, 2025
Your business can enable customers to pay for their orders through our partner payment gateways without leaving WhatsApp. Businesses can send customers order_details messages, then get notified about payment status updates via webhook notifications.
Overview
Currently, customers browse business catalogs, add products to cart, and send orders with our set of commerce messaging solutions, which includes Single Product Message, Multi Product Message, and Product Detail Page. Now, with the Payments API, businesses can send customers a bill, so the customer can complete their order by paying the business without having to leave WhatsApp.
Our payments solution is currently enabled by BillDesk, Razorpay, PayU and Zaakpay, a third-party payments service provider. You must have a BillDesk, Razorpay, PayU or Zaakpay account in order to receive payments on WhatsApp.
We expect more payment providers to be added in the future.
How it works
First, the business composes and sends an
order_details message. An order_details message is a new type of interactive message, which always contains the same 4 main components: header, body, footer, and action. Inside the action component, the business includes all the information needed for the customer to complete their payment.Each
order_details message contains a unique reference_id provided by the business, and that unique ID is used throughout the flow to track the order.Once the message is sent, the business waits for a payment status update via webhooks. Businesses get notified when the payment status changes, but they must not solely rely on these webhooks notifications due to security reasons. WhatsApp also provides a payment lookup API that can be used to retrieve the payment statuses directly anytime.
Purchase flow in app
In the WhatsApp Messenger App, the purchase flow has the following steps:
Customers send an order with selected products to the business either through simple text messages or using other interactive messages such as Single Product Message, Multi Product Message, and Product Detail.
Once the business receives the order, they send an
order_details message to the user. When the user taps on Review and Pay, they will see details about the order and total amount to be paid.When the user taps the Continue button, they are able to choose to pay natively on WhatsApp or any other UPI app.
Checkout with WhatsApp Pay:
Checkout with WhatsApp Pay:
[image removed - too large for import]
Checkout on other UPI Apps:
[image removed - too large for import]
Once the payment has been confirmed by your payment gateway (PG) or payment service provider, the business can start processing the order.
Businesses can then send an
order_status message to the consumer informing them about the status of the order. Each message will result in a message bubble (as shown below) that refers to the original order details message and also updates the status displayed on the order details page.Link your payment account
To receive payments on WhatsApp, you must add a payment configuration to the corresponding WhatsApp Business Account. A payment configuration allows you to link a payment gateway account to WhatsApp. Each payment configuration is associated with a unique name. As part of the
order_details message, you can specify the payment configuration to use for a specific checkout. WhatsApp will then generate a checkout flow using the associated payment gateway account.[image removed - too large for import]
After linking your payment partner account, you must integrate with the Payments APIs below. This will allow you to send an
order_details message to customers with the payment configuration to receive payments.Steps to unlink Payment Configuration
Note: Make sure no new order messages requesting payment from consumer are sent with the payment config your are trying to remove before you perform the unlink action.
Integration Steps
The steps outlined below assume that the business already knows what the user is interested in through earlier chat threads. The Payments API is a standalone API and hence can work with various messages such as List Messages, Reply Buttons, Single or Multi-Product Messages.
Sequence Diagram
The following sequence diagram demonstrates the typical integration flow for Payments API. The steps highlighted in green are the key integration steps.
[image removed - too large for import]
Step 1: Send Order Details Interactive Message
To send an
order_details message, businesses must assemble an interactive object of type order_details with the following components:| Object | Description |
|---|---|
typeobject |
Required.
Must be “order_details”. |
headerobject |
Optional.
Header content displayed on top of a message. If a header is not provided, the API uses an image of the first available product as the header |
bodyobject |
Required.
An object with the body of the message. The object contains the following field:
text stringbody is present. The content of the message. Emojis and markdown are supported. Maximum length is 1024 characters |
footerobject |
Optional.
An object with the footer of the message. The object contains the following fields:
text stringfooter is present. The footer content. Emojis, markdown, and links are supported. Maximum length is 60 characters |
actionobject |
Required.
An action object you want the user to perform after reading the message. This action object contains the following fields:
name stringparameters object |
Parameters Object
| Object | Description |
|---|---|
reference_idstring |
Required.
Unique identifier for the order or invoice provided by the business. It is case sensitive and cannot be an empty string and can only contain English letters, numbers, underscores, dashes, or dots, and should not exceed 35 characters.
The reference_id must be unique for each order_details message for a given business. If there is a need to send multiple order_details messages for the same order, it is recommended to include a sequence number in the reference_id (for example, “BM345A-12”) to ensure reference_id uniqueness. |
typeobject |
Required.
The type of goods being paid for in this order. Current supported options are digital-goods and physical-goods. |
beneficiariesarray |
Required for shipped physical-goods.
An array of beneficiaries for this order. A beneficiary is an intended recipient for shipping the physical goods in the order. It contains the following fields:
Note: Beneficiary information isn’t shown to users but is needed for legal and compliance reasons.
name stringaddress_line1 stringaddress_line2 stringcity stringstate stringcountry stringpostal_code string |
currency |
Required.
The currency for this order. Currently the only supported value is INR. |
total_amountobject |
Required.
The
total_amount object contains the following fields:offset integer100 for INR.
value integertotal_amount.value must be equal to order.subtotal.value + order.tax.value + order.shipping.value - order.discount.value.UPI transactions are limited to ₹5,00,000. For higher amounts, set enabled_payment_options to ["web"]. See Restrict Available Payment Options. |
payment_settingsobject |
Required.
See Payment Settings object for more information. |
orderobject |
Required.
See order object for more information. |
Payment settings object
| Object | Description |
|---|---|
typestring |
Required.
Must be set to “payment_gateway” |
payment_gatewayobject |
Required.
An object that describes payment account information:
type stringconfiguration_name stringWhen configuration_name is invalid, the customer will be unable to pay for their order. We strongly advise businesses to conduct extensive testing of this setup during the integration phase.billdesk/razorpay/payu/zaakpay objectPlease refer Payment Gateway specific UDF object for more information. |
BillDesk, RazorPay, PayU and Zaakpay fields
We now have support for partners and merchants to pass
notes, receipt and udf fields in Order Details message and receive this data back in payment signals. Here we will take a look at merchants can pass additional_info for BillDesk, notes and receipt fields for Razorpay, udf for PayU, extra for Zaakpay PGs.| Object | Description |
|---|---|
notesobject |
Optional. Only supported for Razorpay payment gateway
The object can be key value pairs with maximum 15 keys and each value limits to 256 characters. |
receiptString |
Optional. Only supported for Razorpay payment gateway
Receipt number that corresponds to this order, set for your internal reference. Maximum length of 40 characters supported with minimum length greater than 0 characters. |
udf1-4String |
Optional. Only supported for PayU payment gateway
User-defined fields (udf) are used to store any information corresponding to a particular order. Each UDF field has a maximum character limit of 255. |
extra1-2String |
Optional. Only supported for Zaakpay payment gateway
User-defined fields (extra) are used to store any information corresponding to a particular order. Each extra field has a maximum character limit of 180. |
additional_info1-7String |
Optional. Only supported for BillDesk payment gateway
User-defined fields (extra) are used to store any information corresponding to a particular order. Each extra field has a maximum character limit of 120. |
Order object
| Object | Description |
|---|---|
statusstring |
Required.
Only supported value in the
order_details message is pending.In an order_status message, status can be: pending, captured, or failed. |
type string |
Optional.
Only supported value is quick_pay. When this field is passed in we hide the “Review and Pay” button and only show the “Pay Now” button in the order details bubble. |
itemsobject |
Required.
An object with the list of items for this order, containing the following fields:
retailer_id stringname stringimage objectUsing this image field will limit the items array to a maximum of 10 items and this cannot be used with retailer_id or catalog_id.amount amount object with value and offset -- refer total amount field abovesale_amount amount objectquantity integercountry_of_origin stringcatalog_id is not present. The country of origin of the product
importer_name stringcatalog_id is not present. Name of the importer company
importer_adress stringcatalog_id is not present. Address of importer company |
subtotalobject |
Required.
The value must be equal to sum of
order.amount.value * order.amount.quantity. Refer to total_amount description for explanation of offset and value fieldsThe following fields are part of the
subtotal object:offset integer100 for INR
value integer |
taxobject |
Required.
The tax information for this order which contains the following fields:
offset integer100 for INR
value integerdescription string |
shippingobject |
Optional.
The shipping cost of the order. The object contains the following fields:
offset integer100 for INR
value integerdescription string |
discountobject |
Optional.
The discount for the order. The object contains the following fields:
offset integer100 for INR
value integerdescription stringdiscount_program_name string |
catalog_idobject |
Optional.
Unique identifier of the Facebook catalog being used by the business.
If you do not provide this field, you must provide the following fields inside the items object: country_of_origin, importer_name, and importer_address |
expirationobject |
Optional.
Expiration for that order. Business must define the following fields inside this object:
timestamp string – UTC timestamp in seconds of time when order should expire. Minimum threshold is 300 secondsdescription string – Text explanation for expiration. Max character limit is 120 characters |
Item Image Object
| Object | Description |
|---|---|
link string |
Required. A link to the image that will be shown to the user. Must be an image/jpeg or image/png and 8-bit, RGB or RGBA. Follows same requirements as image in media |
The
parameters value is a stringified JSON object.By the end, the interactive object should look something like this for a BillDesk catalog-based integration:
The
parameters value is a stringified JSON object.By the end, the interactive object should look something like this for a RazorPay catalog-based integration:
The
parameters value is a stringified JSON object.For a PayU non-catalog based integration i.e. when catalog-id is not present, an example payload looks as follows:
For a Zaakpay non-catalog based integration i.e. when catalog-id is not present, an example payload looks as follows:
Step 2: Add Common Message Parameters
Once the interactive object is complete, append the other parameters that make a message:
recipient_type, to, and type. Remember to set the type to interactive.These are parameters common to all message types.
Step 3:Make a POST Call to Messages Endpoint
Make a POST call to the
/[PHONE_NUMBER_ID]/messages endpoint with the JSON object you have assembled. If your message is sent successfully, you get the following response:For all errors that can be returned and guidance on how to handle them, see WhatsApp Cloud API, Error Codes.
Product Experience
The customer receives an
order_details message similar to the one below (left). When they click on “Review and Pay”, it opens up the order details screen as shown below (middle). Customer can then pay for their order using “Continue” button that opens up a bottom sheet with the payment options (right).[image removed - too large for import]
[image removed - too large for import]
[image removed - too large for import]
Step 4: Receive Webhook about Transaction Status
Businesses receive updates via messages webhooks when the status of the user-initiated transaction changes in a status of type “payment”. It contains the following fields:
| Object | Description |
|---|---|
idstring |
Required.
Webhook ID for the notification. |
recipient_id string |
Required.
WhatsApp ID of the customer. |
typestring |
Required.
For payment status update webhooks, type is “payment”. |
statusstring |
Required.
captured/pending: captured - when the payment is successfully completed, pending when the user attempted but yet to receive success transactions signal |
paymentobject |
Required.
Contains the following field:
reference_id stringUnique reference ID for the order sent in
order_details message. amount objectHas value and offset fields corresponding to total amount that user has paid.
currency stringcurrency is always INR.
transaction object Transaction attempt for this payment. Transaction object contains the following fields:id string Required. The alpha-numeric payment gateway order ID.pg_transaction_id string Optional. The alpha-numeric payment gateway payment ID.type string Required. The payment type for this transactions. Only, billdesk or razorpay or payu or zaakpay are supported.status string Required. The status of the transaction. Can be one of pending or success or failed.created_timestamp integer Required. Time when transaction was created in epoch seconds.updated_timestamp integer Required. Time when transaction was last updated in epoch seconds.method object (Optional. the payment method information might not be available for failed payments)
type string Required. The describes the type of payment method used by consumer to pay for the order. Can be one of upi or card or wallet or netbanking.error object (Optional. the payment error details might not be available for all payments attempts)code string Required. The describes the payment failure reason that is generated by payment gateway and Meta returns this to partners.
reason string Required. The describes the payment failure reason in plain text that is generated by payment gateway and Meta returns this to partners. additional_info1-7 string Optional.Only sent for billdesk payment gateway when the value is sent in order details message. Each of the keys additional_info1-4 has string values in them.
notes object Optional.Only sent for razorpay payment gateway when the value is sent in order details message. This contains key-value pair as passed in the Order Details message.
receipt string Optional.Only sent for razorpay payment gateway when the value is sent in order details message. Only sent for payu payment gateway when the value is sent in order details message. Each of the keys udf1-4 has string values in them.
udf1-4 string Optional.extra1-2 string Optional.refunds array Optional.
The list of refunds for this order. Each refund object contains the following fields: id string Required. The alpha-numeric ID of the refund.amount object Required. The total amount of the refund.speed_processed string Required. Speed by which refund was processed. Can be one of instant or normal.status string Required. The status of the refund. Can be one of pending, success or failed.created_timestamp integer Required. Time when refund was created in epoch seconds.updated_timestamp integer Required. Time when refund was last updated in epoch seconds. |
timestampstring |
Required.
Timestamp for the webhook. |
Here is an example status webhook of type
payment:For more information about other statuses, see Messages Webhooks.
Step 5: Confirm Payment
After receiving the payment status webhook, or at any time, the business can look up the status of the payment for the order. To do that, businesses must make a GET call to the payments endpoint as shown here:
GET <PHONE_NUMBER_ID>/payments/<PAYMENT_CONFIGURATION>/<REFERENCE_ID>
where
payment_configuration and reference_id are same as that sent in the order_details message.Businesses should expect a response in the same HTTP session (not in a webhook notification) that contains the following fields:
| Field | Description |
|---|---|
reference_idstring |
Required.
The ID sent by the business in the order_details message |
statusstring |
Required.
Status of the payment for the order. Can be one of
pending or capturedRefer the table below for what these statuses mean. |
currencystring |
Required.
The currency for this payment. Currently the only supported value is INR. |
amountobject |
Required.
The amount for this payment. It contains the following fields:
offset integervalue integer |
transactionsarray |
Optional.
The list of transactions for this payment. This field is only present when at least one payment attempt has been made. If the payment status is
pending and no payment attempt has occurred, this field will not be returned. Each transaction object contains the following fields:id stringpg_transaction_id stringtype stringbilldesk or razorpay or payu or zaakpay are supported.
status stringpending or success or failed.
At most one transaction can have a success status.created_timestamp integerupdated_timestamp integermethod objectOptional. the payment method information might not be available for failed payments type string Required. The describes the type of payment method used by consumer to pay for the order. Can be one of upi or card or wallet or netbanking.
error objectOptional. the payment error details might not be available for all payments attempts code string Required. The describes the payment failure reason that is generated by payment gateway and Meta returns this to partners.reason string Required. The describes the payment failure reason in plain text that is generated by payment gateway and Meta returns this to partners.
refunds arrayOptional. The list of refunds for this order. Each refund object contains the following fields: id string Required. The alpha-numeric ID of the refund.amount object Required. The total amount of the refund.speed_processed string Required. Speed by which refund was processed. Can be one of instant or normal.status string Required. The status of the refund. Can be one of pending, success or failed.created_timestamp integer Required. Time when refund was created in epoch seconds.updated_timestamp integer Required. Time when refund was last updated in epoch seconds. |
additional_info1-7string |
Optional.
Supported for only BillDesk PG, this contains string values sent as part of Order Details message. |
receiptstring |
Optional.
Supported for only Razorpay PG, this contains the receipt-value sent as part of Order Details message. |
notesobject |
Optional.
Supported for only Razorpay PG, this contains the key-value pairs sent as part of Order Details message. |
udf1-4string |
Optional.
Supported for only PayU PG, this contains string values sent as part of Order Details message. |
extra1-2string |
Optional.
Supported for only Zaakpay PG, this contains string values sent as part of Order Details message. |
Payment Status
| Status | Description |
|---|---|
pending |
The order has been created but payment has not yet been captured. This status covers two scenarios: No payment attempt yet: The transactions array will not be present in the response.Payment attempted but failed: The transactions array will contain one or more entries with status set to failed. |
captured |
The payment was successfully captured. The transactions array will contain an entry with status set to success. |
An example successful response looks like this:
Shown here is an example for a generic error:
Response by Payment Stage
The response payload varies depending on the payment stage. Below are examples for each stage.
No payment attempted — The user has not yet attempted payment. Only order-level fields are returned; the
transactions array is not present.Payment successful — The user completed payment and the payment gateway confirmed capture. The
transactions array contains the successful transaction with payment method details.Payment failed — The user attempted payment but it failed. The overall payment status remains
pending (the order is still awaiting successful payment), but the transactions array contains the failed attempt with error details.Step 6: Update Order Status
Businesses must send updates to their order using the
order_status message instead of text messages since the latest status of an order displayed on the order details page is only based on order_status messages.To notify the customer with updates to an order, you can send an
interactive message of type order_status as shown below.The following table describes the fields in the
order_status interactive message:| Object | Description |
|---|---|
typestring |
Required. Must be “order_status” |
bodyobject |
Required.
An object with the body of the message. The object contains the following field:
text stringbody is present. The content of the message. Emojis and markdown are supported. Maximum length is 1024 characters. |
footerobject |
Optional.
An object with the footer of the message. The object contains the following field:
text stringfooter is present. The footer content. Emojis, markdown, and links are supported. Maximum length is 60 characters. |
actionobject |
Required.
An action object you want the user to perform after reading the message. This action object contains the following fields:
name stringparameters object |
Parameters object
The
parameters object contains the following fields:| Value | Description |
|---|---|
reference_idstring |
Required.
The ID sent by the business in the order_details message. |
orderobject |
Required. This object contains the following fields:
status stringstatus. Must be one of processing, partially_shipped, shipped, completed, canceled.
description stringorder_details. Could be useful while sending cancellation. Max character limit is 120 characters. |
order_status message introduces two new errors that are summarized below.| Error Code | Description |
|---|---|
2046 - Invalid status transition |
The order status transition is not allowed. |
2047 - Cannot cancel order |
Cannot cancel the order since the user has already paid for it. |
Product Experience
Customers receive each
order_status update as a separate message in their chat thread, that references their original order_details message as shown below (left). The order details page always displays the latest valid status communicated to the customer using the order_status message as shown below (right).[image removed - too large for import]
[image removed - too large for import]
Supported Order Status and Transitions
Currently we support the following order status values:
| Value | Description |
|---|---|
pending |
User has not successfully paid yet |
processing |
User payment authorized, merchant/partner is fulfilling the order, performing service, etc. |
partially-shipped |
A portion of the products in the order have been shipped by the merchant |
shipped |
All the products in the order have been shipped by the merchant |
completed |
The order is completed and no further action is expected from the user or the partner/merchant |
canceled |
The partner/merchant would like to cancel the order_details message for the order/invoice. The status update will fail if there is already a successful or pending payment for this order_details message |
Order status transitions are restricted for consistency of consumer experience. Allowed status transitions are summarized below:
Initial status of an order is always pending, which is sent in order_details message.canceled and completed are terminal status and cannot be updated to any other status.pending can transition to any of the other statuses including processing, shipped, partially-shipped.processing, shipped and partially-shipped are equivalent statuses and can transition between one another or to one of the terminal statuses.
[image removed - too large for import]
Upon sending an
order_status message with an invalid transition, you will receive an error webhook with the error code 2046 and message “New order status was not correctly transitioned.”Canceling an Order
An order can be
canceled by sending an order_status message with the status canceled. The customer cannot pay for an order that is canceled. The customer receives an order_status message and order details page is updated to show that the order is canceled and the “Continue” button removed. The optional text shown below “Order canceled” on the order details page can be specified using the description field in the order_status message.An order can be canceled only if the user has not already paid for the order. If the user has paid and you send an
order_status message with canceled status, you will receive an error webhook with error code 2047 and message “Could not change order status to ‘canceled’”.Step 7: Reconcile Payments
WhatsApp does not support payment reconciliations. Businesses should use their payment gateway account to reconcile the payments using the
reference_id provided in the order_details messages and the id of the transactions returned as part of the payment lookup query.Merchant Preferred UPI Payment Method
Now merchants can specify up to one UPI Payment app to showup in checkout flow. Merchant preferred payment app will be shown on top of the list of available UPI apps in the “Choose payment method” screen. To enable this capability we require partners to specify the external app-id in the Order Details or order-invoice message.
Note: This feature is available on consumer apps on and above version: 2.24.21.0
Updates to Order Details Payload
List of supported apps:
| UPI Application | Application ID to be passed in Order Details payload |
|---|---|
|
Google Pay |
gpay |
|
PhonePe |
phonepe |
|
PayTm |
paytm |
|
BHIM |
bhim |
|
Amazon Pay |
amazonpay |
|
CRED |
cred |
|
Mobikwik |
mobikwik |
Restrict Available Payment Options
Merchants can specify which payment options to show in checkout flow between UPI and Web options. This will allow merchants to enable only UPI or credit card(any PG available option) to accept payments for invoices.
UPI transactions are limited to ₹5,00,000. For higher amounts, set
enabled_payment_options to ["web"] to use your payment gateway’s web checkout. Payments with UPI enabled above this limit will fail.Note: This feature is available on consumer apps on and above version: 2.24.22.4
Updates to Order Details Payload
List of payment options
| Enabled Option | Experience in checkout flow |
|---|---|
|
upi |
Only UPI apps are show in checkout flow |
|
web |
Payment gateway webpage is loaded and merchant payment gateway account configured payment options will be shown in the checkout flow. |
Some Payment Gateways allow customization of payment options that are shown in payment link or web based checkout flow. Please contact Payment Gateway to restricting payment options in payment link or web page.
Third Party Validation with Razorpay and PayU Payment Gateways
We now support TPV for RazorPay and PayU merchants, this allows merchants to specify the consumer accounts from which orders needs to be paid. Since, the consumer bank account information is sensitive, please work with Payment Gateways to procure public encryption key and pass the encryption information as part of Order details message.
To use this feature which is in alpha testing, please reach out to Meta payments team - whatsappindia-bizpayments-support@meta.com
Updates to Order Details Payload to support TPV for Razorpay merchants
The raw value before encryption should look something like the following:
Updates to Order Details Payload to support TPV for PayU merchants
The raw value before encryption should look like the following:
Note please closely work with Meta and Payment Gateway teams(RazorPay or PayU) to unlock this feature as we are still in alpha testing phase.
Security Considerations
Businesses should comply with local security and regulatory requirements in India. They should not rely solely on the status of the transaction provided in the webhook and must use payment lookup API to retrieve the statuses directly from WhatsApp. Businesses must always sanitize/validate the data in the API responses or webhooks to protect against SSRF attacks.
Checklist for Integrated Merchants
Ensure that
order_status message is send to consumer informing them about updates to an order after receiving transaction updates for an order.Ensure the merchant is verified and WABA contact is marked with a verified check.
Verify the WABA is mapped to appropriate merchant initiated messaging tier(1k, 10k and 100k per day)
Merchant should list the customer support information in the profile screen incase consumer wants to report any issues.
Migrate to “payment_settings” in place of “payment_type” and “payment_configuration”. This is the recommended way, and gives access to features likes “notes” and “udf” fields. For an example, view the payloads above.










