Skip to main content
POST
Approve a tax return
Beta. Melso does not serve this operation yet, and its fields can still change. See what is live.
Permission: taxes:write. Only a partner key of a firm Melso has enabled for delegated approval; any other key answers 403 delegated_approval_not_enabled. When the company approves in Melso instead, create an approval link. Send the version you showed the approver. If the return changed since, the answer is 409 version_changed with current_version: show the new return and ask again. approved_by must be an owner or administrator Melso has for the company, or the answer is 422 approver_not_recognized. Keep your own evidence of the approval and send its reference. The answer is the return, approved. Melso’s professionals then file it with the administration; the API never files it. Show it as filed only once filing.reference is present.

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.

tax_return_id
string<uuid>
required

Body

application/json
version
string
required

The version of the return the approver saw.

approved_by
object
required

The person who approved it. An owner or administrator Melso has for the company.

approved_at
string<date-time>
required

When they approved it.

ip
string
required

The IP address they approved from.

user_agent
string
required

Their browser's user agent.

Maximum string length: 1000
reference
string
required

Your own audit record of the approval.

Maximum string length: 255

Response

The return, approved.

id
string<uuid>
required
model
string
required
period
string
required
status
enum<string>
required

draft is recalculated from the books while its period is open; approved waits to be filed; filed has its filing evidence.

Available options:
draft,
reviewed,
approved,
filed
amount
string
required

Negative for a refund or an amount to offset.

version
string
required

A hash of exactly what will be filed. It changes whenever the return does; approval is for this exact version.

due_date
string<date>
approval
object | null

Who approved this version, once approved or filed.

boxes
object

The form's boxes by number, on a single return.

filing
object | null