Settlement Lifecycle

Settlement statuses and the typical flow between them.

Settlement Lifecycle

StatusValueMeaning
Pending0Being assembled. Commissions and deductions can be added.
Cancelled1Abandoned; will not be processed.
Ready for Processing2Submitted. Processing starts when a settlement moves to this status.
Processed3Complete.

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.