### Event payload example (v1Event) Source: https://github.com/stedi/openapi Example of the v1Event payload variant for GetEventDestinationEvent. Required fields: account, created, environment, object, resource. The resource reference names the affected resource; consumers fetch current state via product API. ```json { "v1Event": { "account": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "created": "2026-02-01T12:00:00.000Z", "environment": "PRODUCTION", "id": "evt_550e8400-e29b-41d4-a716-446655440000", "object": "v1.event", "resource": { "id": "enr_661f9511-f3ac-52e5-b827-557766551111", "type": "enrollment" }, "type": "enrollment.activated", "relatedResources": [] } } ``` -------------------------------- ### GET /providers Source: https://github.com/stedi/openapi Lists providers with optional filters and pagination. ```APIDOC ## [GET] /providers ### Description Lists providers with optional filters and pagination. ### Method GET ### Endpoint /providers ### Parameters #### Query Parameters - **pageSize** (number) - Optional - Page size for pagination. - **pageToken** (string) - Optional - Token for pagination. - **filter** (string) - Optional - Filter criteria. - **providerNpis** (array) - Optional - Filter by provider NPIs. - **providerTaxIds** (array) - Optional - Filter by provider tax IDs. - **sortBy** (array) - Optional - Sort criteria. ### Response #### Success Response (200) - **items** (ProviderSummary[]) - List of provider summaries. - **nextPageToken** (string) - Optional - Token for next page. ``` -------------------------------- ### GET /enrollments Source: https://github.com/stedi/openapi Lists enrollments with optional filters and pagination. Returns a summary of each enrollment. ```APIDOC ## [GET] /enrollments ### Description Lists enrollments with optional filters and pagination. Returns a summary of each enrollment. ### Method GET ### Endpoint /enrollments ### Parameters #### Query Parameters - **pageSize** (number) - Optional - Page size for pagination. - **pageToken** (string) - Optional - Token for pagination. - **filter** (string) - Optional - Fuzzy match on provider name/NPI/tax ID and Stedi payer ID. - **status** (array) - Optional - Filter by status. - **providerNpis** (array) - Optional - Filter by provider NPIs. - **providerTaxIds** (array) - Optional - Filter by provider tax IDs. - **providerNames** (array) - Optional - Filter by provider names. - **providerIds** (array) - Optional - Filter by provider IDs. - **payerIds** (array) - Optional - Filter by payer IDs. - **sources** (array) - Optional - Filter by sources. - **transactions** (array) - Optional - Filter by transactions. - **createdFrom** (date-time) - Optional - Filter by creation date start. - **createdTo** (date-time) - Optional - Filter by creation date end. - **statusUpdatedFrom** (date-time) - Optional - Filter by status update date start. - **statusUpdatedTo** (date-time) - Optional - Filter by status update date end. - **importId** (string) - Optional - Filter by import ID. - **requestedEffectiveDateFrom** (date-time) - Optional - Filter by requested effective date start. - **requestedEffectiveDateTo** (date-time) - Optional - Filter by requested effective date end. - **lastEraReceivedFrom** (date-time) - Optional - Filter by last ERA received date start. - **lastEraReceivedTo** (date-time) - Optional - Filter by last ERA received date end. - **userEmails** (array) - Optional - Filter by user emails. - **sortBy** (array) - Optional - Sort criteria. ### Response #### Success Response (200) - **items** (EnrollmentSummary[]) - List of enrollment summaries. - **nextPageToken** (string) - Optional - Token for next page. - **totalCount** (number) - Optional - Total count of enrollments. ``` -------------------------------- ### GET /enrollments Source: https://github.com/stedi/openapi Lists enrollments with optional filtering and pagination. Returns a list of enrollments. ```APIDOC ## GET /enrollments ### Description Lists enrollments with optional filtering and pagination. Returns a list of enrollments. ### Method GET ### Endpoint /enrollments ### Parameters #### Query Parameters - **pageSize** (integer) - Optional - The number of items to return per page. - **pageToken** (string) - Optional - Token for pagination. - **filter** (string) - Optional - Filter criteria. - **status** (string) - Optional - Filter by status. - **providerNpis** (array) - Optional - Filter by provider NPIs. - **providerTaxIds** (array) - Optional - Filter by provider tax IDs. - **providerNames** (array) - Optional - Filter by provider names. - **providerIds** (array) - Optional - Filter by provider IDs. - **payerIds** (array) - Optional - Filter by payer IDs. - **sources** (array) - Optional - Filter by sources. - **transactions** (array) - Optional - Filter by transactions. - **createdFrom** (string) - Optional - Filter by creation date from. - **createdTo** (string) - Optional - Filter by creation date to. - **statusUpdatedFrom** (string) - Optional - Filter by status update date from. - **statusUpdatedTo** (string) - Optional - Filter by status update date to. - **importId** (string) - Optional - Filter by import ID. - **requestedEffectiveDateFrom** (string) - Optional - Filter by requested effective date from. - **requestedEffectiveDateTo** (string) - Optional - Filter by requested effective date to. - **lastEraReceivedFrom** (string) - Optional - Filter by last ERA received from. - **lastEraReceivedTo** (string) - Optional - Filter by last ERA received to. - **userEmails** (array) - Optional - Filter by user emails. - **sortBy** (string) - Optional - Sort criteria. ### Response #### Success Response (200) - **ListEnrollmentsResponseContent** (object) - The list of enrollments. ``` -------------------------------- ### GET /providers/{providerId} Source: https://github.com/stedi/openapi Retrieves a specific provider by ID. ```APIDOC ## [GET] /providers/{providerId} ### Description Retrieves a specific provider by ID. ### Method GET ### Endpoint /providers/{providerId} ### Parameters #### Path Parameters - **providerId** (string) - Required - The ID of the provider. ### Response #### Success Response (200) - **GetProviderResponseContent** (object) - The provider details. ``` -------------------------------- ### JSON eligibility check request example Source: https://github.com/stedi/openapi Example request body for POST /eligibility-check. Required fields: payerId, provider, subscriber. The subscriber requires at least a member identifier or name plus date of birth. The encounter uses serviceTypeCodes like '30'. ```json { "encounter": { "services": [ { "system": "STC", "value": "30" } ] }, "payerId": "61101", "provider": { "name": { "organization": "Provider Name" }, "npi": "1999999984" }, "subscriber": { "dateOfBirth": "1975-05-05", "memberId": "HUMANA123", "name": { "person": { "firstName": "Jane", "lastName": "Doe" } } } } ``` -------------------------------- ### GET /documents/{documentId}/download Source: https://github.com/stedi/openapi Creates a download URL for a specific document. The response provides the documentId and a downloadUrl. ```APIDOC ## GET /documents/{documentId}/download ### Description Creates a download URL for a specific document. ### Method GET ### Endpoint /documents/{documentId}/download ### Parameters #### Path Parameters - **documentId** (string) - Required - The document identifier. ### Response #### Success Response (200) - **documentId** (string) - Required - The document identifier. - **downloadUrl** (string) - Required - The download URL. ``` -------------------------------- ### GET /enrollments/{enrollmentId} Source: https://github.com/stedi/openapi Retrieves an enrollment by its ID. Returns the enrollment details. ```APIDOC ## GET /enrollments/{enrollmentId} ### Description Retrieves an enrollment by its ID. Returns the enrollment details. ### Method GET ### Endpoint /enrollments/{enrollmentId} ### Parameters #### Path Parameters - **enrollmentId** (string) - Required - The ID of the enrollment to retrieve. ### Response #### Success Response (200) - **GetEnrollmentResponseContent** (object) - The enrollment details. ``` -------------------------------- ### GET /documents/{documentId}/download Source: https://github.com/stedi/openapi Creates a download for an enrollment document. Returns a response containing the download content. ```APIDOC ## GET /documents/{documentId}/download ### Description Creates a download for an enrollment document. Returns a response containing the download content. ### Method GET ### Endpoint /documents/{documentId}/download ### Parameters #### Path Parameters - **documentId** (string) - Required - The ID of the document to download. ### Response #### Success Response (200) - **CreateEnrollmentDocumentDownloadResponseContent** (object) - The download response content. ``` -------------------------------- ### GET /executions Source: https://github.com/stedi/openapi Lists executions with optional filtering and pagination. Requires an API key in the Authorization header. ```APIDOC ## GET /executions ### Description Lists executions with optional filtering and pagination. ### Method GET ### Endpoint /executions ### Parameters #### Query Parameters - **pageSize** (integer) - Optional - Number of results per page. - **pageToken** (string) - Optional - Token for pagination. - **direction** (string) - Optional - Direction filter. - **faultCode** (string) - Optional - Fault code filter. - **partnershipId** (string) - Optional - Partnership ID filter. - **status** (string) - Optional - Status filter. - **mode** (string) - Optional - Mode filter. - **from** (string) - Optional - Start date/time filter. - **to** (string) - Optional - End date/time filter. ### Response #### Success Response (200) - **ListExecutionsResponseContent** (object) - The response content for a list of executions. #### Error Codes 400, 401, 403, 404, 422, 429, 500, 503, 504 ``` -------------------------------- ### GET /providers Source: https://github.com/stedi/openapi Lists providers with optional filtering and pagination. Returns a list of providers. ```APIDOC ## GET /providers ### Description Lists providers with optional filtering and pagination. Returns a list of providers. ### Method GET ### Endpoint /providers ### Parameters #### Query Parameters - **pageSize** (integer) - Optional - The number of items to return per page. - **pageToken** (string) - Optional - Token for pagination. - **filter** (string) - Optional - Filter criteria. - **providerNpis** (array) - Optional - Filter by provider NPIs. - **providerTaxIds** (array) - Optional - Filter by provider tax IDs. - **sortBy** (string) - Optional - Sort criteria. ### Response #### Success Response (200) - **ListProvidersResponseContent** (object) - The list of providers. ``` -------------------------------- ### GET /polling/executions Source: https://github.com/stedi/openapi Lists executions for polling. Requires an API key in the Authorization header. ```APIDOC ## GET /polling/executions ### Description Lists executions for polling. ### Method GET ### Endpoint /polling/executions ### Parameters #### Query Parameters - **pageSize** (integer) - Optional - Number of results per page. - **pageToken** (string) - Optional - Token for pagination. - **startDateTime** (string) - Optional - Start date/time filter. ### Response #### Success Response (200) - **ListPollingExecutionsResponseContent** (object) - The response content for a list of polling executions. #### Error Codes 400, 401, 403, 404, 422, 429, 500, 503, 504 ``` -------------------------------- ### GET /executions/{executionId}/output Source: https://github.com/stedi/openapi Retrieves the output document for a specific execution. Returns a 302 redirect to the document. ```APIDOC ## [GET] /executions/{executionId}/output ### Description Retrieves the output document for a specific execution. Returns a 302 redirect to the document. ### Method GET ### Endpoint /executions/{executionId}/output ### Parameters #### Path Parameters - **executionId** (string) - Required - The execution ID. ### Response #### Success Response (302) Redirect to the document. ### Request Example ```curl curl -L "https://core.us.stedi.com/2023-08-01/executions/$EXECUTION_ID/output" \ -H "Authorization: Bearer $STEDI_API_KEY" ``` ``` -------------------------------- ### GET /executions/{executionId}/input Source: https://github.com/stedi/openapi Retrieves the input document for a specific execution. Returns a 302 redirect to the document. ```APIDOC ## [GET] /executions/{executionId}/input ### Description Retrieves the input document for a specific execution. Returns a 302 redirect to the document. ### Method GET ### Endpoint /executions/{executionId}/input ### Parameters #### Path Parameters - **executionId** (string) - Required - The execution ID. ### Response #### Success Response (302) Redirect to the document. ``` -------------------------------- ### Upload enrollment document with curl Source: https://github.com/stedi/openapi Creates an enrollment document upload and then PUTs the PDF to the returned pre-signed URL. Requires ENROLLMENT_ID, STEDI_API_KEY, and TASK_ID environment variables. The first POST returns a JSON body containing uploadUrl, which is extracted with jq for the subsequent PUT. ```bash UPLOAD=$(curl -s -X POST "https://enrollments.us.stedi.com/2024-09-01/enrollments/$ENROLLMENT_ID/documents" \ -H "Authorization: Bearer $STEDI_API_KEY" -H "Content-Type: application/json" \ -d '{"name": "w9.pdf", "taskId": "'$TASK_ID'"}') curl -X PUT --upload-file w9.pdf ``` -------------------------------- ### Get claim timeline with pagination Source: https://github.com/stedi/openapi Fetches the timeline for a specific claim using the GET /claims/{id}/timeline endpoint. Requires a valid STEDI_API_KEY environment variable. The response contains an items array of timeline events and a nextPageToken for pagination. ```javascript const res = await fetch(`${BASE}/claims/${claimId}/timeline?pageSize=100`, { headers: { Authorization: `Bearer ${process.env.STEDI_API_KEY}` }, }); const { items, nextPageToken } = await res.json(); for (const event of items) { const [type] = Object.keys(event); // e.g. "claimSubmission" | "claimAcknowledgment" | "claimPayment" | "claimRejection" console.log(type, event[type]); } ``` -------------------------------- ### Create enrollment with fetch (POST /enrollments) Source: https://github.com/stedi/openapi Creates a new enrollment with payer, provider, primary contact, transactions, and user email. Handles a 400 response by parsing the ValidationExceptionResponseContent body and throwing an error with field messages. ```javascript const res = await fetch(`${BASE}/enrollments`, { method: "POST", headers: { Authorization: `Bearer ${process.env.STEDI_API_KEY}`, "Content-Type": "application/json" }, body: JSON.stringify({ payer: { idOrAlias: "00540" }, provider: { id: providerId }, primaryContact: { firstName: "Ada", lastName: "Lovelace", email: "ada@clinic.example", phone: "6155550100", streetAddress1: "1 Main St", city: "Nashville", state: "TN", zipCode: "37201" }, transactions: { eligibilityCheck: { enroll: true }, claimStatus: { enroll: true } }, userEmail: "billing@clinic.example", }), }); if (res.status === 400) { const body = await res.json(); // ValidationExceptionResponseContent { message, fieldList } throw new Error(body.fieldList.map(f => `${f.path}: ${f.message}`).join("\n")); } const enrollment = await res.json(); ``` -------------------------------- ### POST /enrollments Source: https://github.com/stedi/openapi Creates a new enrollment. Returns the created enrollment. ```APIDOC ## POST /enrollments ### Description Creates a new enrollment. Returns the created enrollment. ### Method POST ### Endpoint /enrollments ### Parameters #### Request Body - **CreateEnrollmentRequestContent** (object) - Required - The enrollment data to create. ### Response #### Success Response (200) - **CreateEnrollmentResponseContent** (object) - The created enrollment. ``` -------------------------------- ### Submit a batch with JavaScript fetch Source: https://github.com/stedi/openapi JavaScript example using fetch to POST to the batch-eligibility endpoint. Includes X-Forwarded-For header and handles 400 validation errors by throwing an error with the message and fieldList from ValidationExceptionResponseContent. ```javascript const res = await fetch(`${BASE}/eligibility-manager/batch-eligibility`, { method: "POST", headers: { Authorization: `Bearer ${process.env.STEDI_API_KEY}`, "Content-Type": "application/json", "X-Forwarded-For": ip }, body: JSON.stringify({ name: "jan-batch", items: checks }), }); if (res.status === 400) { const { message, fieldList } = await res.json(); // ValidationExceptionResponseContent throw new Error(`${message} ${JSON.stringify(fieldList)}`); // entire batch rejected } const { batchId, submittedAt } = await res.json(); ``` -------------------------------- ### GET /payers Source: https://github.com/stedi/openapi Lists payer records. ```APIDOC ## [GET] /payers ### Description Lists payer records. ### Method GET ### Endpoint /payers ### Parameters #### Query Parameters - `pageSize` (integer) - Optional - Number of records per page. - `pageToken` (string) - Optional - Pagination token. ### Response #### Success Response (200) - `ListPayerRecordsResponseContent` (object) - List of payer records. ### Errors 400, 403, 404, 429, 500, 503, 504 ``` -------------------------------- ### Download execution output document with curl Source: https://github.com/stedi/openapi Use this curl command to download an execution output document. The endpoint returns a 302 redirect to the document or a 200 with a pre-signed URL. Replace $EXECUTION_ID and $STEDI_API_KEY with your values. ```bash curl -L "https://core.us.stedi.com/2023-08-01/executions/$EXECUTION_ID/output" \ -H "Authorization: Bearer $STEDI_API_KEY" ``` -------------------------------- ### GET /payers Source: https://github.com/stedi/openapi Lists payer records with pagination. ```APIDOC ## [GET] /payers ### Description Lists payer records with pagination. ### Method GET ### Endpoint /payers ### Parameters #### Query Parameters - **pageSize** (integer) - Optional - The number of items to return per page. - **pageToken** (string) - Optional - The token for the next page. ### Response #### Success Response (200) - **ListPayerRecordsResponseContent** (object) - The list of payer records. #### Error Responses - 400, 404, 500 ``` -------------------------------- ### GET /payers/search Source: https://github.com/stedi/openapi Searches payer records with filters. ```APIDOC ## [GET] /payers/search ### Description Searches payer records with filters. ### Method GET ### Endpoint /payers/search ### Parameters #### Query Parameters - `query` (string) - Optional - Search query. - `pageSize` (integer) - Optional - Number of records per page. - `pageToken` (string) - Optional - Pagination token. - `coverageTypes` (array) - Optional - Coverage types filter. - `operatingStates` (array) - Optional - Operating states filter. - `programs` (array) - Optional - Programs filter. - Additional filters: 10 `TransactionFilterValue` filters (optional). ### Response #### Success Response (200) - `SearchPayersResponseContent` (object) - Search results. ### Errors 400, 401, 403, 404, 429, 500, 503, 504 ``` -------------------------------- ### POST /providers Source: https://github.com/stedi/openapi Creates a new provider. Requires name, NPI, tax ID, and tax ID type. ```APIDOC ## [POST] /providers ### Description Creates a new provider. Requires name, NPI, tax ID, and tax ID type. ### Method POST ### Endpoint /providers ### Parameters #### Request Body - **name** (string) - Required - Provider name. - **npi** (string) - Required - National Provider Identifier (must be unique in the account). - **taxId** (string) - Required - Tax ID. - **taxIdType** (string) - Required - Type of tax ID: EIN or SSN. - **contacts** (ProviderContact[]) - Optional - List of contacts. ### Response #### Success Response (200) - **id** (string) - Required - Provider ID. - **name** (string) - Required - Provider name. - **npi** (string) - Required - NPI. - **createdAt** (date-time) - Optional - Creation timestamp. - **updatedAt** (date-time) - Optional - Last update timestamp. - **taxId** (string) - Optional - Tax ID. - **taxIdType** (string) - Optional - Tax ID type. - **contacts** (ProviderContact[]) - Optional - List of contacts. ``` -------------------------------- ### GET /payers/csv Source: https://github.com/stedi/openapi Lists payer records as CSV. ```APIDOC ## [GET] /payers/csv ### Description Lists payer records as CSV. ### Method GET ### Endpoint /payers/csv ### Response #### Success Response (200) - Content-Type: text/plain - `ListPayerRecordsCsvOutputPayload` (object) - CSV data. ### Errors 400, 403, 404, 429, 500, 503, 504 ``` -------------------------------- ### POST /providers Source: https://github.com/stedi/openapi Creates a new provider. Returns the created provider. ```APIDOC ## POST /providers ### Description Creates a new provider. Returns the created provider. ### Method POST ### Endpoint /providers ### Parameters #### Request Body - **CreateProviderRequestContent** (object) - Required - The provider data to create. ### Response #### Success Response (200) - **CreateProviderResponseContent** (object) - The created provider. ``` -------------------------------- ### GET /payers/csv Source: https://github.com/stedi/openapi Retrieves payer records in CSV format. ```APIDOC ## [GET] /payers/csv ### Description Retrieves payer records in CSV format. ### Method GET ### Endpoint /payers/csv ### Response #### Success Response (200) - **ListPayerRecordsCsvOutputPayload** (text/plain) - The CSV data. #### Error Responses - 400, 404, 500 ``` -------------------------------- ### GET /payers/search Source: https://github.com/stedi/openapi Searches for payer records using various filters. ```APIDOC ## [GET] /payers/search ### Description Searches for payer records using various filters. ### Method GET ### Endpoint /payers/search ### Parameters #### Query Parameters - **query** (string) - Optional - The search query. - **pageSize** (integer) - Optional - The number of items to return per page. - **pageToken** (string) - Optional - The token for the next page. - **coverageTypes** (array) - Optional - Filter by coverage types. - **operatingStates** (array) - Optional - Filter by operating states. - **programs** (array) - Optional - Filter by programs. - **10 TransactionFilterValue filters** (object) - Optional - Additional transaction filters. ### Response #### Success Response (200) - **SearchPayersResponseContent** (object) - The search results. #### Error Responses - 400, 401, 404, 500 ``` -------------------------------- ### GET /insurance-discovery/check/v1/{discoveryId} Source: https://github.com/stedi/openapi Retrieves an insurance discovery check by ID. ```APIDOC ## [GET] /insurance-discovery/check/v1/{discoveryId} ### Description Retrieves an insurance discovery check by ID. ### Method GET ### Endpoint /insurance-discovery/check/v1/{discoveryId} ### Parameters #### Path Parameters - `discoveryId` (string) - Required - The discovery ID. ### Response #### Success Response (200/202) - `GetInsuranceDiscoveryCheckResponseContent` (object) - The insurance discovery check response. ### Errors 400, 403, 404, 429, 500, 503, 504 ``` -------------------------------- ### GET /export/{transactionId}/1500/pdf Source: https://github.com/stedi/openapi Retrieves a PDF for a 1500 form. ```APIDOC ## [GET] /export/{transactionId}/1500/pdf ### Description Retrieves a PDF for a 1500 form. ### Method GET ### Endpoint /export/{transactionId}/1500/pdf ### Parameters #### Path Parameters - `transactionId` (string) - Required - The transaction ID. #### Query Parameters - `background` (string) - Optional - Background option. ### Response #### Success Response (200) - Content-Type: application/octet-stream - `GetPDF1500OutputPayload` (object) - The PDF file. ### Errors 400, 403, 404, 429, 500, 503, 504 ``` -------------------------------- ### POST /enrollments/{enrollmentId}/documents Source: https://github.com/stedi/openapi Creates an enrollment document upload and returns a pre-signed PUT URL for uploading a PDF. The request body requires a name and taskId, and the response provides the documentId, enrollmentId, and uploadUrl. ```APIDOC ## POST /enrollments/{enrollmentId}/documents ### Description Creates an enrollment document upload and returns a pre-signed PUT URL for uploading a PDF. ### Method POST ### Endpoint /enrollments/{enrollmentId}/documents ### Parameters #### Path Parameters - **enrollmentId** (string) - Required - The enrollment identifier. #### Request Body - **name** (string) - Required - The document name. - **taskId** (string) - Required - The task identifier. ### Response #### Success Response (200) - **documentId** (string) - Required - The document identifier. - **enrollmentId** (string) - Required - The enrollment identifier. - **uploadUrl** (string) - Required - Pre-signed PUT URL for the PDF. ### Request Example ```curl UPLOAD=$(curl -s -X POST "https://enrollments.us.stedi.com/2024-09-01/enrollments/$ENROLLMENT_ID/documents" \ -H "Authorization: Bearer $STEDI_API_KEY" -H "Content-Type: application/json" \ -d '{"name": "w9.pdf", "taskId": "'$TASK_ID'"}') curl -X PUT --upload-file w9.pdf ``` ``` -------------------------------- ### GET /export/pdf Source: https://github.com/stedi/openapi Exports a PDF. Requires businessId query parameter. ```APIDOC ## [GET] /export/pdf ### Description Exports a PDF. Requires businessId query parameter. ### Method GET ### Endpoint /export/pdf ### Parameters #### Query Parameters - `businessId` (string) - Required - The business ID. - `background` (string) - Optional - Background option. ### Response #### Success Response (200) - `ExportPDFResponseContent` (object) - The exported PDF. ### Errors 400, 403, 404, 429, 500, 503, 504 ``` -------------------------------- ### GET /executions/{executionId}/output-url Source: https://github.com/stedi/openapi Retrieves a pre-signed URL for the output document of a specific execution. Returns a 200 with a URL that is available for 60 minutes. ```APIDOC ## [GET] /executions/{executionId}/output-url ### Description Retrieves a pre-signed URL for the output document of a specific execution. Returns a 200 with a URL that is available for 60 minutes. ### Method GET ### Endpoint /executions/{executionId}/output-url ### Parameters #### Path Parameters - **executionId** (string) - Required - The execution ID. ### Response #### Success Response (200) - **documentDownloadUrl** (string) - A URL to download the document. This URL is available for 60 minutes. ``` -------------------------------- ### GET /change/medicalnetwork/reports/v2/{transactionId}/835 Source: https://github.com/stedi/openapi Converts a transaction to an 835 report. ```APIDOC ## [GET] /change/medicalnetwork/reports/v2/{transactionId}/835 ### Description Converts a transaction to an 835 report. ### Method GET ### Endpoint /change/medicalnetwork/reports/v2/{transactionId}/835 ### Parameters #### Path Parameters - `transactionId` (string) - Required - The transaction ID. ### Response #### Success Response (200) - `ConvertReport835ResponseContent` (object) - The converted report. ### Errors 400, 403, 404, 429, 500, 503, 504 ``` -------------------------------- ### GET /change/medicalnetwork/reports/v2/{transactionId}/277 Source: https://github.com/stedi/openapi Converts a transaction to a 277 report. ```APIDOC ## [GET] /change/medicalnetwork/reports/v2/{transactionId}/277 ### Description Converts a transaction to a 277 report. ### Method GET ### Endpoint /change/medicalnetwork/reports/v2/{transactionId}/277 ### Parameters #### Path Parameters - `transactionId` (string) - Required - The transaction ID. ### Response #### Success Response (200) - `ConvertReport277ResponseContent` (object) - The converted report. ### Errors 400, 403, 404, 429, 500, 503, 504 ``` -------------------------------- ### GET /executions/{executionId}/input-url Source: https://github.com/stedi/openapi Retrieves a pre-signed URL for the input document of a specific execution. Returns a 200 with a URL that is available for 60 minutes. ```APIDOC ## [GET] /executions/{executionId}/input-url ### Description Retrieves a pre-signed URL for the input document of a specific execution. Returns a 200 with a URL that is available for 60 minutes. ### Method GET ### Endpoint /executions/{executionId}/input-url ### Parameters #### Path Parameters - **executionId** (string) - Required - The execution ID. ### Response #### Success Response (200) - **documentDownloadUrl** (string) - A URL to download the document. This URL is available for 60 minutes. ``` -------------------------------- ### Download Eligibility Check PDF with curl Source: https://github.com/stedi/openapi Use this curl command to download the PDF for a specific eligibility check. Replace $CHECK_ID with the eligibility check ID and $STEDI_API_KEY with your API key. The PDF is generated within milliseconds of check completion. ```bash curl -o eligibility.pdf "https://manager.us.stedi.com/2024-04-01/eligibility-manager/eligibility-checks/$CHECK_ID/pdf" \ -H "Authorization: Bearer $STEDI_API_KEY" ``` -------------------------------- ### GET /eligibility-manager/polling/batch-eligibility Source: https://github.com/stedi/openapi Polls for batch eligibility results, with optional filters and pagination. ```APIDOC ## [GET] /eligibility-manager/polling/batch-eligibility ### Description Polls for batch eligibility results, with optional filters and pagination. ### Method GET ### Endpoint /eligibility-manager/polling/batch-eligibility ### Parameters #### Query Parameters - **pageSize** (integer) - Optional - The number of items to return per page. - **pageToken** (string) - Optional - The token for the next page. - **batchId** (string) - Optional - Filter by batch ID. - **startDateTime** (string) - Optional - Filter by start date and time. ### Response #### Success Response (200) - **BatchEligibilityPollingResponseContent** (object) - The polling response. #### Error Responses - 400, 401, 403, 404, 500 ``` -------------------------------- ### List executions with JavaScript fetch Source: https://github.com/stedi/openapi Fetches executions with status and pageSize query parameters. Throws an error with the response status and message if the request fails, then parses the items and nextPageToken from the response. ```javascript const res = await fetch(`${BASE}/executions?status=FAILED&pageSize=100`, { headers: { Authorization: `Bearer ${process.env.STEDI_API_KEY}` } }); if (!res.ok) { const err = await res.json(); // BadRequestExceptionResponseContent etc. throw new Error(`${res.status}: ${err.message}`); } const { items, nextPageToken } = await res.json(); ``` -------------------------------- ### GET /destinations/{destinationId} Source: https://github.com/stedi/openapi Retrieves details of a specific event destination by ID. ```APIDOC ## [GET] /destinations/{destinationId} ### Description Retrieves details of a specific event destination by ID. ### Method GET ### Endpoint /destinations/{destinationId} ### Parameters #### Path Parameters - **destinationId** (string) - Required - The ID of the destination to retrieve. ### Response #### Success Response (200) - **GetEventDestinationResponseContent** - Response content. ``` -------------------------------- ### GET /transactions/{transactionId}/fragments/{fragmentIndex}/output-url Source: https://github.com/stedi/openapi Retrieves a pre-signed URL for the output document of a specific fragment. The URL expires in 60 minutes. ```APIDOC ## [GET] /transactions/{transactionId}/fragments/{fragmentIndex}/output-url ### Description Retrieves a pre-signed URL for the output document of a specific fragment. The URL expires in 60 minutes. ### Method GET ### Endpoint /transactions/{transactionId}/fragments/{fragmentIndex}/output-url ### Parameters #### Path Parameters - **transactionId** (string) - Required - The ID of the transaction. - **fragmentIndex** (number) - Required - The index of the fragment. ### Response #### Success Response (200) - **documentDownloadUrl** (string) - Pre-signed URL for the fragment output document. ``` -------------------------------- ### GET /providers/{providerId} Source: https://github.com/stedi/openapi Retrieves a provider by its ID. Returns the provider details. ```APIDOC ## GET /providers/{providerId} ### Description Retrieves a provider by its ID. Returns the provider details. ### Method GET ### Endpoint /providers/{providerId} ### Parameters #### Path Parameters - **providerId** (string) - Required - The ID of the provider to retrieve. ### Response #### Success Response (200) - **GetProviderResponseContent** (object) - The provider details. ``` -------------------------------- ### List executions with curl Source: https://github.com/stedi/openapi Calls GET /executions with query parameters to filter by status, direction, and page size. Requires a Stedi API key in the STEDI_API_KEY environment variable. ```bash curl -G "https://core.us.stedi.com/2023-08-01/executions" \ -H "Authorization: Bearer $STEDI_API_KEY" \ -d status=FAILED -d direction=INBOUND -d pageSize=100 ``` -------------------------------- ### GET /electronic-remittance-advice/{transactionId}/pdf Source: https://github.com/stedi/openapi Retrieves an electronic remittance advice PDF. ```APIDOC ## [GET] /electronic-remittance-advice/{transactionId}/pdf ### Description Retrieves an electronic remittance advice PDF. ### Method GET ### Endpoint /electronic-remittance-advice/{transactionId}/pdf ### Parameters #### Path Parameters - `transactionId` (string) - Required - The transaction ID. #### Query Parameters - `logo` (string) - Optional - Logo to include in the PDF. ### Response #### Success Response (200) - Content-Type: application/pdf - `GetElectronicRemittanceAdvicePdfOutputPayload` (object) - The PDF file. ### Errors 400, 403, 404, 429, 500, 503, 504 ``` -------------------------------- ### GET /enrollments/{enrollmentId} Source: https://github.com/stedi/openapi Retrieves an existing enrollment by its ID. Returns the full enrollment details including documents, history, and tasks. ```APIDOC ## GET /enrollments/{enrollmentId} ### Description Retrieves an existing enrollment by its ID. Returns the full enrollment details including documents, history, and tasks. ### Method GET ### Endpoint /enrollments/{enrollmentId} ### Parameters #### Path Parameters - **enrollmentId** (string) - Required - The unique identifier of the enrollment. ### Response #### Success Response (200) - **createdAt** (string) - Required - Creation timestamp. - **id** (string) - Required - Enrollment ID. - **payer** (EnrolledPayerInput) - Required - Payer details. - **primaryContact** (ProviderContact) - Required - Primary contact details. - **provider** (EnrolledProviderInput) - Required - Provider details. - **statusLastUpdatedAt** (string) - Required - Timestamp of last status update. - **transactions** (EnrolledTransactionsList) - Required - Transaction enrollments. - **updatedAt** (string) - Required - Last update timestamp. - **userEmail** (string) - Required - User email. - **documents** (EnrollmentDocument[]) - Optional - Documents associated with the enrollment. - **history** (EnrollmentHistoryEntry[]) - Optional - History of status changes. - **lastEraReceivedAt** (string) - Optional - Timestamp of last ERA received. - **requestedEffectiveDate** (string) - Optional - Requested effective date. - **source** (EnrollmentSource) - Optional - Source of enrollment. - **status** (EnrollmentStatus) - Optional - Current status. - **submittedAt** (string) - Optional - Submission timestamp. - **tasks** (Task[]) - Optional - Tasks associated with the enrollment. - **reason** (string) - Optional - Reason for enrollment. ``` -------------------------------- ### GET /eligibility-manager/eligibility-checks/{eligibilityCheckId}/pdf Source: https://github.com/stedi/openapi Retrieves a PDF document for a specific eligibility check. ```APIDOC ## [GET] /eligibility-manager/eligibility-checks/{eligibilityCheckId}/pdf ### Description Retrieves a PDF document for a specific eligibility check. ### Method GET ### Endpoint /eligibility-manager/eligibility-checks/{eligibilityCheckId}/pdf ### Parameters #### Path Parameters - **eligibilityCheckId** (string) - Required - The unique identifier of the eligibility check. ### Response #### Success Response (200) - **GetEligibilityCheckPdfOutputPayload** (application/pdf) - The PDF document. #### Error Responses - 400, 401, 403, 404, 500, 504 ``` -------------------------------- ### GET /executions/{executionId}/metadata-url Source: https://github.com/stedi/openapi Retrieves a pre-signed URL for the metadata document of a specific execution. Returns a 200 with a URL that is available for 60 minutes. ```APIDOC ## [GET] /executions/{executionId}/metadata-url ### Description Retrieves a pre-signed URL for the metadata document of a specific execution. Returns a 200 with a URL that is available for 60 minutes. ### Method GET ### Endpoint /executions/{executionId}/metadata-url ### Parameters #### Path Parameters - **executionId** (string) - Required - The execution ID. ### Response #### Success Response (200) - **documentDownloadUrl** (string) - A URL to download the document. This URL is available for 60 minutes. ``` -------------------------------- ### GET /events/{eventId} Source: https://github.com/stedi/openapi Retrieves details of a specific event destination event by ID. ```APIDOC ## [GET] /events/{eventId} ### Description Retrieves details of a specific event destination event by ID. ### Method GET ### Endpoint /events/{eventId} ### Parameters #### Path Parameters - **eventId** (string) - Required - The ID of the event to retrieve. ### Response #### Success Response (200) - **GetEventDestinationEventResponseContent** - Response content. ``` -------------------------------- ### POST /enrollments/{enrollmentId}/documents Source: https://github.com/stedi/openapi Uploads a document for an enrollment. Returns the upload response. ```APIDOC ## POST /enrollments/{enrollmentId}/documents ### Description Uploads a document for an enrollment. Returns the upload response. ### Method POST ### Endpoint /enrollments/{enrollmentId}/documents ### Parameters #### Path Parameters - **enrollmentId** (string) - Required - The ID of the enrollment. #### Request Body - **CreateEnrollmentDocumentUploadRequestContent** (object) - Required - The document upload data. ### Response #### Success Response (200) - **CreateEnrollmentDocumentUploadResponseContent** (object) - The upload response. ``` -------------------------------- ### GET /destinations/{destinationId}/secret Source: https://github.com/stedi/openapi Retrieves the secret associated with a specific event destination. ```APIDOC ## [GET] /destinations/{destinationId}/secret ### Description Retrieves the secret associated with a specific event destination. ### Method GET ### Endpoint /destinations/{destinationId}/secret ### Parameters #### Path Parameters - **destinationId** (string) - Required - The ID of the destination. ### Response #### Success Response (200) - **GetEventDestinationSecretResponseContent** - Response content. ``` -------------------------------- ### POST /destinations Source: https://github.com/stedi/openapi Creates a new event destination. Requires an Idempotency-Key header. ```APIDOC ## [POST] /destinations ### Description Creates a new event destination. Requires an Idempotency-Key header. ### Method POST ### Endpoint /destinations ### Parameters #### Headers - **Idempotency-Key** (string) - Required - Idempotency key for the request. #### Request Body - **CreateEventDestinationRequestContent** - Request body content. ### Response #### Success Response (201) - **CreateEventDestinationResponseContent** - Response content. ``` -------------------------------- ### Update task with JavaScript fetch Source: https://github.com/stedi/openapi Completes a task by sending a POST request with completed=true and a manualTask response containing a document value. Requires BASE, taskId, STEDI_API_KEY, and documentId. The response contains a task object. ```javascript const res = await fetch(`${BASE}/tasks/${taskId}`, { method: "POST", headers: { Authorization: `Bearer ${process.env.STEDI_API_KEY}`, "Content-Type": "application/json" }, body: JSON.stringify({ completed: true, responseData: { manualTask: { values: [{ key: "W9_FORM", document: { documentId } }] } } }), }); const { task } = await res.json(); ``` -------------------------------- ### GET /polling/transactions Source: https://github.com/stedi/openapi Lists transactions for polling. Requires an API key in the Authorization header. ```APIDOC ## GET /polling/transactions ### Description Lists transactions for polling. ### Method GET ### Endpoint /polling/transactions ### Parameters #### Query Parameters - **pageSize** (integer) - Optional - Number of results per page. - **pageToken** (string) - Optional - Token for pagination. - **startDateTime** (string) - Optional - Start date/time filter. ### Response #### Success Response (200) - **ListPollingTransactionsResponseContent** (object) - The response content for a list of polling transactions. #### Error Codes 400, 401, 403, 404, 422, 429, 500, 503, 504 ``` -------------------------------- ### Create destination with JavaScript fetch Source: https://github.com/stedi/openapi POST /destinations using fetch. Handles 403 limit errors and stores the signingSecret from the response. Requires STEDI_API_KEY environment variable and a crypto.randomUUID() for the Idempotency-Key. ```javascript const res = await fetch(`${BASE}/destinations`, { method: "POST", headers: { Authorization: `Bearer ${process.env.STEDI_API_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json" }, body: JSON.stringify({ name, destinationUrl, eventTypes, status: "ENABLED" }), }); if (res.status === 403) { const { message } = await res.json(); // EventDestinationsLimitExceededExceptionResponseContent throw new Error(message); // delete a destination or request a limit increase } const destination = await res.json(); // store destination.signingSecret ```