---
title: >-
  Updated CalculateExchangeLineItemInput and CalculatedExchangeLineItem Variant
  nullability - Shopify developer changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: >-
    https://shopify.dev/changelog/updated-calculateexchangelineiteminput-and-calculatedexchangelineitem-variant-nullability
  md: >-
    https://shopify.dev/changelog/updated-calculateexchangelineiteminput-and-calculatedexchangelineitem-variant-nullability.md
metadata:
  effectiveApiVersion: 2025-01
  affectedApi:
    - displayName: Admin GraphQL API
      handle: admin-graphql
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Update
    handle: update
  indicatesActionRequired: false
  createdAt: '2024-09-20T06:01:46-04:00'
  postedAt: '2024-10-07T05:52:00-04:00'
  updatedAt: '2024-09-20T10:36:53-04:00'
  effectiveAt: '2024-10-07T05:52:00-04:00'
---

October 7, 2024

Tags:

* Admin GraphQL API
* 2025-01

# Updated CalculateExchangeLineItemInput and CalculatedExchangeLineItem Variant nullability

As of Admin GraphQL API `2025-01` version, `CalculateExchangeLineItemInput.variantId` and `CalculatedExchangeLineItem.variant` fields are nullable at schema level.

This is in preparation of future feature changes. In the current state `CalculateExchangeLineItemInput.variantId` will still be validated via a returned error if not present.

Learn more about [CalculateExchangeLineItemInput](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/CalculateExchangeLineItemInput) and [CalculatedExchangeLineItem](https://shopify.dev/docs/api/admin-graphql/unstable/objects/CalculatedExchangeLineItem).
