diff --git a/platforms/android/README.md b/platforms/android/README.md index 1741b0bbd..f9eb580f7 100644 --- a/platforms/android/README.md +++ b/platforms/android/README.md @@ -72,13 +72,13 @@ dependencies { Checkout Kit presents a standard Shopify checkout URL. The common flow is: -1. Create or update a cart with the [Storefront GraphQL API](https://shopify.dev/docs/api/storefront), for example with [`cartCreate`](https://shopify.dev/docs/api/storefront/2026-04/mutations/cartCreate) and related cart mutations. -2. Read the cart's [`checkoutUrl`](https://shopify.dev/docs/api/storefront/2026-04/objects/Cart#field-cart-checkouturl). +1. Create or update a cart with the [Storefront GraphQL API](https://shopify.dev/docs/api/storefront), for example with [`cartCreate`](https://shopify.dev/docs/api/storefront/2026-07/mutations/cartCreate) and related cart mutations. +2. Read the cart's [`checkoutUrl`](https://shopify.dev/docs/api/storefront/2026-07/objects/Cart#field-cart-checkouturl). 3. Pass that URL, or a [cart permalink](https://help.shopify.com/en/manual/products/details/cart-permalink), to Checkout Kit. You can use any GraphQL client. The sample app uses Apollo Kotlin and is a complete reference for a modern Storefront API cart flow. -For production use, see the [Storefront API GraphiQL Explorer](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/getting-started) for schema exploration and the [`cartCreate`](https://shopify.dev/docs/api/storefront/2026-04/mutations/cartCreate) mutation reference for the full input shape, including buyer identity, attributes, discount codes, delivery addresses, and delivery options. +For production use, see the [Storefront API GraphiQL Explorer](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/getting-started) for schema exploration and the [`cartCreate`](https://shopify.dev/docs/api/storefront/2026-07/mutations/cartCreate) mutation reference for the full input shape, including buyer identity, attributes, discount codes, delivery addresses, and delivery options. ## Present checkout diff --git a/platforms/swift/README.md b/platforms/swift/README.md index 2b27a8e6a..270690c4d 100644 --- a/platforms/swift/README.md +++ b/platforms/swift/README.md @@ -91,13 +91,13 @@ pod "ShopifyCheckoutKit/AcceleratedCheckouts", "4.0.0-alpha.6" Checkout Kit presents a standard Shopify checkout URL. The common flow is: -1. Create or update a cart with the [Storefront GraphQL API](https://shopify.dev/docs/api/storefront), for example with [`cartCreate`](https://shopify.dev/docs/api/storefront/2026-04/mutations/cartCreate) and related cart mutations. -2. Read the cart's [`checkoutUrl`](https://shopify.dev/docs/api/storefront/2026-04/objects/Cart#field-cart-checkouturl). +1. Create or update a cart with the [Storefront GraphQL API](https://shopify.dev/docs/api/storefront), for example with [`cartCreate`](https://shopify.dev/docs/api/storefront/2026-07/mutations/cartCreate) and related cart mutations. +2. Read the cart's [`checkoutUrl`](https://shopify.dev/docs/api/storefront/2026-07/objects/Cart#field-cart-checkouturl). 3. Pass that URL, or a [cart permalink](https://help.shopify.com/en/manual/products/details/cart-permalink), to Checkout Kit. You can use any GraphQL client. The sample app uses Apollo iOS and is a complete reference for a modern Storefront API integration. -For production use, see the [Storefront API GraphiQL Explorer](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/getting-started) for schema exploration and the [`cartCreate`](https://shopify.dev/docs/api/storefront/2026-04/mutations/cartCreate) mutation reference for the full input shape, including buyer identity, attributes, discount codes, and delivery preferences. +For production use, see the [Storefront API GraphiQL Explorer](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/getting-started) for schema exploration and the [`cartCreate`](https://shopify.dev/docs/api/storefront/2026-07/mutations/cartCreate) mutation reference for the full input shape, including buyer identity, attributes, discount codes, and delivery preferences. ## Present checkout diff --git a/platforms/swift/Samples/CheckoutKitSwiftDemo/CheckoutKitSwiftDemo/Sources/Lib/InfoDictionary.swift b/platforms/swift/Samples/CheckoutKitSwiftDemo/CheckoutKitSwiftDemo/Sources/Lib/InfoDictionary.swift index 548a0e608..856ae1f9f 100644 --- a/platforms/swift/Samples/CheckoutKitSwiftDemo/CheckoutKitSwiftDemo/Sources/Lib/InfoDictionary.swift +++ b/platforms/swift/Samples/CheckoutKitSwiftDemo/CheckoutKitSwiftDemo/Sources/Lib/InfoDictionary.swift @@ -42,7 +42,7 @@ final class InfoDictionary: Sendable { fatalError("Missing required configuration. Check your info.plist.") } - let apiVersion = infoPlist["API_VERSION"] as? String ?? "2026-04" + let apiVersion = infoPlist["API_VERSION"] as? String ?? "2026-07" self.apiVersion = apiVersion self.address1 = address1 diff --git a/platforms/swift/Sources/ShopifyAcceleratedCheckouts/Internal/StorefrontAPI/StorefrontAPI+Types.swift b/platforms/swift/Sources/ShopifyAcceleratedCheckouts/Internal/StorefrontAPI/StorefrontAPI+Types.swift index fd2ddeb8b..b5e95c3cd 100644 --- a/platforms/swift/Sources/ShopifyAcceleratedCheckouts/Internal/StorefrontAPI/StorefrontAPI+Types.swift +++ b/platforms/swift/Sources/ShopifyAcceleratedCheckouts/Internal/StorefrontAPI/StorefrontAPI+Types.swift @@ -906,7 +906,7 @@ extension StorefrontAPI { } /// Represents shop settings data fetched from the Storefront API -/// https://shopify.dev/docs/api/storefront/2026-04/objects/Shop +/// https://shopify.dev/docs/api/storefront/2026-07/objects/Shop @available(iOS 16.0, *) class ShopSettings: ObservableObject { /// The shop's name (merchant name for display) diff --git a/platforms/swift/Sources/ShopifyAcceleratedCheckouts/Internal/StorefrontAPI/StorefrontAPI.swift b/platforms/swift/Sources/ShopifyAcceleratedCheckouts/Internal/StorefrontAPI/StorefrontAPI.swift index 4d48720b3..cfbab94ee 100644 --- a/platforms/swift/Sources/ShopifyAcceleratedCheckouts/Internal/StorefrontAPI/StorefrontAPI.swift +++ b/platforms/swift/Sources/ShopifyAcceleratedCheckouts/Internal/StorefrontAPI/StorefrontAPI.swift @@ -9,7 +9,7 @@ final class StorefrontAPI: ObservableObject, StorefrontAPIProtocol { /// - Parameters: /// - storefrontDomain: The shop domain (e.g., "example.myshopify.com") /// - storefrontAccessToken: The storefront access token - /// - apiVersion: The API version to use (defaults to "2026-04") + /// - apiVersion: The API version to use (defaults to "2026-07") /// - countryCode: Optional country code for localization /// - languageCode: Optional language code for localization init( diff --git a/platforms/swift/Sources/ShopifyAcceleratedCheckouts/ShopifyAcceleratedCheckouts.swift b/platforms/swift/Sources/ShopifyAcceleratedCheckouts/ShopifyAcceleratedCheckouts.swift index 97b0c2cb3..d3583446d 100644 --- a/platforms/swift/Sources/ShopifyAcceleratedCheckouts/ShopifyAcceleratedCheckouts.swift +++ b/platforms/swift/Sources/ShopifyAcceleratedCheckouts/ShopifyAcceleratedCheckouts.swift @@ -2,7 +2,7 @@ import ShopifyCheckoutKit public enum ShopifyAcceleratedCheckouts { /// Storefront API version used for cart operations - internal static let apiVersion = "2026-04" + internal static let apiVersion = "2026-07" internal static let name = "ShopifyAcceleratedCheckouts" diff --git a/platforms/swift/Tests/ShopifyAcceleratedCheckoutsTests/ShopifyAcceleratedCheckoutsTests.swift b/platforms/swift/Tests/ShopifyAcceleratedCheckoutsTests/ShopifyAcceleratedCheckoutsTests.swift index 53ebccc32..4428d277b 100644 --- a/platforms/swift/Tests/ShopifyAcceleratedCheckoutsTests/ShopifyAcceleratedCheckoutsTests.swift +++ b/platforms/swift/Tests/ShopifyAcceleratedCheckoutsTests/ShopifyAcceleratedCheckoutsTests.swift @@ -19,7 +19,7 @@ class ShopifyAcceleratedCheckoutsTests: XCTestCase { } func test_apiVersion_whenAccessed_shouldBePublic() { - XCTAssertEqual(ShopifyAcceleratedCheckouts.apiVersion, "2026-04") + XCTAssertEqual(ShopifyAcceleratedCheckouts.apiVersion, "2026-07") } func test_logLevel_withDefaultConfiguration_shouldDefaultToWarn() { diff --git a/platforms/web/README.md b/platforms/web/README.md index e9aa93d55..94398f32f 100644 --- a/platforms/web/README.md +++ b/platforms/web/README.md @@ -249,14 +249,14 @@ declare module 'react' { To present checkout you first need a checkout URL. The most common way is to use the [Storefront GraphQL API](https://shopify.dev/docs/api/storefront) to assemble a cart (via `cartCreate` and related mutations) and read the -[`checkoutUrl`](https://shopify.dev/docs/api/storefront/2026-04/objects/Cart#field-cart-checkouturl) +[`checkoutUrl`](https://shopify.dev/docs/api/storefront/2026-07/objects/Cart#field-cart-checkouturl) field. Alternatively, a [cart permalink](https://help.shopify.com/en/manual/products/details/cart-permalink) can be provided. ```ts const response = await fetch( - 'https://your-store.myshopify.com/api/2026-04/graphql.json', + 'https://your-store.myshopify.com/api/2026-07/graphql.json', { method: 'POST', headers: { @@ -300,7 +300,7 @@ checkout.src = data.cartCreate.cart.checkoutUrl; For production use, see the [Storefront API GraphiQL Explorer](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/getting-started) for schema exploration and the -[`cartCreate`](https://shopify.dev/docs/api/storefront/2026-04/mutations/cartCreate) +[`cartCreate`](https://shopify.dev/docs/api/storefront/2026-07/mutations/cartCreate) mutation reference for the full input shape (buyer identity, attributes, discount codes, delivery preferences, etc.).