Create a filing
Creates a single statutory filing. Every filing is described by a
breakdown array of contribution lines that sum to the filing total.
The source field selects who’s submitting the return to the
authority:
source: cadana(default) — Cadana will submit the return. Each breakdown line must reference apersonId. ProvidepayrollRunIdsas a shortcut (Cadana populates the breakdown from the tax engine) or pass thebreakdownexplicitly if you computed amounts outside Cadana. The filing is created inpendingand runs the full lifecycle throughaccepted. If requirements are missing, it transitions toblockedwith actionable reasons.source: external— You have already filed with the authority yourself. Provide thebreakdownplus thefilingReference(e.g., the Línea de Captura from SAT). Breakdown lines may usepersonId,externalEmployeeId, or neither (for business-level taxes). The filing is created directly inacceptedand skips the submission lifecycle. Used by the remittance-only flow.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Required when using a Platform API token. The tenant key identifying which business to operate on.
Body
Create a filing. Every filing is described by a breakdown array of
contribution lines that sum to the filing total — the breakdown is the
canonical input. The source field selects who's filing with the
authority:
source: cadana (default) — Cadana prepares and submits the return
to the authority. Each breakdown line must reference a personId.
You can either:
- Provide
payrollRunIdsand Cadana auto-populates the breakdown from the tax engine, or - Provide the
breakdownarray yourself if you computed the amounts outside Cadana but want Cadana to file.
source: external — You have already filed the return with the
authority yourself; you're sending Cadana the breakdown plus the
filingReference (e.g., the Línea de Captura from SAT) so a remittance
can be created against it. Breakdown lines may use personId,
externalEmployeeId, or neither (for business-level taxes like
Mexico's ISN). The filing is created directly in accepted.
ISO 3166-1 alpha-2 country code
"MX"
The type of filing (from jurisdiction filing types)
"ft_mx_isr_monthly"
ISO 4217 currency code that applies to every amount in the
breakdown. Must match the filing-type's jurisdiction currency.
"MXN"
Who's responsible for submitting the return to the authority.
cadana (default) means Cadana submits; external means you
already submitted it and are providing the resulting data so
Cadana can remit.
cadana, external "external"
Government-issued reference for this filing. Required when
source: external — this is the value the receiving bank or
authority uses to attribute your remittance payment. Country-specific
naming: Línea de Captura (MX), challan number (IN), BRN (NG).
Ignored when source: cadana; Cadana populates it once the
authority confirms receipt.
"0123456ABCD7890EF"
Contribution lines that sum to the filing total. Required, with
one exception: omit when source: cadana and payrollRunIds is
provided — Cadana auto-populates the breakdown from the tax engine
in that case.
source: cadana shortcut. Link to Cadana payroll runs whose tax
calculations feed this filing — Cadana auto-populates the
breakdown from the tax engine results. Ignored when
source: external.
Response
Filing created
Response containing the ID of a newly created resource.
"fil_01HQ3K4N7XYZABC"