# Send order detail & checkout button message

## &#x20;Create  an order detail & checkout template

Visit [Templates](https://www.ycloud.com/console/#/app/dashboard/template) page and create a single product checkout template or WhatsApp order details template.

<figure><img src="/files/tczEKOZsCtfF1fqWVqVX" alt=""><figcaption></figcaption></figure>

##

## Send message

YCloud provides two methods for sending single product and order details messages, as shown below.

### 1. Send via API

Use[ send message api](https://docs.ycloud.com/reference/whatsapp_message-send#/)

Please [click to see the request example](https://docs.ycloud.com/reference/whatsapp-messaging-examples#order-details-template-message)&#x20;

### 2.Send via Journey

Automatically send the checkout abandon message to your clients.

1. Set the trigger when you want to send a detailed message about the order. e.g. when the shopify checkout created.

<figure><img src="/files/XvWCQvzrfTOXF2Opor3a" alt=""><figcaption></figcaption></figure>

2. Add a Send templates component and choose the order details template message

<figure><img src="/files/minJrZzLF0QxupQuf6P8" alt=""><figcaption></figcaption></figure>

3. Save and activate the Journey

When this event happens, it will automatically trigger this Journey.

## Receive the orders

### 1. Receive the order paid webhook

If you are sending WhatsApp Pay messages via API, you need to use this webhook to listen for user payment events. [Subscribe to this Webhook](https://docs.ycloud.com/reference/whatsapp-payment-updated-webhook-examples)&#x20;

You receive updates via webhooks when the status of the user-initiated transaction changes. It occurs when payment status changes to `captured` (when the payment is successfully completed), or `pending` (when the user attempted but yet to receive success transactions signal).

Sample:

```
{
  "id": "evt_eEkn26qar3nOB8md",
  "type": "whatsapp.payment.updated",
  "apiVersion": "v2",
  "createTime": "2024-10-10T07:08:00.000Z",
  "whatsappPayment": {
    "wabaId": "WABA-ID",
    "referenceId": "<reference-id>",
    "status": "captured | pending",
    "transactions": [
      {
        "id": "<transaction-id>",
        "type": "billdesk | payu | razorpay | zaakpay",
        "status": "pending | success | failed",
        "createdTimestamp": 1728544066000,
        "updatedTimestamp": 1728544066000,
        "amount": {
          "value": 21000,
          "offset": 100
        },
        "currency": "INR",
        "methodType": "upi | card | wallet | netbanking",
        "error": {
          "code": "error-code",
          "reason": "error-reason"
        }
      }
    ]
  }
}
```

### 2. Check the payment status here on WhatsApp Pay

<figure><img src="/files/8J1S2k81MkCIRYf4vH7D" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://helpdocs.ycloud.com/help-center/whatsapp-pay/send-order-detail.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
