---
schema_version: "1"
id: 988be8e4257c12477d5b9b5b6a6f524f3908fc17e4f777ca0b6e069ba293bb8e
title: CouponCodeRedemption
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_couponcoderedemption.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_couponcoderedemption.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 68c454be68f76ddb9233aefb90a6dd87720cc489ea5b15fc1600dfe985abbda4
description: Tracks each coupon code redemption. This object is available in API version 58.0 and later.
---
# CouponCodeRedemption

Tracks each coupon code redemption. This object is available in API version 58.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()

## Special Access Rules

This object is available through the B2B Commerce license. To access this object, the Promotions Coupon Redemption Limit user permission must be assigned.

## Fields

| Field | Details |
| --- | --- |
| Buyer | 
Type

string

Properties

Create, Filter, Group, Sort

Description

Information about the buyer. Can be any buyer-specific information.



 |
| CouponId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

ID of the redeemed coupon.

This field is a relationship field.

Relationship Name

Coupon

Relationship Type

Lookup

Refers To

Coupon



 |
| Name | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

Salesforce generated coupon code, such as CCR-000000002. Can’t be edited.



 |
| OwnerId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

The ID of the user who created the coupon code redemption.

This field is a polymorphic relationship field.

Relationship Name

Owner

Relationship Type

Lookup

Refers To

Group, User



 |
| Transaction | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort

Description

ID of the transaction where the coupon code was redeemed. Must be a valid cart ID.



 |