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

# Push a batch of invoice / credit-memo records from Boomi

> Documents with `debit_credit_indicator == "H"` are routed to the
CreditMemo model; "S" lands as an Invoice. Max 100 per request.



## OpenAPI

````yaml https://api.stuut.ai/openapi.json post /v2/integrations/providers/boomi/invoices
openapi: 3.1.0
info:
  title: Stuut API
  termsOfService: https://stuut.ai/terms-and-conditions
  contact:
    name: Stuut Support
    url: https://stuut.ai/
    email: devs@stuut.co
  version: 2.0.0
servers: []
security:
  - HTTPBearer: []
tags:
  - name: adjustments
    description: Operations for managing payment adjustments (fees, discounts, write-offs).
    x-displayName: Adjustments
  - name: aether
    description: Operations for aether.
    x-displayName: Aether
  - name: analytics
    description: Operations for retrieving analytics and dashboard data.
    x-displayName: Analytics
  - name: assistant
    description: Operations for the in-app chat assistant.
    x-displayName: Assistant
  - name: audit-log
    description: Operations for retrieving the organization's audit log.
    x-displayName: Audit Log
  - name: bank-accounts
    description: Operations for retrieving and managing bank accounts.
    x-displayName: Bank Accounts
  - name: bank-statements
    description: Operations for retrieving and managing bank statements.
    x-displayName: Bank Statements
  - name: bank-transactions
    description: Operations for retrieving and managing bank transactions.
    x-displayName: Bank Transactions
  - name: business-units
    description: Operations for listing and managing business units.
    x-displayName: Business Units
  - name: call-agent
    description: >-
      Operations for initiating and managing real-time voice calls with
      partners.
    x-displayName: Call Agent
  - name: calls
    description: Operations for retrieving and managing voice call records.
    x-displayName: Calls
  - name: cash-app
    description: Operations for cash application — matching incoming payments to invoices.
    x-displayName: Cash Application
  - name: chats
    description: Operations for managing chat conversations.
    x-displayName: Chats
  - name: cnam-registration
    description: Operations for managing CNAM (caller ID name) registration.
    x-displayName: CNAM Registration
  - name: credit-memos
    description: Operations for retrieving and searching credit memos.
    x-displayName: Credit Memos
  - name: custom-table-templates
    description: >-
      Operations for managing custom table templates used in email template
      variables.
    x-displayName: Custom Table Templates
  - name: customer-segments
    description: Operations for managing customer segments.
    x-displayName: Customer Segments
  - name: deductions-knowledge
    description: Operations for managing deduction processing knowledge entries.
    x-displayName: Deductions Knowledge
  - name: email-threads
    description: Operations for managing email threads.
    x-displayName: Email Threads
  - name: emails
    description: Operations for retrieving and managing emails.
    x-displayName: Emails
  - name: exports
    description: Operations for requesting and retrieving async data exports.
    x-displayName: Exports
  - name: integrations
    description: >-
      Operations for managing integrations with external systems (e.g. ERP, CRM,
      etc.).
    x-displayName: Integrations
  - name: internal-contacts
    description: >-
      Operations for managing internal contacts (CSMs, account managers, etc.)
      and their assignments to partners.
    x-displayName: Internal Contacts
  - name: invoices
    description: Operations for retrieving and managing invoices.
    x-displayName: Invoices
  - name: kyb
    description: Operations for Know Your Business (KYB) verification.
    x-displayName: KYB
  - name: ledger-accounts
    description: Operations for retrieving and managing ledger accounts.
    x-displayName: Ledger Accounts
  - name: mailbox-settings
    description: >-
      Operations for an organization's mailbox provider configuration: Microsoft
      admin consent, shared-mailbox discovery, and provider health.
    x-displayName: Mailbox Settings
  - name: mailboxes
    description: >-
      Operations for connecting, listing, updating, and archiving user and
      shared mailboxes, including delegated OAuth sign-in.
    x-displayName: Mailboxes
  - name: media
    description: >-
      Operations for signing direct-to-storage media uploads (e.g. signature
      images).
    x-displayName: Media
  - name: organizations
    description: Operations for retrieving and managing the current organization.
    x-displayName: Organizations
  - name: outreach-workflows
    description: Operations for managing automated collections outreach workflows.
    x-displayName: Outreach Workflows
  - name: partners
    description: Operations for retrieving and managing customers.
    x-displayName: Partners
  - name: payments
    description: Operations for approving and managing payments.
    x-displayName: Payments
  - name: report-configs
    description: >-
      Operations for managing report configurations (frequency, recipients,
      schedule).
    x-displayName: Report Configs
  - name: sms-campaign-registration
    description: Operations for managing A2P 10DLC SMS campaign registration.
    x-displayName: SMS Campaign Registration
  - name: sms-templates
    description: >-
      Operations for defining, storing, and managing parameterized SMS message
      templates.
    x-displayName: SMS Templates
  - name: sms-threads
    description: Operations for retrieving and managing SMS conversation threads.
    x-displayName: SMS Threads
  - name: users
    description: Operations for retrieving and managing users.
    x-displayName: Users
  - name: users-ooo
    description: Operations for managing user out-of-office (OOO) status and coverage.
    x-displayName: Users OOO
