Set up SFTP exports
Overview
Available on Ramp Plus. See Ramp Plus overview for plan details.
Beta. This feature is currently in Beta.
An SFTP export delivers a CSV of your Ramp records to your SFTP folder on a schedule. You set up each export in five steps: choose the data, shape the file, set the delivery, choose email notifications, and review.
New to SFTP? Start with SFTP overview.
Before you set up an SFTP export
- Set up your SFTP connection so your system can pick up files. See Set up your SFTP connection.
- You need to be an Owner, Admin, or IT Admin.
- Have your target system's import template ready, so you know which columns and formats it expects.
Step 1: Choose data for the SFTP export
From SFTP exports, select Create export. If your business doesn't have any SFTP exports or imports yet, select Set up an export instead. Enter an Export name, then choose a dataset. A sample of the dataset's rows appears on the right.
| Dataset | Includes |
|---|---|
| Ready transactions | Cleared card transactions that are ready to sync and haven't been synced |
| Pending transactions | Cleared card transactions that aren't ready to sync yet |
| Ready reimbursements | Reimbursements that are ready to sync and haven't been synced |
| Pending reimbursements | Reimbursements that aren't ready to sync yet |
| Ready bills | Bills that are ready to sync and haven't been synced |
| Ready bill payments | Cleared vendor payments that are ready to sync |
| Ready split bill payments | Cleared vendor payments that are ready to sync, with batch payments split by bill |
| Purchase order line items | Every line of approved purchase orders created in Ramp or through the API, in any status |
| Item receipt line items | Every received line of item receipts created in Ramp or through the API |
Ready datasets include records that are ready to sync, and pending datasets include records that aren't ready yet. Transaction and reimbursement files have one row per accounting split, so a split record appears as several rows with the same ID. Bill and bill payment files have journal lines, with debit and credit rows for each bill or payment. Purchase orders imported from your ERP aren't included in the purchase order dataset.
SFTP exports don't mark records as synced. A ready record keeps appearing in each new file until it's synced or marked as synced in Ramp, so use the record IDs in the file to skip records your system has already imported.
Step 2: Shape the SFTP export file
Change the data to match what your system expects. The sample updates as you go.
- Add step reformats your data. Choose a step, set it up, then select Apply step to add it. Steps run in the order you add them:
- Format Date: changes date formats, for example to
MM/DD/YYYY - Format Decimal: rounds numbers to a set number of decimal places
- Combine Columns: joins two columns with a separator into a new column
- Pad Cells: adds leading or trailing zeros
- Add Balancing Rows: adds the offsetting rows a journal entry needs, for transaction and reimbursement exports
- Format Date: changes date formats, for example to
- Columns chooses which columns are in the file.
- To rename a column, open its header menu and select Rename. To reorder columns, drag the headers.
Step 3: Set the SFTP export delivery schedule
Choose a Schedule: On demand, Daily, Weekdays, Weekly, Monthly, N times per month, Every N hours, or Custom cron. Times are in Eastern Time (ET).
For a scheduled export, Turn on schedule is on by default, so runs start after you save. If you turn it off, the export only runs when you run it yourself, and you can turn the schedule on later from the export. If you choose On demand, the export has no schedule; after you save, run it yourself. See Run an SFTP export now.
Scheduled files are delivered to from_ramp/[export folder]/outputs/. The export folder comes from your export name: lowercase, with spaces replaced by hyphens and most punctuation removed. Hyphens and underscores are kept. For example, an export named AP Export delivers to from_ramp/ap-export/outputs/. The exact folder appears under the file destination before you save. The folder is set when you save, and it can't be changed later, even if you rename the export.
Step 4: Choose SFTP export email notifications
Email notifications are off by default. To turn them on, choose Success, Failure, or Both in Send email for, then add Recipients. Select Preview email to see the emails. See Monitor SFTP exports for what each email includes.
Step 5: Review and create the SFTP export
Check the summary, select Preview file to see the file, then select Create export.
Run an SFTP export now
To get a file without waiting for the schedule, open the export from SFTP exports, select the More actions menu, then Run now. You can run an export whether its schedule is on or off.
Files from Run now go to a different folder than scheduled files: from_ramp/[export name]/manual/, using the export's current name with spaces and slashes replaced by underscores. For example, an export named AP Export delivers manual runs to from_ramp/AP_Export/manual/, and AP/AR Export delivers to from_ramp/AP_AR_Export/manual/.
Where Ramp delivers SFTP export files
Each scheduled run delivers one file to the export's outputs folder, named with the export's current name (lowercase and hyphenated, up to 40 characters), the scheduled run time in UTC, and a run reference. If you rename an export, new filenames use the new name, but files still go to the original folder. If no records match, the file only has a header row, so you can tell the run happened.