Skip to main content

ordersB2bTemplates

DEPRECATED

This query will be removed in the future. Use the query ordersTemplates instead.

Retrieves a paginated list of order templates. Order templates contain predefined enrichment data configurations that can be applied to orders for consistent processing workflows.

Required Permission

  • orders:read_b2b_templates

Access Control

  • **Regular users**: Can only access templates from brands they have permissions for
  • **Super admins**: Can access all templates across all brands
  • **Brand requirement**: Non-admin users must have associated brands or specify a brand filter

Default Behavior

  • Returns only active templates by default
  • Results are paginated using GraphQL connection pattern
  • Sorted by creation date (newest first)

Possible Errors

  • **BrandNotSelectedError**: When non-admin users don't have associated brands
  • **AuthorizationError**: When user lacks required permissions or brand access
ordersB2bTemplates(
activeOnly: Boolean = true
after: String
before: String
brandId: ID
filters: B2BOrderTemplateFilterInput
first: Int
last: Int
): OrderTemplateConnection! @deprecated

Arguments

ordersB2bTemplates.activeOnly ● Boolean scalar

Filter by active templates only.

ordersB2bTemplates.after ● String scalar

Returns the elements in the list that come after the specified cursor.

ordersB2bTemplates.before ● String scalar

Returns the elements in the list that come before the specified cursor.

ordersB2bTemplates.brandId ● ID scalar

Brand ID to filter templates by.

ordersB2bTemplates.filters ● B2BOrderTemplateFilterInput input

Filtering options for templates.

ordersB2bTemplates.first ● Int scalar

Returns the first _n_ elements from the list.

ordersB2bTemplates.last ● Int scalar

Returns the last _n_ elements from the list.

Type

OrderTemplateConnection object

The connection type for OrderTemplate.