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

# Update an item

> Update an item

### Path parameters

**id** `string` *required*

Trading partner id

**xref\_id** `string` *required*

Cross-reference id

### Request body

`ItemXrefInput`

**buyer\_part** `string,null`

**description** `string,null`

**pack\_size** `integer,null (int32)`

Minimum: `0`.

**partner\_item\_id** `string,null`

**sku** `string` *required*

**uom** `string,null`

**upc** `string,null`

### Response

`ItemXref`

**buyer\_part** `string,null`

Buyer part number; matches BP/IN/PI ids.

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

**description** `string,null`

**id** `string` *required*

**pack\_size** `integer,null (int32)`

Eaches per partner unit. Minimum: `0`.

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

**partner\_item\_id** `string,null`

The partner's item identifier; matches any inbound qualifier.

**sku** `string` *required*

Our SKU.

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

**uom** `string,null`

X12 unit-of-measure code the partner orders in (e.g. `CA`).

**upc** `string,null`

UPC / EAN / GTIN (digits); matches UP/UK/UA/EN/UI ids, ignoring leading zeros.

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

### Status codes

| Code | Meaning |
| - | - |
| `200` | Updated |
| `404` | Not found in this workspace/partner |
| `409` | An identifier is already mapped for this partner |

### Using this contract

Read the [source OpenAPI document](/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 PUT \
  --url 'https://api.edi.stateset.com/v1/partners/{id}/xref/items/{xref_id}' \
  --header "Authorization: Bearer $EDI_API_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
  "buyer_part": "string",
  "description": "Two-person tent, green — replacement for damaged pole set.",
  "pack_size": 1,
  "partner_item_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "sku": "SKU-TENT-2P-GRN",
  "uom": "string",
  "upc": "0123456789012"
}'
```

```json 200 theme={null}
{
  "buyer_part": "string",
  "created_at": "2026-08-31T14:22:05Z",
  "description": "Two-person tent, green — replacement for damaged pole set.",
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "pack_size": 1,
  "partner_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "partner_item_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "sku": "SKU-TENT-2P-GRN",
  "tenant_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "uom": "string",
  "upc": "0123456789012",
  "updated_at": "2026-08-31T14:22:05Z"
}
```


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