Skip to main content

1. Get your API key

Contact melvin@clevis.dev to get your API key.

2. Calculate a payroll

Send a POST request with the employee’s salary, the country scheme, and the pay period.

3. Read the response

The response includes a summary, itemized perceptions and deductions, employer contributions, and an audit trail.
All monetary values are strings to prevent floating-point precision loss. Parse them with your language’s Decimal type before doing arithmetic.

4. Pay the net salary

Take the net_salary from the previous step and pay it out to the employee via the Payouts API. To test during development, set processing.step_seconds: 0 to run the mock state machine synchronously so the response already has status: "PAID".
In sandbox enviroment payouts are handled by an in-process mock provider — no real funds are moved. Every response carries mock: true and the X-Clevis-Mock: true header. See the Payouts overview for the full story.

5. Discover available schemes

List all schemes available for a country:

Next steps

Authentication

Learn about API key authentication and rate limits.

Mexico

Explore Mexican payroll schemes, concepts, and inputs.

Batch calculate

Process up to 500 employees in a single request.

Simulate scenarios

Compare salary scenarios without persisting results.