Schema · Entity relationship diagram
Ramp tables and relationships
Corporate cards, reimbursements and bill pay from Ramp: card transactions with their line splits and GL coding, reimbursements, bills and purchase orders with line items, receipts, vendors with spend totals, users, departments, cards, funds (spend limits), spend programs, statements, daily balances and the chart of accounts synced from your accounting system.
ramp- All money columns are in major units (dollars); Ramp's minor-unit integers are converted.
- Child tables are replaced as a whole when their parent is re-read, so removed or re-split lines disappear.
Drag to pan, scroll or pinch to zoom, click a table to see what it joins to.
Table reference
29 tables · click a table for its columnstransactions58 columns · Card spendshow in diagram
One row per card transaction, including declined ones (filter state <> 'DECLINED' for spend). amount is in the card currency, major units.
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | varchar(64) | PK | Primary key. |
| user_transaction_time | timestamp | ||
| settlement_date | timestamp | ||
| accounting_date | timestamp | ||
| updated_at | timestamp | ||
| synced_at | timestamp | ||
| stateCLEARED, PENDING, DECLINED, ... Declined transactions are kept. | varchar(32) | CLEARED, PENDING, DECLINED, ... Declined transactions are kept. | |
| amountTransaction amount in currency_code, major units (dollars). | decimal(18,4) | Transaction amount in currency_code, major units (dollars). | |
| currency_code | varchar(8) | ||
| original_transaction_amount | decimal(18,4) | ||
| original_transaction_currency_code | varchar(8) | ||
| merchant_amount | decimal(18,4) | ||
| merchant_currency | varchar(8) | ||
| entity_amount | decimal(18,4) | ||
| entity_currency | varchar(8) | ||
| card_idReferences cards.id. | varchar(64) | FK | References cards.id. |
| card_present | boolean | ||
| fund_idReferences funds.id. | varchar(64) | FK | References funds.id. |
| spend_program_idReferences spend_programs.id. | varchar(64) | FK | References spend_programs.id. |
| statement_idReferences statements.id. | varchar(64) | FK | References statements.id. |
| entity_idReferences entities.id. | varchar(64) | FK | References entities.id. |
| trip_id | varchar(64) | ||
| trip_name | varchar(512) | ||
| card_holder_user_idReferences users.id. | varchar(64) | FK | References users.id. |
| card_holder_first_name | varchar(256) | ||
| card_holder_last_name | varchar(256) | ||
| card_holder_employee_id | varchar(128) | ||
| card_holder_department_idReferences departments.id. | varchar(64) | FK | References departments.id. |
| card_holder_department_name | varchar(256) | ||
| card_holder_location_idReferences locations.id. | varchar(64) | FK | References locations.id. |
| card_holder_location_name | varchar(256) | ||
| merchant_idReferences merchants.id. | varchar(64) | FK | References merchants.id. |
| merchant_name | varchar(512) | ||
| merchant_descriptor | varchar(512) | ||
| merchant_category_code | varchar(16) | ||
| merchant_category_code_description | varchar(256) | ||
| network_merchant_id | varchar(128) | ||
| merchant_location_city | varchar(256) | ||
| merchant_location_state | varchar(64) | ||
| merchant_location_postal_code | varchar(32) | ||
| merchant_location_country | varchar(64) | ||
| sk_category_id | integer | ||
| sk_category_name | varchar(256) | ||
| memo | varchar(4096) | ||
| sync_status | varchar(32) | ||
| all_requirements_met_and_approved | boolean | ||
| requires_accounting_vendor_creation_to_sync | boolean | ||
| original_transaction_id | varchar(64) | ||
| decline_reason | varchar(128) | ||
| declined_amount | decimal(18,4) | ||
| receipt_ids | varchar(65535) | ||
| receipt_count | integer | ||
| attendees | varchar(65535) | ||
| policy_violations | varchar(65535) | ||
| disputes | varchar(65535) | ||
| accounting_categories | varchar(65535) | ||
| line_item_count | integer | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
transaction_line_items10 columns · Card spendshow in diagram
How a transaction is split. amount is in the original (merchant) currency; converted_amount is in the transaction currency.
Primary key: transaction_id, line_index
| Column | Type | Key | Description |
|---|---|---|---|
| _jsdata_idRow id: md5 of the natural key. | varchar(32) | Row id: md5 of the natural key. | |
| transaction_idPrimary key (with line_index). References transactions.id. | varchar(64) | PK FK | Primary key (with line_index). References transactions.id. |
| line_indexPrimary key (with transaction_id). | integer | PK | Primary key (with transaction_id). |
| line_item_id | varchar(64) | ||
| amount | decimal(18,4) | ||
| currency_code | varchar(8) | ||
| converted_amount | decimal(18,4) | ||
| converted_currency_code | varchar(8) | ||
| memo | varchar(4096) | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
transaction_accounting_field_selections18 columns · Card spendshow in diagram
The accounting coding (GL account, class, department, project...) on a transaction (line_type header) or on each line.
Primary key: _jsdata_id
| Column | Type | Key | Description |
|---|---|---|---|
| _jsdata_idPrimary key. | varchar(32) | PK | Primary key. |
| transaction_idReferences transactions.id. References transaction_line_items.transaction_id,line_index (line_index is NULL (line_type 'header') for coding on the whole transaction.). | varchar(64) | FK | References transactions.id. References transaction_line_items.transaction_id,line_index (line_index is NULL (line_type 'header') for coding on the whole transaction.). |
| line_type | varchar(32) | ||
| line_indexReferences transaction_line_items.transaction_id,line_index (line_index is NULL (line_type 'header') for coding on the whole transaction.). | integer | FK | References transaction_line_items.transaction_id,line_index (line_index is NULL (line_type 'header') for coding on the whole transaction.). |
| selection_index | integer | ||
| id | varchar(64) | ||
| external_idJoins to gl_accounts.id (For type GL_ACCOUNT selections, external_id is the accounting system's account id (gl_accounts.id); for custom fields it matches accounting_field_options.id.). | varchar(256) | FK | Joins to gl_accounts.id (For type GL_ACCOUNT selections, external_id is the accounting system's account id (gl_accounts.id); for custom fields it matches accounting_field_options.id.). |
| external_code | varchar(256) | ||
| name | varchar(512) | ||
| display_name | varchar(512) | ||
| typeGL_ACCOUNT, CLASS, DEPARTMENT, MERCHANT, ... (the accounting system's field). | varchar(64) | GL_ACCOUNT, CLASS, DEPARTMENT, MERCHANT, ... (the accounting system's field). | |
| provider_name | varchar(128) | ||
| source_type | varchar(64) | ||
| category_id | varchar(64) | ||
| category_external_id | varchar(256) | ||
| category_name | varchar(512) | ||
| category_type | varchar(64) | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
receipts7 columns · Card spendshow in diagram
receipt images attached to transactions / reimbursements (metadata + URL)
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | varchar(64) | PK | Primary key. |
| transaction_idReferences transactions.id. | varchar(64) | FK | References transactions.id. |
| reimbursement_idReferences reimbursements.id. | varchar(64) | FK | References reimbursements.id. |
| user_idReferences users.id. | varchar(64) | FK | References users.id. |
| created_at | timestamp | ||
| receipt_url | varchar(2048) | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
merchants5 columns · Card spendshow in diagram
merchants seen on card spend
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | varchar(64) | PK | Primary key. |
| merchant_name | varchar(512) | ||
| sk_category_name | varchar(256) | ||
| is_auto_approved | boolean | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
statements14 columns · Card spendshow in diagram
card statements with opening/closing balances
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | varchar(64) | PK | Primary key. |
| start_date | timestamp | ||
| end_date | timestamp | ||
| preceding_statement_id | varchar(64) | ||
| statement_url | varchar(2048) | ||
| opening_balance | decimal(18,4) | ||
| charges | decimal(18,4) | ||
| credits | decimal(18,4) | ||
| payments | decimal(18,4) | ||
| ending_balance | decimal(18,4) | ||
| currency_code | varchar(8) | ||
| balance_sections | varchar(65535) | ||
| statement_line_count | integer | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
reimbursements43 columns · Reimbursementsshow in diagram
reimbursements (GET /developer/v1/reimbursements), incremental on updated_after
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | varchar(64) | PK | Primary key. |
| user_idReferences users.id. | varchar(64) | FK | References users.id. |
| user_full_name | varchar(256) | ||
| user_email | varchar(320) | ||
| employee_id | varchar(128) | ||
| created_at | timestamp | ||
| submitted_at | timestamp | ||
| approved_at | timestamp | ||
| updated_at | timestamp | ||
| transaction_date | date | ||
| accounting_date | timestamp | ||
| synced_at | timestamp | ||
| payment_processed_at | timestamp | ||
| state | varchar(64) | ||
| type | varchar(32) | ||
| direction | varchar(32) | ||
| amount | decimal(18,4) | ||
| currency | varchar(8) | ||
| merchant_amount | decimal(18,4) | ||
| merchant_currency | varchar(8) | ||
| entity_amount | decimal(18,4) | ||
| entity_currency | varchar(8) | ||
| payee_amount | decimal(18,4) | ||
| payee_currency_code | varchar(8) | ||
| merchant | varchar(512) | ||
| merchant_idReferences merchants.id. | varchar(64) | FK | References merchants.id. |
| memo | varchar(4096) | ||
| entity_idReferences entities.id. | varchar(64) | FK | References entities.id. |
| fund_idReferences funds.id. | varchar(64) | FK | References funds.id. |
| trip_id | varchar(64) | ||
| payment_id | varchar(64) | ||
| payment_batch_id | varchar(64) | ||
| distance | decimal(18,4) | ||
| start_location | varchar(1024) | ||
| end_location | varchar(1024) | ||
| waypoints | varchar(65535) | ||
| sync_status | varchar(32) | ||
| trace_id | varchar(128) | ||
| trace_id_descriptor | varchar(256) | ||
| receipt_ids | varchar(65535) | ||
| attendees | varchar(65535) | ||
| line_item_count | integer | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
reimbursement_line_items7 columns · Reimbursementsshow in diagram
reimbursement line_items[]; key reimbursement_id
Primary key: reimbursement_id, line_index
| Column | Type | Key | Description |
|---|---|---|---|
| _jsdata_idRow id: md5 of the natural key. | varchar(32) | Row id: md5 of the natural key. | |
| reimbursement_idPrimary key (with line_index). References reimbursements.id. | varchar(64) | PK FK | Primary key (with line_index). References reimbursements.id. |
| line_indexPrimary key (with reimbursement_id). | integer | PK | Primary key (with reimbursement_id). |
| amount | decimal(18,4) | ||
| currency_code | varchar(8) | ||
| memo | varchar(4096) | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
reimbursement_accounting_field_selections18 columns · Reimbursementsshow in diagram
accounting coding on reimbursements and their lines
Primary key: _jsdata_id
| Column | Type | Key | Description |
|---|---|---|---|
| _jsdata_idPrimary key. | varchar(32) | PK | Primary key. |
| reimbursement_idReferences reimbursements.id. | varchar(64) | FK | References reimbursements.id. |
| line_type | varchar(32) | ||
| line_index | integer | ||
| selection_index | integer | ||
| id | varchar(64) | ||
| external_idJoins to gl_accounts.id. | varchar(256) | FK | Joins to gl_accounts.id. |
| external_code | varchar(256) | ||
| name | varchar(512) | ||
| display_name | varchar(512) | ||
| type | varchar(64) | ||
| provider_name | varchar(128) | ||
| source_type | varchar(64) | ||
| category_id | varchar(64) | ||
| category_external_id | varchar(256) | ||
| category_name | varchar(512) | ||
| category_type | varchar(64) | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
bills54 columns · Bill payshow in diagram
bill pay (GET /developer/v1/bills, active + archived)
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | varchar(64) | PK | Primary key. |
| invoice_number | varchar(256) | ||
| status | varchar(32) | ||
| status_summary | varchar(64) | ||
| approval_status | varchar(32) | ||
| sync_status | varchar(32) | ||
| is_archived | boolean | ||
| created_at | timestamp | ||
| issued_at | timestamp | ||
| due_at | timestamp | ||
| paid_at | timestamp | ||
| posting_date | timestamp | ||
| accounting_date | timestamp | ||
| archived_at | timestamp | ||
| draft_bill_created_at | timestamp | ||
| draft_bill_id | varchar(64) | ||
| amount | decimal(18,4) | ||
| currency_code | varchar(8) | ||
| fx_conversion_rate | decimal(18,8) | ||
| memo | varchar(4096) | ||
| vendor_memo | varchar(4096) | ||
| vendor_idReferences vendors.id. | varchar(64) | FK | References vendors.id. |
| vendor_name | varchar(512) | ||
| vendor_type | varchar(32) | ||
| vendor_remote_id | varchar(256) | ||
| vendor_remote_code | varchar(256) | ||
| vendor_remote_name | varchar(512) | ||
| vendor_contact_id | varchar(64) | ||
| bill_owner_idReferences users.id. | varchar(64) | FK | References users.id. |
| bill_owner_first_name | varchar(256) | ||
| bill_owner_last_name | varchar(256) | ||
| entity_idReferences entities.id. | varchar(64) | FK | References entities.id. |
| purchase_order_idReferences purchase_orders.id. | varchar(64) | FK | References purchase_orders.id. |
| remote_id | varchar(256) | ||
| deep_link_url | varchar(1024) | ||
| enable_accounting_sync | boolean | ||
| is_payment_sync_ready | boolean | ||
| is_withholding_release | boolean | ||
| payment_id | varchar(64) | ||
| payment_amount | decimal(18,4) | ||
| payment_currency_code | varchar(8) | ||
| payment_method | varchar(64) | ||
| payment_date | timestamp | ||
| payment_effective_date | timestamp | ||
| customer_friendly_payment_id | varchar(128) | ||
| payment_trace_id | varchar(128) | ||
| payment_trace_id_descriptor | varchar(256) | ||
| payment_details | varchar(65535) | ||
| invoice_urls | varchar(65535) | ||
| item_receipt_ids | varchar(65535) | ||
| applied_vendor_credits | varchar(65535) | ||
| line_item_count | integer | ||
| inventory_line_item_count | integer | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
bill_line_items16 columns · Bill payshow in diagram
Expense lines (line_type line_item) and inventory lines (line_type inventory_line_item) of a bill.
Primary key: bill_id, line_type, line_index
| Column | Type | Key | Description |
|---|---|---|---|
| _jsdata_idRow id: md5 of the natural key. | varchar(32) | Row id: md5 of the natural key. | |
| bill_idPrimary key (with line_type, line_index). References bills.id. | varchar(64) | PK FK | Primary key (with line_type, line_index). References bills.id. |
| line_typePrimary key (with bill_id, line_index). | varchar(32) | PK | Primary key (with bill_id, line_index). |
| line_indexPrimary key (with bill_id, line_type). | integer | PK | Primary key (with bill_id, line_type). |
| amount | decimal(18,4) | ||
| currency_code | varchar(8) | ||
| memo | varchar(4096) | ||
| quantity | decimal(18,4) | ||
| unit_price | decimal(18,4) | ||
| unit_price_currency_code | varchar(8) | ||
| purchase_order_line_item_idReferences purchase_order_line_items.id. | varchar(64) | FK | References purchase_order_line_items.id. |
| item_receipt_line_item_ids | varchar(65535) | ||
| withholding_gross_amount | decimal(18,4) | ||
| withholding_amount | decimal(18,4) | ||
| withholding_percentage | decimal(18,6) | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
bill_accounting_field_selections18 columns · Bill payshow in diagram
accounting coding on bills and their lines
Primary key: _jsdata_id
| Column | Type | Key | Description |
|---|---|---|---|
| _jsdata_idPrimary key. | varchar(32) | PK | Primary key. |
| bill_idReferences bills.id. | varchar(64) | FK | References bills.id. |
| line_type | varchar(32) | ||
| line_index | integer | ||
| selection_index | integer | ||
| id | varchar(64) | ||
| external_idJoins to gl_accounts.id. | varchar(256) | FK | Joins to gl_accounts.id. |
| external_code | varchar(256) | ||
| name | varchar(512) | ||
| display_name | varchar(512) | ||
| type | varchar(64) | ||
| provider_name | varchar(128) | ||
| source_type | varchar(64) | ||
| category_id | varchar(64) | ||
| category_external_id | varchar(256) | ||
| category_name | varchar(512) | ||
| category_type | varchar(64) | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
purchase_orders44 columns · Bill payshow in diagram
purchase orders (GET /developer/v1/purchase-orders, include_archived)
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | varchar(64) | PK | Primary key. |
| purchase_order_number | varchar(128) | ||
| name | varchar(512) | ||
| memo | varchar(4096) | ||
| created_at | timestamp | ||
| archived_at | timestamp | ||
| promise_date | timestamp | ||
| spend_start_date | timestamp | ||
| spend_end_date | timestamp | ||
| amount | decimal(18,4) | ||
| currency_code | varchar(8) | ||
| spend_total_amount | decimal(18,4) | ||
| spend_total_currency_code | varchar(8) | ||
| billing_status | varchar(64) | ||
| receipt_status | varchar(64) | ||
| creation_source | varchar(64) | ||
| entity_idReferences entities.id. | varchar(64) | FK | References entities.id. |
| vendor_idReferences vendors.id. | varchar(64) | FK | References vendors.id. |
| user_idReferences users.id. | varchar(64) | FK | References users.id. |
| owner_id | varchar(64) | ||
| spend_program_idReferences spend_programs.id. | varchar(64) | FK | References spend_programs.id. |
| spend_request_id | varchar(64) | ||
| external_id | varchar(256) | ||
| remote_id | varchar(256) | ||
| net_payment_terms | integer | ||
| three_way_match_enabled | boolean | ||
| withholding_default_rate | decimal(18,6) | ||
| ramp_url | varchar(1024) | ||
| ship_to_company_name | varchar(512) | ||
| ship_to_address1 | varchar(512) | ||
| ship_to_address2 | varchar(512) | ||
| ship_to_city | varchar(256) | ||
| ship_to_state | varchar(64) | ||
| ship_to_postal_code | varchar(32) | ||
| ship_to_country | varchar(64) | ||
| shipping_contact_first_name | varchar(256) | ||
| shipping_contact_last_name | varchar(256) | ||
| shipping_contact_email | varchar(320) | ||
| shipping_contact_phone_number | varchar(64) | ||
| bill_ids | varchar(65535) | ||
| transaction_ids | varchar(65535) | ||
| item_receipt_ids | varchar(65535) | ||
| line_item_count | integer | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
purchase_order_line_items16 columns · Bill payshow in diagram
purchase order line_items[]; key purchase_order_id
Primary key: purchase_order_id, line_index
| Column | Type | Key | Description |
|---|---|---|---|
| _jsdata_idRow id: md5 of the natural key. | varchar(32) | Row id: md5 of the natural key. | |
| purchase_order_idPrimary key (with line_index). References purchase_orders.id. | varchar(64) | PK FK | Primary key (with line_index). References purchase_orders.id. |
| line_indexPrimary key (with purchase_order_id). | integer | PK | Primary key (with purchase_order_id). |
| id | varchar(64) | ||
| description | varchar(4096) | ||
| quantity | decimal(18,4) | ||
| unit_price | decimal(18,4) | ||
| unit_price_currency_code | varchar(8) | ||
| amount | decimal(18,4) | ||
| currency_code | varchar(8) | ||
| start_date | date | ||
| end_date | date | ||
| external_id | varchar(256) | ||
| remote_id | varchar(256) | ||
| withholding_rate | decimal(18,6) | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
purchase_order_accounting_field_selections18 columns · Bill payshow in diagram
accounting coding on purchase orders and their lines
Primary key: _jsdata_id
| Column | Type | Key | Description |
|---|---|---|---|
| _jsdata_idPrimary key. | varchar(32) | PK | Primary key. |
| purchase_order_idReferences purchase_orders.id. | varchar(64) | FK | References purchase_orders.id. |
| line_type | varchar(32) | ||
| line_index | integer | ||
| selection_index | integer | ||
| id | varchar(64) | ||
| external_id | varchar(256) | ||
| external_code | varchar(256) | ||
| name | varchar(512) | ||
| display_name | varchar(512) | ||
| type | varchar(64) | ||
| provider_name | varchar(128) | ||
| source_type | varchar(64) | ||
| category_id | varchar(64) | ||
| category_external_id | varchar(256) | ||
| category_name | varchar(512) | ||
| category_type | varchar(64) | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
vendors40 columns · Bill payshow in diagram
vendors (GET /developer/v1/vendors) with Ramp spend totals
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | varchar(64) | PK | Primary key. |
| name | varchar(512) | ||
| name_legal | varchar(512) | ||
| description | varchar(4096) | ||
| vendor_type | varchar(32) | ||
| state | varchar(64) | ||
| is_active | boolean | ||
| is_deletable | boolean | ||
| country | varchar(64) | ||
| billing_frequency | varchar(32) | ||
| federal_tax_classification | varchar(64) | ||
| merchant_idReferences merchants.id. | varchar(64) | FK | References merchants.id. |
| parent_vendor_id | varchar(64) | ||
| default_entity_id | varchar(64) | ||
| vendor_owner_id | varchar(64) | ||
| external_vendor_id | varchar(256) | ||
| accounting_vendor_remote_id | varchar(256) | ||
| sk_category_id | integer | ||
| sk_category_name | varchar(256) | ||
| created_at | timestamp | ||
| contact_ids | varchar(65535) | ||
| subsidiary | varchar(65535) | ||
| address_address_line_1 | varchar(512) | ||
| address_address_line_2 | varchar(512) | ||
| address_city | varchar(256) | ||
| address_state | varchar(64) | ||
| address_postal_code | varchar(32) | ||
| address_country | varchar(64) | ||
| tax_address_address_line_1 | varchar(512) | ||
| tax_address_address_line_2 | varchar(512) | ||
| tax_address_city | varchar(256) | ||
| tax_address_state | varchar(64) | ||
| tax_address_postal_code | varchar(32) | ||
| tax_address_country | varchar(64) | ||
| total_spend_all_time | decimal(18,4) | ||
| total_spend_last_30_days | decimal(18,4) | ||
| total_spend_last_365_days | decimal(18,4) | ||
| total_spend_ytd | decimal(18,4) | ||
| total_spend_currency_code | varchar(8) | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
users18 columns · People and controlsshow in diagram
Ramp users (employees), including suspended ones
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | varchar(64) | PK | Primary key. |
| first_name | varchar(256) | ||
| last_name | varchar(256) | ||
| varchar(320) | |||
| phone | varchar(64) | ||
| employee_id | varchar(128) | ||
| role | varchar(64) | ||
| status | varchar(32) | ||
| is_manager | boolean | ||
| manager_idReferences users.id. | varchar(64) | FK | References users.id. |
| department_idReferences departments.id. | varchar(64) | FK | References departments.id. |
| location_idReferences locations.id. | varchar(64) | FK | References locations.id. |
| entity_idReferences entities.id. | varchar(64) | FK | References entities.id. |
| business_idReferences business.id. | varchar(64) | FK | References business.id. |
| scheduled_deactivation_date | timestamp | ||
| scheduled_invitation_date | timestamp | ||
| custom_fields | varchar(65535) | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
departments3 columns · People and controlsshow in diagram
departments
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | varchar(64) | PK | Primary key. |
| name | varchar(512) | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
locations4 columns · People and controlsshow in diagram
locations
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | varchar(64) | PK | Primary key. |
| name | varchar(512) | ||
| entity_idReferences entities.id. | varchar(64) | FK | References entities.id. |
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
entities13 columns · People and controlsshow in diagram
business entities (subsidiaries); accounts = GL mapping of the entity's Ramp accounts
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | varchar(64) | PK | Primary key. |
| entity_name | varchar(512) | ||
| currency | varchar(8) | ||
| is_primary | boolean | ||
| connected_subsidiary_id | varchar(256) | ||
| connected_subsidiary_name | varchar(512) | ||
| connected_subsidiary_external_id | varchar(256) | ||
| default_bill_pay_payment_account_id | varchar(64) | ||
| location_ids | varchar(65535) | ||
| accounts | varchar(65535) | ||
| payment_accounts | varchar(65535) | ||
| custom_record_fields | varchar(65535) | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
cards24 columns · People and controlsshow in diagram
physical + virtual cards (active and terminated). Only last_four; no card number, expiry, or shipping street
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | varchar(64) | PK | Primary key. |
| card_type | varchar(16) | ||
| display_name | varchar(512) | ||
| last_fourOnly the last four digits are stored; never the card number or expiry. | varchar(4) | Only the last four digits are stored; never the card number or expiry. | |
| user_idReferences users.id. | varchar(64) | FK | References users.id. |
| cardholder_name | varchar(256) | ||
| fund_idReferences funds.id. | varchar(64) | FK | References funds.id. |
| state | varchar(32) | ||
| is_physical | boolean | ||
| is_primary | boolean | ||
| is_suspended | boolean | ||
| is_terminated | boolean | ||
| has_program_overridden | boolean | ||
| automatic_routing_enabled | boolean | ||
| created_at | timestamp | ||
| fulfillment_status | varchar(64) | ||
| shipping_date | timestamp | ||
| shipping_eta | timestamp | ||
| shipping_method | varchar(64) | ||
| shipping_tracking_url | varchar(1024) | ||
| shipping_city | varchar(256) | ||
| shipping_state | varchar(64) | ||
| shipping_country | varchar(64) | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
funds35 columns · People and controlsshow in diagram
Funds are Ramp's spend limits (formerly called limits): limit, interval, restrictions and current balance.
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | varchar(64) | PK | Primary key. |
| display_name | varchar(512) | ||
| state | varchar(32) | ||
| is_terminated | boolean | ||
| entity_idReferences entities.id. | varchar(64) | FK | References entities.id. |
| spend_program_idReferences spend_programs.id. | varchar(64) | FK | References spend_programs.id. |
| created_at | timestamp | ||
| is_shareable | boolean | ||
| overrides_spend_program | boolean | ||
| is_exempt_from_policy_agent | boolean | ||
| physical_card_enabled | boolean | ||
| virtual_card_enabled | boolean | ||
| reimbursements_enabled | boolean | ||
| limit_amount | decimal(18,4) | ||
| limit_currency_code | varchar(8) | ||
| interval | varchar(32) | ||
| temporary_limit_amount | decimal(18,4) | ||
| transaction_amount_limit | decimal(18,4) | ||
| auto_lock_date | timestamp | ||
| next_interval_resets_at | timestamp | ||
| start_of_interval | timestamp | ||
| balance_cleared | decimal(18,4) | ||
| balance_pending | decimal(18,4) | ||
| balance_total | decimal(18,4) | ||
| balance_currency_code | varchar(8) | ||
| allowed_category_codes | varchar(65535) | ||
| blocked_category_codes | varchar(65535) | ||
| allowed_vendor_ids | varchar(65535) | ||
| blocked_vendor_ids | varchar(65535) | ||
| suspended_at | timestamp | ||
| suspended_by_ramp | boolean | ||
| suspended_by_user_id | varchar(64) | ||
| card_ids | varchar(65535) | ||
| member_count | integer | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
fund_members7 columns · People and controlsshow in diagram
users who can spend from each fund; key fund_id
Primary key: fund_id, user_id
| Column | Type | Key | Description |
|---|---|---|---|
| _jsdata_idRow id: md5 of the natural key. | varchar(32) | Row id: md5 of the natural key. | |
| fund_idPrimary key (with user_id). References funds.id. | varchar(64) | PK FK | Primary key (with user_id). References funds.id. |
| user_idPrimary key (with fund_id). References users.id. | varchar(64) | PK FK | Primary key (with fund_id). References users.id. |
| suspended_at | timestamp | ||
| suspended_by_ramp | boolean | ||
| suspended_by_user_id | varchar(64) | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
spend_programs21 columns · People and controlsshow in diagram
spend programs (fund templates)
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | varchar(64) | PK | Primary key. |
| display_name | varchar(512) | ||
| description | varchar(4096) | ||
| icon | varchar(64) | ||
| is_shareable | boolean | ||
| issue_physical_card_if_needed | boolean | ||
| primary_card_enabled | boolean | ||
| reimbursements_enabled | boolean | ||
| limit_amount | decimal(18,4) | ||
| limit_currency_code | varchar(8) | ||
| interval | varchar(32) | ||
| temporary_limit_amount | decimal(18,4) | ||
| transaction_amount_limit | decimal(18,4) | ||
| auto_lock_date | timestamp | ||
| next_interval_reset | timestamp | ||
| start_of_interval | timestamp | ||
| allowed_categories | varchar(65535) | ||
| blocked_categories | varchar(65535) | ||
| allowed_vendors | varchar(65535) | ||
| blocked_vendors | varchar(65535) | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
gl_accounts16 columns · Accountingshow in diagram
general ledger accounts synced from the accounting system (GET /developer/v1/accounting/accounts); key ramp_id
Primary key: ramp_id
| Column | Type | Key | Description |
|---|---|---|---|
| ramp_idPrimary key. | varchar(64) | PK | Primary key. |
| id | varchar(256) | ||
| accounting_connection_id | varchar(64) | ||
| code | varchar(128) | ||
| name | varchar(512) | ||
| classification | varchar(64) | ||
| is_active | boolean | ||
| visibility | varchar(32) | ||
| provider_name | varchar(128) | ||
| gl_account_category_id | varchar(256) | ||
| gl_account_category_name | varchar(512) | ||
| gl_account_category_ramp_id | varchar(64) | ||
| entity_remote_ids | varchar(65535) | ||
| created_at | timestamp | ||
| updated_at | timestamp | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
accounting_fields13 columns · Accountingshow in diagram
custom accounting fields (class, department, project...); key ramp_id
Primary key: ramp_id
| Column | Type | Key | Description |
|---|---|---|---|
| ramp_idPrimary key. | varchar(64) | PK | Primary key. |
| id | varchar(256) | ||
| accounting_connection_id | varchar(64) | ||
| name | varchar(512) | ||
| display_name | varchar(512) | ||
| input_type | varchar(32) | ||
| is_active | boolean | ||
| is_splittable | boolean | ||
| is_required_for | varchar(65535) | ||
| provider_name | varchar(128) | ||
| created_at | timestamp | ||
| updated_at | timestamp | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
accounting_field_options14 columns · Accountingshow in diagram
options of each custom accounting field; key ramp_id
Primary key: ramp_id
| Column | Type | Key | Description |
|---|---|---|---|
| ramp_idPrimary key. | varchar(64) | PK | Primary key. |
| id | varchar(256) | ||
| accounting_field_ramp_idReferences accounting_fields.ramp_id. | varchar(64) | FK | References accounting_fields.ramp_id. |
| accounting_connection_id | varchar(64) | ||
| code | varchar(128) | ||
| value | varchar(1024) | ||
| display_name | varchar(1024) | ||
| is_active | boolean | ||
| visibility | varchar(32) | ||
| provider_name | varchar(128) | ||
| entity_remote_ids | varchar(65535) | ||
| created_at | timestamp | ||
| updated_at | timestamp | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
business14 columns · Businessshow in diagram
the Ramp business (one row)
Primary key: id
| Column | Type | Key | Description |
|---|---|---|---|
| idPrimary key. | varchar(64) | PK | Primary key. |
| business_name_legal | varchar(512) | ||
| business_name_on_card | varchar(512) | ||
| active | boolean | ||
| created_time | timestamp | ||
| enforce_sso | boolean | ||
| initial_approved_limit | decimal(18,4) | ||
| is_integrated_with_slack | boolean | ||
| is_reimbursements_enabled | boolean | ||
| limit_locked | boolean | ||
| phone | varchar(64) | ||
| website | varchar(1024) | ||
| billing_address | varchar(65535) | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |
business_balances18 columns · Businessshow in diagram
One row per day the connector ran: limits and balances at that moment.
Primary key: as_of_date
| Column | Type | Key | Description |
|---|---|---|---|
| as_of_datePrimary key. | date | PK | Primary key. |
| captured_at | timestamp | ||
| next_billing_date | date | ||
| prev_billing_date | date | ||
| card_limit | decimal(18,4) | ||
| available_card_limit | decimal(18,4) | ||
| balance_including_pending | decimal(18,4) | ||
| card_balance_including_pending | decimal(18,4) | ||
| card_balance_excluding_pending | decimal(18,4) | ||
| statement_balance | decimal(18,4) | ||
| flex_limit | decimal(18,4) | ||
| available_flex_limit | decimal(18,4) | ||
| flex_balance | decimal(18,4) | ||
| float_balance_excluding_pending | decimal(18,4) | ||
| global_limit | decimal(18,4) | ||
| max_balance | decimal(18,4) | ||
| currency_code | varchar(8) | ||
| _jsdata_syncedWhen jsdata last wrote this row. | timestamp | When jsdata last wrote this row. |