Submit Claim Attachment JSON
/claim-attachments/submission
This endpoint is in beta and is subject to change.
This endpoint submits a 275 claim attachment to a payer.
- Call this endpoint with the required information to link the attachment to the correct claim.
- Stedi generates the X12 EDI 275 transaction and sends it to the payer.
- The endpoint returns summary information about the submission.
This endpoint is for 837 claims submitted in JSON format. If your system already generates X12 EDI, you can send attachments through the Submit Claim Attachment (275) Raw X12 endpoint instead.
This endpoint only supports unsolicited attachments.
Visit Claim attachments for a full how-to guide.
A Stedi API Key for authentication.
Body
Whether you want to send a test or production claim. This property also allows you to filter claims in the Stedi portal by production or test data. By default, this property is set to P
for production data. Use T
to designate a claim as test data.
Information about the associated 837 claim.
Response
SubmitClaimAttachment 200 response
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.
- Required string length: 2 - 80
Information about the claim attachment.
Metadata from Stedi about the request.
curl --request POST \
--url "https://claims.us.stedi.com/2025-03-07/claim-attachments/submission" \
--header "Authorization: <api_key>" \
--header "Content-Type: application/json" \
--data "'{
"usageIndicator": "T",
"relatedExecutionId": "9b491769-052e-4738-93d6-e0b5f6d83f53",
"claimInformation": {
"serviceLines": [
{
"providerAttachmentControlNumber": "ATTACH123",
"attachmentDetails": {
"attachmentId": "4a1b2c3d-4567-89ab-cdef-1234567890ab"
}
}
]
}
}'"
const body = JSON.stringify({
"usageIndicator": "T",
"relatedExecutionId": "9b491769-052e-4738-93d6-e0b5f6d83f53",
"claimInformation": {
"serviceLines": [
{
"providerAttachmentControlNumber": "ATTACH123",
"attachmentDetails": {
"attachmentId": "4a1b2c3d-4567-89ab-cdef-1234567890ab"
}
}
]
}
})
fetch("https://claims.us.stedi.com/2025-03-07/claim-attachments/submission", {
headers: {
"Authorization": "<api_key>"
},
body
})
package main
import (
"fmt"
"net/http"
"io/ioutil"
"strings"
)
func main() {
url := "https://claims.us.stedi.com/2025-03-07/claim-attachments/submission"
body := strings.NewReader(`{
"usageIndicator": "T",
"relatedExecutionId": "9b491769-052e-4738-93d6-e0b5f6d83f53",
"claimInformation": {
"serviceLines": [
{
"providerAttachmentControlNumber": "ATTACH123",
"attachmentDetails": {
"attachmentId": "4a1b2c3d-4567-89ab-cdef-1234567890ab"
}
}
]
}
}`)
req, _ := http.NewRequest("POST", url, body)
req.Header.Add("Authorization", "<api_key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import requests
url = "https://claims.us.stedi.com/2025-03-07/claim-attachments/submission"
body = {
"usageIndicator": "T",
"relatedExecutionId": "9b491769-052e-4738-93d6-e0b5f6d83f53",
"claimInformation": {
"serviceLines": [
{
"providerAttachmentControlNumber": "ATTACH123",
"attachmentDetails": {
"attachmentId": "4a1b2c3d-4567-89ab-cdef-1234567890ab"
}
}
]
}
}
response = requests.request("POST", url, json = body, headers = {
"Authorization": "<api_key>",
"Content-Type": "application/json"
})
print(response.text)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpResponse.BodyHandlers;
import java.time.Duration;
import java.net.http.HttpRequest.BodyPublishers;
var body = BodyPublishers.ofString("""{
"usageIndicator": "T",
"relatedExecutionId": "9b491769-052e-4738-93d6-e0b5f6d83f53",
"claimInformation": {
"serviceLines": [
{
"providerAttachmentControlNumber": "ATTACH123",
"attachmentDetails": {
"attachmentId": "4a1b2c3d-4567-89ab-cdef-1234567890ab"
}
}
]
}
}""");
HttpClient client = HttpClient.newBuilder()
.connectTimeout(Duration.ofSeconds(10))
.build();
HttpRequest.Builder requestBuilder = HttpRequest.newBuilder()
.uri(URI.create("https://claims.us.stedi.com/2025-03-07/claim-attachments/submission"))
.header("Content-Type", "application/json")
.header("Authorization", "<api_key>")
.POST(body)
.build();
try {
HttpResponse<String> response = client.send(requestBuilder.build(), BodyHandlers.ofString());
System.out.println("Status code: " + response.statusCode());
System.out.println("Response body: " + response.body());
} catch (Exception e) {
e.printStackTrace();
}
{
"message": "string",
"fieldList": [
{
"path": "string",
"message": "string"
}
]
}
{
"message": "string",
"code": "string"
}
{
"message": "string",
"code": "string"
}
{
"message": "string",
"code": "string"
}