Connect Foxy to GoodVat
In short: connect your Foxy store and GoodVat tracks every sale from it, so it can tell you where you owe sales tax, GST or VAT. There are two ways to connect. Both take a few minutes in your Foxy admin, and neither needs a developer.
| Webhook | API integration | |
|---|---|---|
| How it works | Foxy tells GoodVat about each order as it happens | GoodVat reads your orders from Foxy with a key you create |
| Access to your Foxy account | None: GoodVat only receives orders | A key you can take back at any time |
| What you copy | An address, a key and a query, from GoodVat into Foxy | Three values, from Foxy into GoodVat |
In GoodVat, open Foxy’s connect box (during setup, it’s in the Connect where you sell step: click Foxy.io) and choose Webhook or API integration at the top. Each step there has a Show me where to click button with the same screenshots as this page.
Connect by webhook
Section titled “Connect by webhook”Once it’s set up, each time someone buys from your store, Foxy tells GoodVat straight away. If that order is later refunded or cancelled, Foxy tells GoodVat that too, so your totals stay right. GoodVat only receives your orders: it can’t see or change anything else in your Foxy account.
-
In your Foxy admin, add a webhook. Open Settings, then Integrations. Under Webhooks, click Add webhook.
(opens the full-size screenshot in a new tab)1/3Open Settings
(opens the full-size screenshot in a new tab)2/3Open Integrations
(opens the full-size screenshot in a new tab)3/3Under Webhooks, click Add webhook -
Name it and choose what it sends. Enter GoodVat as the name and choose Transaction as the resource.
-
Copy three values from GoodVat into Foxy. GoodVat’s Webhook tab shows each one with a Copy button. Paste each into the Foxy field with the same name:
- Endpoint: the web address Foxy sends your orders to.
- Encryption key: Foxy leaves this field empty. Paste GoodVat’s key in, so GoodVat can tell the orders really come from your store.
- Query: tells Foxy to send each order in full, with its items, discounts, taxes, customer, payment and shipping.
(opens the full-size screenshot in a new tab)1/3Paste the endpoint into Endpoint
(opens the full-size screenshot in a new tab)2/3Paste the encryption key into Encryption key
(opens the full-size screenshot in a new tab)3/3Paste the query into Query -
Turn on “Enable this webhook” and click Create. Your GoodVat webhook appears under Webhooks, marked Active.
(opens the full-size screenshot in a new tab)1/2Turn on Enable this webhook, then click Create
(opens the full-size screenshot in a new tab)2/2Your GoodVat webhook is on -
Back in GoodVat, click “I’ve added the webhook”. Your store appears under Connected, and its new orders start arriving.
Import your past orders
Section titled “Import your past orders”A webhook only carries what happens after it’s added, so orders from before you connected don’t reach GoodVat this way. Bring them in with a report from your Foxy admin.
Those earlier sales matter: most countries and US states decide whether you have to register by looking at your sales over the past twelve months or calendar year. GoodVat shows the date to export from at the top of its Import your past sales step: the earliest day any of those tests looks back to, where you sell.
-
In your Foxy admin, open Reports and click New report. It’s the page icon with a plus, at the top right.
(opens the full-size screenshot in a new tab)1/2Open Reports
(opens the full-size screenshot in a new tab)2/2Click New report -
Create a Complete report from GoodVat’s date to today. Choose Complete as the report type (not Transactions: it leaves out what was in each order). Set the Start date to the date GoodVat shows and the End date to today, then click Create. Started selling after that date? Keep it anyway: there’s just nothing earlier to export.
(opens the full-size screenshot in a new tab)1/3Choose Complete as the report type
(opens the full-size screenshot in a new tab)2/3Start date: the date GoodVat shows. End date: today
(opens the full-size screenshot in a new tab)3/3Click Create -
Download it. The report appears at the top of the list after a few seconds (reload the page if it doesn’t). Click Download beside it. Foxy gives you a .zip file.
(opens the full-size screenshot in a new tab)Click Download beside your report -
Upload the .zip file to GoodVat. In the Import your past sales step, drop the file onto your Foxy store, or click to choose it, then click Upload and import. Upload it as it is, without unzipping it. GoodVat imports it in the background, so you can carry on.
If you’d rather we did it, send us the file and we’ll import it for you.
Connect with an API integration
Section titled “Connect with an API integration”You create a key in your Foxy admin and paste it into GoodVat. It lets GoodVat read your store’s orders straight from Foxy, and you can take that access away at any time.
-
In your Foxy admin, generate an integration. Open Settings, then Integrations. Next to 3rd-party apps, click Generate integration.
(opens the full-size screenshot in a new tab)1/3Open Settings
(opens the full-size screenshot in a new tab)2/3Open Integrations
(opens the full-size screenshot in a new tab)3/3Click Generate integration -
Name it and create it. Enter GoodVat as the name and click Create.
(opens the full-size screenshot in a new tab)Name it GoodVat, then click Create -
Copy three values from Foxy into GoodVat. Foxy shows the new integration’s details, and only shows them once. Copy the Client ID, Client secret and Refresh token with the copy button beside each, and paste each into the field with the same name in GoodVat’s API integration tab. You don’t need the access token.
(opens the full-size screenshot in a new tab)1/3Copy the client ID
(opens the full-size screenshot in a new tab)2/3Copy the client secret
(opens the full-size screenshot in a new tab)3/3Copy the refresh token -
Click “Connect Foxy”. Your store appears under Connected, and GoodVat starts reading its orders.
Switching how it’s connected
Section titled “Switching how it’s connected”GoodVat connects one Foxy store, one way. To switch from a webhook to an API integration, or back, disconnect it first: in GoodVat, open the store’s menu (the three dots beside it) and choose Disconnect. Then connect it the other way. Selling from more than one Foxy store? Get in touch and we’ll help you send the others’ sales.
Something not working?
Section titled “Something not working?”- Foxy won’t save the webhook. Check that you pasted the whole endpoint, with nothing added before or after it, and try again.
- GoodVat says the file has no sales in it. Check the report’s dates in Foxy: the start date should be the one GoodVat shows, and the end date today. Then create the report again and upload the new file.
- GoodVat says the file isn’t the report from the steps. Make sure you chose Complete as the report type (not Transactions or Customers), and upload the .zip file Foxy downloaded.
- Your computer opened the .zip into a folder. Some browsers, like Safari, unzip downloads. Compress that folder (right-click it, then Compress) and upload the .zip that makes.
- Connected, but no sales are showing. Check in Foxy that the webhook is turned on, its resource is Transaction, and its encryption key is the one GoodVat gave you. Sales show up once a new order is placed after you connected.
- Foxy didn’t accept the API integration’s values. Each value is long, so use the copy button beside each one in Foxy. If you’ve lost one, generate a new integration in Foxy: it can’t show the old values again.
- Want to stop syncing? In GoodVat, open the store’s menu and choose Disconnect. With a webhook, also delete the GoodVat webhook in your Foxy admin. The sales GoodVat already recorded are kept.
Still stuck? Get in touch and we’ll help you connect.
Do I need a developer to connect Foxy to GoodVat?
Section titled “Do I need a developer to connect Foxy to GoodVat?”No. Either way of connecting takes a few minutes in your Foxy admin: you copy a few values between Foxy and GoodVat, and no code is involved.
Should I connect Foxy by webhook or by API integration?
Section titled “Should I connect Foxy by webhook or by API integration?”The webhook is the simplest: Foxy tells GoodVat about each order as it happens, and GoodVat gets no access to your Foxy account. The API integration gives GoodVat a key to read your orders from Foxy itself.
Will my past Foxy orders sync to GoodVat by webhook?
Section titled “Will my past Foxy orders sync to GoodVat by webhook?”No. A webhook only sends orders placed after you add it. Create a Complete report in your Foxy admin (Reports, then New report) from the date GoodVat shows to today, download it and upload the .zip file to GoodVat. Your past sales decide whether you’ve already passed a registration threshold.
How do I export my transactions from Foxy?
Section titled “How do I export my transactions from Foxy?”In your Foxy admin, open Reports and click New report at the top right. Choose Complete as the report type, set the start and end dates, and click Create. After a few seconds the report appears in the list: click Download beside it. Foxy gives you a .zip file of CSVs: your transactions, the items in each, refunds and voids.
Can I connect more than one Foxy store?
Section titled “Can I connect more than one Foxy store?”Not yet: GoodVat connects one Foxy store for now. If you sell from more than one, get in touch and we’ll help you send the others’ sales.
How do I stop sending Foxy orders to GoodVat?
Section titled “How do I stop sending Foxy orders to GoodVat?”In GoodVat, open the store’s menu (the three dots beside it) and choose Disconnect. With an API integration, GoodVat also removes its access from your store. With a webhook, also delete the GoodVat webhook in your Foxy admin. The sales GoodVat already recorded are kept.