# Resubmit or cancel claims
Source: https://www.stedi.com/docs/healthcare/resubmit-cancel-claims

***

title: Resubmit or cancel claims
sidebarTitle: "Resubmit or cancel claims"
-----------------------------------------

You'll need to resubmit claims when they're rejected due to correctable errors, such as:

* Invalid or missing data.
* Incorrect patient or provider details.
* Incorrect billing codes or modifiers.
* Missing documentation or attachments the payer requires.

You may also need to cancel duplicate claims or claims that were submitted in error, such as accidentally billing for the wrong provider or patient.

## Preparing claim resubmissions or cancellations

To revise or cancel a claim, you'll need to resubmit the claim with:

* The proper [Claim Frequency Code](#claim-frequency-code)
* The original claim's [Payer Claim Control Number (if available)](#payer-claim-control-number-pccn)
* A new, unique [Patient Control Number (PCN)](#patient-control-number)
* Any other necessary corrections

### Claim Frequency Code

You must choose the correct Claim Frequency Code when correcting or canceling claims. The Claim Frequency Code is represented as the:

* `claimInformation.claimFrequencyCode` property in JSON.
* `Loop 2300 CLM05-03` (Claim Frequency Code) component in X12 EDI.
* **Resubmission code** (Box 22) in Stedi's CMS-1500 claim form UI.

The right Claim Frequency Code depends on where the claim is in the processing lifecycle. Specifically, you should only use Claim Frequency Code `7` (Replacement of Prior Claim) or `8` (Void/Cancel of Prior Claim) if the claim has already entered the payer's processing system. You'll know the claim has entered the payer's system if the 277CA contains a [Payer Claim Control Number (PCCN)](#where-to-find-the-pccn).

The following diagram shows how claims can be rejected by Stedi or the payer at different stages in the processing lifecycle and when to use each Claim Frequency Code.

![Claim response lifecycle](/images/healthcare-apis/claim-resubmission-codes.svg)

#### Choose the right code

The following guidance can help you determine which Claim Frequency Code is right for your use case. These rules apply to professional, institutional, and dental claims for most payers.

<Tip>
  Some payers have different rules. For example, [Medicare](#medicare-resubmission) only accepts code `1` for resubmissions. Always adhere to the payer's specific guidance when resubmitting or canceling claims.
</Tip>

| Scenario                                                                            | How you'll know                                                                                                                                                                                                                                                                                                                       | Claim Frequency Code                                                         |
| ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| Stedi rejected the claim due to validation errors                                   | You received a 277CA claim acknowledgment from Stedi with rejection status codes.                                                                                                                                                                                                                                                     | `1` - Admit thru Discharge Claim                                             |
| Payer rejected the claim without processing it                                      | You received a 277CA from the payer with rejection status codes. The payer may include a message, such as "returned as unprocessable" or "not entered into processing system." The 277CA doesn't contain a [Payer Claim Control Number (PCCN)](#where-to-find-the-pccn), which means it hasn't entered the payer's processing system. | `1` - Admit thru Discharge Claim                                             |
| Payer rejected the claim after it entered their processing system                   | You received a 277CA from the payer with rejection status codes. The 277CA contains a [Payer Claim Control Number (PCCN)](#where-to-find-the-pccn), indicating it has entered the payer's system.                                                                                                                                     | `7` - Replacement of Prior Claim (except [Medicare](#medicare-resubmission)) |
| You need to correct and resubmit an adjudicated claim (approved, pended, or denied) | You received an 835 Electronic Remittance Advice (ERA) from the payer with adjudication details for the claim.                                                                                                                                                                                                                        | `7` - Replacement of Prior Claim (except [Medicare](#medicare-resubmission)) |
| You need to completely cancel a claim in the payer's processing system              | You received an 835 Electronic Remittance Advice (ERA) or you have received a 277CA (acceptance or rejection) containing a [Payer Claim Control Number (PCCN)](#where-to-find-the-pccn).                                                                                                                                              | `8` - Void/Cancel of Prior Claim                                             |

#### Determine 277CA sender

You can determine whether a 277CA is from a clearinghouse or the payer from the [`transactions[].payers[]` array](https://www.stedi.com/docs/healthcare/api-reference/get-healthcare-reports-277#response.transactions.payers) in the report (`Loop 2100A`).

The `organizationName` property contains the name of the sender (for example, CIGNA or STEDI). This is `Loop 2100A NM103` (Information Source Name) in X12 EDI.

This information is also available at the top of the 277CA's transaction details page in the Stedi portal. The **From** and **Entity type** fields indicate whether the report is from Stedi or the payer.

### Payer Claim Control Number (PCCN)

When you're resubmitting with Claim Frequency Code `7` or canceling with Claim Frequency Code `8`, you must include the original claim's Payer Claim Control Number (PCCN). Without it, the payer won't know which claim to replace or cancel.

You can include the PCCN in the following locations:

* `claimInformation.claimSupplementalInformation.claimControlNumber` in JSON
* `Loop 2300 REF02`, where `REF01` = `F8` (Original Reference Number) in X12 EDI

<Tip>
  An exception to this general rule is Original Medicare, which explicitly instructs providers to omit the PCCN when resubmitting claims. Visit [Medicare resubmission](#medicare-resubmission) for details.
</Tip>

#### Where to find the PCCN

You can retrieve the Payer Claim Control Number (PCCN) for the original claim from any of the following transactions from the payer.

**277CA claim acknowledgment**

* [`transactions[].payers[].claimStatusTransactions[].claimStatusDetails[].patientClaimStatusDetails[].claims[].claimStatus.tradingPartnerClaimNumber`](https://www.stedi.com/docs/healthcare/api-reference/get-healthcare-reports-277#response.transactions.payers\[].claimStatusTransactions\[].claimStatusDetails\[].patientClaimStatusDetails\[].claims\[].claimStatus.tradingPartnerClaimNumber)
* `Loop 2200D REF02`, where `REF01` = `1K` (Payor's Claim Number)

**277 real-time claim status**

* [`claims[].claimStatus.tradingPartnerClaimNumber`](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-claim-status#response.claims.claimStatus.tradingPartnerClaimNumber)
* `Loop 2200D` or `Loop 2200E` in `REF02`, where `REF01` = `1K` (Payor's Claim Number)

**835 Electronic Remittance Advice (ERA)**

* [`transactions[].detailInfo[].paymentInfo[].claimPaymentInfo.payerClaimControlNumber`](https://www.stedi.com/docs/healthcare/api-reference/get-healthcare-reports-835#response.transactions.detailInfo\[].paymentInfo\[].claimPaymentInfo.payerClaimControlNumber)
* `Loop 2100 CLP07` (Payer Claim Control Number)

<Note>
  The PCCN is different from the `claimInformation.patientControlNumber` (`Loop 2300 CLM01`) you sent in the original claim. It's also different from the Stedi-generated `controlNumber` returned in the API response.
</Note>

### Patient Control Number

When resubmitting claims with any Claim Frequency Code (`1`, `7`, or `8`), we strongly recommend setting a new, unique Patient Control Number (PCN).

The value you supply will be present in both the 277CA and the 835 ERA responses, allowing you to correlate the resubmitted claim with its responses later. You can set the PCN in the following locations:

* `claimInformation.patientControlNumber` in JSON.
* `Loop 2300 CLM01` (Patient Control Number) in X12 EDI.
* **Patient account number** (Box 26) in Stedi's CMS-1500 claim form UI.

When assigning a PCN, follow these best practices:

* Use a unique PCN for each claim. The identifier should be more complex than a simple sequential number and should be hard to guess.
* Use random strings. Formats with patient initials or the date of service in them can create duplicates. We recommend using [nanoid](https://www.npmjs.com/package/nanoid) or a similar library to create a strong, unique 17-character PCN for each claim.
* Keep it 17 characters or less. Some payers cut off values longer than 17 characters in ERAs and claim acknowledgments, which makes it hard to match them with the original claim.
* Use alphanumeric characters only. Avoid special characters, as many payers don't handle them properly.

### Medicare resubmission

Medicare (through MACs) has different requirements for resubmissions and cancellations:

* Only resubmit with Claim Frequency Code `1`. Medicare does not accept Claim Frequency Code `7` for resubmissions.
* Don't include the original claim's Payer Claim Control Number (PCCN) when resubmitting.

## Resubmit or cancel claims

Ensure that the updated claim includes:

* [Claim Frequency Code](#claim-frequency-code) according to the claim's processing status and your use case
* [Payer Claim Control Number (PCCN)](#payer-claim-control-number-pccn) (if applicable)
* [Patient Control Number](#patient-control-number) (recommended)
* Any other necessary corrections to the claim

Once you've prepared the updated claim, you can resubmit it through the Stedi API, an SFTP connection, or the Stedi portal. The resubmission process is the same for both corrections and cancellations - the Claim Frequency Code indicates which action you want to take.

### API resubmission

Resubmit through one of Stedi's claim submission endpoints:

* [Professional Claims JSON](/healthcare/api-reference/post-healthcare-claims)
* [Professional Claims Raw X12](/healthcare/api-reference/post-healthcare-claims-raw-x12)
* [Institutional Claims JSON](/healthcare/api-reference/post-healthcare-institutional-claims)
* [Institutional Claims Raw X12](/healthcare/api-reference/post-healthcare-institutional-claims-raw-x12)
* [Dental Claims JSON](/healthcare/api-reference/post-healthcare-institutional-claims-raw-x12)
* [Dental Claims Raw X12](/healthcare/api-reference/post-healthcare-dental-claims-raw-x12)

### SFTP resubmission

Visit [SFTP submission](/healthcare/submit-claims-sftp-connection) for details on how to format and submit X12 EDI claims through SFTP.

### CMS-1500 form (professional)

<Warning>
  Stedi's CMS-1500 claim form UI is mostly limited to the CMS-1500 form fields. It may not be able to successfully resubmit complex claims originally submitted through our APIs or SFTP.
</Warning>

To resubmit a professional claim through Stedi's interactive CMS-1500 form:

1. Go to the [Transactions page](https://portal.stedi.com/app/healthcare/transactions) and click the claim you want to resubmit to open its details page.
2. Click **Edit and resubmit** and select **1500 resubmission**. Stedi opens the interactive CMS-1500 form prepopulated with the claim's information.
3. Make any necessary changes to the claim.
   * Make sure to update the [Claim Frequency Code](#claim-frequency-code), the [Payer Claim Control Number](#payer-claim-control-number-pccn), and the [Patient Control Number](#patient-control-number) according to best practices.
   * You can click **Related transactions** to review related 277CAs containing the errors you need to address before resubmitting. Click a transaction to review its details.
4. Click **Submit claim** to resubmit the updated claim to the payer.

Stedi validates the updated claim and submits it to the payer. It will appear on the [Transactions page](https://portal.stedi.com/app/healthcare/transactions) as a new 837 claim. You will also receive new [277CA claim acknowledgments](/providers/providers-claim-acknowledgments) indicating whether the resubmitted claim was accepted or rejected.

### X12 EDI editor

To resubmit a professional, dental, or institutional claim through Stedi's X12 EDI editor:

1. Go to the [Transactions page](https://portal.stedi.com/app/healthcare/transactions) and click the claim you want to resubmit to open its details page.

2. Click **Edit and resubmit** and select **X12 EDI resubmission**. Stedi opens the claim in an interactive editor with the X12 EDI on the left and the EDI specification on the right.

   As you hover over different parts of the EDI, Stedi highlights the corresponding part of the specification in the **Inspector** tab to help you understand what each part of the EDI means and how to edit it correctly.
   ![X12 EDI editor](/images/providers/x12-claim-resubmission.png)

3. Make changes to the claim EDI.
   * You can type directly in the EDI editor or copy and paste updated EDI from another source.
   * Make sure to update the [Claim Frequency Code](#claim-frequency-code), the [Payer Claim Control Number](#payer-claim-control-number-pccn), and the [Patient Control Number](#patient-control-number) according to best practices.
   * You can switch to the **Reference transactions** tab to review related 277CAs containing the errors you need to address before resubmitting. Click a transaction to review its details.

4. Click **Review and submit**. Stedi shows a comparison of the original claim and the new claim containing your changes.

5. Click **Resubmit claim** to send the updated claim to the payer.

Stedi validates the updated claim and submits it to the payer. It will appear on the [Transactions page](https://portal.stedi.com/app/healthcare/transactions) as a new 837 claim. You will also receive new [277CA claim acknowledgments](/providers/providers-claim-acknowledgments) indicating whether the resubmitted claim was accepted or rejected.