Manual – Private Payroll: Employment Relationships
The API is still in development phase, therefore this manual is subject to changes.
1. Document Objective
This manual describes how employment relationship monitoring works for credit borrowers in Private Payroll and how updates are notified via webhooks.
2. Context and Motivation
Private payroll credit contracts depend on active employment relationships to maintain valid reservations.
For this reason, Dataprev is consulted daily to identify changes in these relationships (e.g., termination of work contract or creation of a new relationship).
When there are changes, the system sends automatic webhooks to partners informing the new reservation status or the new detected relationship.
🔄 General Process Flow
- The system consults employment relationships daily in Dataprev.
- If an active relationship is terminated, the contract is updated and the partner is notified.
- If the worker creates a new relationship, the system automatically identifies it and tries to relink the reservation.
- Webhooks are sent at each step so the partner can keep their systems updated.
3. Webhook – Employment Relationship Termination
📅 When it is sent
When a worker loses their employment relationship and the payroll contract was associated with that relationship.
🔍 What happens
The reservation status is updated to "terminated", indicating it was closed due to relationship termination.
The partner must update their system according to this information.