Skip to main content
This quickstart makes the first authenticated Brand API call: list the orders of your program.

Before you begin

  • An admin user of the brand in the dashboard
  • curl or any HTTP client

Step 1 — Create a key

  1. In the dashboard, open the account menu and select Credenciais de API.
  2. Select Nova chave.
  3. 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:read or whitelabel:orders:read.
  4. Choose the expiration and select Criar chave.
  5. Copy the key. It is shown once.
The key has the format 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.
Without 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:
A white-label order has affiliate: { id, name } in place of channel, and utm also has campaign.

Next