<!--
{
  "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/Code/couponCodeExpiredError",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:@E@PKPaymentErrorCode@PKPaymentCouponCodeExpiredError"
  },
  "title" : "PKPaymentError.Code.couponCodeExpiredError"
}
-->

# PKPaymentError.Code.couponCodeExpiredError

The error code that indicates an expired coupon.

```
case couponCodeExpiredError
```

## Discussion

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

---

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)