Cross-Provider Workflow

Ramp Bills to Google Sheet Export

Version 1.0.0

Export Ramp accounts-payable bills to a Google Sheet for AP review.

1 workflow 2 source APIs 2 providers
View Spec View on GitHub ArazzoWorkflowsCross-Provider

Providers Orchestrated

ramp google-sheets

Workflows

bills-to-sheet
List Ramp bills, then append them to a Google Sheet.
Retrieves Ramp accounts-payable bills and appends them as rows to a Google Sheet for AP review.
2 steps inputs: pageSize, range, spreadsheetId outputs: updatedRange, updatedRows
1
list-bills
$sourceDescriptions.rampApi.listBills
Retrieve Ramp accounts-payable bills.
2
append-bills
$sourceDescriptions.googleSheetsApi.appendValues
Append the bills as rows to the Google Sheet.

Source API Descriptions

Arazzo Workflow Specification

fin-ramp-bills-to-sheet-export.yml Raw ↑
arazzo: 1.0.1
info:
  title: Ramp Bills to Google Sheet Export
  summary: Export Ramp accounts-payable bills to a Google Sheet for AP review.
  description: >-
    An accounts-payable workflow that pulls bills from Ramp and appends them to
    a Google Sheet so the finance team can review and approve outgoing vendor
    payments in a familiar spreadsheet. Demonstrates exporting AP data from a
    spend-management provider into a spreadsheet ledger.
  version: 1.0.0
sourceDescriptions:
  - name: rampApi
    url: https://raw.githubusercontent.com/api-evangelist/ramp/refs/heads/main/openapi/ramp-developer-api-openapi.yml
    type: openapi
  - name: googleSheetsApi
    url: https://raw.githubusercontent.com/api-evangelist/google-sheets/refs/heads/main/openapi/google-sheets-openapi.yml
    type: openapi
workflows:
  - workflowId: bills-to-sheet
    summary: List Ramp bills, then append them to a Google Sheet.
    description: >-
      Retrieves Ramp accounts-payable bills and appends them as rows to a Google
      Sheet for AP review.
    inputs:
      type: object
      properties:
        pageSize:
          type: integer
        spreadsheetId:
          type: string
        range:
          type: string
    steps:
      - stepId: list-bills
        description: Retrieve Ramp accounts-payable bills.
        operationId: $sourceDescriptions.rampApi.listBills
        parameters:
          - name: page_size
            in: query
            value: $inputs.pageSize
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          bills: $response.body#/data
      - stepId: append-bills
        description: Append the bills as rows to the Google Sheet.
        operationId: $sourceDescriptions.googleSheetsApi.appendValues
        parameters:
          - name: spreadsheetId
            in: path
            value: $inputs.spreadsheetId
          - name: range
            in: path
            value: $inputs.range
          - name: valueInputOption
            in: query
            value: USER_ENTERED
        requestBody:
          contentType: application/json
          payload:
            range: $inputs.range
            majorDimension: ROWS
            values:
              - - Ramp Bills Export
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          updatedRange: $response.body#/updates/updatedRange
          updatedRows: $response.body#/updates/updatedRows
    outputs:
      updatedRange: $steps.append-bills.outputs.updatedRange
      updatedRows: $steps.append-bills.outputs.updatedRows