curl "https://app.talkover.ai/api/v1/auto-topup/history?per_page=10" \
-H "Authorization: Bearer talq_your_environment_token_here"
{
"success": true,
"data": [
{
"id": "topup-uuid-1",
"amount": 100.00,
"currency": "USD",
"trigger": "threshold",
"status": "succeeded",
"balance_before": 42.00,
"balance_after": 142.00,
"payment_method_id": "pm_uuid_1",
"transaction_id": "txn_uuid_1",
"created_at": "2024-01-10T14:30:00Z"
},
{
"id": "topup-uuid-2",
"amount": 200.00,
"currency": "USD",
"trigger": "scheduled",
"status": "failed",
"failure_reason": "card_declined",
"payment_method_id": "pm_uuid_1",
"created_at": "2024-01-01T08:00:00Z"
}
],
"pagination": {
"current_page": 1,
"per_page": 10,
"total": 23,
"last_page": 3
}
}
Cobrança e Recarga Automática
Obter Histórico de Recarga Automática
Listar eventos recentes de recarga automática
GET
/
api
/
v1
/
auto-topup
/
history
curl "https://app.talkover.ai/api/v1/auto-topup/history?per_page=10" \
-H "Authorization: Bearer talq_your_environment_token_here"
{
"success": true,
"data": [
{
"id": "topup-uuid-1",
"amount": 100.00,
"currency": "USD",
"trigger": "threshold",
"status": "succeeded",
"balance_before": 42.00,
"balance_after": 142.00,
"payment_method_id": "pm_uuid_1",
"transaction_id": "txn_uuid_1",
"created_at": "2024-01-10T14:30:00Z"
},
{
"id": "topup-uuid-2",
"amount": 200.00,
"currency": "USD",
"trigger": "scheduled",
"status": "failed",
"failure_reason": "card_declined",
"payment_method_id": "pm_uuid_1",
"created_at": "2024-01-01T08:00:00Z"
}
],
"pagination": {
"current_page": 1,
"per_page": 10,
"total": 23,
"last_page": 3
}
}
Obter Histórico de Recarga Automática
Lista os eventos recentes de recarga automática do seu ambiente, incluindo valor, status e o disparador (limite mínimo ou agendado).Endpoint
GET /api/v1/auto-topup/history
Parâmetros de consulta
integer
Itens por página. Faixa:
1–100. Padrão: 25.integer
Número da página. Padrão:
1.Cabeçalhos da requisição
string
obrigatório
Token Bearer para autenticação. Formato:
Bearer talq_your_environment_token_hereExemplos
curl "https://app.talkover.ai/api/v1/auto-topup/history?per_page=10" \
-H "Authorization: Bearer talq_your_environment_token_here"
Resposta
{
"success": true,
"data": [
{
"id": "topup-uuid-1",
"amount": 100.00,
"currency": "USD",
"trigger": "threshold",
"status": "succeeded",
"balance_before": 42.00,
"balance_after": 142.00,
"payment_method_id": "pm_uuid_1",
"transaction_id": "txn_uuid_1",
"created_at": "2024-01-10T14:30:00Z"
},
{
"id": "topup-uuid-2",
"amount": 200.00,
"currency": "USD",
"trigger": "scheduled",
"status": "failed",
"failure_reason": "card_declined",
"payment_method_id": "pm_uuid_1",
"created_at": "2024-01-01T08:00:00Z"
}
],
"pagination": {
"current_page": 1,
"per_page": 10,
"total": 23,
"last_page": 3
}
}
Valores de Disparador
threshold— disparado porque o saldo caiu abaixo dethreshold_amountscheduled— disparado em um dia configurado do mêstest— recarga de teste manual via Testar Recarga Automática
Valores de Status
pending— pagamento em processamentosucceeded— pagamento capturado, saldo creditadofailed— pagamento recusado ou com erro
Esta página foi útil?