# Claim edit: Invalid NDC format

> Stedi now rejects 837P professional and 837I institutional claims that contain a National Drug Code (NDC) with an invalid format.

Published Mar 11, 2026

Product: Claim edits

Stedi now rejects [837P professional](https://www.stedi.com/docs/healthcare/submit-professional-claims) and [837I institutional](https://www.stedi.com/docs/healthcare/submit-institutional-claims) claims that contain a National Drug Code (NDC) with an invalid format.

## How the edit works

National Drug Codes (NDCs) are unique identifiers for drugs or biologics regulated by the U.S. Food and Drug Administration (FDA).

A provider can list an NDC in one or more service lines of a claim to get paid for drugs administered during care.

| **Claim type**                                                                          | **JSON API field**                                                                                                                                                                                                      | **X12 segment**                                                     |
| --------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [837P professional](https://www.stedi.com/docs/healthcare/submit-professional-claims)   | [`serviceLines[].drugIdentification.nationalDrugCode`](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-claims#body.claimInformation.serviceLines.drugIdentification.nationalDrugCode)               | `LIN03` (National Drug Code) of a `Loop 2410` (Drug Identification) |
| [837I institutional](https://www.stedi.com/docs/healthcare/submit-institutional-claims) | [`serviceLines[].drugIdentification.nationalDrugCode`](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-institutional-claims#body.claimInformation.serviceLines.drugIdentification.nationalDrugCode) | `LIN03` (National Drug Code) of a `Loop 2410` (Drug Identification) |

Payers use NDCs in claims to determine the correct reimbursement amount for these drugs or to apply drug rebates.

HIPAA-adopted [X12 standards](https://www.stedi.com/docs/healthcare/intro-to-claim-submission#x12-hipaa-format) require that all NDCs in a claim be 11 digits. If a claim includes an NDC that’s not 11 digits – such as an NDC that’s too short or too long – the payer may reject the claim. This can delay payment for the provider.

This edit – the industry term for an automated validation rule – catches the issue before the claim reaches the payer.

## Rejection errors

If you submit a claim that fails the edit using Stedi’s [Claim Submission API endpoints](https://www.stedi.com/docs/healthcare/intro-to-claim-submission#api-claim-submission), you’ll get back an error response in real time. The response includes details in the `errors` array:

```jsonc
{
  "errors": [
    {
      "code": "33",
      "description": "Invalid National Drug Code (NDC). Service line 1 contains an invalid NDC value: 0002606351. NDCs must be 11-digits without any spaces or hyphens and valid per FDA records. Correct and resubmit.",
      "followupAction": "Please Correct and Resubmit"
    }
  ]
}
```

If you submit a claim that fails the edit using SFTP, Stedi will reject the claim with a [277CA claim acknowledgment](https://www.stedi.com/docs/healthcare/claim-responses-overview#277ca-claim-acknowledgment). The acknowledgment will include a related [claim status category code](https://x12.org/codes/claim-status-category-codes), [claim status code](https://x12.org/codes/claim-status-codes), and error message:

```jsx
STC*A7>218*[DATE]*U*[AMOUNT]********Invalid National Drug Code (NDC). Service line 1 contains an invalid NDC value: 0002606351. NDCs must be 11-digits without any spaces or hyphens and valid per FDA records. Correct and resubmit.~
```

## Tip: How to handle 10-digit NDCs

The FDA has previously published 10-digit NDCs. X12 standards still require these NDCs to be 11 digits in claims.

Regardless of length, all NDCs have three segments: a labeler, a product, and a package code. In 11-digit NDCs, these segments must be 5, 4, and 2 digits respectively.

To convert a 10-digit NDC to an 11-digit NDC, add a leading zero to whichever segment is short.

| **Example 10-digit NDC** | **11-digit version of the NDC** |
| ------------------------ | ------------------------------- |
| 0002-3227-01             | ***0***0002-3227-01             |
| 00002-327-01             | 00002-***0***327-01             |
| 00002-3227-1             | 00002-3227-***0***1             |
