# Claim edit: Prior authorization number matches the referral number

> Stedi now rejects 837P professional, 837D dental, and 837I institutional claims with a prior authorization number that matches the referral number.

Published Oct 9, 2026

Product: Claim edits

Stedi now rejects [837P professional](https://www.stedi.com/docs/healthcare/submit-professional-claims), [837D dental](https://www.stedi.com/docs/healthcare/submit-dental-claims), and [837I institutional](https://www.stedi.com/docs/healthcare/submit-institutional-claims) claims that report the same value for the prior authorization number and the referral number.

## Prior authorizations and referrals

A prior authorization is the payer’s approval of a service before the provider performs it. The payer assigns a number to each approval. You can report the prior authorization number at the claim level or on a service line.

**Prior authorization number**

| **Claim type**     | **JSON API field**                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | **X12 element**                                                   |
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| 837P professional  | **Claim Submission API:** [`claimInformation.claimSupplementalInformation.priorAuthorizationNumber`](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-claims#body.claimInformation.claimSupplementalInformation.priorAuthorizationNumber)<br><br>**CMS-1500 API:** [`encounter.referenceNumbers.priorAuthorization`](https://www.stedi.com/docs/healthcare/api-reference/post-create-professional-claim-json#body.encounter.referenceNumbers.priorAuthorization) | `REF*G1` (Prior Authorization) of Loop `2300` (Claim Information) |
| 837D dental        | [`claimInformation.claimSupplementalInformation.priorAuthorizationNumber`](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-dental-claims#body.claimInformation.claimSupplementalInformation.priorAuthorizationNumber)                                                                                                                                                                                                                                           | `REF*G1` (Prior Authorization) of Loop `2300` (Claim Information) |
| 837I institutional | [`claimInformation.claimSupplementalInformation.priorAuthorizationNumber`](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-institutional-claims#body.claimInformation.claimSupplementalInformation.priorAuthorizationNumber)                                                                                                                                                                                                                                    | `REF*G1` (Prior Authorization) of Loop `2300` (Claim Information) |

**Service line prior authorization number**

| **Claim type**    | **JSON API field**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | **X12 element**                                                     |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| 837P professional | **Claim Submission API:** [`claimInformation.serviceLines[].serviceLineReferenceInformation.priorAuthorization[].priorAuthorizationOrReferralNumber`](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-claims#body.claimInformation.serviceLines.serviceLineReferenceInformation.priorAuthorization.priorAuthorizationOrReferralNumber)<br><br>**CMS-1500 API:** [`serviceLines[].priorAuthorizations[].priorAuthorizationNumber`](https://www.stedi.com/docs/healthcare/api-reference/post-create-professional-claim-json#body.serviceLines.priorAuthorizations.priorAuthorizationNumber) | `REF*G1` (Prior Authorization) of Loop `2400` (Service Line Number) |
| 837D dental       | [`claimInformation.serviceLines[].serviceLineReferenceInformation.priorAuthorization[].priorAuthorizationOrReferralNumber`](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-dental-claims#body.claimInformation.serviceLines.serviceLineReferenceInformation.priorAuthorization.priorAuthorizationOrReferralNumber)                                                                                                                                                                                                                                                                       | `REF*G1` (Prior Authorization) of Loop `2400` (Service Line Number) |

A referral is a provider’s recommendation that the patient can see another provider – for example, a primary care provider who sends the patient to a specialist. Some plans, such as HMOs, require a referral before they cover a specialist visit. Each referral has its own number.

**Referral number**

| **Claim type**     | **JSON API field**                                                                                                                                                                                                                                                                                                                                                                                                                          | **X12 element**                                               |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| 837P professional  | **Claim Submission API:** [`claimInformation.claimSupplementalInformation.referralNumber`](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-claims#body.claimInformation.claimSupplementalInformation.referralNumber)<br><br>**CMS-1500 API:** [`encounter.referenceNumbers.referral`](https://www.stedi.com/docs/healthcare/api-reference/post-create-professional-claim-json#body.encounter.referenceNumbers.referral) | `REF*9F` (Referral Number) of Loop `2300` (Claim Information) |
| 837D dental        | [`claimInformation.claimSupplementalInformation.referralNumber`](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-dental-claims#body.claimInformation.claimSupplementalInformation.referralNumber)                                                                                                                                                                                                                       | `REF*9F` (Referral Number) of Loop `2300` (Claim Information) |
| 837I institutional | [`claimInformation.claimSupplementalInformation.referralNumber`](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-institutional-claims#body.claimInformation.claimSupplementalInformation.referralNumber)                                                                                                                                                                                                                | `REF*9F` (Referral Number) of Loop `2300` (Claim Information) |

**Service line referral number**

| **Claim type**    | **JSON API field**                                                                                                                                                                                                                                        | **X12 element**                                                 |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| 837P professional | [`claimInformation.serviceLines[].serviceLineReferenceInformation.referralNumber[]`](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-claims#body.claimInformation.serviceLines.serviceLineReferenceInformation.referralNumber)        | `REF*9F` (Referral Number) of Loop `2400` (Service Line Number) |
| 837D dental       | [`claimInformation.serviceLines[].serviceLineReferenceInformation.referralNumber[]`](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-dental-claims#body.claimInformation.serviceLines.serviceLineReferenceInformation.referralNumber) | `REF*9F` (Referral Number) of Loop `2400` (Service Line Number) |

## How the edit works

A prior authorization and a referral are different approvals, so their numbers shouldn’t match. If you submit a claim with the same value in both fields, the payer may reject the claim.

The edit compares the numbers at the claim level and on each service line. When a service line reports only one of the numbers, the edit compares it to the other number at the claim level. The comparison ignores letter case.

This [edit](https://www.stedi.com/docs/healthcare/claim-edits-and-repairs#edits) catches the issue before the claim reaches the payer. It prevents payer rejections, which take longer to resolve and delay payment for the provider.

## Rejection errors

How you get the error depends on how you submit the claim.

**CMS-1500 API**

If you submit a claim using the [Create Professional Claim (CMS-1500) JSON](https://www.stedi.com/docs/healthcare/api-reference/post-create-professional-claim-json) endpoint and the claim fails the edit, you’ll get back a `201` response with an `errors` array in real time:

```json
{
  "errors": [
    {
      "description": "Invalid Prior Authorization number. The prior authorization number, PA20261009, cannot be the same value as the referral number. Correct and resubmit."
    }
  ]
}
```

**Claim Submission API**

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

```json
{
  "errors": [
    {
      "code": "33",
      "description": "Invalid Prior Authorization number. The prior authorization number, PA20261009, cannot be the same value as the referral number. Correct and resubmit.",
      "followupAction": "Please Correct and Resubmit"
    }
  ]
}
```

**SFTP**

If you submit a claim using [SFTP](https://www.stedi.com/docs/healthcare/submit-claims-sftp-connection) and the claim fails the edit, 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), entity identifier code, and error message.

```text
STC*A8>761>QC*[DATE]*U*[AMOUNT]******A8>252>QC**Invalid Prior Authorization number. The prior authorization number, [PRIOR AUTHORIZATION NUMBER], cannot be the same value as the referral number. Correct and resubmit.~
```

## Related claim edits

Stedi has another edit for service line referral numbers. See [Service-line referral number without a claim-level referral number](https://www.stedi.com/changelog/claim-edit-service-line-referral-number-without-a-claim-level-referral-number).
