Merchant targets removed; analytics target input refactor

4/11/2026, 12:00:51 AM

Merchant target queries and mutations were removed; merchants must now use the analyticsTarget endpoints. The analyticsTargetCreate and analyticsTargetUpdate mutations now take a single input object (AnalyticsTargetCreateInput / AnalyticsTargetUpdateInput) instead of individual scalar arguments, and the corresponding payload user errors are specialized. The analyticsTargets query added a name filter and changed its sortKey enumeration from MerchantTargetSortKeys to AnalyticsTargetSortKeys. Filtering on companies, giftCards, giftCardsCount, discountNodes, and discountNodesCount was expanded: companies gained an ordering_status filter, gift cards and discount nodes added customer_id/recipient_id and multiple tag support, and the gift card query now filters by balance status and initial value. New fields were added to existing types: CashDrawer now exposes a balance, Customer receives taxSettings, GiftCard has an optional lineItem, and StandardMetaobjectDefinitionTemplate includes an access configuration. Several enum values were added under catalog, fulfillment, and market error types, and a few values were removed from ShopifyPaymentsTransactionType. Finally, the DeliveryRateGroup id description was updated to clarify its global uniqueness.

Query Changes

βž– Removed Queries (1)

merchantTargets

A list of merchant targets for the shop.

πŸ”„ Modified Queries (6)

analyticsTargets

A list of analytics targets for the shop.

~ Modified argument: sortKey
~ Modified argument: query
companies

A paginated list of companies in the shop. Company objects are business entities that purchase from the merchant.

Use the query argument to filter companies by attributes like name or externalId. Sort and paginate results to handle large datasets efficiently. Learn more about Shopify API search syntax.

~ Modified argument: query
discountNodes

Returns a list of discounts.

~ Modified argument: query
discountNodesCount

The total number of discounts for the shop. Limited to a maximum of 10000 by default.

~ Modified argument: query
giftCards

Returns a paginated list of GiftCard objects issued for the shop.

You can filter gift cards by attributes such as status, last characters of the code, balance status, and other values using the query parameter. You can also apply SavedSearch objects to filter results.

~ Modified argument: query
giftCardsCount

The total number of gift cards issued for the shop. Limited to a maximum of 10000 by default.

~ Modified argument: query

Mutation Changes

βž– Removed Mutations (3)

merchantTargetCreate

Create a new merchant target.

merchantTargetUpdate

Updates a merchant target.

merchantTargetsDelete

Deletes one or more merchant targets.

πŸ”„ Modified Mutations (2)

analyticsTargetCreate

Create a new analytics target.

- Removed argument: metric
- Removed argument: startDate
- Removed argument: endDate
- Removed argument: expectedValue
- Removed argument: name
- Removed argument: currencyCode
- Removed argument: filters
+ New argument: input
analyticsTargetUpdate

Updates an analytics target.

- Removed argument: startDate
- Removed argument: endDate
- Removed argument: expectedValue
- Removed argument: name
- Removed argument: currencyCode
- Removed argument: filters
+ New argument: input

Type Changes

βž• Added Types (10)

πŸ“₯AnalyticsTargetCreateInputβž• AddedINPUT_OBJECT

The input fields for creating an analytics target.

πŸ—οΈAnalyticsTargetCreateUserErrorβž• AddedOBJECT

An error that occurs during the execution of AnalyticsTargetCreate.

Fields: code, field, message
πŸ“‹AnalyticsTargetCreateUserErrorCodeβž• AddedENUM

Possible error codes that can be returned by AnalyticsTargetCreateUserError.

Values: INVALID
πŸ“‹AnalyticsTargetSortKeysβž• AddedENUM

The set of valid sort keys for the AnalyticsTarget query.

Values: CREATED_AT, END_DATE, EXPECTED_VALUE, ID, METRIC, NAME, START_DATE
πŸ“₯AnalyticsTargetUpdateInputβž• AddedINPUT_OBJECT

The input fields for updating an analytics target.

πŸ—οΈAnalyticsTargetUpdateUserErrorβž• AddedOBJECT

An error that occurs during the execution of AnalyticsTargetUpdate.

Fields: code, field, message
πŸ“‹AnalyticsTargetUpdateUserErrorCodeβž• AddedENUM

Possible error codes that can be returned by AnalyticsTargetUpdateUserError.

