Skip to main content
POST
Preview a payslip
Beta. Melso does not serve this operation yet, and its fields can still change. See what is live.
Use it to show what a hire, a raise or a change would cost the company and pay the employee.

Authorizations

Authorization
string
header
required

A company API key, mk_live_…, that the company's owner creates in the Melso app under Settings, Connect your AI, API keys. It works in that one company with the owner's authority. Test keys (mk_test_…) are not issued. Keep the key on your servers. See Authentication.

Path Parameters

company_id
string<uuid>
required

The company's ID. Every company-scoped call works in exactly this company.

Body

application/json
year
integer
required
month
integer
required
Required range: 1 <= x <= 12
start_date
string<date>
required
profile
object
required

The contract terms and the modelo 145. Send only what the person confirmed.

end_date
string<date> | null
incidents
object

What changed in the month, {} for nothing.

Response

The calculated payslip.

id
string<uuid>
employee_id
string<uuid>
days
integer
earnings
object[]

Each earning line.

deductions
object[]

Each deduction line.

social_security
object

The contribution bases and contributions.

irpf
object

How the withholding rate was calculated.

totals
object
incidents
object

What changed in the month, {} for nothing.

warnings
string[]