IDEN
Wacommerce

Kirim Teks

Kirim pesan teks biasa dalam jendela layanan 24 jam.

Pesan teks hanya bisa dikirim dalam jendela layanan 24 jam setelah pesan terakhir customer. Di luar itu, gunakan template. Kirim ke `POST /messages`.

pythonimport requests

requests.post(
    "https://dashboard.wacommerce.id/api/public/v1/messages",
    headers={"Authorization": "Bearer nxk_live_xxx"},
    json={"to": "+628123456789", "type": "text", "text": {"body": "Halo dari Wacommerce"}},
)