Avisos de WhatsApp não entregues
Avisos a clientes que o WhatsApp não entregou (número errado ou sem WhatsApp). Corrija o celular e reenvie.
Base: https://api.nivesistemas.com.br · 3 endpoints
GET /whatsapp-delivery-failures
Seção intitulada “GET /whatsapp-delivery-failures”Listar falhas de entrega
Query params
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
status |
string | não | pending (padrão) ou all |
curl -X GET "https://api.nivesistemas.com.br/whatsapp-delivery-failures" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/whatsapp-delivery-failures", { method: "GET", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "GET", "https://api.nivesistemas.com.br/whatsapp-delivery-failures", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())POST /whatsapp-delivery-failures/:id/resend
Seção intitulada “POST /whatsapp-delivery-failures/:id/resend”Reenviar para outro número
Parâmetros de rota: id
Corpo (JSON)
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
phone |
string | sim | Celular com DDD |
updateCustomer |
boolean | não | Gravar o número no cadastro do cliente |
curl -X POST "https://api.nivesistemas.com.br/whatsapp-delivery-failures/{id}/resend" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo" \ -H "Content-Type: application/json" \ -d '{"phone":"","updateCustomer":true}'const res = await fetch("https://api.nivesistemas.com.br/whatsapp-delivery-failures/{id}/resend", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", "Content-Type": "application/json", }, body: JSON.stringify({ "phone": "", "updateCustomer": true }),});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/whatsapp-delivery-failures/{id}/resend", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", }, json={ "phone": "", "updateCustomer": True },)print(res.json())POST /whatsapp-delivery-failures/:id/dismiss
Seção intitulada “POST /whatsapp-delivery-failures/:id/dismiss”Descartar a falha
Parâmetros de rota: id
curl -X POST "https://api.nivesistemas.com.br/whatsapp-delivery-failures/{id}/dismiss" \ -H "Authorization: Bearer sl_live_exemplo_abc123xyz789" \ -H "X-Store-Slug: loja-demo"const res = await fetch("https://api.nivesistemas.com.br/whatsapp-delivery-failures/{id}/dismiss", { method: "POST", headers: { Authorization: "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },});const data = await res.json();import requests
res = requests.request( "POST", "https://api.nivesistemas.com.br/whatsapp-delivery-failures/{id}/dismiss", headers={ "Authorization": "Bearer sl_live_exemplo_abc123xyz789", "X-Store-Slug": "loja-demo", },)print(res.json())
