curl -X POST "https://app.talkover.ai/api/v1/portfolio/debts/C-10/return" \
-H "Authorization: Bearer talq_your_environment_token_here" \
-H "Content-Type: application/json" \
-d '{"reason": "disputed", "note": "Customer filed a complaint", "installment_numbers": [3]}'
{
"success": true,
"message": "Return recorded.",
"data": {
"return": {
"id": "019a…",
"installment_numbers": [3],
"reason": "disputed",
"note": "Customer filed a complaint",
"source": "api",
"actor_name": null,
"recorded_at": "2026-11-09T15:10:00+00:00"
},
"created": true,
"debt": {
"external_debt_id": "C-10",
"status": "open",
"effective_due_date": "2026-09-10",
"open_amount": "175.00"
}
}
}
For debt collection
Record return
Takes a contract, or some of its installments, out of collection
POST
/
api
/
v1
/
portfolio
/
debts
/
{external_debt_id}
/
return
curl -X POST "https://app.talkover.ai/api/v1/portfolio/debts/C-10/return" \
-H "Authorization: Bearer talq_your_environment_token_here" \
-H "Content-Type: application/json" \
-d '{"reason": "disputed", "note": "Customer filed a complaint", "installment_numbers": [3]}'
{
"success": true,
"message": "Return recorded.",
"data": {
"return": {
"id": "019a…",
"installment_numbers": [3],
"reason": "disputed",
"note": "Customer filed a complaint",
"source": "api",
"actor_name": null,
"recorded_at": "2026-11-09T15:10:00+00:00"
},
"created": true,
"debt": {
"external_debt_id": "C-10",
"status": "open",
"effective_due_date": "2026-09-10",
"open_amount": "175.00"
}
}
}
Record return
Takes a whole contract, or only some installments, out of collection, with a reason. Use it when the creditor withdraws the debt without reporting an amount received: paid directly, agreement outside Talkover, disputed, or sent by mistake. The cadence stops collecting immediately. Available only to debt-collection workspaces in Brazil (see Debt collection portfolio).If you know the amount received, use Record payment instead: payments are what count toward the amount recovered.
Endpoint
POST /api/v1/portfolio/debts/{external_debt_id}/return
Path parameters
The contract id in your system. URL-encode special characters (
CT/2026/0001 → CT%2F2026%2F0001).Request headers
Request body
Reason. One of:
direct_payment: the person paid the creditor directly, amount not reportedagreement_outside: agreement closed outside Talkoverdisputed: debt disputedsent_by_mistake: contract sent by mistakeother: another reason
external_debt_id.
Examples
curl -X POST "https://app.talkover.ai/api/v1/portfolio/debts/C-10/return" \
-H "Authorization: Bearer talq_your_environment_token_here" \
-H "Content-Type: application/json" \
-d '{"reason": "disputed", "note": "Customer filed a complaint", "installment_numbers": [3]}'
Response
201 Created when the return was just recorded. 200 OK when the same return had already arrived: nothing is written again and created is false.
{
"success": true,
"message": "Return recorded.",
"data": {
"return": {
"id": "019a…",
"installment_numbers": [3],
"reason": "disputed",
"note": "Customer filed a complaint",
"source": "api",
"actor_name": null,
"recorded_at": "2026-11-09T15:10:00+00:00"
},
"created": true,
"debt": {
"external_debt_id": "C-10",
"status": "open",
"effective_due_date": "2026-09-10",
"open_amount": "175.00"
}
}
}
The contract after the return, in the Get contract format (shortened in the example).
Error responses
| Status | When |
|---|---|
401 | missing or invalid token |
403 | the API is not enabled for the workspace |
404 | no contract with this id in your workspace |
422 | reason missing or invalid, note too long, or an installment the contract does not have ("reason": "installment_not_found"). Nothing is written |
500 | unexpected failure: resend the same return (no duplicate) |
Was this page helpful?