<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PKPaymentError/couponCodeExpiredError",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "s:SC18PKPaymentErrorCodeLeV06couponc7ExpiredB0SoAAVvpZ"
  },
  "title" : "couponCodeExpiredError"
}
-->

# couponCodeExpiredError

The error code that indicates an expired coupon.

```
static var couponCodeExpiredError: PKPaymentError.Code { get }
```

## Discussion

Use this error code if the user entered an expired coupon code in the payment sheet. You can use [`paymentCouponCodeExpiredError(localizedDescription:)`](/documentation/PassKit/PKPaymentRequest/paymentCouponCodeExpiredError(localizedDescription:)) to create an expired coupon error object.

> Note:
> A coupon code error doesn’t prevent the user from authorizing the payment.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)