<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "ApplePayontheWeb",
  "identifier" : "/documentation/ApplePayontheWeb/ApplePaySession/STATUS_INVALID_SHIPPING_POSTAL_ADDRESS",
  "metadataVersion" : "0.1.0",
  "role" : "",
  "symbol" : {
    "kind" : "",
    "modules" : [
      "Apple Pay on the Web"
    ],
    "preciseIdentifier" : "clconst/ApplePaySession/STATUS_INVALID_SHIPPING_POSTAL_ADDRESS"
  },
  "title" : "STATUS_INVALID_SHIPPING_POSTAL_ADDRESS"
}
-->

# STATUS_INVALID_SHIPPING_POSTAL_ADDRESS

The shipping address is invalid.

```
const unsigned short STATUS_INVALID_SHIPPING_POSTAL_ADDRESS;
```

## Discussion

Use this status code only for Apple Pay API version 1 or 2 style calls. For version 3, use an [`ApplePayError`](/documentation/ApplePayontheWeb/ApplePayError) with a status of [`STATUS_FAILURE`](/documentation/ApplePayontheWeb/ApplePaySession/STATUS_FAILURE)  and error code instead.

Use this status code if your address validation determines that the shipping address is invalid.The payment sheet remains open and shows the shipping address highlighted in red.

## See Also

[`supportsVersion`](/documentation/ApplePayontheWeb/ApplePaySession/supportsVersion)

Detects whether a web browser supports a particular Apple Pay version.



---

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)