---
title: "POST /claim-attachments/raw-x12-submission"
method: POST
path: "/claim-attachments/raw-x12-submission"
---

# POST /claim-attachments/raw-x12-submission

`POST /claim-attachments/raw-x12-submission`

## Request

- Base URL: `https://claims.us.stedi.com/2025-03-07`
- URL: `https://claims.us.stedi.com/2025-03-07/claim-attachments/raw-x12-submission`
- Auth: API key in header `Authorization`

Submit a 275 claim attachment in X12 EDI format

## Request body

- SubmitClaimAttachmentRawX12RequestContent: Request to submit a raw X12 claim attachment
  - `x12` string, required: The X12 EDI data for the claim attachment. This data must conform to the [275 X12 EDI specification](https://portal.stedi.com/app/guides/view/hipaa/patient-information-x210/01HQ4HZ8ZBY2CZGPCVVM8JTK22).

## Response `200`

SubmitClaimAttachmentRawX12 200 response

- SubmitClaimAttachmentRawX12ResponseContent: Response from submitting a raw X12 claim attachment
  - `claimAttachmentReference` ClaimAttachmentReference: Information about the claim attachment.
    - `correlationId` string: An opaque string identifier Stedi assigns to the claim attachment. You can use it for tracking purposes and when contacting Stedi support.
    - `patientControlNumber` string: The `patientControlNumber` from the claim associated with this attachment, if supplied. This is a unique identifier that you assigned to the related claim so you can track the claim and correlate it with responses from the payer.
    - `timeOfResponse` string, date-time: A timestamp in [RFC 3339 format](https://datatracker.ietf.org/doc/html/rfc3339) for Stedi's response to the submission. For example: `2025-03-07T12:34:56Z`.
  - `meta` AttachmentsResponseMetadata: Metadata from Stedi about the request.
    - `traceId` string: A unique identifier assigned to the processed file within the Stedi platform. This is also known as the file execution ID.
  - `tradingPartnerServiceId` string: An ID for the payer you identified in the related transaction. This value may differ from the `tradingPartnerServiceId` you submitted in the original claim request because it reflects the payer's internal concept of their ID, not necessarily the ID Stedi uses to route requests to this payer.

## Other responses

- `400`: ValidationException 400 response
- `403`: SubmitClaimAttachmentRawX12403Error 403 response
- `404`: ResourceNotFoundException 404 response
- `429`: ThrottlingException 429 response
- `500`: InternalFailureException 500 response

## Changes

- **2026-08-20** `8fc7ba273b38`: 1 info
  - the endpoint scheme security `httpApiKeyAuthTestEnabled` was added to the API
- **2026-06-11** `5fcd6ab143a9`: 3 breaking, 1 warning
  - added `#/components/schemas/InvalidInterchangeEnvelopeException, #/components/schemas/AccessDeniedException` to the response body `oneOf` list for the response status `403`
  - the response's body type changed from `object` to no type for status `403`
  - removed the required property `message` from the response with the `403` status
  - removed the optional property `code` from the response with the `403` status
- **2026-02-23** `f3573b486613`: 2 info
  - added the non-success response with the status `403`
  - the `meta/traceId` response's property pattern was changed from `^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$` to `^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$` for the status `200`

[Operation history](https://skmtc.dev/stedi/apis/stedi-healthcare-claims/changes/claim-attachments/raw-x12-submission/post.md)

---

[API](https://skmtc.dev/stedi/apis/stedi-healthcare-claims.md) - [All operations](https://skmtc.dev/stedi/apis/stedi-healthcare-claims/llms.txt) - [OpenAPI document](https://skmtc.dev/stedi/apis/stedi-healthcare-claims/revisions/b4f2a7ab03b0?raw)
