Settlement statuses and the typical flow between them.
Settlement Lifecycle
| Status | Value | Meaning |
|---|---|---|
| Pending | 0 | Being assembled. Commissions and deductions can be added. |
| Cancelled | 1 | Abandoned; will not be processed. |
| Ready for Processing | 2 | Submitted. Processing starts when a settlement moves to this status. |
| Processed | 3 | Complete. |
Typical flow:
stateDiagram-v2
[*] --> Pending: POST status 0
Pending --> ReadyForProcessing: PUT status 2
Pending --> Cancelled: PUT status 1
ReadyForProcessing --> Processed: processing completes
Processed --> [*]
Cancelled --> [*]
Concepts
flowchart LR
S[Settlement] --> C[Commissions<br/>payments]
S --> D[Deductions<br/>withholdings]
C --> N[Net per contractor]
D --> N
N --> P[Disbursement]
Net commission = sum of commissions - sum of deductions, per contractor. Paid amounts are available at GET /contractors/{contractorId}/disbursements.
