List 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 LER Codes
Look up the id of a LER (European List of Waste) code, to send as waste_ler_code_id
GET
/
v1
/
wastes
/
ler-codes
List 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
The catalog of LER codes (European List of Waste) Dcycle accepts. Send the
id of an entry as waste_ler_code_id
when you create wastes with POST /v2/wastes or update one with
PATCH /v1/wastes/{waste_id}. Codes are six digits with no spaces (150106); a
trailing * marks hazardous waste and is part of the code (130205*).
The catalog is the same for every organization and only changes when Dcycle adds codes: you can cache it.
This replaces the deprecated
waste_efs_id, a single id for a LER + R/D pair: now the LER code and the treatment
(R/D code) are sent separately. The old catalog,
GET /v1/waste-efs, is read-only and no longer accepted on create or
update.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:
150106Response
Returns a plain array — not paginated.string
UUID to send as
waste_ler_code_id when creating a 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=150106" \
-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": "150106"},
)
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: '150106' } })
.then(response => {
response.data.forEach(lerCode => {
console.log(`${lerCode.code} → ${lerCode.id}`);
});
});
Successful Response
[
{
"id": "33d3e986-2e02-4aaa-8be0-708c143c02d9",
"code": "150106",
"name": "mixed_containers",
"description": "Mixed containers."
}
]
Related Endpoints
List R/D Codes
List treatment codes, optionally scoped to a chosen LER
Create Wastes (v2)
Create wastes with the
waste_ler_code_id from this endpointWas this page helpful?