Ramp · Arazzo Workflow

Ramp Review Pending Reimbursement Detail

Version 1.0.0

List reimbursements and branch into a user lookup only when one is still pending.

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

Provider

ramp

Workflows

review-pending-reimbursement-detail
Branch into a user lookup only when the first reimbursement is pending.
Lists reimbursements and conditionally lists users to resolve the requester when the first reimbursement is in a pending state.
2 steps inputs: accessToken, pendingState outputs: pendingUserId, users
1
listReimbursements
List the organization's reimbursements and capture the first request's state and requesting user.
2
listUsers
List users so the pending reimbursement's user_id can be resolved to a named requester for review.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Ramp Review Pending Reimbursement Detail
  summary: List reimbursements and branch into a user lookup only when one is still pending.
  description: >-
    A reimbursement-approval read flow with branching. The workflow lists
    reimbursements and inspects the first request's state: when it is still
    pending it lists users so the requester can be resolved for review, and
    when it is not pending it ends without the extra lookup. This adapts an
    approval theme to the read-only operations the Ramp Developer API exposes.
    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: reimbursementsApi
  url: ../openapi/ramp-reimbursements-api-openapi.yml
  type: openapi
- name: usersApi
  url: ../openapi/ramp-users-api-openapi.yml
  type: openapi
workflows:
- workflowId: review-pending-reimbursement-detail
  summary: Branch into a user lookup only when the first reimbursement is pending.
  description: >-
    Lists reimbursements and conditionally lists users to resolve the
    requester when the first reimbursement is in a pending state.
  inputs:
    type: object
    required:
    - pendingState
    properties:
      accessToken:
        type: string
        description: OAuth2 client-credentials bearer token with reimbursements:read and users:read scopes.
      pendingState:
        type: string
        description: The reimbursement state value that indicates a request still awaits review.
  steps:
  - stepId: listReimbursements
    description: >-
      List the organization's reimbursements and capture the first request's
      state and requesting user.
    operationId: listReimbursements
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstState: $response.body#/data/0/state
      firstUserId: $response.body#/data/0/user_id
    onSuccess:
    - name: isPending
      type: goto
      stepId: listUsers
      criteria:
      - context: $response.body
        condition: $.data[0].state == $inputs.pendingState
        type: jsonpath
    - name: notPending
      type: end
      criteria:
      - context: $response.body
        condition: $.data[0].state != $inputs.pendingState
        type: jsonpath
  - stepId: listUsers
    description: >-
      List users so the pending reimbursement's user_id can be resolved to a
      named requester for review.
    operationId: listUsers
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      users: $response.body#/data
  outputs:
    pendingUserId: $steps.listReimbursements.outputs.firstUserId
    users: $steps.listUsers.outputs.users

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-review-pending-reimbursement-detail-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.