List MultiDB LER Codes
const options = {
method: 'GET',
headers: {'x-api-key': '<x-api-key>', 'x-organization-id': '<x-organization-id>'}
};
fetch('https://api.dcycle.io/v1/wastes/ler-codes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.dcycle.io/v1/wastes/ler-codes"
headers = {
"x-api-key": "<x-api-key>",
"x-organization-id": "<x-organization-id>"
}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.dcycle.io/v1/wastes/ler-codes \
--header 'x-api-key: <x-api-key>' \
--header 'x-organization-id: <x-organization-id>'{
"id": "<string>",
"code": "<string>",
"name": "<string>",
"description": {}
}List MultiDB LER Codes
Retrieve the kernel LER (European List of Waste) codes used by the MultiDB waste pipeline
GET
/
v1
/
wastes
/
ler-codes
List MultiDB LER Codes
const options = {
method: 'GET',
headers: {'x-api-key': '<x-api-key>', 'x-organization-id': '<x-organization-id>'}
};
fetch('https://api.dcycle.io/v1/wastes/ler-codes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.dcycle.io/v1/wastes/ler-codes"
headers = {
"x-api-key": "<x-api-key>",
"x-organization-id": "<x-organization-id>"
}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.dcycle.io/v1/wastes/ler-codes \
--header 'x-api-key: <x-api-key>' \
--header 'x-organization-id: <x-organization-id>'{
"id": "<string>",
"code": "<string>",
"name": "<string>",
"description": {}
}← Wastes API
Returns the kernel
waste_ler_codes reference table. Pass the id of an entry as waste_ler_code_id when creating or updating a waste on the MultiDB path (?multidb=true on POST /v1/wastes).
This is the MultiDB counterpart of
waste_efs_id discovery. The legacy path instead uses
GET /v1/waste-efs.Request
Headers
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faQuery Parameters
string
Filter by code or description (case-insensitive substring match). Omit to get the full catalog.Example:
paperResponse
Returns a plain array — not paginated.string
UUID to send as
waste_ler_code_id when creating a MultiDB wastestring
LER code (European List of Waste), e.g.
200301string
LER code name/slug
string | null
Human-readable description
Example
curl -X GET "https://api.dcycle.io/v1/wastes/ler-codes?search=paper" \
-H "x-api-key: ${DCYCLE_API_KEY}" \
-H "x-organization-id: ${DCYCLE_ORG_ID}"
import requests
import os
headers = {
"x-api-key": os.getenv("DCYCLE_API_KEY"),
"x-organization-id": os.getenv("DCYCLE_ORG_ID"),
}
response = requests.get(
"https://api.dcycle.io/v1/wastes/ler-codes",
headers=headers,
params={"search": "paper"},
)
for ler_code in response.json():
print(f"{ler_code['code']} → {ler_code['id']}")
const axios = require('axios');
const headers = {
'x-api-key': process.env.DCYCLE_API_KEY,
'x-organization-id': process.env.DCYCLE_ORG_ID,
};
axios.get('https://api.dcycle.io/v1/wastes/ler-codes', { headers, params: { search: 'paper' } })
.then(response => {
response.data.forEach(lerCode => {
console.log(`${lerCode.code} → ${lerCode.id}`);
});
});
Successful Response
[
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"code": "200301",
"name": "mixed_municipal_waste",
"description": "Mixed municipal waste"
}
]
Related Endpoints
List MultiDB R/D Codes
List treatment codes, optionally scoped to a chosen LER
Create Waste
Create a waste record using the
waste_ler_code_id from this endpointWas this page helpful?