← All types
Ob Object

PriceBracketState

A quantity-band pricing rule for a specific scope

Fields

Unique identifier

name

StringNullable

Optional label

What the bracket is scoped to

Possible values (3)
COST_CATEGORY

Bracket applies to a cost category

OPERATION_KIND

Bracket applies to an operation kind

PRODUCT

Bracket applies to a product

ID or kind code of the scoped entity

Customer-specific bracket (nil = all customers)

Inclusive lower quantity bound

Inclusive upper quantity bound (nil = unlimited)

rate

Float!Non-null

Rate value

How the rate is applied

Possible values (2)
PER_UNIT

Rate × quantity

FLAT

Flat rate regardless of quantity within the bracket

ISO 4217 currency code

Whether this bracket is active

Valid-from date (ISO8601)

Valid-until date (ISO8601)

Creation timestamp (ISO8601)

Last update timestamp (ISO8601)

Referenced by (3)
Exact type SDL
"""A quantity-band pricing rule for a specific scope"""
type PriceBracketState @iac_resource(name: "price_bracket") @iac_ops(create: "createPriceBracket", read: "getPriceBracket", update: "updatePriceBracket", delete: "deletePriceBracket") {
  """Unique identifier"""
  id: PriceBracketID! @iac_identity(assignedBy: SERVER) @iac_computed
  """Optional label"""
  name: String
  """What the bracket is scoped to"""
  scopeType: PriceBracketScopeType!
  """ID or kind code of the scoped entity"""
  scopeReference: String!
  """Customer-specific bracket (nil = all customers)"""
  customerId: CustomerID
  """Inclusive lower quantity bound"""
  minQuantity: Int!
  """Inclusive upper quantity bound (nil = unlimited)"""
  maxQuantity: Int
  """Rate value"""
  rate: Float!
  """How the rate is applied"""
  rateType: PriceBracketRateType!
  """ISO 4217 currency code"""
  currency: CurrencyISO!
  """Whether this bracket is active"""
  isActive: Boolean!
  """Valid-from date (ISO8601)"""
  validFrom: ISO8601
  """Valid-until date (ISO8601)"""
  validUntil: ISO8601
  """Creation timestamp (ISO8601)"""
  createdAt: String! @iac_computed
  """Last update timestamp (ISO8601)"""
  updatedAt: String! @iac_computed
}