> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cadanapay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Amend a previously accepted filing

> **Beta** — contact Cadana to enable access for your business.

Creates an amendment filing linked to the original. The original filing's
status remains `accepted` and gains an `amendedBy` reference to the new filing. The new
amendment filing starts in `pending` status.




## OpenAPI

````yaml /openapi/statutory-compliance.yaml post /v1/statutory/filings/{filing_id}/amend
openapi: 3.0.0
info:
  title: Statutory Compliance API
  version: 0.1.0
  description: Statutory filing, government remittance, and compliance tracking API
  termsOfService: https://cadanapay.com/terms-and-conditions
  contact:
    email: api@cadanapay.com
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://api.cadanapay.com
    description: Prod Server
  - url: https://dev-api.cadanapay.com
    description: Dev Server
security:
  - Authorization: []
tags:
  - name: Jurisdictions
    description: Discover supported countries, required fields, and filing types
  - name: Filings
    description: >-
      Create, submit, and track statutory returns — from upcoming obligations
      through acceptance
  - name: Remittances
    description: Government payments linked to filings
  - name: Requirements
    description: Prerequisites that must be satisfied before filing
  - name: Events
    description: Immutable audit trail
  - name: Statutory Fields
    description: Submit and read entity-level statutory filing data
paths:
  /v1/statutory/filings/{filing_id}/amend:
    post:
      tags:
        - Filings
      summary: Amend a previously accepted filing
      description: >
        **Beta** — contact Cadana to enable access for your business.


        Creates an amendment filing linked to the original. The original
        filing's

        status remains `accepted` and gains an `amendedBy` reference to the new
        filing. The new

        amendment filing starts in `pending` status.
      operationId: amendFiling
      parameters:
        - $ref: '#/components/parameters/XMultiTenantKey'
        - $ref: '#/components/parameters/FilingId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AmendFilingRequest'
      responses:
        '201':
          description: Amendment filing created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IDResponse'
        '409':
          description: Original filing is not in a state that can be amended
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    XMultiTenantKey:
      name: X-MultiTenantKey
      in: header
      required: false
      schema:
        type: string
      description: >-
        Required when using a Platform API token. The tenant key identifying
        which business to operate on.
    FilingId:
      name: filing_id
      in: path
      required: true
      schema:
        type: string
      description: Filing identifier
      example: fil_01HQ3K4N7XYZABC
  schemas:
    AmendFilingRequest:
      type: object
      required:
        - reason
      properties:
        reason:
          type: string
          description: Reason for the amendment
        correctedAmounts:
          $ref: '#/components/schemas/FilingAmounts'
    IDResponse:
      type: object
      description: Response containing the ID of a newly created resource.
      properties:
        id:
          type: string
          example: fil_01HQ3K4N7XYZABC
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: invalid_request
            message:
              type: string
              example: countryCode is required
            details:
              type: array
              nullable: true
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
    FilingAmounts:
      type: object
      description: |
        Derived totals for the filing. **Read-only on responses** — Cadana
        computes these values from the `breakdown` lines. You do not pass
        `amounts` when creating a filing; provide the `breakdown` array and
        the total falls out automatically.
      properties:
        currency:
          type: string
          description: ISO 4217 currency code. Set on the filing at creation time.
          example: MXN
        total:
          type: number
          format: decimal
          description: Sum of `amount` across every line in the filing's breakdown.
          example: 82345
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      bearerFormat: API_SECRET_KEY

````