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

# Drop AP payment confirmation file at SFTP path

> Virtual operation. Tango picks up the file, processes each row, updates
payment statuses, then moves the file to /inbound/ap/Processed/<timestamp>.
Multiple files queued at once are processed FIFO.




## OpenAPI

````yaml /tango_lease/integrations/guides/ap-inbound-file.yaml post /inbound/ap
openapi: 3.1.0
info:
  title: Tango AP Inbound (Payment Confirmation) — File
  version: '0.8'
  description: |
    SFTP file-based inbound: client drops a pipe-delimited file of AP check
    confirmations to Tango's SFTP server. Tango picks up the file, updates the
    Payments tab, and moves the source file to Processed/. Lease Payment ID
    must match the value Tango previously sent in the AP Outbound file.
  x-direction: inbound
  x-source: Client System
  x-destination: Tango
  x-transport: sftp
  x-file-format: pipe-delimited text (.txt)
  x-file-naming-convention: '{ClientName}_apin_MMDDYYYYHHMMSS.txt'
servers:
  - url: sftp://sftp.tangoanalytics.com
    description: Production SFTP
    x-environment: production
    x-path: /inbound/ap
  - url: sftp://sftpdev.tangoanalytics.com
    description: Test SFTP (SIT/UAT)
    x-environment: test
    x-path: /inbound/ap
security:
  - sftpUserPassword: []
tags:
  - name: AP Inbound File
paths:
  /inbound/ap:
    post:
      tags:
        - AP Inbound File
      summary: Drop AP payment confirmation file at SFTP path
      description: >
        Virtual operation. Tango picks up the file, processes each row, updates

        payment statuses, then moves the file to
        /inbound/ap/Processed/<timestamp>.

        Multiple files queued at once are processed FIFO.
      operationId: deliverAPInboundFile
      requestBody:
        required: true
        content:
          text/plain:
            schema:
              type: string
              format: binary
              x-record-schema:
                $ref: '#/components/schemas/APInboundRow'
      responses:
        '200':
          description: File received and queued for processing.
components:
  securitySchemes:
    sftpUserPassword:
      type: http
      scheme: basic
      description: SFTP user/password — values <TBD> in source.

````