Debt collection portfolio
These endpoints keep your workspace’s collection portfolio up to date: you send the open contracts and, during the day, report each payment or withdrawal. The collection cadence uses this data to decide whom to collect from, and stops the moment a debt leaves collection. These endpoints never create a call. The campaign decides whom to call.Available only to debt-collection workspaces in Brazil. Talkover turns the API on environment by environment; while it is off, every call answers
403 and nothing is written. Ask your Talkover contact to turn it on or off.Endpoints
Typical flow
- Once a day, send the whole portfolio in pages of up to 500 contracts.
- During the day, record each payment or return as it happens. The cadence stops collecting that debt immediately.
Authentication
Use the environment token, as in the rest of the API:write ability also works, together with the X-Environment-Id header holding the environment id.
The contract id is the key
Each contract is identified by its id in your system, theexternal_debt_id. Sending the same id again updates the contract and never duplicates it. Case matters (CTR-1a and CTR-1A are two contracts). Another workspace’s id is never visible to your token.
Retrying is safe
All four endpoints can be repeated after a timeout, a dropped connection or a500:
- the same portfolio page sent again creates no new person, phone, contract or installment, and returns the same counts;
- the same payment or return sent again answers
200withcreated: falseand writes nothing.
Limits
Over the limit, the response is
429 with a Retry-After header (in seconds). Wait that long and resend the same request.