Ramp · Arazzo Workflow

Ramp Locate Department Spend

Version 1.0.0

Pull departments, users, and transactions to roll spend up by department.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub FinanceSpend ManagementCorporate CardsExpense ManagementAccounts PayableBill PayAccountingReimbursementArazzoWorkflows

Provider

ramp

Workflows

locate-department-spend
List departments, users, and transactions to attribute spend by department.
Lists departments and users to build the user-to-department map, then lists transactions so spend can be rolled up by department.
3 steps inputs: accessToken, fromDate, toDate outputs: departments, transactions, users
1
listDepartments
List the organization's departments to form the top level of the spend rollup.
2
listUsers
List users so each user's department_id can be joined to a department.
3
listTransactions
List transactions for the date window so each transaction's user_id can be traced to a department for the spend rollup.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Ramp Locate Department Spend
  summary: Pull departments, users, and transactions to roll spend up by department.
  description: >-
    Builds the datasets needed to roll transaction spend up to a department.
    The workflow lists departments, then lists users so each user's
    department_id can be joined to a department, and finally lists transactions
    for a date window so each transaction's user_id can be traced through the
    user to its department. The three lists together let a caller compute
    per-department spend for the period. 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: departmentsApi
  url: ../openapi/ramp-departments-api-openapi.yml
  type: openapi
- name: transactionsApi
  url: ../openapi/ramp-transactions-api-openapi.yml
  type: openapi
- name: usersApi
  url: ../openapi/ramp-users-api-openapi.yml
  type: openapi
workflows:
- workflowId: locate-department-spend
  summary: List departments, users, and transactions to attribute spend by department.
  description: >-
    Lists departments and users to build the user-to-department map, then
    lists transactions so spend can be rolled up by department.
  inputs:
    type: object
    required:
    - fromDate
    - toDate
    properties:
      accessToken:
        type: string
        description: OAuth2 client-credentials bearer token with departments:read, users:read, and transactions:read scopes.
      fromDate:
        type: string
        format: date
        description: Inclusive lower bound for the transaction window (YYYY-MM-DD).
      toDate:
        type: string
        format: date
        description: Inclusive upper bound for the transaction window (YYYY-MM-DD).
  steps:
  - stepId: listDepartments
    description: >-
      List the organization's departments to form the top level of the spend
      rollup.
    operationId: listDepartments
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      departments: $response.body#/data
  - stepId: listUsers
    description: >-
      List users so each user's department_id can be joined to a department.
    operationId: listUsers
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      users: $response.body#/data
  - stepId: listTransactions
    description: >-
      List transactions for the date window so each transaction's user_id can
      be traced to a department for the spend rollup.
    operationId: listTransactions
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: from_date
      in: query
      value: $inputs.fromDate
    - name: to_date
      in: query
      value: $inputs.toDate
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      transactions: $response.body#/data
  outputs:
    departments: $steps.listDepartments.outputs.departments
    users: $steps.listUsers.outputs.users
    transactions: $steps.listTransactions.outputs.transactions

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/ramp-locate-department-spend-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.