# Send your affiliate sales to Google Sheets

> Send each affiliate conversion to a Google Sheet. Make a destination with one API call. Each change updates the row, and a backfill adds old sales.

Page: https://www.afffast.com/guides/affiliate-sales-to-google-sheets

Destinations

# Send your affiliate sales to Google Sheets

You copy sales from your networks into a sheet by hand, and the sheet is old the day after. A destination keeps the sheet current for you.

[Start your trial](https://app.afffast.com/signup)

## What it looks like

Event to destinations

Sample data

conversion.updated

- Google Sheets
- BigQuery
- Google Analytics 4

1. An event, for example `conversion.updated`, is the input of a destination.
2. The destination sends the event to your tool. Google Sheets and BigQuery keep data. Google Analytics 4 gets events.
3. Google Sheets keeps one row for each conversion. A change of the conversion updates its row.

## Why this matters

A sheet is the tool that many people already use for reports, taxes and charts. When the data is in the sheet, you do not need to open each network.

A sheet that updates itself is a sheet that you trust. You do not wonder if you added the last sales.

## Why most tools cannot tell you

A manual export is a copy of one moment. A sale that is pending today can be approved or rejected next week, and the copy does not change.

A tool that only appends rows adds the same sale again for each status change. You then count the sale two or three times.

A tool that sends data must also handle the failures of the other side. Without retries and a log, you do not know that rows are missing.

## How AffFast does it

A destination is a setting of your workspace. You make it one time. After that, each new conversion and each change of a conversion goes to the sheet, usually within seconds.

Column A of the tab `Conversions` holds the ID of the conversion. A change updates the row of that ID and a new conversion adds a row. Delivery is at least once. Google Sheets updates the row of the ID, so a repeat does not add a row.

The destination retries a temporary error. `GET /v1/destinations/{id}/deliveries` shows the log of each call, and the event `destination.failed` tells you when a destination stops.

## How to do it

1. Make a service account in Google Cloud and save its key as a JSON file. Use a spreadsheet that this service account can edit.
2. Make the destination with `POST /v1/destinations`. Set `type` to `google_sheets`, set `config.spreadsheet_id` and send the key in `credentials.service_account_json`.
3. Test it with `POST /v1/destinations/{id}/test`. `ok: true` means that the sheet accepted the test item.
4. Send the old conversions with `POST /v1/destinations/{id}/backfill`. A new destination gets only the changes that come after you make it.
5. Look at `GET /v1/destinations/{id}/deliveries` when a row is missing.

Make a Google Sheets destination

Make the destination

```
curl -X POST https://api.afffast.com/v1/destinations \
  -H "Authorization: Bearer $AFFFAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "google_sheets",
    "label": "Conversions sheet",
    "config": { "spreadsheet_id": "1AbC..." },
    "credentials": { "service_account_json": "{ ... }" }
  }'
```

Send the old conversions

```
curl -X POST https://api.afffast.com/v1/destinations/dest_.../backfill \
  -H "Authorization: Bearer $AFFFAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "object": "conversions", "from": "2026-01-01", "to": "2026-11-21" }'
```

## Learn more

In the docs

- [Destinations](https://docs.afffast.com/docs/destinations)
- [Delivery filters](https://docs.afffast.com/docs/delivery-filters)
- [Webhooks and event types](https://docs.afffast.com/docs/webhooks)
- [API reference](https://docs.afffast.com/reference)

Features that this guide uses

- [Destinations](https://www.afffast.com/features/destinations)
- [Reports and dashboard](https://www.afffast.com/features/reports)

## Related guides

- [Network syncOne report for all your affiliate networks](https://www.afffast.com/guides/one-report-all-networks)
- [Postbacks and webhooksSee a sale in seconds with postbacks](https://www.afffast.com/guides/sales-in-seconds-postbacks)
- [MCPAsk your affiliate data in Claude](https://www.afffast.com/guides/ask-affiliate-data-in-claude)

## Start your free trial

[See pricing](https://www.afffast.com/pricing)

Free for 14 days. No card needed. Cancel any time.
