Skip to content
Espectro Soluções

Espectro: integrations (connect Espectro Pay, Zedy and other platforms)

Get the sales from each checkout into Espectro. Each checkout sends its sales by webhook (the automatic notice on every order). Espectro generates a URL (and a token, for Espectro Pay and Zedy) per store, which you copy in Espectro and paste into the checkout.

On this page
  1. Who does it
  2. Before you start
  3. Step by step
  4. Part A. Create the integration
  5. Part B. Each integration's card
  6. Part C. Connect to Espectro Pay
  7. Part D. Connect to Zedy
  8. Part E. Other platform (any checkout)
  9. Part F. Default ad account
  10. Part G. Edit, change the token, deactivate
  11. Part H. The Page script card
  12. How to know it worked
  13. Common problems and fixes

Who does it

The Account owner creates and edits. The team can see the screen but cannot save, and only sees the end of the token and the URL.

Before you start

  • Know the store name and which checkout it uses: Espectro Pay, Zedy or Other platform (any checkout).
  • Access to the checkout: the screens in the Espectro Pay menu group (account owner), the Zedy dashboard or your sales platform's dashboard.
  • On Zedy and Other platform: know the fee the payment platform charges per paid sale (percentage and fixed amount), which goes into the profit calculation. On Espectro Pay, the fee lives in Espectro Pay > Payment (Set up your store).

Rule: one integration per store, per checkout. If the same store sells through Espectro Pay and through Zedy, create two integrations with the same store name: Espectro combines them.

Step by step

Part A. Create the integration

  1. In the Settings group, click Integrations (incoming webhooks) and open New integration.
  2. Fill in:
    • Source: Espectro Pay or Other platform (any checkout). Zedy only shows up in an account that already has a Zedy integration (the recommended path is Espectro Pay);
    • Store: the store name (the same name combines the sources; the list suggests the names that already exist);
    • Name: optional, so you can recognize it;
    • Platform fee (%) and Fixed fee per sale (R$) (Zedy and Other platform): what the gateway charges per paid sale. This is the fee that goes into the profit of this integration's sales. The fixed fee is in reais, with a decimal point (for example 3.50). The percentage goes up to 50% at most;
    • on Espectro Pay, instead of the fees you see "The fee on Espectro Pay sales comes from the Axxon settings, in Espectro Pay > Payment.". The two fields are under Advanced: fallback fee, which only applies to Pay sales paid before the Axxon fee was set up (they do not carry the fee). In most accounts, you do not need to touch it;
    • Default ad account (only shows with a Meta account connected; see Part F).
  3. Click Create integration. You see "Integration created. Copy the URL and the token."
  4. The integration card shows Webhook URL and Token with Copy, and Where to paste it in ... with a summary of where to paste them.
New integration with Source, Store, fees and Default ad account
New integration with Source, Store, fees and Default ad account
Integrations: one Espectro Pay and one Other platform, with URL and token (token blurred)
Integrations: one Espectro Pay and one Other platform, with URL and token (token blurred)

Part B. Each integration's card

  • Active or Deactivated badge;
  • Events received and Last event;
  • Platform fee (Zedy and Other platform) or, on Espectro Pay, Fee: "From the Axxon settings", with the fallback fee in parentheses;
  • Default ad account (if any);
  • Created on;
  • on Other platform, Fields: Waiting for the first notification, Fields not mapped yet or Fields mapped.

