cURL
curl --request GET \
--url https://api.lomadee.com.br/affiliate/orders \
--header 'x-api-key: <api-key>'import requests
url = "https://api.lomadee.com.br/affiliate/orders"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.lomadee.com.br/affiliate/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lomadee.com.br/affiliate/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lomadee.com.br/affiliate/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lomadee.com.br/affiliate/orders")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lomadee.com.br/affiliate/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"data": {
"id": "<string>",
"orderId": "<string>",
"status": "pending",
"value": 123,
"createdAt": "<string>",
"commission": 123,
"commissionStatus": "pending",
"items ": [
{
"id": "<string>",
"name": "<string>",
"quantity": 123,
"price": 123,
"categories": 123
}
],
"organizationId": "<string>",
"mdasc": "<string>"
},
"meta": {
"total": 123,
"page": 123,
"limit": 123,
"totalPages": 123
}
}
],
"meta": {
"total": 123,
"page": 123,
"limit": 123,
"totalPages": 123
}
}{
"message": "<string>",
"error": "<string>",
"statusCode": 123
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}Orders
Get all Orders
Returns all orders from the system that the user has access to
GET
/
affiliate
/
orders
cURL
curl --request GET \
--url https://api.lomadee.com.br/affiliate/orders \
--header 'x-api-key: <api-key>'import requests
url = "https://api.lomadee.com.br/affiliate/orders"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.lomadee.com.br/affiliate/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lomadee.com.br/affiliate/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lomadee.com.br/affiliate/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lomadee.com.br/affiliate/orders")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lomadee.com.br/affiliate/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"data": {
"id": "<string>",
"orderId": "<string>",
"status": "pending",
"value": 123,
"createdAt": "<string>",
"commission": 123,
"commissionStatus": "pending",
"items ": [
{
"id": "<string>",
"name": "<string>",
"quantity": 123,
"price": 123,
"categories": 123
}
],
"organizationId": "<string>",
"mdasc": "<string>"
},
"meta": {
"total": 123,
"page": 123,
"limit": 123,
"totalPages": 123
}
}
],
"meta": {
"total": 123,
"page": 123,
"limit": 123,
"totalPages": 123
}
}{
"message": "<string>",
"error": "<string>",
"statusCode": 123
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}Get all Orders
Returns paginated orders for the authenticated affiliate. Requires scopeorders:read.
HTTP Request
GET https://api-beta.lomadee.com.br/affiliate/orders
Query Parameters
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default 1) |
limit | integer | Items per page (default 10, max 100) |
organizationId | string | Filter by brand UUID |
organizationIds | string | Comma-separated brand UUIDs |
mdasc | boolean/string | Filter by additional identifier |
from | date | Start date (use with to) |
to | date | End date (use with from) |
Response
{
"data": [],
"meta": {
"total": 0,
"page": 1,
"limit": 10,
"totalPages": 0
}
}
Example
curl -X GET "https://api-beta.lomadee.com.br/affiliate/orders?page=1&limit=10" \
-H "x-api-key: your-api-key"