List R/D 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/rd-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/rd-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/rd-codes \
--header 'x-api-key: <x-api-key>' \
--header 'x-organization-id: <x-organization-id>'{
"id": "<string>",
"code": "<string>",
"name": "<string>",
"description": {}
}List R/D Codes
Look up the id of an R/D (recovery/disposal) treatment code, to send as waste_rd_code_id
GET
/
v1
/
wastes
/
rd-codes
List R/D 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/rd-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/rd-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/rd-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 R/D codes: the recovery (
R…) and disposal (D…) operations Dcycle accepts, from Annexes I and II of
the Waste Framework Directive 2008/98/EC plus R14 (preparation for reuse), written with two digits (R03, not
R3). Send the id of an entry as waste_rd_code_id when you create wastes with
POST /v2/wastes or update one with
PATCH /v1/wastes/{waste_id}. The field is optional, but send it when you know the
treatment: without it only a factor defined for the LER code alone can be used.
Pass ler_code_id to get only the treatments that have an emission factor for that LER code. A pair outside that
list is stored, but its calculation ends as CALCULATION_FAILED; a pair in it usually calculates.
This replaces the deprecated
waste_efs_id, a single id for a LER + R/D pair: now the LER
code and the treatment 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
uuid
The
id of a LER code: returns only the treatments that have an emission factor
for it. Omit it to get the full catalog.Example: 33d3e986-2e02-4aaa-8be0-708c143c02d9Response
Returns a plain array — not paginated.string
UUID to send as
waste_rd_code_id when creating a wastestring
R/D operation code, e.g.
R3, D1string
R/D code name/slug
string | null
Human-readable description
Example
curl -X GET "https://api.dcycle.io/v1/wastes/rd-codes?ler_code_id=33d3e986-2e02-4aaa-8be0-708c143c02d9" \
-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/rd-codes",
headers=headers,
params={"ler_code_id": "33d3e986-2e02-4aaa-8be0-708c143c02d9"},
)
for rd_code in response.json():
print(f"{rd_code['code']} → {rd_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/rd-codes', {
headers,
params: { ler_code_id: '33d3e986-2e02-4aaa-8be0-708c143c02d9' },
}).then(response => {
response.data.forEach(rdCode => {
console.log(`${rdCode.code} → ${rdCode.id}`);
});
});
Successful Response
[
{
"id": "6617caab-9db0-40df-8716-54d8c94e8056",
"code": "R03",
"name": "recycling_recovery_of_organic_substances",
"description": "Recycling/recovery of organic substances"
}
]
Related Endpoints
List LER Codes
List waste type codes to scope this endpoint with
ler_code_idCreate Wastes (v2)
Create wastes with the
waste_rd_code_id from this endpointWas this page helpful?