curl --request GET \
--url https://{companyName}.api.joinluminous.com/external/api/v1/inventory/transactions/consumption/export \
--header 'Authorization: Bearer <token>'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/inventory/transactions/consumption/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/inventory/transactions/consumption/export', 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://{companyName}.api.joinluminous.com/external/api/v1/inventory/transactions/consumption/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://{companyName}.api.joinluminous.com/external/api/v1/inventory/transactions/consumption/export"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{companyName}.api.joinluminous.com/external/api/v1/inventory/transactions/consumption/export")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/inventory/transactions/consumption/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body<string>{
"message": "<string>"
}Consumption report export
Export consumption report as CSV or Excel file. Same data as
GET /inventory/transactions/consumption, unpaginated. Accepts the same group, date,
warehouse_group.id, warehouse_id, type and include_transfer_orders parameters with the same meaning
(see that endpoint for warehouse attribution). Product and channel filters are not applied
on export.
Warehouse-grouped files (day_product_warehouse, product_warehouse) end with a
Warehouse Type column (warehouse_group or warehouse).
curl --request GET \
--url https://{companyName}.api.joinluminous.com/external/api/v1/inventory/transactions/consumption/export \
--header 'Authorization: Bearer <token>'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/inventory/transactions/consumption/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/inventory/transactions/consumption/export', 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://{companyName}.api.joinluminous.com/external/api/v1/inventory/transactions/consumption/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://{companyName}.api.joinluminous.com/external/api/v1/inventory/transactions/consumption/export"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{companyName}.api.joinluminous.com/external/api/v1/inventory/transactions/consumption/export")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/inventory/transactions/consumption/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body<string>{
"message": "<string>"
}Authorizations
Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.
Query Parameters
Export file format
csv, xlsx Aggregation level for the exported data. product_warehouse returns one row per product per warehouse / warehouse group with all dates in the range combined.
day_product, product, day_product_warehouse, product_warehouse, transaction Only consumption on or after this transaction date (Y-m-d).
"2026-07-01"
Only consumption on or before this transaction date (Y-m-d).
"2026-09-30"
Only consumption on this transaction date (Y-m-d).
Only consumption attributed to this warehouse group. warehouse_group.id=2 is equivalent.
2
Comma-separated warehouse group IDs; consumption in any of them is counted.
"2,5"
Comma-separated warehouse group IDs to exclude.
"7"
Only consumption for this physical warehouse. warehouse_id[eq]=2 is equivalent. Sales and kit rows match when the order's warehouse group includes the warehouse.
2
Comma-separated physical warehouse IDs; consumption in any of them is counted.
"2,5"
Comma-separated consumption sources to include (sale, assembly, disassembly, adjustment). Defaults to all four.
"sale,assembly"
Set to 0 to exclude sales orders auto-generated from internal transfer orders.
Response
CSV or Excel file stream
The response is of type file.