All Release Notes
Added update actions to set validity dates on Standalone Prices
12 June 2023
Composable Commerce
HTTP API
Enhancement
Pricing and DiscountsGraphQL
We introduced new update actions on the Standalone Prices API that allow you to modify the start and end dates of a Standalone Price. This feature simplifies the process of maintaining accurate pricing information for your customers. Prior to this enhancement, changing the validity dates required the deletion and recreation of Standalone Prices, a process that was time-consuming and error-prone.
Alongside the new update actions, we also introduced corresponding Subscription Messages to enhance visibility and tracking.
Changes:
- [API] Added Set Valid From, Set Valid Until, and Set Valid From and Until update actions to the Standalone Prices API.
- [API] Added StandalonePriceValidFromSet, StandalonePriceValidUntilSet, and StandalonePriceValidFromAndUntilSet Messages.
- [GraphQL API] Added the following types to the GraphQL schema:
SetStandalonePriceValidFrom
,SetStandalonePriceValidFromAndUntil
,SetStandalonePriceValidUntil
,StandalonePriceValidFromAndUntilSet
,StandalonePriceValidFromSet
,StandalonePriceValidUntilSet
.
The following changes were introduced in terms of GraphQL SDL:
extend input StandalonePriceUpdateAction {setValidFrom: SetStandalonePriceValidFromsetValidFromAndUntil: SetStandalonePriceValidFromAndUntilsetValidUntil: SetStandalonePriceValidUntil}input SetStandalonePriceValidFrom {validFrom: DateTime}input SetStandalonePriceValidFromAndUntil {validFrom: DateTimevalidUntil: DateTime}input SetStandalonePriceValidUntil {validUntil: DateTime}type StandalonePriceValidFromAndUntilSet implements MessagePayload {validFrom: DateTimevalidUntil: DateTimepreviousValidFrom: DateTimepreviousValidUntil: DateTimetype: String!}type StandalonePriceValidFromSet implements MessagePayload {validFrom: DateTimepreviousValidFrom: DateTimetype: String!}type StandalonePriceValidUntilSet implements MessagePayload {validUntil: DateTimepreviousValidUntil: DateTimetype: String!}