Part C. Connect to Espectro Pay

  1. Copy the Webhook URL (format https://app.espectrosolucoes.com.br/webhooks/espectro-pay/int-...) and the Token of the Espectro Pay integration.
  2. In Espectro Pay > Stores, edit the store and, in the Outgoing webhooks card, click Add Espectro destination. Paste the full URL and the token, leave all events on and use Send test.
  3. The full step by step, with what to do for each test result, is in Espectro destination in the store.

Each store needs its own integration. Using another store's integration makes the sales count as that other store's.

Part D. Connect to Zedy

  1. In Espectro, create the integration with Source Zedy (Part A) and copy the Webhook URL.
  2. In the Zedy dashboard, open the webhook integrations area and create a new webhook (if you cannot find it, search for "webhook" in Zedy's own help).
  3. Paste the URL and check the order events (paid, refused, refunded and any others you want).
  4. Zedy shows a token on that screen. Copy it.
  5. In Espectro, under Edit on the Zedy integration, paste it into Zedy token and click Save token.
  6. Place a test order and check Events received.

If the store already sends the Zedy webhook to another system (for example, the delivery one), that keeps working: they are separate webhooks. Events Zedy sends: order created, PIX generated, paid and refused (and cart).

For the Zedy sale to arrive linked to the exact click, the page's buy button must go through the Espectro script (the click code goes in sck and Zedy sends it back in the webhook; Install the script). On the Zedy checkout, the browser Pixel is Zedy's own, and Espectro sends the purchase only from the server, with a different event_id. If Zedy is set up with the same Pixel as the product, keep the product on Observe only until you remove the Pixel from Zedy (Products and pixels); otherwise Meta counts the purchase twice.

Part E. Other platform (any checkout)

For a checkout Espectro does not know, choose the Source Other platform (any checkout). Espectro generates a Webhook URL (secret included), with no token. The first notice that arrives becomes the sample and, in Map fields, you tell it where the order, status, amount, product, customer and UTMs are. Until you save the map, the notices are only logged and do not become sales. The full step by step is in Incoming webhook.

Part F. Default ad account

The Default ad account field only shows with a Meta account connected. In the ad account filter (top filters), a sale with no campaign from this integration goes into this account (except those that came from Google, TikTok, Kwai or Taboola). Use it when the store only advertises in one account: that store's sales with no campaign (including those with no UTM, organic or direct) start counting in it. None (sales with no campaign are left out) is the default.

Part G. Edit, change the token, deactivate

  • Edit opens the form (store, name, fees or, on Espectro Pay, the fallback fee, default account). Click Save.
  • In the same panel: Zedy token (the one Zedy showed), Change the token (Espectro Pay) or Change the URL secret (Other platform), with Save token and, outside Zedy, Generate new token ("Generate a new token? The old one stops working right away: sales from this checkout stop arriving until you paste the new token there."; on Other platform, "Generate a new secret? The URL changes and the old one stops working right away: ..."). After changing it, update the token (or the URL) in the checkout.
  • Deactivate: the notices for this integration start being rejected. Activate turns it back on. There is no way to delete an integration: only to deactivate it.
  • On Zedy there is only Save token, with the token Zedy showed: a token generated in Espectro would not match Zedy's and would break every notice, so the Generate new token button does not show there.
  • The team only sees the end of the token and the URL.

Part H. The Page script card

At the end of the screen is the Page script card: the espectro.js line ready with your account code, the version with observe mode, the list of attributes and the purchase example for a custom-built checkout. How to use it: Install the script.

How to know it worked

  • On the integration card: Active badge, Events received greater than zero and Last event with the date.
  • In Sales, new sales show up with the source and the store.
  • At the top of the analytics screens, the All stores box starts listing the store and the integration.

Common problems and fixes

ProblemWhy it happensFix
Events received stays at 0.The URL or the token was not pasted in full into the checkout.Copy them again. In Espectro Pay, use Send test and check the response (Espectro destination).
The checkout gets a 401 response.Wrong token, or a URL from another integration.Copy the token again (on Zedy, paste it again into Zedy token and click Save token).
The checkout gets a 403 response.The integration is deactivated, or the Espectro account is suspended.Click Activate. If the account is suspended, contact the Espectro Discord.
The checkout gets a 404 response.Incomplete or wrong URL, or a URL from an integration with another source.Copy the full URL again.
I generated a new token and the sales stopped.Generate new token stops the sales right away until you paste the new token into the checkout (or the new URL, on Other platform).Paste the new token (or URL) into the checkout.
The same store shows up as two stores.The integrations use different store names.Use exactly the same store name in the integrations.
The profit is different from what you expected.The fee is wrong.Espectro Pay: check the Axxon fee in Espectro Pay > Payment (Set up your store). Zedy and Other platform: check the integration's Platform fee. In the Overview, click Platform fees to see where each amount came from (Read your numbers).
When choosing the ad account, sales disappear.Sales with no Meta number, or with a campaign whose account has not been found yet.Set up the Default ad account (Part F); for the ones not found yet, click Refresh later.
"Only the account owner can change connections, keys and tokens."Your role is Team.Ask the account owner.