curl --request POST \
--url https://api.cadanapay.com/v1/statutory/filings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"businessId": "<string>",
"countryCode": "MX",
"filingTypeId": "ft_mx_isr_monthly",
"periodStart": "2023-12-25",
"periodEnd": "2023-12-25",
"payrollRunIds": [
"<string>"
],
"amounts": {
"currency": "MXN",
"totalTax": 45000,
"employerContributions": 20000,
"employeeDeductions": 25000,
"lineItems": [
{
"description": "ISR - Withholding per Artículo 96 table",
"amount": 12500
}
]
},
"personIds": [
"<string>"
]
}
'{
"id": "fil_01HQ3K4N7XYZABC"
}Creates a single statutory filing. Supports two modes:
payrollRunIds — amounts are pulled
from the tax engine automatically.amounts and personIds directly —
use this when the client runs payroll outside Cadana and just needs
Cadana to file and remit.The filing is created in pending status. If requirements are missing, it
transitions to blocked with actionable reasons.
curl --request POST \
--url https://api.cadanapay.com/v1/statutory/filings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"businessId": "<string>",
"countryCode": "MX",
"filingTypeId": "ft_mx_isr_monthly",
"periodStart": "2023-12-25",
"periodEnd": "2023-12-25",
"payrollRunIds": [
"<string>"
],
"amounts": {
"currency": "MXN",
"totalTax": 45000,
"employerContributions": 20000,
"employeeDeductions": 25000,
"lineItems": [
{
"description": "ISR - Withholding per Artículo 96 table",
"amount": 12500
}
]
},
"personIds": [
"<string>"
]
}
'{
"id": "fil_01HQ3K4N7XYZABC"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Create a filing. Two modes:
Mode 1 — Cadana payroll: Provide payrollRunIds and Cadana
pulls the calculated amounts from the tax engine automatically.
Mode 2 — External payroll: Provide amounts directly with the
filing data. Use this when the client runs payroll outside Cadana
and just needs filing + remittance.
At least one of payrollRunIds or amounts must be provided.
ISO 3166-1 alpha-2 country code
"MX"
The type of filing (from jurisdiction filing types)
"ft_mx_isr_monthly"
Link to Cadana payroll runs whose tax calculations feed this filing.
Cadana auto-populates amounts from the tax engine results.
Mutually exclusive with amounts.
Financial breakdown of the filing
Show child attributes
Person IDs included in this filing. Required when providing
amounts directly (so Cadana can validate worker data).
Auto-populated from payroll run when using payrollRunIds.
Filing created
Response containing the ID of a newly created resource.
"fil_01HQ3K4N7XYZABC"