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

# Upload ISO 20022 pain.001 files

> Accepts one or more multipart files. Each file must have content type `text/xml` and declare the ISO 20022 pain.001 namespace. Files are deduplicated by SHA256 within the team. Successfully accepted files are stored and become callable via the process endpoint. Per-file errors are returned in the response body rather than as a 4xx — partial success is normal.

<Badge color="yellow" size="sm">Enterprise+ tier</Badge>


## OpenAPI

````yaml post /payment-controls/imports/upload
openapi: 3.1.1
info:
  title: TIC Lens API
  description: "The TIC Lens API provides programmatic access to company, person, property, vehicle, and order data.\r\n\r\n## Authentication\r\n\r\nAll requests require an API key passed via the `x-api-key` header:\r\n\r\n```bash\r\ncurl -H \"x-api-key: YOUR_API_KEY\" https://lens-api.tic.io/companies/123\r\n```\r\n\r\nAPI keys are managed through the TIC Lens web application under **Settings → API Keys**.\r\n\r\n## Base URL\r\n\r\n| Environment | URL |\r\n|-------------|-----|\r\n| Production  | `https://lens-api.tic.io` |\r\n\r\n## Feature Access\r\n\r\nEndpoints are gated by your subscription plan. If your plan does not include a feature, the endpoint will return `403 Forbidden`.\r\n\r\n## Rate Limits\r\n\r\nRate limits are applied per API key. If you exceed the limit, requests will return `429 Too Many Requests`.\r\n\r\n## Response Format\r\n\r\nAll responses are JSON. Null values are omitted from responses.\r\n"
  version: v1
servers:
  - url: https://lens-api.tic.io
security:
  - ApiKey: []
tags:
  - name: Addresses
  - name: Bolagsverket
  - name: Brf
  - name: Companies
  - name: Documents
  - name: FlightImages
  - name: Free
  - name: Orders
  - name: OrdersExports
  - name: PaymentControl
  - name: PaymentControlImport
  - name: Persons
  - name: Properties
  - name: PublicSearch
  - name: SearchAutocomplete
  - name: Sentinel
  - name: ServingPermits
  - name: Team
  - name: Teams
  - name: Transportstyrelsen
  - name: Vehicles
  - name: WatchList
paths:
  /payment-controls/imports/upload:
    post:
      tags:
        - PaymentControlImport
      summary: Upload ISO 20022 pain.001 files
      description: >-
        Accepts one or more multipart files. Each file must have content type
        `text/xml` and declare the ISO 20022 pain.001 namespace. Files are
        deduplicated by SHA256 within the team. Successfully accepted files are
        stored and become callable via the process endpoint. Per-file errors are
        returned in the response body rather than as a 4xx — partial success is
        normal.
      operationId: UploadPaymentControlImport
      responses:
        '200':
          description: Per-file upload results (mix of success/error rows)
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Ormeo_Web_Lens_Models_PaymentControlImport_PaymentControlImportUpload_Response
        '400':
          description: No files supplied
components:
  schemas:
    Ormeo_Web_Lens_Models_PaymentControlImport_PaymentControlImportUpload_Response:
      type: object
      properties:
        results:
          type:
            - 'null'
            - array
          items:
            $ref: >-
              #/components/schemas/Ormeo_Web_Lens_Models_PaymentControlImport_PaymentControlImportUploadResult_Dto
      additionalProperties: false
    Ormeo_Web_Lens_Models_PaymentControlImport_PaymentControlImportUploadResult_Dto:
      type: object
      properties:
        fileName:
          type:
            - 'null'
            - string
        importGuid:
          type:
            - 'null'
            - string
          format: uuid
        error:
          type:
            - 'null'
            - string
      additionalProperties: false
  securitySchemes:
    ApiKey:
      type: apiKey
      name: x-api-key
      in: header

````