Skip to Content
Public APIOrder Details — Single Image

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/message

Headers

HeaderValue
AuthorizationBasic YOUR_API_KEY
Content-Typeapplication/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": "" } } ] } }
FieldRequiredNotes
template.headerValues[0]yesImage URL for the card
template.bodyValuesoptionalBody variables
template.order_details[]yesExactly one entry for this single-image variant
order_details[].reference_idyesUnique id — used to reconcile WhatsApp Pay webhooks
order_details[].order_items[]yesItemised order line items
order_details[].shipping_addresses[]conditionalMandatory for physical goods, optional for digital
order_details[].subtotal/discount/tax/shipping/total_amountyesNumeric; in smallest currency unit (paise for INR)
order_details[].currencyyesISO 4217
order_details[].payment_option_expires_inoptionalWhen 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_id you 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 → 100 paise, never 1.00.