---
schema_version: "1"
id: 7dca6f01f7f211506969cb83b8fbe2e64d3a03bc65a8b4f6ced0b88b29fd6d3c
title: ConnectApi.PromotionCoupon
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_promotion_coupon.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_promotion_coupon.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 42898b8545b4e7325eeb04b73df1f9c46b8efec94fef2ed15f7e7c6fc278762f
description: A coupon used in a promotion.
---
# ConnectApi.PromotionCoupon

A coupon used in a promotion.

| Property Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| couponCode | String | Coupon code. | 57.0 |
| couponError​Code | String | Error code returned if the coupon is invalid. | 57.0 |
| id | String | ID of the coupon. | 57.0 |
| isValidCoupon | Boolean | Indicates whether the coupon is valid (true) or invalid (false). | 57.0 |

#### See Also

- [ConnectApi.PromotionEvaluation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_promotion_evaluation.htm "Results of a promotion evaluation.")
- [evaluate(salesTransaction)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CommercePromotions_static_methods.htm#apex_ConnectAPI_CommercePromotions_evaluate_1 "Determine which promotions the customer is eligible for based on the store and buyer group, and compute the applicable price adjustments based on the coupons and the items in the cart. This API evaluates only the first 50 active manual promotions and first 50 active automatic promotions, based on priority. This API computes and returns applicable price adjustments, but it does not apply those adjustments to the webcart record. If you want to enable promotions based on shipping, contact Salesforce Customer Support.")