paths:
  /v2/integrations/providers/boomi/invoices:
    post:
      tags:
        - integrations
      summary: Push a batch of invoice / credit-memo records from Boomi
      description: |-
        Documents with `debit_credit_indicator == "H"` are routed to the
        CreditMemo model; "S" lands as an Invoice. Max 100 per request.
      operationId: PostIntegrationsProvidersBoomiInvoices
      requestBody:
        content:
          application/json:
            schema:
              items:
                $ref: '#/components/schemas/BoomiInvoicePayload'
              type: array
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BoomiInboundResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    BoomiInvoicePayload:
      properties:
        document_number:
          type: string
          title: ''
          description: BKPF-BELNR or VBRK-VBELN; maps to Invoice.remote_id
        document_type:
          anyOf:
            - type: string
            - type: 'null'
          title: ''
          description: BKPF-BLART
        invoice_doc_type:
          anyOf:
            - type: string
            - type: 'null'
          title: ''
          description: VBRK-FKART
        fiscal_year:
          anyOf:
            - type: string
            - type: 'null'
          title: ''
          description: BKPF-GJAHR
        company_code:
          type: string
          title: ''
          description: >-
            BKPF-BUKRS. Tenant routing is done via the inbound Bearer key, not
            by this field — but Stuut stores it as a custom field for audit and
            downstream filtering.
        customer_code:
          type: string
          title: ''
          description: BSEG-KUNNR / VBRK-KUNRG (payer)
        document_date:
          type: string
          format: date
          title: ''
          description: VBRK-FKDAT or BKPF-BLDAT; maps to Invoice.issued_at
        posting_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: ''
          description: BKPF-BUDAT
        net_due_date:
          type: string
          format: date
          title: ''
          description: Derived from BSEG-ZTERM + ZFBDT
        currency:
          type: string
          title: ''
          description: BKPF-WAERS; ISO 4217
        amount_in_document_currency:
          type: integer
          title: ''
          description: BSEG-WRBTR in smallest currency unit (cents)
        amount_in_local_currency:
          anyOf:
            - type: integer
            - type: 'null'
          title: ''
          description: BSEG-DMBTR
        exchange_rate:
          anyOf:
            - type: string
            - type: 'null'
          title: ''
          description: BKPF-KURSF
        reference:
          anyOf:
            - type: string
            - type: 'null'
          title: ''
          description: BKPF-XBLNR; maps to purchase_order_number
        assignment:
          anyOf:
            - type: string
            - type: 'null'
          title: ''
          description: BSEG-ZUONR
        debit_credit_indicator:
          type: string
          enum:
            - S
            - H
          title: ''
          description: BSEG-SHKZG; S=debit/invoice, H=credit memo
          x-speakeasy-enum-format: union
        text:
          anyOf:
            - type: string
            - type: 'null'
          title: ''
          description: BSEG-SGTXT; max 50 chars; maps to Invoice.memo
        reason_code:
          anyOf:
            - type: string
            - type: 'null'
          title: ''
          description: BSEG-RSTGR; 3-char code
        clearing_document_number:
          anyOf:
            - type: string
            - type: 'null'
          title: ''
          description: BSEG-AUGBL
        clearing_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: ''
          description: BSEG-AUGCP; sets Invoice.paid_at
        status_open:
          anyOf:
            - type: boolean
            - type: 'null'
          title: ''
          description: >-
            Optional. True if the document came from BSID (open); False if from
            BSAD (cleared). When omitted, Stuut derives status from
            `clearing_date` — a row with a clearing date is treated as cleared
            (PAID), otherwise OPEN.
        line_items:
          items:
            $ref: '#/components/schemas/BoomiInvoiceLineItem'
          type: array
          title: ''
      type: object
      required:
        - document_number
        - company_code
        - customer_code
        - document_date
        - net_due_date
        - currency
        - amount_in_document_currency
        - debit_credit_indicator
      title: BoomiInvoicePayload
      description: Invoice / Credit Memo header + lines per the V.4 mapping sheet.
    BoomiInboundResponse:
      properties:
        received_at:
          type: string
          format: date-time
          title: ''
        results:
          items:
            $ref: '#/components/schemas/BoomiInboundResult'
          type: array
          title: ''
      type: object
      required:
        - received_at
        - results
      title: BoomiInboundResponse
    HTTPValidationError:
      $defs:
        ValidationError:
          properties:
            loc:
              items:
                anyOf:
                  - type: string
                  - type: integer
              title: Location
              type: array
            msg:
              title: Message
              type: string
            type:
              title: Type
              type: string
          required:
            - loc
            - msg
            - type
          title: ValidationError
          type: object
          x-speakeasy-include: true
      properties:
        type:
          const: request-validation
          title: Type
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Human-readable description of this specific problem.
          title: Detail
          x-speakeasy-error-message: true
        status:
          const: 422
          title: Status
          type: integer
        title:
          description: Short human-readable summary of the problem.
          title: Title
          type: string
          x-speakeasy-error-message: true
        errors:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Errors
          type: array
      required:
        - type
        - status
        - title
        - errors
      title: APIError
      type: object
    BoomiInvoiceLineItem:
      properties:
        line_number:
          type: integer
          title: ''
          description: VBRP-POSNR
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: ''
        quantity:
          anyOf:
            - type: integer
            - type: 'null'
          title: ''
        unit_amount:
          anyOf:
            - type: integer
            - type: 'null'
          title: ''
        total_amount:
          anyOf:
            - type: integer
            - type: 'null'
          title: ''
      type: object
      required:
        - line_number
      title: BoomiInvoiceLineItem
      description: Invoice line item per VBRP / BSEG.
    BoomiInboundResult:
      properties:
        remote_id:
          type: string
          title: ''
        success:
          type: boolean
          title: ''
        stuut_id:
          anyOf:
            - type: string
            - type: 'null'
          title: ''
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: ''
        message:
          anyOf:
            - type: string
            - type: 'null'
          title: ''
      type: object
      required:
        - remote_id
        - success
        - stuut_id
        - error_code
        - message
      title: BoomiInboundResult
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          type: string
          title: Type
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
      x-speakeasy-include: true
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````