<!--
{
  "availability" : [
    "Retention Messaging API: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RetentionMessaging",
  "identifier" : "/documentation/RetentionMessaging/alternateProduct",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Retention Messaging API"
    ],
    "preciseIdentifier" : "data:retention_messaging:alternateProduct"
  },
  "title" : "alternateProduct"
}
-->

# alternateProduct

A switch-plan message and product ID you provide in a real-time response to your Get Retention Message endpoint.

```
object alternateProduct
```

## Discussion

In your [`RealtimeResponseBody`](/documentation/RetentionMessaging/RealtimeResponseBody) real-time response, you can choose from mutually exclusive options. Include `alternateProduct` in your response to provide a switch-plan retention message.

Use the product identifier in [`DecodedRealtimeRequestBody`](/documentation/RetentionMessaging/DecodedRealtimeRequestBody) to determine the customer’s current subscription. Choose an alternative subscription from the same subscription group.

The message identifier needs to refer to a message that doesn’t include an image and that has a [`messageState`](/documentation/RetentionMessaging/messageState) of `APPROVED`; otherwise, the retention message fails. For more information about setting up messages, see [`Upload Message`](/documentation/RetentionMessaging/Upload-Message).

---

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)