cURL
curl --request GET \ --url https://api-beta.lomadee.com.br/affiliate/brands \ --header 'x-api-key: <api-key>'
[ { "data": { "id": "<string>", "logo": "<string>", "name": "<string>", "slug": "<string>", "site": "<string>", "channels": [ { "id": "<string>", "name": "<string>", "availableChannel": { "id": "<string>", "name": "<string>" }, "shortUrls": [ "<string>" ], "message": "<string>" } ], "commission": { "value": 123, "transfer": "<string>" } }, "meta": { "total": 123, "page": 123, "limit": 123, "totalPages": 123 } } ]
Returns all brands from the system that the user has access to
GET https://api-beta.lomadee.com.br/affiliate/brands
curl -X GET "https://api-beta.lomadee.com.br/affiliate/brands" \ -H "x-api-key: your-api-key"
curl -X GET "https://api-beta.lomadee.com.br/affiliate/brands?page=1&limit=20" \ -H "x-api-key: your-api-key"
curl -X GET "https://api-beta.lomadee.com.br/affiliate/brands?organizationId=e36f5bbb-3e5f-42e2-be4c-6c32dac101c2" \ -H "x-api-key: your-api-key"
Show properties
{ "data": [ { "id": "e36f5bbb-3e5f-42e2-be4c-6c32dac101c2", "logo": "https://example.com/logo.png", "name": "Example Brand", "slug": "example-brand", "site": "https://example.com", "commission": { "value": 4.2, "transfer": "cpa" }, "channels": [ { "id": "channel-1", "name": "Main Channel", "availableChannel": { "id": "available-1", "name": "Available Channel" }, "shortUrls": ["https://lomadee.com/short-url-1"], "message": null } ] } ], "meta": { "total": 150, "page": 1, "limit": 10, "totalPages": 15 } }
{ "message": "API key is required", "error": "Unauthorized", "statusCode": 401 }
{ "message": "Internal server error", "error": "InternalServerError", "statusCode": 500 }
const axios = require("axios"); async function getBrands() { try { const response = await axios.get( "https://api-beta.lomadee.com.br/affiliate/brands", { headers: { "x-api-key": "your-api-key", }, params: { page: 1, limit: 20, }, } ); console.log("Brands:", response.data.data); console.log("Pagination:", response.data.meta); } catch (error) { console.error("Error:", error.response.data); } }
import requests def get_brands(): url = 'https://api-beta.lomadee.com.br/affiliate/brands' headers = {'x-api-key': 'your-api-key'} params = { 'page': 1, 'limit': 20 } response = requests.get(url, headers=headers, params=params) if response.status_code == 200: data = response.json() print('Brands:', data['data']) print('Pagination:', data['meta']) else: print('Error:', response.json())
<?php $url = 'https://api-beta.lomadee.com.br/affiliate/brands'; $headers = ['x-api-key: your-api-key']; $params = [ 'page' => 1, 'limit' => 20 ]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url . '?' . http_build_query($params)); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($httpCode === 200) { $data = json_decode($response, true); echo 'Brands: ' . print_r($data['data'], true); echo 'Pagination: ' . print_r($data['meta'], true); } else { echo 'Error: ' . $response; } ?>
The maximum number of results to return
The page number to return
Brand response
The response is of type object[].
object[]