Explaining Magento to Google Sheets Integration
As new orders flow in or new customers find your store, it is getting harder and harder to manage all the data from within the Magento dashboard. The native export functionality is imperfect and each new edit -for example, to a product list- requires a fresh data transfer. That is why many shop owners choose to export Magento to Google Sheets and refresh their data automatically.
We will explain step-by-step how this works. If you are not proficient with APIs, do not worry – this approach requires absolutely no coding. All you need are a Magento store, a Google account, and a few minutes at your disposal.
How to export Magento to Google Sheets?
Many different data entities can be exported from Magento with its core functionality. In each section (for example, Orders), you will find it on the right side of the screen, under the Export menu. Two options are available: XML export suitable for Excel; and a more generic CSV export.

The latter is more suitable for Google Sheets users, although the formatting of imported .csv files is not always on par with the user’s expectations.
Keep in mind, this is the process you will need to do manually. It is fine if you need to make a monthly report and have no issue with jumping from one menu to another to get the desired data. If you, however, need to fetch data more frequently or simply wish to automate the process, using Magento’s API is the only option.
Although APIs are mainly the developers’ domain, tools like Coupler.io simplify data exports and make them accessible to a wide audience. Developers also eagerly deploy Coupler.io’s data flows as they significantly cut down the time needed to set up the desired integration in Google Sheets (or Excel/BigQuery if one prefers).
We will now explain how to set up a Magento to Google Sheets integration using Coupler.io.
Note: The following instructions work primarily with Magento 2. If you are on the older version, some tweaks may be necessary.
Magento 2 and Google Sheets integration – initial setup
The instructions provided in this article are sufficient for creating an automated integration. But please note that we are not responsible for the outcome if you use the instructions incorrectly, specify incorrect settings, or if there are changes in the app’s API.
If you need help with the setup or want to have a more user-friendly version of this connector, we can develop this premium integration for you for free. Just select the app you need from the list and follow the instructions on requesting the automated integration
You will set up the integration in the Coupler.io web app. Sign up for Coupler.io or log in to your account. You will create a data flow there once you have an access token from Magento.
Magento to Google Sheets connector setup
Now it’s time to set up a Magento integration so that Coupler.io can fetch the necessary data from your store.
- Go to your Magento dashboard.
- From the menu to the left, select System -> Integrations

- Click the Add New Integration button.
- Name this Magento integration and re-enter your password below. As an option, you can leave your email so that Magento notifies you of any issues or updates. Ignore the other fields for now. Then, jump to the API section.

- In the API section, you can specify which data entities Coupler.io will have access to. If you only want to export -for example, orders- choose only the corresponding entity. If you are not sure yet and would like to try different types of data, it is best to select All in the Resource Access menu. You can always modify these permissions later.
- Click the Save button.
- The integration will appear on the list, but it is not active yet. You must activate it with the Activate button to the right.

- When asked, approve access to the previously selected entities.
- Finally, copy your Access Token from the final screen and click the Done button to finish the process.
How to bring Magento orders data to Google Sheets?
At this point, you already have the Google Sheets to Magento connector set up. Now, configure the data flow and bring the latest orders data into a spreadsheet.
- In Coupler.io, create a data flow and add JSON as the source.
- Enter the orders endpoint of your store as the JSON URL:
https://YOUR-DOMAIN/index.php/rest/V1/orders. In the request headers, add the access token you just fetched from Magento:Authorization: Bearer YOUR-ACCESS-TOKEN. - Add Google Sheets as the destination, connect your Google account, and choose the file and sheet for your orders.
- Run the data flow. It will load for a bit and, when finished, fill the sheet with all the fetched orders.

How to customize Magento data import into Google Sheets
Running the Google Sheets to Magento connection as above will return all your orders, regardless of the status. If you’ve processed thousands of orders thus far, you may not be that interested in fetching them. Instead, you would rather focus only on pending orders.
To fetch only them, adjust the URL query parameters of the JSON source in your data flow. Add the following configuration to fetch only the pending orders:
searchCriteria:
filter_groups:
- filters:
- field: status
value: Pending
condition_type: eq
You can put together any other filtering criteria. Please refer to the Magento API docs for the available condition_types and more.
As you noticed, each import brings dozens of different fields about your orders. For better readability, you may want to limit them only to those relevant to you.
In the Columns field of the JSON source, you can specify exactly the fields to fetch. Insert them comma-separated as on the example:

Here are all the available fields:
base_currency_code, base_discount_amount, base_grand_total, base_discount_tax_compensation_amount, base_shipping_amount, base_shipping_discount_amount, base_shipping_incl_tax, base_shipping_tax_amount, base_subtotal, base_subtotal_incl_tax, base_tax_amount, base_total_due, base_to_global_rate, base_to_order_rate, billing_address_id, created_at, customer_email, customer_firstname, customer_gender, customer_group_id, customer_id, customer_is_guest, customer_lastname, customer_note_notify, discount_amount, entity_id, global_currency_code, grand_total, discount_tax_compensation_amount, increment_id, is_virtual, order_currency_code, protect_code, quote_id, shipping_amount, shipping_discount_amount, shipping_discount_tax_compensation_amount, shipping_incl_tax, shipping_tax_amount, state, status, store_currency_code, store_id, store_name, store_to_base_rate, store_to_order_rate, subtotal, subtotal_incl_tax, tax_amount, total_due, total_item_count, total_qty_ordered, updated_at, weight, payment, billing_address
How to sync Google Sheets and Magento automatically?
Arguably the best thing about this Google Sheets to Magento connection is that you can refresh the data as often as you would like. You can, for example, get fresh orders every hour on weekdays, or conduct a daily import run at the start of your workday.
To enable this, open your data flow in the Coupler.io web app, turn on automatic data refresh, and set a schedule that works best for you.

