Amend or withdraw a submitted transaction
Correct or withdraw a due diligence statement within 72 hours of submitting it.
Once TRACES has accepted a transaction (status AVAILABLE), you have 72 hours from the original submission to change it:
Amend it with
PUT /transactions/{id}/amendto correct the statement, for example a quantity or a component.Withdraw it with
POST /transactions/{id}/withdrawto take the statement back. This is final.
Both endpoints are available to OAuth2.0 machine-to-machine clients and need the same Transaction Management access as submitting.
Unlike submitting, both calls reach TRACES during the request. You get TRACES' answer, or the reason it refused, in the response.
Before you start
Check the transaction is
AVAILABLEand notedds.submittedAt: the 72-hour window counts from that time and an amendment does not restart it.Wait for one change to finish before sending another. A second amendment or withdrawal while one is in progress returns
409.
Amend a transaction
Send the full amended transaction
The body replaces the whole statement: send every component it should contain, not only the changed ones. Omitted countryOfActivity is cleared and omitted isGeoLocationConfidential becomes false; customId, customData and legalEntityId keep their current values when omitted. Keep the same activity type and the same ddsReferences.
curl -X PUT https://api.tradeaware.live-eo.com/transactions/{id}/amend \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"countryOfActivity": "DE",
"components": [
{
"hsn": "1201",
"quantity": 150,
"unit": "KGM",
"description": "Soybean",
"supplierBusinessId": "589df451-a064-48e6-a715-1315a3f6180a"
}
]
}'Read the result
200: done. The transaction isAVAILABLEwith the new content;dds.amendedAtanddds.amendmentCountare updated.202: TRACES is still processing. The transaction isSUBMITTED; pollGET /transactions/{id}until it isAVAILABLEagain.503: TRACES did not answer and may still have applied the amendment. Resend the same amendment.
Withdraw a transaction
200: the transaction isWITHDRAWNanddds.withdrawnAtis set.202: the withdrawal is pending and the transaction staysAVAILABLEfor now. PollGET /transactions/{id}: it becomesWITHDRAWNonce TRACES confirms, or staysAVAILABLEif the withdrawal did not happen, in which case you can try again within the 72 hours. Don't resend while it is pending.503: TRACES could not be reached and nothing was withdrawn. Retry later.
Handling refusals
A 422 means the change cannot be made: the 72 hours have passed (DDS_LIFECYCLE_WINDOW_EXPIRED), or TRACES refused it (DDS_TRACES_REFUSED, with TRACES' own codes in tracesCodes). Retrying won't help. A 409 means the transaction's status doesn't allow the change right now.
See Amend a Transaction and Withdraw a Transaction for the full list of responses.