---
title: couponCodeExpiredError
framework: passkit
role: symbol
role_heading: Type Property
path: passkit/pkpaymenterror/couponcodeexpirederror
---

# couponCodeExpiredError

The error code that indicates an expired coupon.

## Declaration

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

## Discussion

Discussion Use this error code if the user entered an expired coupon code in the payment sheet. You can use paymentCouponCodeExpiredError(localizedDescription:) to create an expired coupon error object. note: A coupon code error doesn’t prevent the user from authorizing the payment.

## See Also

### Identifying the error

- [billingContactInvalidError](passkit/pkpaymenterror/billingcontactinvaliderror.md)
- [shippingContactInvalidError](passkit/pkpaymenterror/shippingcontactinvaliderror.md)
- [shippingAddressUnserviceableError](passkit/pkpaymenterror/shippingaddressunserviceableerror.md)
- [couponCodeInvalidError](passkit/pkpaymenterror/couponcodeinvaliderror.md)
- [unknownError](passkit/pkpaymenterror/unknownerror.md)
- [PKPaymentError.Code](passkit/pkpaymenterror/code.md)
