List MultiDB 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 MultiDB R/D Codes
Retrieve the kernel R/D (recovery/disposal) operation codes used by the MultiDB waste pipeline
GET
/
v1
/
wastes
/
rd-codes
List MultiDB 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
Returns the kernel
waste_rd_codes reference table. Pass the id of an entry as waste_rd_code_id when creating or updating a waste on the MultiDB path (?multidb=true on POST /v1/wastes). This field is optional — roughly a third of waste records name no treatment.
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
uuid
Restrict results to R/D codes valid for this LER code (via
waste_matches). Omit to get the
full catalog.Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890Response
Returns a plain array — not paginated.string
UUID to send as
waste_rd_code_id when creating a MultiDB 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=a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-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": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"},
)
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: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' },
}).then(response => {
response.data.forEach(rdCode => {
console.log(`${rdCode.code} → ${rdCode.id}`);
});
});
Successful Response
[
{
"id": "b2c3d4e5-f6a7-8901-bcde-fa2345678901",
"code": "R03",
"name": "recycling_recovery_of_organic_substances",
"description": "Recycling/reclamation of organic substances"
}
]
Related Endpoints
List MultiDB LER Codes
List waste type codes to scope this endpoint with
ler_code_idCreate Waste
Create a waste record using the
waste_rd_code_id from this endpointWas this page helpful?