---
title: couponCodeInvalidError
framework: passkit
role: symbol
role_heading: Type Property
path: passkit/pkpaymenterror/couponcodeinvaliderror
---

# couponCodeInvalidError

The error code that indicates an invalid coupon.

## Declaration

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

## Discussion

Discussion Use this error code if the user entered an invalid coupon code in the payment sheet. You can use paymentCouponCodeInvalidError(localizedDescription:) to create an invalid 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)
- [couponCodeExpiredError](passkit/pkpaymenterror/couponcodeexpirederror.md)
- [unknownError](passkit/pkpaymenterror/unknownerror.md)
- [PKPaymentError.Code](passkit/pkpaymenterror/code.md)
