> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Attaches supporting evidence (a note + optional link) to a deduction — the…

> Updated deduction

### Path parameters

**id** `string` *required*

Deduction ID

### Request body

No request body.

### Response

`Deduction`

**adjustment\_number** `string` *required*

The 812 adjustment / chargeback number.

**amount** `string` *required*

**category** `string,null`

Operator-assigned root-cause category (e.g. `shortage`, `label`, `asn`).

**created\_at** `string (date-time)` *required*

**currency** `string`

**evidence** `EvidenceNote[]`

Supporting evidence attached for the dispute.

**EvidenceNote**

**actor** `string` *required*

**at** `string (date-time)` *required*

**note** `string` *required*

**url** `string,null`

Link to the supporting artifact (an evidence-bundle export, a POD scan).

**history** `DeductionEvent[]` *required*

**DeductionEvent**

**action** `string` *required*

**actor** `string` *required*

**at** `string (date-time)` *required*

**note** `string,null`

**id** `string` *required*

**invoice\_number** `string,null`

**partner\_id** `string` *required*

**reason\_codes** `string[]`

**recovered\_amount** `string,null`

Amount recovered when disputed successfully (≤ `amount`).

**status** `DeductionStatus` *required*

Lifecycle state of a deduction. Allowed values: `'open'`, `'disputed'`, `'recovered'`, `'denied'`, `'written_off'`.

**tenant\_id** `string` *required*

**updated\_at** `string (date-time)` *required*

### Status codes

| Code | Meaning |
| - | - |
| `200` | Updated deduction |

### Using this contract

Read the [source OpenAPI document](https://docs.stateset.com/spec/edi.json) for declared schemas and alternatives.
This page also includes documented corrections from the [spec overlays](https://github.com/stateset/docs/tree/main/spec/overlays).
Example IDs and values are illustrative; replace them with records from your workspace.

```bash cURL theme={null}
curl --silent --show-error --fail-with-body --request POST \
  --url 'https://api.edi.stateset.com/v1/deductions/{id}/evidence' \
  --header "Authorization: Bearer $EDI_API_TOKEN"
```

```json 200 theme={null}
{
  "adjustment_number": "string",
  "amount": "49.00",
  "category": "standard",
  "created_at": "2026-08-31T14:22:05Z",
  "currency": "USD",
  "evidence": [
    {
      "actor": "string",
      "at": "2026-08-31T14:22:05Z",
      "note": "Two-person tent, green — replacement for damaged pole set.",
      "url": "https://example.com/webhooks/stateset"
    }
  ],
  "history": [
    {
      "action": "string",
      "actor": "string",
      "at": "2026-08-31T14:22:05Z",
      "note": "Two-person tent, green — replacement for damaged pole set."
    }
  ],
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "invoice_number": "ORD-10042",
  "partner_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "reason_codes": [
    "string"
  ],
  "recovered_amount": "49.00",
  "status": "open",
  "tenant_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "updated_at": "2026-08-31T14:22:05Z"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.