Skip to main content

How to import your spends via a CSV file upload

If your accounting software isn't supported by a Sage Earth Carbon Accounting integration, please contact our support team to take you through the available options including CSV file upload.

Can I integrate my accounts package without having to upload a file?

Sage Earth Carbon Accounting integration is available via an API link to customers of Sage Accounting (previously known as Sage Business Cloud Accounting). For users of all other Sage accounting products please speak with our customer support team to discuss the options available to you including CSV file upload.

Before you start

Before importing your data, make sure:

  • You're set up as an Administrator within Sage Earth.

  • You don't already have an accounting integration connected.

  • Your transaction data is available in a CSV format.

Important: File upload and accounting integrations can't be used together on the same account. Once file upload is enabled, your account becomes a file upload account.

Firstly download the file upload template

  1. In Sage Earth Carbon Accounting, select Data sources.

  2. Select File imports.

  3. Choose Download template.

  4. Save the template to your computer.

The template contains the fields Sage Earth Carbon Accounting needs to import and process your transactions correctly.

Prepare your upload file

Open the downloaded template and populate it with your transaction data.

Required fields

The following fields must contain values for every transaction:

Field

Description

Transaction ID

A unique identifier for the transaction

Amount

Transaction value

Currency

Three-letter ISO currency code such as GBP, USD or EUR

Date

Transaction date in YYYY-MM-DD format

Optional fields

If optional fields aren't provided, Sage Earth Carbon Accounting can still import the transaction, but categorisation may be less accurate resulting in a less accurate footprint.

  • Description

  • Merchant ID

  • Merchant name

  • Nominal code name

  • Nominal code description

  • Deleted

Formatting requirements

Currency codes

Use standard three-letter ISO currency codes:

  • GBP

  • USD

  • EUR

Dates

Dates must use the following format: YYYY-MM-DD

For example: 2026-07-16

Amounts

Enter numbers only.

Example: 1250

Don't include currency symbols such as £, $, or €.

Which transactions should I include?

Only include outgoing business spend transactions, such as:

  • Paid supplier invoices

  • Bank payments

  • Business purchases

  • Other money-out transactions

Don't include:

  • Revenue or sales transactions

  • Money-in transactions

  • Credit notes

  • Refunds

  • Journal entries

Including only spend transactions helps Sage Earth Carbon Accounting calculate emissions correctly.

This is an example of a completed template:


Set up file upload for the first time

The first time you use file upload, Sage Earth Carbon Accounting asks you to choose a start date.

This date tells Sage Earth Carbon Accounting which periods should use imported data rather than manual data entry.

  1. Go to Data sources > File imports.

  2. Select Start using file import.

  3. Choose the earliest date from which you'll provide imported transaction data.

  4. Confirm your selection.

If you already have manually entered spend data for the selected period, Sage Earth Carbon Accounting will remove that data before enabling file upload. You'll receive a warning before this happens. This is to prevent duplicate transactions and double counting.


Upload your file

  1. Go to Data sources > File imports.

  2. Select Import a file.

  3. Drag and drop your CSV file, or browse to select it.

  4. Select Start import.

Sage Earth Carbon Accounting performs some initial checks before processing the file.

These checks confirm:

  • The file is a CSV.

  • The file size is within supported limits.

  • The file name is valid.


Track import progress

Once the upload starts, Sage Earth Carbon Accounting processes your file in several stages:

  • Checking the file

  • Converting the file

  • Importing transactions

  • Calculating emissions

You don't need to stay on the page while processing takes place. You can return later and check the status of your upload.


Understanding upload statuses

Importing

Your file is currently being processed.

No action is required.

Successful

The file has been processed successfully and your transactions have been imported.

Failed

One or more issues prevented the file from being processed.

Select View errors to review the problems found and make corrections before uploading again.


Correct and re-upload transactions

If you need to update transactions after importing them:

  1. Make changes in your source system.

  2. Export the corrected transaction data.

  3. Upload the file again.

Sage Earth uses the Transaction ID to identify existing records.

If a transaction with the same ID already exists the updated information will overwrite the existing transaction.

Delete previously imported transactions

To remove a previously imported transaction:

  1. Include the transaction in a new upload file.

  2. Use the same Transaction ID.

  3. Enter one of the following values in the is_deleted column:

Y

Yes

True

1

During processing, Sage Earth treats the transaction as deleted and removes it from your imported data.


Duplicate file uploads

If you upload a file with the same filename as a previous import, Sage Earth Carbon Accounting displays a warning.

The upload isn't blocked, as some accounting systems generate exports with the same filename each time.

Duplicate transactions are prevented using Transaction IDs rather than filenames.


Upload limits

File size

The maximum upload size is 25 MB per file.

If your export exceeds this limit, split it into smaller files and upload them separately.


Troubleshooting:

My file won't upload

Check that:

  • The file is saved as CSV.

  • The file size is below 25 MB.

  • Field names match the template exactly.

  • Required fields contain values.

I received an error message

Select View errors from the upload history to see details about the problem.

Common causes include:

  • Missing required fields

  • Invalid currency codes

  • Incorrect date formats

  • Empty files

  • A gap before text - if there is a space before text in a field this will cause the upload to fail

  • Zero spend

Correct the issue and upload the file again.

My import has been processing for a long time

Large files can take time to process.

If an upload remains in the Importing state for an unusually long period, contact Support for assistance.


Need more help?

If you're unsure whether file upload is right for your business, or need help preparing your data, contact the Sage Earth Carbon Accounting support team

Did this answer your question?