Order Details — Single Image
Send a single-card WhatsApp Pay order details message. Same payable order shape as the carousel variant, but with one card and one image header — use this for one-shot transactional sends like a single product order or a pre-filled cart.
Endpoint
POST https://apis.splashifypro.com/api/v1/public/messageHeaders
| Header | Value |
|---|---|
Authorization | Basic YOUR_API_KEY |
Content-Type | application/json |
Request body
{
"phoneNumber": "9999999999",
"callbackData": "",
"type": "Template",
"template": {
"name": "single_image",
"languageCode": "en",
"headerValues": [
"https://your-cdn.example.com/strawberry-cake.jpg"
],
"bodyValues": ["mj"],
"order_details": [
{
"reference_id": "22july25mjwapaytemp1",
"order_items": [
{
"name": "Strawberry Cake",
"quantity": 1,
"amount": 1,
"country_of_origin": "India"
}
],
"shipping_addresses": [
{
"name": "Akhil Kumar",
"phone_number": "919000090000",
"address": "Bandra Kurla Complex",
"city": "Mumbai",
"state": "Maharastra",
"in_pin_code": "400051",
"house_number": "12",
"tower_number": "5",
"building_name": "One BKC",
"landmark_area": "Near BKC Circle",
"country": "IN"
}
],
"subtotal": 1,
"discount": 0,
"tax": 0,
"shipping": 0,
"total_amount": 1,
"currency": "INR",
"payment_option_expires_in": {
"value": 15,
"unit": "minutes",
"expiration_message": ""
}
}
]
}
}| Field | Required | Notes |
|---|---|---|
template.headerValues[0] | yes | Image URL for the card |
template.bodyValues | optional | Body variables |
template.order_details[] | yes | Exactly one entry for this single-image variant |
order_details[].reference_id | yes | Unique id — used to reconcile WhatsApp Pay webhooks |
order_details[].order_items[] | yes | Itemised order line items |
order_details[].shipping_addresses[] | conditional | Mandatory for physical goods, optional for digital |
order_details[].subtotal/discount/tax/shipping/total_amount | yes | Numeric; in smallest currency unit (paise for INR) |
order_details[].currency | yes | ISO 4217 |
order_details[].payment_option_expires_in | optional | When the WhatsApp Pay link expires |
Example
curl -X POST https://apis.splashifypro.com/api/v1/public/message \
-H "Authorization: Basic YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '@order-payload.json'(See the JSON above — copy it into order-payload.json and send.)
Successful response — 201 Created
{
"result": true,
"message": "Message created successfully",
"id": "8d620ba1-640f-42ee-a8dd-15363422144b"
}Tips
- Use a high-quality 1.91:1 image for the header — Meta downscales for slow networks but the source affects perceived quality.
- The
reference_idyou pass here is the same reference you’ll use later when sending an Order Status update. - All amounts are integers in the smallest unit. ₹1.00 →
100paise, never1.00.