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

# Initiate approved payment export (async)



## OpenAPI

````yaml /tango_lease/integrations/guides/ap-outbound-api.yaml get /v1/leasemgmt/payments
openapi: 3.1.0
info:
  title: Tango AP Outbound API
  version: '1.4'
  description: |
    Async REST API for retrieving approved lease payments from Tango. Two-call
    pattern: GET initiating call returns a gu_id; GET /v1/batch/status with the
    gu_id (and optional page_no) returns paginated payment records. The same
    gu_id may be polled multiple times.

    `pay_id` in this outbound is the same identifier as `lease_payment_id` in
    the AP Inbound confirmation payload — reconciliation key.
  x-direction: outbound
  x-source: Tango
  x-destination: Client System
servers:
  - url: https://api.tangoanalytics.com
    description: Production
  - url: https://testapi.tangoanalytics.com
    description: Test (SIT/UAT)
security:
  - xClientHeader: []
    xApiKeyHeader: []
tags:
  - name: AP Payments
  - name: Status
paths:
  /v1/leasemgmt/payments:
    get:
      tags:
        - AP Payments
      summary: Initiate approved payment export (async)
      operationId: getAPPaymentsBatch
      parameters:
        - $ref: '#/components/parameters/XClient'
        - $ref: '#/components/parameters/XApiKey'
        - in: query
          name: calendar_year
          required: false
          schema:
            type: integer
          description: 4-digit fiscal year (YYYY).
        - in: query
          name: calendar_month
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 12
          description: Fiscal period.
        - in: query
          name: country
          required: false
          schema:
            type: string
          description: 3-digit country code.
        - in: query
          name: financial_group
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Async ack with gu_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AcceptedResponse'
components:
  parameters:
    XClient:
      name: x-client
      in: header
      required: true
      schema:
        type: string
    XApiKey:
      name: x-api-key
      in: header
      required: true
      schema:
        type: string
  schemas:
    AcceptedResponse:
      type: object
      required:
        - status
      properties:
        status:
          type: string
          enum:
            - OK
            - Error
        status_message:
          type: string
        gu_id:
          type: string
          format: uuid
  securitySchemes:
    xClientHeader:
      type: apiKey
      in: header
      name: x-client
    xApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````