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

# Submit AP payment confirmation records (async)



## OpenAPI

````yaml /tango_lease/integrations/guides/ap-inbound-api.yaml put /v1/leasemgmt/payments
openapi: 3.1.0
info:
  title: Tango AP Inbound (Payment Confirmation) API
  version: '1.2'
  description: |
    Async REST API: client posts AP check confirmation records to Tango after
    payments are issued. Tango updates the Payments tab and the lease payment
    status. The same record key (lease_payment_id) is used downstream by the
    Status endpoint for error reporting. Polling on /v1/batch/status with the
    returned gu_id.
  x-direction: inbound
  x-source: Client System
  x-destination: Tango
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:
    put:
      tags:
        - AP Payments
      summary: Submit AP payment confirmation records (async)
      operationId: putAPPaymentsBatch
      parameters:
        - $ref: '#/components/parameters/XClient'
        - $ref: '#/components/parameters/XApiKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/APPaymentBatchRequest'
            examples:
              default:
                value:
                  records:
                    - lease_payment_id: '80285'
                      invoice_header_id: '80285'
                      invoice_id: '80285'
                      invoice_number: 92492-023
                      payment_status: PAID
                      check_number: '23499'
                      check_amount: '309.00'
                      check_date: 07/16/2020
                      applied_amount: '309.00'
                      reconcile_date: ''
      responses:
        '200':
          description: Accepted for async processing.
          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:
    APPaymentBatchRequest:
      type: object
      required:
        - records
      properties:
        records:
          type: array
          items:
            $ref: '#/components/schemas/APPaymentRecord'
    AcceptedResponse:
      type: object
      required:
        - status
        - gu_id
      properties:
        status:
          type: string
          enum:
            - OK
            - Error
        status_message:
          type: string
        gu_id:
          type: string
          format: uuid
    APPaymentRecord:
      type: object
      required:
        - lease_payment_id
        - payment_status
        - check_number
        - check_amount
        - check_date
      properties:
        lease_payment_id:
          type: number
          description: Tango unique payment identifier; the record_key in error responses.
        invoice_header_id:
          type: number
          description: Tango unique invoice header identifier.
        invoice_id:
          type: string
        invoice_number:
          type: string
        payment_status:
          type: string
          enum:
            - PAID
            - VOID
        check_number:
          type: string
          description: Check or EFT number.
        check_amount:
          type: number
        check_date:
          type: string
          description: MM/DD/YYYY.
        applied_amount:
          type: number
        reconcile_date:
          type: string
          description: MM/DD/YYYY.
  securitySchemes:
    xClientHeader:
      type: apiKey
      in: header
      name: x-client
    xApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````