Other use cases for the Magento integration
Orders are just one of the many entities you can fetch with this Magento integration. Fetching order things, such as products or categories may be as easy as swapping one word in the JSON URL.
For each entity, create a separate data flow with a JSON source, as you did for orders, and change only the endpoint in the JSON URL. Send each one to its own sheet so that the data flows don’t override each other’s data.
You can then run each data flow manually or set its own schedule.
How to bring Magento customers to Google Sheets?
You may be eager to import your customers from Magento to Google Sheets and refresh the list as new clients find your store. It’s really easy.
Create a new data flow with a JSON source and add your domain and access token, as you did for orders.
When we were importing orders, the URL looked as follows:
https://YOUR-DOMAIN/index.php/rest/V1/orders
To fetch customers, change it to the following:
https://YOUR-DOMAIN/index.php/rest/V1/customers/search
Update the name of the sheet that you’ll be importing to, not to override the previous data. Name also the data flow accordingly, for example, “Magento Customers” and run it.
Here’s a sample customers import:

How to bring Magento products to Google Sheets?
Once you integrate Magento with Google Sheets, fetching different data entities becomes very straightforward.
For products, you will only need to update the URL we have previously used to fetch orders.
Replace
https://YOUR-DOMAIN/index.php/rest/V1/orders
with
https://YOUR-DOMAIN/index.php/rest/V1/products
Then, run the data flow to fetch the list of your current products. For example:

Note that there will be multiple rows imported for each product, due to different attributes associated with each. If you are interested only in -for example- meta titles, you can set up a corresponding filter view in Google Sheets to filter out all other results.

How to set up a dynamic update of Magento products to Google Sheets?
Rarely will you want to import the list of products just once. It is more likely that you would like to have the list of products refreshed automatically so that each new addition or change is quickly reflected in your Google Sheets file.
Same as we did above, set up the Magento to Google Sheets products import and run the data flow.
If the import is successful, turn on automatic data refresh in the data flow and set the schedule it will follow.
From now on, your list of products in a Google Sheets file will be automatically refreshed as a chosen frequency.
How to bring Magento categories to Google Sheets?
As a separate import, you may be interested in fetching the list of product categories and subcategories, along with their attributes.
The first thing to do is replace the standard URL (https://YOUR-DOMAIN/index.php/rest/V1/orders) with the one dedicated for categories import: (https://YOUR-DOMAIN/index.php/rest/V1/categories)
But that is not all. If you ran a data flow now, it would work but would return only the first category along with its subcategories. To fetch all categories you need to do two tweaks:
- In the URL query parameters, insert
rootCategoryId: 1 - Set the
Pathtochildren_data
Here is a sample configuration:

You will find this and the other examples in the Other Importers tab of the templates file.
How to bring Magento prices to Google Sheets?
There’s no separate entity in Magento API for fetching prices. Instead, all the prices (including tier prices) are available with the standard products import that we discussed earlier.
If you are specifically interested in prices, you may want to request only the price-related fields along with some basic fields, such as SKU or name.
Note that the tier_prices field works in a different way, as it is an array. To fetch all three tier_prices fields (customer_group_id, qty, and price) you just need to insert tier_prices in the Columns field.
As a reminder, all fields need to be comma-separated. Here’s a part of a sample configuration:

To get the products with prices, use the same URL as before:
https://YOUR-DOMAIN/index.php/rest/V1/products
Run the data flow and you will see the results shortly. Here is an example:

Connecting Magento to Google Sheets – resources
For your convenience, we have added all the data flows mentioned in this article to the templates file. Copy their settings into the JSON source of your data flow.
Once you grasp how connecting Magento to Google Sheets works, you will have an easy time creating new data flows and adjusting them to your needs. You will find each saved data flow in your Coupler.io dashboard. This is also where you can edit their settings, duplicate them, or run them manually.
Magento integrations – the world of possibilities
Pulling your Magento data into Google Sheets opens up many possibilities for you.
The first approach would be to pull more data into the same or another sheet and couple it with your Magento data. Among our users who pull data from Magento, HubSpot, Pipedrive, QuickBooks, Xero, or even Shopify are common choices. Coupler.io features direct integrations with these services, which take just a few minutes to set up.
And what to do once you have the data in your spreadsheet? Analyze it. Of course, you can do it directly in your spreadsheet. But with an abundance of data flowing in from your store every day, you may have an easier time visualizing the numbers. Google Sheets offers, for example, easy integration with Data Studio.
Here are sample charts demonstrating the data from our Magento store:

That’s all. Many thanks for your time!