> ## 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 approved AP file at SFTP path



## OpenAPI

````yaml /tango_lease/integrations/guides/ap-outbound-file.yaml post /outbound/ap
openapi: 3.1.0
info:
  title: Tango AP Outbound — File
  version: '1.6'
  description: |
    SFTP file-based outbound. Tango writes approved lease payments as a
    pipe-delimited file to its SFTP server; client reads and processes the
    file. After successful generation, payments are marked `Exported to AP`.
    LEASE_PAYMENT_ID round-trips back through the AP Inbound file for
    reconciliation.
  x-direction: outbound
  x-source: Tango
  x-destination: Client System
  x-transport: sftp
  x-file-format: pipe-delimited text (.txt)
  x-file-naming-convention: '{ClientCode}_apout_MMDDYYYYHHMMSS.txt'
servers:
  - url: sftp://sftp.tangoanalytics.com
    description: Production SFTP
    x-environment: production
    x-path: /outbound/ap
  - url: sftp://sftpdev.tangoanalytics.com
    description: Test SFTP (SIT/UAT)
    x-environment: test
    x-path: /outbound/ap
security:
  - sftpUserPassword: []
tags:
  - name: AP Outbound File
paths:
  /outbound/ap:
    post:
      tags:
        - AP Outbound File
      summary: Drop approved AP file at SFTP path
      operationId: deliverAPOutboundFile
      requestBody:
        required: true
        content:
          text/plain:
            schema:
              type: string
              format: binary
              x-record-schema:
                $ref: '#/components/schemas/APOutboundRow'
      responses:
        '200':
          description: File delivered.
components:
  securitySchemes:
    sftpUserPassword:
      type: http
      scheme: basic

````