Campanhas

Estimar custo por lista de telefones

Changed on

Calcula o preço por país de destino e devolve a quebra em markets. Não cria nada nem debita. Permissão: CAMPAIGNS_SEND.

post/v1/campaigns/estimate

Request

Request body

templateNamestring required

Nome ou ID do template.

phonesstring[] required

Telefones E.164 com +. O preço é calculado por país de destino.

Response

Estimativa

templateCategorystring required
recipientCountinteger required
templateCostnumber required

Custo Meta total, em reais.

araraFeenumber required

Taxa Arara total, em reais.

unitPricenumber required

Preço médio por mensagem.

totalCostnumber required

Total a debitar, em reais.

Example response

{
  "templateCategory": "MARKETING",
  "recipientCount": 2,
  "templateCost": 0.59,
  "araraFee": 0.177,
  "unitPrice": 0.3835,
  "totalCost": 0.767,
  "markets": [
    {
      "market": "BR",
      "count": 2,
      "unitPrice": 0.3835,
      "metaCostUnit": 0.295,
      "subtotal": 0.767
    }
  ]
}

Changes