Before you begin
- An admin user of the brand in the dashboard
curlor any HTTP client
Step 1 — Create a key
- In the dashboard, open the account menu and select Credenciais de API.
- Select Nova chave.
- Give the key a name, choose the vertical (Network or White label, asked only when your brand has both) and what the key can read. For this quickstart, select Pedidos. The key gets the scope
network:orders:readorwhitelabel:orders:read. - Choose the expiration and select Criar chave.
- Copy the key. It is shown once.
lmd_prod_{prefix}_{secret}. Store it in a secret manager or an environment variable:
Step 2 — List orders
Use the path of the vertical the key belongs to.from and to, the API returns the last 30 days.
Step 3 — Read the response
The response is{ data, meta }. A network order is attributed to a channel:
affiliate: { id, name } in place of channel, and utm also has campaign.