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.

PostHog Wizard hedgehog

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

  1. Go to the Data pipeline page and select the Sources tab.
  2. Click + New source and select Ramp by clicking the Link button.
  3. Select your Environment from the dropdown:

LabelConnects to
Productionapi.ramp.com
Sandbox (demo)demo-api.ramp.com

  1. Enter your Client ID and Client secret. These come from a developer app you create in Ramp (see Creating a developer app below).
  2. Click Next.
  3. 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:

  1. In your Ramp dashboard, go to Settings > Developer API.
  2. Create a new developer app.
  3. Grant the following required read scopes:
  • transactions:read
  • reimbursements:read
  • users:read
  • cards:read
  • departments:read

To sync the other tables, also grant the read scope for each table that you want:

ScopeTables
vendors:readvendors, vendor_contacts
merchants:readmerchants
bills:readbills, bill_drafts
accounting:readaccounting_accounts, accounting_fields, accounting_field_options
billing_statements:readbilling_statements
locations:readlocations
entities:readentities
transfers:readtransfers
statements:readstatements
cashbacks:readcashbacks
receipts:readreceipts
item_receipts:readitem_receipts
spend_programs:readspend_programs

Tables that need one of these optional scopes are not selected by default when you link the source.

Scopes are fixed at app creation

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.

  1. Enable client credentials authentication on the app.
  2. Copy the Client ID (starts with ramp_id_...) and Client secret (starts with ramp_sec_...) – you'll need both when linking the source in PostHog.

Configuration

OptionTypeRequired
EnvironmentselectYes
Client IDtextYes
Client secretpasswordYes

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
transactions

A card transaction (purchase) made on a Ramp card.

Incremental, Full refreshuser_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 refreshcreated_at—
statements

A Ramp card statement for one statement period, with its balances and statement lines.

Incremental, Full refreshend_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 refreshcreated_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.

TableSync methodNotes
transactionsIncrementalUses user_transaction_time as the cursor
reimbursementsFull refresh
usersFull refresh
cardsFull refresh
departmentsFull refresh
vendorsFull refresh
vendor_contactsFull refresh
merchantsFull refresh
billsFull refresh
bill_draftsFull refresh
accounting_accountsFull refresh
billing_statementsFull refresh
locationsFull refresh
entitiesFull refresh
transfersIncrementalUses created_at as the cursor; re-reads last 7 days to capture status changes
statementsIncrementalUses end_date as the cursor
cashbacksFull refresh
accounting_fieldsFull refresh
accounting_field_optionsFull refresh
receiptsIncrementalUses created_at as the cursor
item_receiptsFull refresh
spend_programsFull 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.

Incremental syncs don't capture status changes

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

TableDescription
transactionsCorporate card transactions and spend data
reimbursementsEmployee reimbursement requests and payouts
usersRamp users in your organization
cardsCorporate cards issued to employees
departmentsDepartment structure within your organization
vendorsVendors the business pays through Ramp bill pay or card spend
vendor_contactsContact people at each vendor
merchantsCard merchants that Ramp transactions are made with
billsAccounts payable bills from vendors, paid through Ramp bill pay
bill_draftsDraft accounts payable bills that are not submitted yet
accounting_accountsGeneral ledger accounts from the connected accounting system
billing_statementsBilling statements with amount due and period date range
locationsBusiness locations that spend and users can be assigned to
entitiesBusiness entities (legal entities) for multi-entity Ramp businesses
transfersTransfer payments between bank accounts and the Ramp balance
statementsCard statements for one statement period with balances and statement lines
cashbacksCashback payments that Ramp paid out to the business
accounting_fieldsCustom accounting fields (coding dimensions) from the accounting system
accounting_field_optionsAllowed values of each custom accounting field
receiptsReceipts uploaded for card transactions or reimbursements
item_receiptsItem receipts that record goods received against a purchase order
spend_programsTemplates that set the limits and restrictions for a type of spend

Still have questions?

Was this page useful?