RedPlanetHQ/core

New Integration: Ramp

开放

#474 创建于 2026年2月24日

 (0 条评论) (0 个反应) (0 位负责人)TypeScript (184 个派生)auto 404
enhancementgood first issueintegrationnew-featurenew-integration

仓库指标

星标
 (1,930 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Description

Add Ramp integration to sync corporate card transactions, expense data, reimbursements, and card management into CORE.

Reference Implementations

Existing Integrations (use as templates)

  • integrations/hubspot/ - Similar business data system
  • integrations/linear/ - Project management integration
  • integrations/slack/ - For reference

Required Files Structure

integrations/ramp/
├── src/
│   ├── index.ts          # Main entry, OAuth spec
│   ├── schedule.ts       # Sync logic
│   ├── utils.ts          # Ramp API utilities
│   ├── account-create.ts # OAuth setup
│   └── create-activity.ts # Activity formatting
├── package.json
├── tsup.config.ts
└── README.md

Ramp API Integration

OAuth Setup

  • Use OAuth 2.0 authorization
  • Create a developer app in Settings > Developer to obtain API credentials (requires admin access)
  • OpenAPI spec available at: https://docs.ramp.com/openapi/developer-api.json
  • Base documentation: https://docs.ramp.com/

Key Endpoints

  • GET /transactions - List transactions
  • GET /cards - List cards
  • GET /users - List users
  • GET /reimbursements - List reimbursements
  • GET /receipts - List receipts
  • GET /departments - List departments
  • GET /locations - List locations
  • GET /vendors - List vendors
  • GET /accounting/connections - Accounting connections

Events to Track

  1. Transactions - New card transactions, transaction updates, merchant categorization
  2. Expenses - Expense submitted, receipt uploaded, memo added
  3. Reimbursements - Reimbursement requested, approved, paid
  4. Cards - Card issued, card locked, card terminated, limit changed
  5. Users - User invited, user activated, role changed

Implementation Tasks

  • Set up basic integration structure following integrations/github/src/index.ts pattern
  • Implement OAuth 2.0 flow in account-create.ts
  • Create API utilities in utils.ts for Ramp API calls
  • Implement sync logic in schedule.ts for transactions, cards, and users
  • Convert expense events to CORE activity format
  • Add error handling and rate limiting
  • Create integration documentation
  • Add to integrations/README.md

Technical Notes

  • Machine-readable OpenAPI spec available for code generation
  • Developer Assist (AI-powered) is built into the docs for real-time help
  • Support available at developer-support@ramp.com for API issues
  • Plain text docs available at https://docs.ramp.com/llms.txt

Resources

Labels

enhancement, integration, new-feature

贡献者指南