Intuit · Arazzo Workflow

Intuit Pay Customer Open Invoice

Version 1.0.0

Find a customer's oldest open invoice and record a payment against it.

1 workflow 1 source API 1 provider
View Spec View on GitHub AccountingCustom FieldsFinancialFinancial-ServicesInvoicingPaymentsPayrollProject ManagementSales TaxSmall BusinessTaxTax PreparationTaxesTime TrackingFortune 1000ArazzoWorkflows

Provider

intuit

Workflows

pay-customer-open-invoice
Query a customer's open invoices and pay the oldest one.
Queries the Invoice entity for a customer's unpaid invoices and records a Payment linked to the oldest open invoice when one exists.
2 steps inputs: accessToken, customerId, paymentAmount outputs: openInvoiceId, paymentId
1
findOpenInvoices
queryEntities
Query the customer's invoices that still have an outstanding balance.
2
recordPayment
createPayment
Record a payment linked to the customer's oldest open invoice.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Intuit Pay Customer Open Invoice
  summary: Find a customer's oldest open invoice and record a payment against it.
  description: >-
    Applies a received payment to the right invoice automatically. The workflow
    queries the Invoice entity for a specific customer's records that still
    carry a Balance, ordered by transaction date, then records a Payment whose
    Line links to the oldest open invoice returned. The customer Id and the
    resolved invoice Id are chained into the payment request. Every step spells
    out its request inline so the flow can be read and executed without opening
    the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: quickbooksAccounting
  url: ../openapi/quickbooks-accounting.yml
  type: openapi
workflows:
- workflowId: pay-customer-open-invoice
  summary: Query a customer's open invoices and pay the oldest one.
  description: >-
    Queries the Invoice entity for a customer's unpaid invoices and records a
    Payment linked to the oldest open invoice when one exists.
  inputs:
    type: object
    required:
    - accessToken
    - customerId
    - paymentAmount
    properties:
      accessToken:
        type: string
        description: OAuth 2.0 bearer access token for the QuickBooks company.
      customerId:
        type: string
        description: Id of the customer whose open invoice will be paid.
      paymentAmount:
        type: number
        description: Total amount of the payment to record.
  steps:
  - stepId: findOpenInvoices
    description: Query the customer's invoices that still have an outstanding balance.
    operationId: queryEntities
    parameters:
    - name: query
      in: query
      value: "SELECT * FROM Invoice WHERE CustomerRef = '$inputs.customerId' AND Balance > '0' ORDERBY TxnDate"
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      openInvoiceId: $response.body#/QueryResponse/Invoice/0/Id
    onSuccess:
    - name: hasOpenInvoice
      type: goto
      stepId: recordPayment
      criteria:
      - context: $response.body
        condition: $.QueryResponse.Invoice.length > 0
        type: jsonpath
    - name: nothingOpen
      type: end
      criteria:
      - context: $response.body
        condition: $.QueryResponse.Invoice.length == 0
        type: jsonpath
  - stepId: recordPayment
    description: Record a payment linked to the customer's oldest open invoice.
    operationId: createPayment
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    requestBody:
      contentType: application/json
      payload:
        CustomerRef:
          value: $inputs.customerId
        TotalAmt: $inputs.paymentAmount
        Line:
        - Amount: $inputs.paymentAmount
          LinkedTxn:
          - TxnId: $steps.findOpenInvoices.outputs.openInvoiceId
            TxnType: Invoice
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      paymentId: $response.body#/Payment/Id
      unappliedAmt: $response.body#/Payment/UnappliedAmt
  outputs:
    openInvoiceId: $steps.findOpenInvoices.outputs.openInvoiceId
    paymentId: $steps.recordPayment.outputs.paymentId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/intuit-pay-customer-open-invoice-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.