Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Added

- `priceToken` (signed price, Pricing Fallback V2) requested on the product query through the new opt-in `PriceTokenFragment`, exposing data from `vtex.search-graphql@0.72.0` / `vtex.search-resolver@1.106.0` so storefront apps can forward it on add to cart.

## [0.106.0] - 2026-05-26

### Added
Expand Down
10 changes: 10 additions & 0 deletions react/fragments/priceToken.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Signed price (Pricing Fallback V2), exposed by `vtex.search-graphql` >= 0.72.0.
#
# Kept apart from CommertialOfferFragment on purpose: that fragment is also
# spread into recommendationShelf.gql, whose provider
# (`vtex.recommendation-graphql`) declares its own `Offer` type, without this
# field - adding it there would invalidate that whole document. Queries opt in
# by spreading this fragment, so each provider only gets what it can resolve.
fragment PriceTokenFragment on Offer {
priceToken
}
2 changes: 2 additions & 0 deletions react/queries/product.gql
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#import '../fragments/seller.graphql'
#import '../fragments/commertialOffer.graphql'
#import '../fragments/installment.graphql'
#import '../fragments/priceToken.graphql'

query Product(
$slug: String
Expand Down Expand Up @@ -31,6 +32,7 @@ query Product(
sellerDefault
commertialOffer {
...CommertialOfferFragment
...PriceTokenFragment
CacheVersionUsedToCallCheckout
Installments {
...InstallmentFragment
Expand Down