Linking Ramp as a source
Let AI connect your sources for you
Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

The Ramp connector syncs your corporate spend data into PostHog, including transactions, reimbursements, users, cards, departments, vendors, merchants, bills, accounting data, billing statements, locations, entities, transfers, statements, cashbacks, receipts, item receipts, and spend programs.
Adding a data source
- Go to the Data pipeline page and select the Sources tab.
- Click + New source and select Ramp by clicking the Link button.
- Select your Environment from the dropdown:
| Label | Connects to |
|---|---|
| Production | api.ramp.com |
| Sandbox (demo) | demo-api.ramp.com |
- Enter your Client ID and Client secret. These come from a developer app you create in Ramp (see Creating a developer app below).
- Click Next.
- Select the tables you want to import, set the sync method and frequency, then click Import.
The data warehouse then starts syncing your Ramp data. You can see details and progress in the data pipeline sources tab.
Creating a developer app
To connect Ramp to PostHog, you need to create a developer app with the correct read scopes:
- In your Ramp dashboard, go to Settings > Developer API.
- Create a new developer app.
- Grant the following required read scopes:
transactions:readreimbursements:readusers:readcards:readdepartments:read
To sync the other tables, also grant the read scope for each table that you want:
| Scope | Tables |
|---|---|
vendors:read | vendors, vendor_contacts |
merchants:read | merchants |
bills:read | bills, bill_drafts |
accounting:read | accounting_accounts, accounting_fields, accounting_field_options |
billing_statements:read | billing_statements |
locations:read | locations |
entities:read | entities |
transfers:read | transfers |
statements:read | statements |
cashbacks:read | cashbacks |
receipts:read | receipts |
item_receipts:read | item_receipts |
spend_programs:read | spend_programs |
Tables that need one of these optional scopes are not selected by default when you link the source.
Ramp locks scopes when the developer app is created. You can't add scopes later – make sure you grant the scopes for every table you want to sync before creating the app.
- Enable client credentials authentication on the app.
- Copy the Client ID (starts with
ramp_id_...) and Client secret (starts withramp_sec_...) – you'll need both when linking the source in PostHog.
Configuration
| Option | Type | Required |
|---|---|---|
Environment | select | Yes |
Client ID | text | Yes |
Client secret | password | Yes |
Supported tables
| Table | Description | Sync method | Incremental field | Primary key |
|---|---|---|---|---|
transactions | A card transaction (purchase) made on a Ramp card. | Incremental, Full refresh | user_transaction_time | — |
reimbursements | An out-of-pocket expense reimbursement request in Ramp. | Full refresh | — | — |
users | A user (employee) in the Ramp organization. | Full refresh | — | — |
cards | A physical or virtual Ramp card issued to a user. | Full refresh | — | — |
departments | A department defined in the Ramp organization. | Full refresh | — | — |
vendors | A vendor the business pays through Ramp bill pay or card spend. | Full refresh | — | — |
vendor_contacts | A contact person at a vendor. | Full refresh | — | — |
merchants | A card merchant that Ramp transactions are made with. | Full refresh | — | — |
bills | An accounts payable bill from a vendor, paid through Ramp bill pay. | Full refresh | — | — |
bill_drafts | A draft accounts payable bill that has not been submitted yet. | Full refresh | — | — |
accounting_accounts | A general ledger account from the connected accounting system. | Full refresh | — | — |
billing_statements | A billing statement for one statement period, with the total amount due. | Full refresh | — | — |
locations | A location of the business, such as an office, that spend and users can be assigned to. | Full refresh | — | — |
entities | A business entity (legal entity) of a multi-entity Ramp business. | Full refresh | — | — |
transfers | A transfer payment that moves money between a business bank account and the Ramp balance. | Incremental, Full refresh | created_at | — |
statements | A Ramp card statement for one statement period, with its balances and statement lines. | Incremental, Full refresh | end_date | — |
cashbacks | A cashback payment that Ramp paid out to the business. | Full refresh | — | — |
accounting_fields | A custom accounting field (coding dimension) uploaded to Ramp from the accounting system. | Full refresh | — | — |
accounting_field_options | An allowed value of a custom accounting field. | Full refresh | — | — |
receipts | A receipt uploaded to Ramp for a card transaction or a reimbursement. | Incremental, Full refresh | created_at | — |
item_receipts | An item receipt that records goods received against a purchase order. | Full refresh | — | — |
spend_programs | A spend program: a template that sets the limits and restrictions for a type of spend. | Full refresh | — | — |
Sync modes
The transactions, transfers, statements, and receipts tables support incremental syncing. All other tables use full refresh.
| Table | Sync method | Notes |
|---|---|---|
transactions | Incremental | Uses user_transaction_time as the cursor |
reimbursements | Full refresh | |
users | Full refresh | |
cards | Full refresh | |
departments | Full refresh | |
vendors | Full refresh | |
vendor_contacts | Full refresh | |
merchants | Full refresh | |
bills | Full refresh | |
bill_drafts | Full refresh | |
accounting_accounts | Full refresh | |
billing_statements | Full refresh | |
locations | Full refresh | |
entities | Full refresh | |
transfers | Incremental | Uses created_at as the cursor; re-reads last 7 days to capture status changes |
statements | Incremental | Uses end_date as the cursor |
cashbacks | Full refresh | |
accounting_fields | Full refresh | |
accounting_field_options | Full refresh | |
receipts | Incremental | Uses created_at as the cursor |
item_receipts | Full refresh | |
spend_programs | Full refresh |
Incremental syncs only fetch new records from the cursor field's last synced value. Full refresh syncs reload all data on each run. The transfers table automatically re-reads the last 7 days on each incremental sync to capture status changes as transfers settle.
Ramp's API doesn't support an updated_after filter on transactions. This means incremental syncs capture new transactions but miss late state changes on existing ones (e.g., a transaction moving from pending to cleared). If tracking transaction status changes matters to you, run an occasional full refresh sync on the transactions table.
Available tables
| Table | Description |
|---|---|
transactions | Corporate card transactions and spend data |
reimbursements | Employee reimbursement requests and payouts |
users | Ramp users in your organization |
cards | Corporate cards issued to employees |
departments | Department structure within your organization |
vendors | Vendors the business pays through Ramp bill pay or card spend |
vendor_contacts | Contact people at each vendor |
merchants | Card merchants that Ramp transactions are made with |
bills | Accounts payable bills from vendors, paid through Ramp bill pay |
bill_drafts | Draft accounts payable bills that are not submitted yet |
accounting_accounts | General ledger accounts from the connected accounting system |
billing_statements | Billing statements with amount due and period date range |
locations | Business locations that spend and users can be assigned to |
entities | Business entities (legal entities) for multi-entity Ramp businesses |
transfers | Transfer payments between bank accounts and the Ramp balance |
statements | Card statements for one statement period with balances and statement lines |
cashbacks | Cashback payments that Ramp paid out to the business |
accounting_fields | Custom accounting fields (coding dimensions) from the accounting system |
accounting_field_options | Allowed values of each custom accounting field |
receipts | Receipts uploaded for card transactions or reimbursements |
item_receipts | Item receipts that record goods received against a purchase order |
spend_programs | Templates that set the limits and restrictions for a type of spend |





