Enviar link por WhatsApp
Envía el link de pago del cobro por WhatsApp (plantilla fija). Responde 204 si se envió.
POSThttps://api.kuti.pe/v1/payment-intents/{id}/send-whatsapp
Este envío consume 1 moneda de tu saldo WhatsApp. Si el cobro no tiene cliente con teléfono, phone es obligatorio. customer_name personaliza el mensaje.
Path + body
idstringrequerido
Id del cobro en el path (pi_…).Ej:
pi_01J8Z3K4M5N6P7Q8R9S0T1U2V3phonestringopcional
E.164. Obligatorio si el cobro no tiene cliente con teléfono.Ej:
+51987654321customer_namestringopcional
Nombre para el mensaje. Opcional.Ej:
Ana TorresLanguage
Credentials
Header
Authorization
Secret key de developer · ejemplos con librerías estándar (aún sin SDK)
cURL Request
curl -s 'https://api.kuti.pe/v1/payment-intents/pi_01J8Z3K4M5N6P7Q8R9S0T1U2V3/send-whatsapp' \
-X POST \
-H 'Authorization: Bearer kuti_live_…' \
-H 'Content-Type: application/json' \
-d '{
"phone": "+51987654321",
"customer_name": "Ana Torres"
}'Librería estándar · sin SDK propio
Response
Elige un ejemplo de respuesta:
application/json
204OK
{
"success": true,
"message": "No content (204)"
}