> For the complete documentation index, see [llms.txt](https://docs.live-eo.com/tradeaware/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.live-eo.com/tradeaware/using-the-tradeaware-api/manage-your-transactions/amend-or-withdraw-a-submitted-transaction.md).

# 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}/amend`](https://docs.live-eo.com/tradeaware/using-the-tradeaware-api/api-reference/transactions/amend-a-transaction.md) to correct the statement, for example a quantity or a component.
* **Withdraw** it with [`POST /transactions/{id}/withdraw`](https://docs.live-eo.com/tradeaware/using-the-tradeaware-api/api-reference/transactions/withdraw-a-transaction.md) to 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.

```mermaid
flowchart LR
    AVAILABLE -->|amend, 200| AVAILABLE
    AVAILABLE -->|amend, 202| SUBMITTED
    SUBMITTED -->|TRACES accepts| AVAILABLE
    AVAILABLE -->|withdraw, 200| WITHDRAWN
    AVAILABLE -.->|withdraw, 202: pending| WITHDRAWN
```

## Before you start

* Check the transaction is `AVAILABLE` and note `dds.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`.
* A grouped DDS can be withdrawn but not amended yet. See [Large statements: grouped DDS](https://docs.live-eo.com/tradeaware/using-the-tradeaware-api/manage-your-transactions#large-statements-grouped-dds).

## Amend a transaction

{% stepper %}
{% step %}

### Get the current transaction

`GET /transactions/{id}?includes=components` returns the content to start from.
{% endstep %}

{% step %}

### 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`.

```bash
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"
    }
  ]
}'
```

{% endstep %}

{% step %}

### Read the result

* `200`: done. The transaction is `AVAILABLE` with the new content; `dds.amendedAt` and `dds.amendmentCount` are updated.
* `202`: TRACES is still processing. The transaction is `SUBMITTED`; poll `GET /transactions/{id}` until it is `AVAILABLE` again.
* `503`: TRACES did not answer and may still have applied the amendment. Resend the same amendment.
  {% endstep %}
  {% endstepper %}

## Withdraw a transaction

```bash
curl -X POST https://api.tradeaware.live-eo.com/transactions/{id}/withdraw \
-H "Authorization: Bearer <token>"
```

* `200`: the transaction is `WITHDRAWN` and `dds.withdrawnAt` is set.
* `202`: the withdrawal is pending and the transaction stays `AVAILABLE` for now. Poll `GET /transactions/{id}`: it becomes `WITHDRAWN` once TRACES confirms, or stays `AVAILABLE` if 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](https://docs.live-eo.com/tradeaware/using-the-tradeaware-api/api-reference/transactions/amend-a-transaction.md) and [Withdraw a Transaction](https://docs.live-eo.com/tradeaware/using-the-tradeaware-api/api-reference/transactions/withdraw-a-transaction.md) for the full list of responses.

{% hint style="info" %}
Accounts are connected to TRACES ACCEPTANCE by default, so you can try amending and withdrawing without affecting legally binding statements.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.live-eo.com/tradeaware/using-the-tradeaware-api/manage-your-transactions/amend-or-withdraw-a-submitted-transaction.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
