Amend a Transaction
Amend the due diligence statement of a submitted transaction in the EU Information System.
Use PUT /transactions/{id}/amend to correct the due diligence statement (DDS) of a transaction that the EU Information System (TRACES) has already accepted. TradeAware sends the amendment to TRACES during the request and returns the result, so you know straight away whether it was accepted.
When you can amend
The transaction status is
AVAILABLE.Less than 72 hours have passed since the original submission (
dds.submittedAt). Amending does not restart this window.No other amendment or withdrawal of the same transaction is in progress.
What the request body replaces
The body is the full amended transaction, not a patch. TRACES replaces the whole statement, so send every component the statement should contain after the amendment.
components (required, 1 to 100)
Replaces all current components. Each component is validated as on create and submit.
Not allowed
countryOfActivity
Replaces the current value
Cleared
isGeoLocationConfidential
Replaces the current value
Set to false
customId
Replaces the current value and is sent to TRACES as the internal reference
Current value kept
customData
Replaces the current value
Current value kept
legalEntityId
Uses that legal entity of your business as the primary actor
Current legal entity kept
activityType
Must equal the current activity type
Current value kept
Nothing is saved unless TRACES accepts the amendment. If the request fails, the transaction keeps its previous content.
Example request
Responses
200 OK: TRACES accepted the amendment. The transaction is
AVAILABLE, its components are replaced, anddds.amendedAtanddds.amendmentCountare updated. The DDS reference number stays the same.202 Accepted: TRACES accepted the amendment but is still processing it. The transaction is
SUBMITTEDuntil TRACES makes itAVAILABLEagain. PollGET /transactions/{id}for the result.
Both return the updated transaction.
Errors
400
The amended content is invalid, changes the activity type or the DDS references, or names an unknown legal entity.
Fix the body and resend.
404
The transaction does not exist or belongs to another business.
Check the ID.
409
The transaction is not AVAILABLE, another change is in progress, or TRACES does not allow an amendment for the current status of the statement (code: DDS_TRACES_STATUS_CONFLICT).
Check the transaction status.
422
More than 72 hours since submission (DDS_LIFECYCLE_WINDOW_EXPIRED), TRACES refused the amendment (DDS_TRACES_REFUSED), or amending is not supported by the current TRACES connection (DDS_LIFECYCLE_NOT_SUPPORTED).
Don't retry: the request will fail again.
503
TRACES could not be reached or did not answer.
Resend the same amendment. TRACES may have applied it, and resending makes sure TradeAware and TRACES match.
When TRACES refuses the change, the response lists the TRACES error codes in tracesCodes. Example of a 422 response:
Replaces the statement of an AVAILABLE transaction with the amended one. The body is the full amended transaction: components replace the current ones and are validated as on submit. Only possible within 72 hours of the original submission; the activity type and referenced statements cannot change. Changes are saved only if the EU Information System accepts them. Returns 200 when it confirms straight away, or 202 if it is still processing the amendment; the transaction is then SUBMITTED until it becomes AVAILABLE again.
Two-letter country code (ISO 3166 Alpha-2) of the place of activity. Depends on activityType. For import, Country of entry into the EU. For Export, Country of exit from the EU. For Domestic Production and Trade, EU country where goods are sourced, manufactured or produced or made available on the market. Optional: TRACES treats this as optional for DDS submission.
ITThe id of the legal entity containing company details (name, address, EORI, etc.) that will be used as the primary actor for this transaction when submitting to EU Information System.
123e4567-e89b-12d3-a456-426614174000Whether the geolocation data is confidential.
falseExample: falseMetadata related to the transaction. This can be used to store any additional information that is relevant to the transaction. The input object must fulfill the following requirements: - max <=50 keys - max key length of <=255 characters - max string value length of <=255 characters - values must be either strings, number, or booleans - keys cannot contain the substrings proto, constructor, or prototype
{"key1":"someValue","key2":true,"key3":1234}Custom identifier. Sent to the EU Information System as the internal reference. Keeps the current value if omitted.
DEC-24-238620Accepted only so a client resending the full transaction is not rejected. The EU does not allow changing the activity type on amend: a different value is rejected with 400.
id of this entity
02c36247-1aad-41ba-aa49-f114ca4c263fStatus of this transaction.
Custom identifier. Can be used for internal reference or tracking purposes.
DEC-24-238620Type of transaction to be performed.
EXPORTTwo-letter country code (ISO 3166 Alpha-2) of the place of activity. Depends on activityType. For import, Country of entry into the EU. For Export, Country of exit from the EU. For Domestic Production and Trade, EU country where goods are sourced, manufactured or produced or made available on the market.
ITWhether the geolocation data is confidential.
falseMetadata related to the transaction. This can be used to store any additional information that is relevant to the transaction. The input object must fulfill the following requirements: - max <=10 keys - max key length of <=255 characters - max string value length of <=255 characters - values must be either strings, number, or booleans - keys cannot contain the substrings proto, constructor, or prototype
{"key1":"someValue","key2":true,"key3":1234}ISO 8601
2023-07-26T15:03:48ZISO 8601
2023-07-28T09:13:37ZThe amended content is invalid, changes the activity type or the referenced statements, or names an unknown legal entity.
The transaction is not AVAILABLE, another change is in progress, or the EU Information System does not allow it for the statement status.
More than 72 hours since submission, the EU Information System refused the amendment (the response lists its error codes), or amending is not supported by the current connection.
The EU Information System could not be reached or did not answer. It may still have applied the amendment: resend the same amendment to make sure TradeAware and the EU Information System match.
PUT /transactions/{id}/amend HTTP/1.1
Host: api.tradeaware.live-eo.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 979
{
"countryOfActivity": "IT",
"legalEntityId": "123e4567-e89b-12d3-a456-426614174000",
"isGeoLocationConfidential": "false",
"customData": {
"key1": "someValue",
"key2": true,
"key3": 1234
},
"customId": "DEC-24-238620",
"activityType": "IMPORT",
"components": [
{
"hsn": "120190",
"quantity": 123.45,
"unit": "KGM",
"supplementaryUnit": 12,
"supplementaryUnitQualifier": "NAR",
"percentageEstimationOrDeviation": 5,
"description": "text",
"namePairs": [
{
"commonName": "soybean",
"scientificName": "Glycine max"
},
{
"commonName": "edamame",
"scientificName": "Glycine max var. viridis"
}
],
"dateOfProduction": "2021-01-01T00:00:00.000Z",
"endDateOfProduction": "2022-01-01T00:00:00.000Z",
"supplierBusinessId": "02c36247-1aad-41ba-aa49-f114ca4c263f",
"supplierBusinessIds": [
"02c36247-1aad-41ba-aa49-f114ca4c263f"
],
"plotIds": [
"a78c1a68-d326-4217-a131-893f3c47a064",
"e8d2e3e6-2c7c-4c4e-98a9-3e3f4e2c1a68"
],
"productIds": [
"02c36247-1aad-41ba-aa49-f114ca4c263f"
],
"ddsReferences": [
{
"id": "24DKYIGLPU3439",
"verificationNumber": "4NAB3QYM"
}
]
}
]
}{
"id": "02c36247-1aad-41ba-aa49-f114ca4c263f",
"status": "DRAFT",
"customId": "DEC-24-238620",
"activityType": "EXPORT",
"countryOfActivity": "IT",
"isGeoLocationConfidential": "false",
"components": [
{
"id": "02c36247-1aad-41ba-aa49-f114ca4c263f",
"hsn": "18010000",
"commodity": "oil palm",
"quantity": 123.45,
"unit": "KGM",
"supplementaryUnit": 12,
"supplementaryUnitQualifier": "NAR",
"percentageEstimationOrDeviation": 5,
"description": "text",
"namePairs": [
{
"commonName": "soybean",
"scientificName": "Glycine max"
}
],
"transactionId": "02c36247-1aad-41ba-aa49-f114ca4c263f",
"dateOfProduction": "2021-01-01T00:00:00.000Z",
"endDateOfProduction": "2021-01-01T00:00:00.000Z",
"createdAt": "2023-07-26T15:03:48Z",
"updatedAt": "2023-07-28T09:13:37Z",
"supplierBusiness": {
"id": "02c36247-1aad-41ba-aa49-f114ca4c263f",
"email": "user@example.com",
"name": "Example Inc.",
"username": "John Doe",
"addressStreet": "Salawati 143",
"addressZip": "98451",
"addressPostcode": "12345",
"addressArea": "Brandenburg",
"addressCity": "West Papua",
"addressCountryCode": "ID",
"addressCountry": "Indonesia",
"addressLine1": "Salawati 123",
"addressLine2": "3rd floor",
"createdAt": "2023-07-26T15:03:48Z",
"updatedAt": "2023-07-28T09:13:37Z",
"initialLocale": "id-ID",
"units": "metric",
"plots": [
"[Circular Reference]"
],
"newlyCreated": "true",
"members": [
"[Circular Reference]"
],
"connectionsAsSource": [
"[Circular Reference]"
],
"connectionsAsTarget": [
"[Circular Reference]"
],
"businessInvitations": [
"[Circular Reference]"
],
"contactPerson": {},
"machineToMachineClientId": "1234567890asdfghjk",
"eori": "text",
"vat": "text",
"tracesEnvironment": "ACCEPTANCE"
},
"supplierBusinesses": [
{
"id": "02c36247-1aad-41ba-aa49-f114ca4c263f",
"email": "user@example.com",
"name": "Example Inc.",
"username": "John Doe",
"addressStreet": "Salawati 143",
"addressZip": "98451",
"addressPostcode": "12345",
"addressArea": "Brandenburg",
"addressCity": "West Papua",
"addressCountryCode": "ID",
"addressCountry": "Indonesia",
"addressLine1": "Salawati 123",
"addressLine2": "3rd floor",
"createdAt": "2023-07-26T15:03:48Z",
"updatedAt": "2023-07-28T09:13:37Z",
"initialLocale": "id-ID",
"units": "metric",
"plots": [
"[Circular Reference]"
],
"newlyCreated": "true",
"members": [
"[Circular Reference]"
],
"connectionsAsSource": [
"[Circular Reference]"
],
"connectionsAsTarget": [
"[Circular Reference]"
],
"businessInvitations": [
"[Circular Reference]"
],
"contactPerson": {},
"machineToMachineClientId": "1234567890asdfghjk",
"eori": "text",
"vat": "text",
"tracesEnvironment": "ACCEPTANCE"
}
],
"plotIds": [
"02c36247-1aad-41ba-aa49-f114ca4c263f",
"02c36247-1aad-41ba-aa49-f114ca4c263f"
],
"products": [
{
"id": "02c36247-1aad-41ba-aa49-f114ca4c263f",
"name": "Rough-sawn oak boards",
"hsCode": "440312"
}
],
"ddsReferences": [
{
"id": "24DKYIGLPU3439",
"verificationNumber": "4NAB3QYM"
}
]
}
],
"customData": {
"key1": "someValue",
"key2": true,
"key3": 1234
},
"dds": {
"id": "02c36247-1aad-41ba-aa49-f114ca4c263f",
"submitted": false,
"submittedAt": "2023-07-26T15:03:48Z",
"tracesDdsReferenceNumber": "25DEPPQEM17212",
"tracesDdsVerificationNumber": "KZ4BVOCZ",
"errors": [
"Error message"
],
"rejectionReason": "Geolocation data is incomplete.",
"communicationToOperator": {
"date": "2025-07-26T15:03:48Z",
"content": "Please provide the missing geolocation for plot 3."
},
"withdrawnAt": "2023-07-27T09:12:00Z",
"amendedAt": "2023-07-27T09:12:00Z",
"amendmentCount": 0,
"createdAt": "2023-07-26T15:03:48Z",
"updatedAt": "2023-07-26T15:03:48Z"
},
"legalEntity": {
"name": "Example Palm Oil Trader",
"email": "user@example.com",
"addressCity": "West Papua",
"addressCountryCode": "ID",
"addressLine1": "Salawati 123",
"addressLine2": "2nd floor",
"addressPostcode": "12345",
"eori": {},
"vat": "1234567890asdfghjk",
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z"
},
"createdAt": "2023-07-26T15:03:48Z",
"updatedAt": "2023-07-28T09:13:37Z"
}