Values: NOT_FOUND, INVALID
πŸ—οΈAnalyticsTargetsDeleteUserErrorβž• AddedOBJECT

An error that occurs during the execution of AnalyticsTargetsDelete.

Fields: code, field, message
πŸ“‹AnalyticsTargetsDeleteUserErrorCodeβž• AddedENUM

Possible error codes that can be returned by AnalyticsTargetsDeleteUserError.

Values: NOT_FOUND, INVALID
πŸ—οΈTaxSettingsβž• AddedOBJECT

Tax settings for a customer.

Fields: taxId

βž– Removed Types (7)

πŸ—οΈMerchantTargetβž– RemovedOBJECT

A merchant created target for an analytics metric.

Fields: createdAt, currencyCode, endDate, expectedValue, filters ... +6 more
πŸ—οΈMerchantTargetConnectionβž– RemovedOBJECT

An auto-generated type for paginating through multiple MerchantTargets.

Fields: edges, nodes, pageInfo
πŸ—οΈMerchantTargetCreatePayloadβž– RemovedOBJECT

Return type for merchantTargetCreate mutation.

Fields: merchantTarget, userErrors
πŸ—οΈMerchantTargetEdgeβž– RemovedOBJECT

An auto-generated type which holds one MerchantTarget and a cursor during pagination.

Fields: cursor, node
πŸ“‹MerchantTargetSortKeysβž– RemovedENUM

The set of valid sort keys for the MerchantTarget query.

Values: CREATED_AT, END_DATE, EXPECTED_VALUE, ID, METRIC, NAME, START_DATE
πŸ—οΈMerchantTargetUpdatePayloadβž– RemovedOBJECT

Return type for merchantTargetUpdate mutation.

Fields: merchantTarget, userErrors
πŸ—οΈMerchantTargetsDeletePayloadβž– RemovedOBJECT

Return type for merchantTargetsDelete mutation.

Fields: deletedIds, userErrors

πŸ”„ Modified Types (13)

πŸ—οΈAnalyticsTargetCreatePayloadπŸ”„ Modified
πŸ”„ Field modified: userErrors
πŸ—οΈAnalyticsTargetUpdatePayloadπŸ”„ Modified
πŸ”„ Field modified: userErrors
πŸ—οΈAnalyticsTargetsDeletePayloadπŸ”„ Modified
πŸ”„ Field modified: userErrors
πŸ—οΈCashDrawerπŸ”„ Modified
βž• Field added: balance

The current balance in the cash drawer.

πŸ—οΈCatalogUserErrorCodeπŸ”„ Modified
βž• Enum value added: B2B_CATALOG_LIMIT_REACHED
βž• Enum value added: UNPERMITTED_ENTITLEMENTS_DIRECT_CATALOG_ASSIGNMENT
πŸ—οΈCustomerπŸ”„ Modified
βž• Field added: taxSettings

The customer's tax settings.

πŸ—οΈDeliveryRateGroupπŸ”„ Modified
πŸ”„ Field modified: id
πŸ—οΈFulfillmentDisplayStatusπŸ”„ Modified
βž• Enum value added: RETURNING_TO_SENDER
βž• Enum value added: BUYER_ACTION_REQUIRED
πŸ—οΈFulfillmentEventStatusπŸ”„ Modified
βž• Enum value added: RETURNING_TO_SENDER
βž• Enum value added: BUYER_ACTION_REQUIRED
πŸ—οΈGiftCardπŸ”„ Modified
βž• Field added: lineItem

The line item from an order that initiated the creation of this gift card. This value is null if the gift card was issued manually.

πŸ—οΈMarketUserErrorCodeπŸ”„ Modified
βž• Enum value added: CANNOT_ACTIVATE_MARKET_B2B_CATALOG_LIMIT_REACHED
βž• Enum value added: B2B_CATALOG_LIMIT_REACHED
πŸ—οΈShopifyPaymentsTransactionTypeπŸ”„ Modified
βž– Enum value removed: AGENTIC_FEE_TAX_DEBIT
βž– Enum value removed: AGENTIC_FEE_TAX_DEBIT_REVERSAL
βž– Enum value removed: AGENTIC_FEE_TAX_CREDIT
βž– Enum value removed: AGENTIC_FEE_TAX_CREDIT_REVERSAL
πŸ—οΈStandardMetaobjectDefinitionTemplateπŸ”„ Modified
βž• Field added: access

Access configuration for the standard metaobject definition template.