API integration use cases for EUDR due diligence
This page is for developers who create Due Diligence Statements (DDS) through the TradeAware API. Each answer covers one thing your integration may need to do: when you need it, why it matters under the EUDR, which calls to make, and what to watch out for.
The transaction API is flexible by design. It files the plots a component points to and doesn't leave plots out because of their assessment status, deforestation risk, location or link date. If your company's policy is that only reviewed plots go into a DDS, your integration applies that policy before it creates and submits the transaction. Every check on this page is optional: pick the ones your due-diligence policy requires, or follow the recommended strict setups.
Quick start
Create a transaction without a product catalogue
For an ERP that knows the supplier and picks the plots per purchase. The minimal safe sequence:
Create the draft transaction
Create the transaction as DRAFT with POST /transactions and always send those plots as plotIds. Without plotIds, TradeAware files all of the supplier's plots of that commodity, whatever their status. TradeAware takes the production period and, for timber, the species from those plots. Send dateOfProduction, endDateOfProduction or namePairs only to set your own values.
Create a transaction with a product catalogue
For buyers whose suppliers link plots to products. The minimal safe sequence:
Before you start
Access. Your account needs API access (Enterprise) and Transaction Management.
Authentication. All examples use the base URL
https://api.tradeaware.live-eo.comand a bearer token fromPOST /auth/machine-to-machine-clients/token(grant typeclient_credentials). Tokens are valid for 24 hours.Test on ACCEPTANCE. Accounts are connected to the TRACES ACCEPTANCE environment by default, so you can run full submissions without filing anything legally binding. Contact your Customer Success Manager when you're ready to move to PRODUCTION.
Legal entity. Every transaction is filed for one of your legal entities. Get its id with
GET /legal-entities. It needs an EORI for IMPORT and EXPORT; a VAT number is enough for DOMESTIC.Pagination. Plot lists return up to 500 plots per page (
limit=500). Request the next page until one returns fewer than 500.Timeouts. Set a client timeout of at least 60 seconds for
GET /business-connections/suppliers(see the first question below).
Know your suppliers and their plots
How do I get my suppliers' ids and match them to my ERP vendors?
When: once when you set up the integration, and again when you onboard a new supplier.
Why: every transaction component names the supplier the goods came from, and the EUDR asks you to record who supplied you (Art. 9(1)(e)).
Steps
Watch out
The supplier list also computes each supplier's risk score and can take more than 45 seconds when it isn't cached. Call it once and store the ids rather than calling it for every transaction.
The PATCH replaces the whole
customDataobject, so send every key you want to keep.
How do I list all plots behind a supplier, including its own suppliers' plots?
When: before you create a transaction, to know which plots you can declare for that supplier.
Why: the DDS must contain the geolocation of all plots of land where the commodities were produced (Art. 9(1)(d)). Many of those plots are owned by your supplier's own suppliers.
Steps
Each plot carries the fields most checks need: id, commodities, countryCode, species, productionDateStart and productionDateEnd. You can narrow the list with filter.commodities=$contains:coffee (use your commodity) or filter.countryCode=$eq:BR.
Watch out
Keep
includes=suppliers. Without it, plots owned by your supplier's own suppliers are left out of the list.GET /plotslists only your own business's plots, not your suppliers'.
What is riskLevel and how should I use it?
When: to see whether a plot's deforestation analysis is complete and what it found, before you assess or declare the plot.
Why: before placing products on the market you must verify and analyse the information you collected, and conclude that the risk is no more than negligible (Art. 10). riskLevel is TradeAware's analysis signal; your conclusion is the assessment status you set yourself (next section).
riskLevel is read-only and returned only when you add includes=riskLevel. It comes from the most relevant analysis of the plot:
PRECISION (overrides open-source)
none
high
Open-source only
low
medium
No completed analysis yet
null
null
null means the analysis isn't ready yet; check again later. This matches what the web app shows, so automations behave like the UI.
Steps
For your own plots, use GET /plots?includes=riskLevel&limit=500&page=1.
Watch out
Which values you accept is your policy. For example, some customers mark
lowplots as compliant and sendmediumandhighplots to review or mitigation.Never act on
null: the analysis isn't finished.
Record your assessment
How do I set or update a plot's status?
When: after you have reviewed a plot, for example its risk level and documents, or when you move it into risk mitigation.
Why: the status records the outcome of your risk assessment (Art. 10) and of any mitigation (Art. 11). Products may only be placed on the market when the assessment shows no or only negligible risk. TradeAware never sets this status for you.
Values: NEW, UNDER_REVIEW, IN_RISK_MITIGATION, EUDR_COMPLIANT, EUDR_NON_COMPLIANT.
Steps
notes is optional (up to 1,000 characters).
Watch out
Use
GET /plot-risk-assessmentsas your source of statuses. TheriskAssessmentStatusfield on plot objects is only filled when you addincludes=riskAssessmentStatus, is a plain value such as"EUDR_COMPLIANT", and is missing on plots owned by your supplier's suppliers.The API sets one plot per call. To change many plots at once, use the bulk status update in the web app.
If you set statuses automatically from
riskLevel, that rule is your policy decision. Skip plots whoseriskLevelisnull.
How do I set or update a supplier's status?
When: when you start, progress or conclude the assessment of a supplier.
Why: the supplier is part of your risk assessment (Art. 10), and the status lets your integration block transactions for suppliers you haven't cleared (check C1).
Values: NEW, UNDER_REVIEW, READY_FOR_ASSESSMENT, CMS_ASSESSMENT_REQUESTED, CMS_ASSESSMENT_COMPLETED, IN_RISK_MITIGATION, EUDR_COMPLIANT, EUDR_NON_COMPLIANT. The two CMS statuses require an entitlement.
Steps
Update or create the assessment
If there is one, update it with PATCH /supplier-risk-assessments/{id}. Otherwise create one with POST /businesses/{supplierId}/supplier-risk-assessments and store the id it returns. If the supplier already has an entry, the POST returns 400 "Assessment already exists. Please update the existing assessment with id … instead."
Watch out
attachmentIdsreplaces the whole list. Always send every attachment you want to keep; send[]to remove them all.The API sets one supplier per call.
Subscribe to the
supplier_risk_assessment.updatedwebhook if other systems need to react to status changes.
Create transactions
Should a failed check filter plots out or block the transaction?
Each check can run in one of two modes:
Filter: leave out the plots that fail and continue with the rest.
Block: stop, don't submit, and send the transaction to someone for review.
Why it matters: Filter changes which plots appear in the DDS, not where the goods came from. Use it only when the plots you leave out did not supply the goods in this transaction, for example when a supplier's plot list covers more than this shipment. If they did supply them, use Block: the DDS must list the geolocation of all plots the product was produced on (Art. 9(1)(d)).
The next question lists every check with the mode we recommend as a strict default. Change the modes to fit your due-diligence policy.
Which checks can I run, and how?
When: every time you pick plots. The API accepts these mistakes on the draft, and they only surface after submission, if at all.
Why: the DDS must describe the product correctly, including the species for wood, the geolocation of every plot and the production period (Art. 9(1)(a) and (d)), and only products assessed as no or negligible risk may be placed on the market (Art. 10).
Most checks read fields from the supplier's plot list, GET /businesses/{supplierId}/plots?includes=suppliers,riskLevel&limit=500, one page at a time.
C1 Supplier assessed as compliant
GET /supplier-risk-assessments: the entry with this supplierId has status EUDR_COMPLIANT. No entry means your business hasn't assessed the supplier.
TradeAware doesn't check the supplier's status; the transaction goes through.
Block
C2 Plot assessed as compliant
GET /plot-risk-assessments: the entry with this plotId has status EUDR_COMPLIANT. A plot without an entry has no assessment. In Filter mode you can add filter.riskAssessmentStatus=$eq:EUDR_COMPLIANT to the plots call instead, but it never returns plots owned by your supplier's suppliers.
The plot is filed whatever its status.
Filter or Block
C3 Deforestation analysis done and acceptable
riskLevel in the plots call (needs includes=riskLevel). null means no completed analysis yet. Which values you accept is your policy.
You may file a plot nobody has analysed.
Filter; on null, wait and retry
C4 Plot belongs to the supplier and grows the component's commodity
The plot appears in the plots call for a supplier on the component, and its commodities contains the commodity of the component's HS code (cattle, cocoa, coffee, oil palm, rubber, soya or timber). GET /transactions/{id} shows TradeAware's mapping in components[].commodity. In the plots call, filter.commodities=$contains:<commodity> does this for you.
The draft accepts it without an error. If no plot of the commodity is left, the transaction ends in ERROR "missing plots for …" followed by the commodity. If at least one is left, the others are dropped without an error, so the DDS holds fewer plots than you sent.
Filter
C5 Plot lies within a country
countryCode is not XX. TradeAware sets XX when a plot falls outside every country, for example at sea.
TRACES rejects the producer country and the transaction ends in ERROR.
Filter
C6 Timber species recorded
For timber, the plot's species list is not empty.
TradeAware adds the species of the plots you send to namePairs. If none of them has species and you don’t send namePairs, the component is rejected with 400.
Block
C7 Production period recorded
productionDateStart and productionDateEnd are not null. They come back date-only (for example 2026-08-31);
TradeAware sets the period from the plots that have both dates and ignores the others, so the DDS period may not cover every plot. If no plot has both dates, the component gets no production period, which Art. 9(1)(d) requires.
Block or flag
C8 Product link not expired (products only)
In GET /products/{productId}/plots, the supplier's plotsExpiryDate is null, today or later.
Expired links are still used at submission.
Block
C9 Every supplier linked plots (products only)
In GET /products/{productId}/plots, every supplier on the component has at least one plot in assignedPlots.
A supplier without linked plots adds no plots, and the API returns no error. If no supplier has linked plots, the transaction ends in ERROR "missing plots for …" followed by the commodity.
Block
How do I create a transaction for plots I selected?
When: your ERP knows the supplier of a purchase and your integration decides which plots go into the DDS.
Why: you must submit a due diligence statement before placing products on the market or exporting them (Art. 4(2)). It carries the geolocation of the plots and the date or time range of production (Art. 9(1)(d)) and, for wood products, the common and scientific name of each species (Art. 9(1)(a)).
Steps
Example: a timber import with checked plots.
You can leave out namePairs and the two dates; TradeAware then takes them from the plots.
Watch out
Always send
plotIds. A component with a supplier and noplotIdsgets all of that supplier's plots of the component's commodity, whatever their assessment status. The draft then showsplotIds: null, so you can't see which plots will be filed. An empty list (plotIds: []) is rejected with 400.Period and species come from the plots. Leave out
dateOfProductionandendDateOfProduction, and TradeAware sets them from the earliestproductionDateStartto the latestproductionDateEndof the plots you send. For timber, it adds the plots’ species tonamePairs, so sendnamePairsonly when the plots carry no species. Species you send are kept.Removing plots doesn’t narrow them. When you change
plotIdswithPATCH /components/{id}, the period is only widened and species are only added for newly included plots. If you remove plots after the recheck, senddateOfProduction,endDateOfProductionandnamePairsin the same request. SendingnamePairsreplaces the list.Dates are full UTC timestamps ending in
Z, as in the example. Date-only values are rejected with 400.Several suppliers: use
supplierBusinessIds. Each listed supplier must keep at least one plot inplotIds, otherwise the API returns 400 "Some suppliers were referenced but do not have any plots associated with them". The DDS lists one producer per supplier.Set
customIdandcustomDatanow. Neither can be changed after you submit.Some HS codes also need
supplementaryUnitandsupplementaryUnitQualifier; see Manage your transactions.
How do I include only plots I marked EUDR_COMPLIANT?
When: your policy is that only plots your team has reviewed and cleared go into a DDS.
Why: products may only be placed on the market when your risk assessment shows no or only negligible risk (Art. 10). TradeAware files the plots you send and doesn't leave any out because of their status, so this filter lives in your integration.
Steps
Shortcut: filter.riskAssessmentStatus=$eq:EUDR_COMPLIANT on the plots call returns only compliant plots in one call. It reads the plot's own status field, which is missing on plots owned by your supplier's suppliers, so those plots are never returned. Use it only if you don't need them.
Watch out
Leaving plots out changes which plots appear in the DDS, not where the goods came from (see "Should a failed check filter plots out or block the transaction?").
Statuses can change after you create the draft. Check them again right before you submit; no webhook fires when a plot status changes.
How do I create a transaction from my product catalogue?
When: you created products, shared them with your suppliers, and your suppliers linked the plots each product comes from (see Manage products and plot links).
Why: product links let your suppliers maintain which plots stand behind each product, and the DDS still has to list all of those plots (Art. 9(1)(d)).
How TradeAware picks the plots: for a component with productIds, it adds the plots that each supplier listed on the component has linked to those products, plus any plotIds you send. It reads the links when it processes the submission, which happens asynchronously after PUT /transactions/{id}/submit, so a supplier's change before that point reaches the DDS:
Plots a supplier deleted or unlinked before that point are left out.
A link whose valid-until date has passed is still used.
plotIdscan only add plots: whileproductIdsis on the component, a linked plot can't be left out.
Steps
Choose a transaction pattern
If every check passed, use pattern A. If some plots failed and your policy allows leaving them out, use pattern B. If a check in Block mode failed, don't create or submit the transaction: the supplier corrects its link in the web app or with PUT /products/{productId}/plots, and your team updates plot statuses with the plot risk assessment endpoints.
Pattern A: reference the product
Send productIds together with the suppliers and no plotIds.
On the draft, GET /transactions/{id} shows the product under products and plotIds: null: the linked plots are added at submission. Right before you submit, read GET /products/{productId}/plots again and compare the plot ids with the set you checked. If they differ, run the checks again.
Watch out
Period and species are set when you create the component. For a component with productIds, TradeAware takes the production period and, for timber, the species from the plots linked to the product at that moment. If a supplier changes its links before you submit, these values aren’t updated, but the DDS files the plots linked at submission. Right before you submit, read GET /products/{productId}/plots again. If the plots changed, send dateOfProduction, endDateOfProduction and namePairs with PATCH /components/{id}, or use pattern B.
Pattern B: send the checked plots
Send the plots that passed as plotIds with their suppliers and leave productIds out. The DDS then contains exactly those plots, and later changes to the product links don't affect the transaction. The component has no product reference, so keep your product id or reference in the transaction's customData if you need it for your records.
Watch out
List the suppliers on the component. A component with
productIdsand no supplier is rejected with 400, and linked plots come only from the suppliers you list.productIdsmust be products your business owns.With
supplierBusinessIdsin pattern B, list only suppliers that keep at least one plot inplotIds; otherwise the API returns 400 "Some suppliers were referenced but do not have any plots associated with them".Don't delete a product while a transaction that uses it hasn't been processed. The component loses its product reference, and TradeAware then files all of the listed suppliers' plots of that commodity, including plots they never linked.
No webhook fires when a supplier changes its links, so read them again before you submit.
Submit and follow up
How do I submit and get the DDS reference number?
When: the draft is final and your checks passed.
Why: the DDS must be submitted before the products are placed on the market or exported (Art. 4(2)). Downstream operators who buy from you must collect the reference number of your DDS (Art. 5(3)(a)), so pass it on to your customers.
Steps
To read back what TRACES holds, call GET /dds/fetch-dds-data?referenceNumber={ref}&verificationNumber={ver}. It is limited to 2 requests per 10 seconds per client.
Watch out
After you submit, the transaction is locked (see "Can I change a transaction after I submitted it?").
On PRODUCTION, every submitted transaction is a legally binding DDS. Within 72 hours of submission you can amend or withdraw it. See Amend or withdraw a submitted transaction.
My transaction ended in ERROR. How do I fix it?
When: the status is ERROR: TradeAware or TRACES refused the statement, and no DDS exists yet.
Why: nothing has been filed, so you can correct the transaction and submit it again.
Steps
"missing plots for …" followed by the commodity
No plot of the component's commodity: wrong plots, or a product without linked plots (C4, C9).
An error about the producer country code
A plot with countryCode XX (C5).
EUDR-COMMODITIES-HS-CODE-INVALID
TRACES doesn't accept the HS code.
A TRACES rejection on an IMPORT or EXPORT that sent percentageEstimationOrDeviation
The field is only accepted on DOMESTIC.
Watch out: after you resubmit, dds.errors can still show the previous error until the new attempt has been processed.
Can I change a transaction after I submitted it?
Not with PATCH. Once you have submitted a transaction (TO_SUBMIT), and also once it is AVAILABLE, PATCH /transactions/{id} and PATCH /components/{id} return 409 “The transaction is not in draft state and therefore cannot be modified” for every field, customData and customId included. Only DRAFT transactions, and ones that ended in ERROR, can be changed.
So set customId and customData (for example your purchase order or shipment number) before you submit, or keep the mapping between the TradeAware transaction id and your own reference in your system.
To correct or cancel a DDS that’s already AVAILABLE, amend or withdraw it within 72 hours of the original submission. An amendment doesn’t restart that window, and it replaces the whole statement, so send every component again. See Amend or withdraw a submitted transaction.
How do I retry safely after a timeout?
When: a POST /transactions call timed out or the connection dropped, and you don't know whether it went through.
Why: TradeAware doesn't check for duplicates. Every create call makes a new transaction, even with the same customId and data, and each one you submit becomes its own DDS.
Steps
Watch out: turn off automatic retries for POST requests in your HTTP client or middleware, or route them through the check above.
Which webhook events can I subscribe to?
When: you want to react to changes instead of polling.
Events: transaction.updated, business_invitation.updated, analysis.precision.updated and supplier_risk_assessment.updated. GET /webhooks/events returns the current list.
Get the endpoint secret with GET /webhooks/{id}/secret, send a test message with POST /webhooks/{id}/send-example, and see delivery attempts with GET /webhooks/{id}/attempts.
Watch out
No event fires when a plot's status or a product's links change. Read them again right before you submit.
transaction.updateddoesn't carry the DDS numbers. Read them fromGET /transactions/{id}.
Sources
Article numbers refer to Regulation (EU) 2023/1115 (EUDR) as amended by Regulations (EU) 2024/3234 and 2025/2650: consolidated text on EUR-Lex. API behaviour follows the TradeAware API reference (v0.56.0).
Last updated