> ## 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.

# Create a remittance

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

Initiates a government payment. A remittance is always tied to one or
more `accepted` filings — whether Cadana prepared them
(`source: cadana`) or you filed them externally and submitted the
totals (`source: external`). Funds are debited from your business
balance and routed to the authority through Cadana's local rails.

By default Cadana uses its internal mapping for the authority's bank
account. Provide a `paymentDetails` block — the same `paymentMethods`
object used by vendor payments and beneficiaries elsewhere in the API —
to specify the routing yourself (for example, a Mexican CLABE under
`bank.accountNumber`). Use the top-level `paymentReference` field to
set the bank attribution reference (defaults to the linked filing's
`filingReference`).




## OpenAPI

````yaml /openapi/statutory-compliance.yaml post /v1/statutory/remittances
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/remittances:
    post:
      tags:
        - Remittances
      summary: Create a remittance
      description: |
        **Beta** — contact Cadana to enable access for your business.

        Initiates a government payment. A remittance is always tied to one or
        more `accepted` filings — whether Cadana prepared them
        (`source: cadana`) or you filed them externally and submitted the
        totals (`source: external`). Funds are debited from your business
        balance and routed to the authority through Cadana's local rails.

        By default Cadana uses its internal mapping for the authority's bank
        account. Provide a `paymentDetails` block — the same `paymentMethods`
        object used by vendor payments and beneficiaries elsewhere in the API —
        to specify the routing yourself (for example, a Mexican CLABE under
        `bank.accountNumber`). Use the top-level `paymentReference` field to
        set the bank attribution reference (defaults to the linked filing's
        `filingReference`).
      operationId: createRemittance
      parameters:
        - $ref: '#/components/parameters/XMultiTenantKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRemittanceRequest'
      responses:
        '201':
          description: Remittance created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IDResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
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.
  schemas:
    CreateRemittanceRequest:
      type: object
      required:
        - businessId
        - countryCode
        - filingIds
        - fundFromCurrency
      properties:
        businessId:
          type: string
        countryCode:
          type: string
          description: ISO 3166-1 alpha-2 country code
          example: MX
        filingIds:
          type: array
          items:
            type: string
          description: |
            Filings to remit for. Multiple filings to the same authority
            can be batched into a single remittance.
        fundFromCurrency:
          type: string
          description: >-
            Currency to debit from the business balance (auto-converted if
            needed)
          example: USD
        paymentDetails:
          allOf:
            - $ref: '#/components/schemas/paymentMethods'
          description: |
            Where Cadana sends the payment. **Optional.** Omit to use Cadana's
            internal default routing for the authority (recommended when you
            trust Cadana to know the right government account). Provide to
            specify the routing yourself — for example, a Mexican CLABE under
            `bank.accountNumber`. This is the same `paymentMethods` object
            used elsewhere in the API for beneficiaries and vendor payments.
        paymentReference:
          type: string
          description: |
            Reference the receiving bank or authority uses to attribute the
            payment to your filing. If omitted, Cadana uses the linked filing's
            `filingReference` (e.g., the Línea de Captura in Mexico). Provide
            explicitly when the bank reference differs from the filing
            reference.
          example: 0123456ABCD7890EF
    IDResponse:
      type: object
      description: Response containing the ID of a newly created resource.
      properties:
        id:
          type: string
          example: fil_01HQ3K4N7XYZABC
    paymentMethods:
      type: object
      required:
        - preferredMethod
      properties:
        preferredMethod:
          type: string
          enum:
            - momo
            - bank
          description: The preferred payment method type
          example: bank
        momo:
          $ref: '#/components/schemas/momoDetails'
        bank:
          $ref: '#/components/schemas/bankDetails'
    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
    momoDetails:
      type: object
      properties:
        accountName:
          type: string
          example: John Doe
        provider:
          type: string
          example: MTN
        providerCode:
          type: string
          example: MTN
        phoneNumber:
          $ref: '#/components/schemas/phoneNumber'
        currency:
          type: string
          example: GHS
    bankDetails:
      type: object
      properties:
        accountName:
          type: string
          example: SAT — ISR Federal Treasury
        accountNumber:
          type: string
          description: |
            Bank account number. For Mexico this is the 18-digit CLABE.
            For other countries, the local account number.
          example: '012345678901234567'
        accountType:
          type: string
          description: e.g., Checking, Savings
          example: Checking
        ownerType:
          type: string
          description: e.g., individual, business
          example: business
        bankCode:
          type: string
          description: The bank identification code
          example: '012'
        bankName:
          type: string
          example: BBVA México
        branchName:
          type: string
          example: Sucursal Reforma
        sortCode:
          type: string
          description: Bank sort code (used in some countries like UK)
          example: '401234'
        iban:
          type: string
          description: International Bank Account Number
          example: GB00000000000000000000
        provider:
          type: string
          example: wise
        currency:
          type: string
          example: MXN
        beneficiaryId:
          $ref: '#/components/schemas/beneficiaryId'
        address:
          $ref: '#/components/schemas/address'
        phoneNumber:
          $ref: '#/components/schemas/phoneNumber'
        email:
          type: string
          format: email
    phoneNumber:
      type: object
      required:
        - countryCode
        - number
      properties:
        countryCode:
          type: string
          example: '52'
        number:
          type: string
          example: '5512345678'
    beneficiaryId:
      type: object
      description: ID details for the beneficiary
      properties:
        type:
          type: string
          enum:
            - NIT
            - CC
            - CE
            - TI
            - PASS
          example: NIT
        value:
          type: string
          example: '123456789'
    address:
      type: object
      required:
        - line1
        - city
        - postalCode
        - state
        - countryCode
      properties:
        line1:
          type: string
          example: Av. Paseo de la Reforma 10
        line2:
          type: string
          example: Piso 30
        city:
          type: string
          example: Ciudad de México
        postalCode:
          type: string
          example: '06600'
        state:
          type: string
          example: CDMX
        countryCode:
          type: string
          description: ISO 3166-1 alpha-2 country code
          example: MX
  responses:
    BadRequest:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      bearerFormat: API_SECRET_KEY

````