---
title: SubscriptionContractCalculationDiagnostic - GraphQL Admin
description: >-
  A diagnostic (error or warning) emitted during a subscription contract
  calculation.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/latest/objects/SubscriptionContractCalculationDiagnostic
  md: >-
    https://shopify.dev/docs/api/admin-graphql/latest/objects/SubscriptionContractCalculationDiagnostic.md
api_name: admin
api_type: graphql
type: object
---

# Subscription​Contract​Calculation​Diagnostic

object

Requires the `read_own_subscription_contracts` or `write_own_subscription_contracts` scope.

A diagnostic (error or warning) emitted during a subscription contract calculation.

## Fields

* code

  [Subscription​Contract​Calculation​Diagnostic​Code!](https://shopify.dev/docs/api/admin-graphql/latest/enums/SubscriptionContractCalculationDiagnosticCode)

  non-null

  The diagnostic code.

* field

  [\[String!\]](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

  The path to the field on the calculation result that the diagnostic refers to, if any. Fields of the calculated contract start at `calculatedContract`, and line paths are keyed by the line's `id` on the calculated contract.

* message

  [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

  A human-readable message describing the diagnostic.

***

## Map

### Fields with this object

* [SubscriptionContractCalculationFailure.errors](https://shopify.dev/docs/api/admin-graphql/latest/objects/SubscriptionContractCalculationFailure#field-SubscriptionContractCalculationFailure.fields.errors)
* [SubscriptionContractCalculationSuccess.warnings](https://shopify.dev/docs/api/admin-graphql/latest/objects/SubscriptionContractCalculationSuccess#field-SubscriptionContractCalculationSuccess.fields.warnings)
