> ## 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 invoice payment confirmations (async)



## OpenAPI

````yaml /tango_projects/integrations/guides/invoice-inbound-api.yaml put /v1/projectmgmt/batch/invoicepayments
openapi: 3.1.0
info:
  title: Tango Project Invoice Inbound (Payment Confirmation) API
  version: '0.9'
  description: >
    Async REST API for updating invoice **payment confirmation** details in
    Tango.

    Client posts payment records; Tango updates the Payments tab under Projects
    →

    Costs → Payments. Either `inv_id` (Tango ID) or `inv_number` must identify

    the invoice. Status polled via the shared `/v1/batch/status` endpoint.
  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: Invoice Payments
  - name: Status
paths:
  /v1/projectmgmt/batch/invoicepayments:
    put:
      tags:
        - Invoice Payments
      summary: Submit invoice payment confirmations (async)
      operationId: putInvoicePaymentsBatch
      parameters:
        - $ref: '#/components/parameters/XClient'
        - $ref: '#/components/parameters/XApiKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InvoicePaymentBatchRequest'
            examples:
              default:
                value:
                  records:
                    - inv_number: INV-1234
                      inv_id: '78968'
                      payment_number: PAY-2344
                      invoice_amount: 3000.34
                      status: PAID
                      payment_method: CHECK
                      payment_reference: '23456775443'
                      payment_date: 03/14/2021
                      payment_amount: 3000.34
                      comments: good
      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:
    InvoicePaymentBatchRequest:
      type: object
      required:
        - records
      properties:
        records:
          type: array
          items:
            $ref: '#/components/schemas/InvoicePaymentRecord'
    AcceptedResponse:
      type: object
      required:
        - status
        - gu_id
      properties:
        status:
          type: string
          enum:
            - OK
            - Error
        status_message:
          type: string
        gu_id:
          type: string
          format: uuid
    InvoicePaymentRecord:
      type: object
      description: >
        Either `inv_id` OR `inv_number` must be supplied to identify the
        invoice.

        OAS 3.1 cannot natively express XOR-required fields; both are listed as

        optional, and the runtime validation rule appears in the source doc and

        Open Questions.
      required:
        - payment_number
        - status
        - payment_date
        - payment_amount
      properties:
        inv_number:
          type: string
          description: Client's invoice number (one of inv_id / inv_number required).
        inv_id:
          type: number
          description: Tango's unique Invoice ID (one of inv_id / inv_number required).
        payment_number:
          type: string
        invoice_amount:
          type: number
        status:
          type: string
          enum:
            - PAID
            - VOID
          description: Default value `PAID`/`VOID`.
        payment_method:
          type: string
          description: Source lists as optional but validation
        payment_reference:
          type: string
        payment_date:
          type: string
          description: Format MM/DD/YYYY.
          example: 03/14/2021
        payment_amount:
          type: number
        comments:
          type: string
  securitySchemes:
    xClientHeader:
      type: apiKey
      in: header
      name: x-client
    xApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````