Before you start
Lomadee has one API for each side of the network, and each side has its own key. Pick the side your Lomadee account is on and create the matching key.If you are an affiliate
1
Open the API keys page
In the Lomadee panel, open the Chaves de API page.
2
Create a key
Click Criar chave de API, give it a name (for example Nekt) and select the permissions for the tables you want: Pedidos, Marcas, Campanhas, Canais, Produtos and Encurtador (leitura).
3
Copy the key
The key is shown only once. Copy it before closing the window. A new key may show the status Em análise until Lomadee approves it.
A table whose permission the key does not have is skipped and reported in the run, and every other table still syncs. To add it later, create a new key with that permission and update the source.
If you are a brand
1
Open the integrations tab
In the Lomadee panel, go to Configurações » Integrações.
2
Copy the SDK key
Under Dados da integração por SDK, copy the Chave de API.
Configuring Lomadee as a Source
In the Sources tab, click the “Add source” button in the top-right corner, then select Lomadee from the list of connectors. Click Next and add your access details.1. Add account access
The following configuration fields are available:- Account type: Affiliate if you promote brands and earn commission, or Brand if you run an affiliate program on Lomadee. It decides which tables the source offers.
- API key: The key you copied in Before you start. An affiliate key does not work on a brand source, and the other way around.
- Initial sync date (advanced, affiliates only): The earliest order date read by the Orders table on the first run. Later runs continue from where the previous one stopped. Leave it empty to read your full order history.
- Lookback window (days) (advanced, affiliates only): How many days before the last synced order every run reads again, so status and commission changes are picked up while the brand validates an order. Defaults to 90.
- Include expired campaigns (advanced, affiliates only): Also read campaigns whose period has ended. By default only running and scheduled campaigns are read.
- Product brand IDs (advanced, affiliates only): Comma-separated ids of the brands whose products to read, taken from the
idcolumn of the Brands table. Leave it empty to read the whole catalog. - Requests per minute (advanced): Maximum number of API calls per minute. Lomadee allows 60 per key; the default of 50 leaves room for other integrations that use the same key.
2. Select streams
Choose which data streams you want to sync. For faster extractions, select only the ones relevant to your analysis.Tip: The stream can be found more easily by typing its name.Select the streams and click Next.
3. Configure data streams
Customize how data should appear in your Catalog, including layer, table naming, and sync type.- Layer: Select the destination layer where extracted tables will be created.
- Folder: A folder can be created inside the selected layer to group all tables from this source.
- Table name: Use the suggested name or customize it. You can also apply a prefix to all tables at once.
- Sync Type: Choose between
INCREMENTALandFULL_TABLE. See Sync types: only the affiliate Orders table supportsINCREMENTAL.
4. Configure data source
Add a clear description for this source so your team can identify it easily, not exceeding 140 characters. To define your Trigger, choose how often data should be extracted (for example, daily, weekly, or at fixed times). Optionally, configure additional settings:- Delta Log Retention, which controls how long old table states are kept. Learn more here.
- Additional Full Sync, to periodically complement incremental runs with a complete refresh.
5. Check your new source
You can view your new source on the Sources page. If needed, trigger a run manually from the source actions.Sync types
The affiliate Orders table is the only one that syncs incrementally. It is the only Lomadee listing that filters by date, so each run reads the orders created since the last one — plus the lookback window, because an order’s status and commission keep changing for weeks while the brand validates it. Every other table is read in full on every run. Lomadee offers no “modified since” filter on them, so a full read is what keeps the Catalog equal to Lomadee. That includes the brand Orders table, whose endpoint has no date filter at all.Good to know
- Two sides, two sets of tables. An affiliate source offers Orders, Brands, Campaigns, Channels, Products and Short links. A brand source offers Orders and Affiliates. Both have an Orders table, with different columns, because each side sees the order differently.
- Order statuses change after the sale. An affiliate order starts as
pendingand becomesapproved,rejectedorrepprovedonce the brand validates it, andcommission_statusfollows. The lookback window is what brings those updates in. - The full order is always kept. Both Orders tables carry a
raw_payloadcolumn with the complete record exactly as Lomadee returned it, including any field that has no column of its own. - Brand order values follow your integration. Brand order values are stored exactly as your store’s integration sent them to Lomadee. The Lomadee pixel sends them in cents —
157490is R$ 1.574,90 — so divide by 100 in a Query if that is how your integration works. - Nested data is JSON text. Order items, value breakdowns, product variants and similar lists are stored as JSON arrays. Parse them in a Query or Notebook when you need one row per item.
- Products can be a large table. It holds the catalog of every brand you can promote. Use Product brand IDs to limit it to the brands you work with.
- A product id is unique per brand. Two brands can use the same product id, so the key of the Products table is
organization_idplusid. - Channels are capped at 20. Lomadee returns at most 20 channels per account; if you have more, the run says so.
- Short links include inactive ones. The table holds both active and deactivated links, with their click counts; filter on
activewhen you need only the live ones. - Rate limit. Lomadee allows 60 requests per minute per key. The connector paces itself below it and waits automatically if Lomadee asks it to slow down, so a large first sync takes a while but loses no data.
Streams and Fields
Affiliate account
Orders (Affiliate account)
Orders (Affiliate account)
Brands (Affiliate account)
Brands (Affiliate account)
Campaigns (Affiliate account)
Campaigns (Affiliate account)
Channels (Affiliate account)
Channels (Affiliate account)
Products (Affiliate account)
Products (Affiliate account)
Short links (Affiliate account)
Short links (Affiliate account)
Brand account
Orders (Brand account)
Orders (Brand account)
Affiliates (Brand account)
Affiliates (Brand account)