# Pricing and Discount Messages

## GraphQL partial SDLs

This is a graphql reference page. In the llms.txt variant, those components link to the shared partial SDL key list instead of trying to resolve inline GraphQL reference content.

Fetch all available partial SDL keys first:

```text
GET https://docs.commercetools.com/apis/rest/content/by-id?id=ctp:gql-sphere:returnTypesList
```

Then fetch the one or more relevant partial SDL with a key from that list by calling the same endpoint with a schema ID:

```text
GET https://docs.commercetools.com/apis/rest/content/by-id?id=ctp:gql-sphere:schema:<key>
```

The response body is a JSON object keyed by the requested content ID. For example, the key-list request returns a `ctp:gql-sphere:returnTypesList` field and a schema request returns a `ctp:gql-sphere:schema:<key>` field.

**GraphQL output types for Messages that represent a change or an action performed on a Cart Discount, Discount Code, or Standalone Price.**

Each type on this page implements [MessagePayload](/api/graphql/messages.md#messagepayload) and is returned in the `payload` field of a [Message](/api/graphql/messages.md#message). For when each Message is generated, see [Pricing and Discount Messages](/api/projects/messages/pricing-discount-messages.md).

## Cart Discount Messages

### CartDiscountCreated

[fetch SDL for type CartDiscountCreated](#graphql-partial-sdls).

### CartDiscountDeleted

[fetch SDL for type CartDiscountDeleted](#graphql-partial-sdls).

### CartDiscountStoreAdded

[fetch SDL for type CartDiscountStoreAdded](#graphql-partial-sdls).

### CartDiscountStoreRemoved

[fetch SDL for type CartDiscountStoreRemoved](#graphql-partial-sdls).

### CartDiscountStoresSet

[fetch SDL for type CartDiscountStoresSet](#graphql-partial-sdls).

## Discount Code Messages

### DiscountCodeCreated

[fetch SDL for type DiscountCodeCreated](#graphql-partial-sdls).

### DiscountCodeDeleted

[fetch SDL for type DiscountCodeDeleted](#graphql-partial-sdls).

### DiscountCodeKeySet

[fetch SDL for type DiscountCodeKeySet](#graphql-partial-sdls).

## Discount Group Messages

### DiscountGroupCreated

[fetch SDL for type DiscountGroupCreated](#graphql-partial-sdls).

### DiscountGroupDeleted

> The `discountGroupId` field corresponds to the `resource` field of the Message in REST.

[fetch SDL for type DiscountGroupDeleted](#graphql-partial-sdls).

### DiscountGroupKeySet

> The `discountGroupId` field corresponds to the `resource` field of the Message in REST.

[fetch SDL for type DiscountGroupKeySet](#graphql-partial-sdls).

### DiscountGroupIsActiveSet

> The `discountGroupId` field corresponds to the `resource` field of the Message in REST.

> The `oldIsActive` field is available in REST but not in GraphQL.

[fetch SDL for type DiscountGroupIsActiveSet](#graphql-partial-sdls).

### DiscountGroupSortOrderSet

> The `discountGroupId` field corresponds to the `resource` field of the Message in REST.

[fetch SDL for type DiscountGroupSortOrderSet](#graphql-partial-sdls).

## Standalone Price Messages

### StandalonePriceCreated

[fetch SDL for type StandalonePriceCreated](#graphql-partial-sdls).

### StandalonePriceDeleted

[fetch SDL for type StandalonePriceDeleted](#graphql-partial-sdls).

### StandalonePriceValueChanged

[fetch SDL for type StandalonePriceValueChanged](#graphql-partial-sdls).

### StandalonePriceKeySet

[fetch SDL for type StandalonePriceKeySet](#graphql-partial-sdls).

### StandalonePriceDiscountSet

[fetch SDL for type StandalonePriceDiscountSet](#graphql-partial-sdls).

### StandalonePriceExternalDiscountSet

[fetch SDL for type StandalonePriceExternalDiscountSet](#graphql-partial-sdls).

### StandalonePriceStagedChangesApplied

[fetch SDL for type StandalonePriceStagedChangesApplied](#graphql-partial-sdls).

### StandalonePriceStagedChangesRemoved

[fetch SDL for type StandalonePriceStagedChangesRemoved](#graphql-partial-sdls).

### StandalonePriceActiveChanged

[fetch SDL for type StandalonePriceActiveChanged](#graphql-partial-sdls).

### StandalonePriceValidFromSet

[fetch SDL for type StandalonePriceValidFromSet](#graphql-partial-sdls).

### StandalonePriceValidUntilSet

[fetch SDL for type StandalonePriceValidUntilSet](#graphql-partial-sdls).

### StandalonePriceValidFromAndUntilSet

[fetch SDL for type StandalonePriceValidFromAndUntilSet](#graphql-partial-sdls).

### StandalonePriceTierAdded

[fetch SDL for type StandalonePriceTierAdded](#graphql-partial-sdls).

### StandalonePriceTierRemoved

> In REST, the `tier` field is named `removedTier`.

[fetch SDL for type StandalonePriceTierRemoved](#graphql-partial-sdls).

### StandalonePriceTiersSet

[fetch SDL for type StandalonePriceTiersSet](#graphql-partial-sdls).

## Related pages

- [Area overview page with navigation](/api.md)
- [Previous page: REST](/api/projects/messages/pricing-discount-messages.md)
- [Search documentation and API specs](/search.md)