Block · Arazzo Workflow

Block Square Location Payment Reconciliation

Version 1.0.0

Resolve a location, list its recent payments, and detail the most recent one.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub CommerceCryptocurrencyE-CommerceFintechPaymentsPoint-of-SaleSquareArazzoWorkflows

Provider

block

Workflows

location-payment-reconciliation
List locations, list payments for the first location, then detail the latest.
Lists locations and uses the first one to list recent payments, branching on whether any payments exist and retrieving the most recent payment in full when one is present.
3 steps inputs: accessToken, limit outputs: latestPaymentId, locationId, paymentStatus
1
listLocations
List the seller's locations and select the first for reconciliation.
2
listPayments
List recent payments for the resolved location and branch on results.
3
getPayment
Retrieve the most recent payment by id for the reconciliation record.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Block Square Location Payment Reconciliation
  summary: Resolve a location, list its recent payments, and detail the most recent one.
  description: >-
    An end-to-end reconciliation that starts from location discovery. The
    workflow lists the seller's locations, lists recent payments for the first
    location, and reads the most recent payment back in full when one exists.
    Each step inlines its bearer token and query parameters.
  version: 1.0.0
sourceDescriptions:
- name: merchantsApi
  url: ../openapi/block-merchants-api-openapi.yml
  type: openapi
- name: paymentsApi
  url: ../openapi/block-payments-api-openapi.yml
  type: openapi
workflows:
- workflowId: location-payment-reconciliation
  summary: List locations, list payments for the first location, then detail the latest.
  description: >-
    Lists locations and uses the first one to list recent payments, branching on
    whether any payments exist and retrieving the most recent payment in full
    when one is present.
  inputs:
    type: object
    required:
    - accessToken
    properties:
      accessToken:
        type: string
        description: Square access token presented as a Bearer credential.
      limit:
        type: integer
        description: Maximum number of payments to return (max 100).
        default: 25
  steps:
  - stepId: listLocations
    description: List the seller's locations and select the first for reconciliation.
    operationId: list-locations
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      locationId: $response.body#/locations/0/id
      locationName: $response.body#/locations/0/name
  - stepId: listPayments
    description: List recent payments for the resolved location and branch on results.
    operationId: list-payments
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: location_id
      in: query
      value: $steps.listLocations.outputs.locationId
    - name: limit
      in: query
      value: $inputs.limit
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      latestPaymentId: $response.body#/payments/0/id
    onSuccess:
    - name: hasPayments
      type: goto
      stepId: getPayment
      criteria:
      - context: $response.body
        condition: $.payments.length > 0
        type: jsonpath
    - name: noPayments
      type: end
      criteria:
      - context: $response.body
        condition: $.payments.length == 0
        type: jsonpath
  - stepId: getPayment
    description: Retrieve the most recent payment by id for the reconciliation record.
    operationId: get-payment
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: payment_id
      in: path
      value: $steps.listPayments.outputs.latestPaymentId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      paymentStatus: $response.body#/payment/status
      totalMoney: $response.body#/payment/total_money
  outputs:
    locationId: $steps.listLocations.outputs.locationId
    latestPaymentId: $steps.listPayments.outputs.latestPaymentId
    paymentStatus: $steps.getPayment.outputs.paymentStatus

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/block-location-payment-reconciliation-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 form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

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