# Send your orders to Google Sheets

Get every order in a Google Sheet of yours, one row per order, updated when it's paid, packed, shipped or delivered. No Zapier, no Google sign-in.

Source: https://qkap.app/docs/google-sheets-orders

Link a Google Sheet to your store and every order lands in it straight away: the order number, date, product and variant, amount, payment method, the buyer's name, email and phone, the full delivery address, their answers, the courier and tracking number, and a link back to the order in QKAP. When the order changes (paid, packed, shipped, delivered, cash collected, cancelled) its row is updated in place, so the sheet always matches your dashboard.

You don't sign in to Google from QKAP and you don't need Zapier or Make. A small script that QKAP gives you lives inside your own sheet and receives the orders. It's free on every plan.

## Set it up (about 3 minutes)

Open **Store → Orders** and click **Send to Google Sheets** (it's also in **Settings → Integrations → Google Sheets**). The steps there have the script with a **Copy script** button. Do this on a computer: the Apps Script editor doesn't work well on a phone.

1. **Make a sheet.** Open Google Sheets and create a **Blank spreadsheet**, or open the sheet you want to use. Give it a name, for example *QKAP orders*.
2. **Open Apps Script.** In the sheet's menu, click **Extensions → Apps Script**. A new tab opens with a file called *Code.gs*.
3. **Paste the script.** In QKAP, click **Copy script**. In Apps Script, delete everything in *Code.gs*, paste, then click the **Save project** icon (or press Ctrl+S, ⌘S on a Mac).
4. **Deploy it.** Click **Deploy → New deployment**. Next to *Select type*, click the gear icon and choose **Web app**. Set **Execute as: Me** and **Who has access: Anyone**, then click **Deploy**.
5. **Allow it.** Click **Authorize access** and pick your Google account. If Google says it hasn't verified the app, click **Advanced → Go to Untitled project (unsafe) → Allow**. That warning appears for every personal script; this one is yours and only writes to this sheet.
6. **Connect.** Copy the **Web app URL** Google shows (it starts with `https://script.google.com/macros/s/` and ends in `/exec`), paste it in QKAP and click **Connect**. QKAP checks it can reach the script before saving.
7. **Fill it.** Click **Send all existing orders** to add your past orders, and **Send test order** whenever you want to check the connection.

Orders appear on a tab called **QKAP orders**, which the script creates. The first row holds the column names.

## What's in the sheet

One row per order, with these columns: order number, date, status, product, variant, SKU, quantity, amount, currency, payment method, deposit, balance on delivery, COD status, money received, payment reference, paid at, buyer name, email and phone, ship to, shipping phone, address, city, state, PIN or postal code, country, buyer note, answers, delivery status, courier, tracking number, tracking link, shipped and delivered dates, booking time, discount code and amount, shipping fee, add-on, a link to open the order in QKAP, the order ID and the time of the last change.

- **Rows are updated, never doubled.** The script finds an order by its *Order ID* column and rewrites that row. Sending all orders again just refreshes them.
- **Add your own columns** to the right of QKAP's (for example *Packed by* or *Notes*). QKAP never writes in them. Don't rename or delete QKAP's column names, and keep the *Order ID* column.
- **Dates** show in your spreadsheet's time zone (**File → Settings** in Google Sheets).
- **Send all existing orders** sends your latest 500 orders. Older ones are in **Store → Orders → Export CSV**.
- The test row is called *Test order (delete this row)*. Delete it whenever you like; sending another test adds it again.

## Change or stop it

- **Another sheet:** click **Change sheet**, do the steps in the new sheet and connect its Web app URL. The old sheet stops getting orders and keeps its rows.
- **Stop:** click **Disconnect**. The rows already in the sheet stay. You can also delete the deployment in Apps Script (**Deploy → Manage deployments → Archive**).
- **Several pages:** each page connects its own sheet. Switch page in the dashboard and set it up there.
- Only the page's owner can connect a sheet. Team members can still export orders as CSV if their role allows it.

## If something goes wrong

- **"Google asked for a sign-in"**: the web app isn't open to *Anyone*. In Apps Script, click **Deploy → Manage deployments**, click the pencil icon, set **Who has access: Anyone** and click **Deploy**.
- **"The script's token doesn't match"**: the script in the sheet isn't the one for this page (for example you copied it while another page was open). Copy the script again in QKAP, paste it over the old one in *Code.gs*, save, then click **Deploy → Manage deployments**, the pencil icon, **Version: New version** and **Deploy**. The Web app URL stays the same.
- **Changed the script but nothing changed**: Apps Script keeps running the old version until you deploy a new version (the step above).
- **"Last send failed"**: QKAP retries a failed order after 1, 5 and 30 minutes, 2 hours and 12 hours. Click **Send test order** to see what's wrong. After 20 failures in a row sending stops; fix the problem and connect the sheet again.
- **Buyer details are private.** Anyone who can open the sheet sees your buyers' names, phone numbers and addresses, so share it only with people who pack and ship your orders.

More ways to connect your store to other apps: [Connect n8n, Zapier, Make and other automation tools](https://qkap.app/docs/integrations).
