2 July 2024
Pricing and DiscountsMessages/SubscriptionsGraphQL
You can now subscribe to Messages for changes to Custom Fields and Types on Embedded Prices.
Changes:
- [API] Added the following Messages: ProductPriceCustomFieldAdded, ProductPriceCustomFieldChanged, ProductPriceCustomFieldRemoved, ProductPriceCustomFieldsSet, and ProductPriceCustomFieldsRemoved.
 - [GraphQL API] Added the following types to the GraphQL schema: 
ProductPriceCustomFieldAdded,ProductPriceCustomFieldChanged,ProductPriceCustomFieldRemoved,ProductPriceCustomFieldsSet, andProductPriceCustomFieldsRemoved. 
The following changes were introduced in terms of GraphQL SDL:
type ProductPriceCustomFieldAdded implements MessagePayload {
  priceId: String!
  variantId: Int!
  staged: Boolean!
  name: String!
  value: Json!
  type: String!
}
type ProductPriceCustomFieldChanged implements MessagePayload {
  priceId: String!
  variantId: Int!
  staged: Boolean!
  name: String!
  value: Json!
  type: String!
}
type ProductPriceCustomFieldRemoved implements MessagePayload {
  priceId: String!
  variantId: Int!
  staged: Boolean!
  name: String!
  type: String!
}
type ProductPriceCustomFieldsSet implements MessagePayload {
  priceId: String!
  variantId: Int!
  staged: Boolean!
  customField: CustomFieldsType!
  oldTypeId: String
  type: String!
}
type ProductPriceCustomFieldsRemoved implements MessagePayload {
  priceId: String!
  variantId: Int!
  staged: Boolean!
  type: String!
}