← API reference
CANONICAL TYPE REFERENCE

AcceptEstimatePayload

Result of acceptEstimateAndCreateJobs: the order, its lines, and the jobs, components and operations produced from the estimate.

The order created from the estimate (status confirmed, payment status unpaid). Null when errors is non-empty.

Order lines copied from the estimate lines, each linked back to its estimate line and to the job created for it. Estimate-line file attachments are carried across as order-line attachments. Null on failure.

One job per estimate line. Lines carrying a production blueprint are materialized by the vertical's template-instantiation service; lines without one get a plain job. Null on failure.

Components materialized from the production blueprints of the estimate lines. Empty for lines that have no blueprint; null on failure.

Operations materialized from the production blueprints, hanging off the created jobs and components. Empty when no line has a blueprint; null on failure.

The estimate after acceptance: status accepted, acceptedAt set, and convertedToOrderId pointing at the new order. Null on failure.

Field-level validation errors — including attachments whose file has been removed or is not ready, and a missing template-instantiation service for blueprint lines. Empty on success; when non-empty nothing was written.

View exact SDL
"""
Result of `acceptEstimateAndCreateJobs`: the order, its lines, and the jobs, components and operations produced from the estimate.
"""
type AcceptEstimatePayload {
  """
  The order created from the estimate (status `confirmed`, payment status `unpaid`). Null when `errors` is non-empty.
  """
  order: OrderState
  """
  Order lines copied from the estimate lines, each linked back to its estimate line and to the job created for it. Estimate-line file attachments are carried across as order-line attachments. Null on failure.
  """
  orderLines: [OrderLineState!]
  """
  One job per estimate line. Lines carrying a production blueprint are materialized by the vertical's template-instantiation service; lines without one get a plain job. Null on failure.
  """
  jobs: [JobState!]
  """
  Components materialized from the production blueprints of the estimate lines. Empty for lines that have no blueprint; null on failure.
  """
  components: [ComponentState!]
  """
  Operations materialized from the production blueprints, hanging off the created jobs and components. Empty when no line has a blueprint; null on failure.
  """
  operations: [OperationState!]
  """
  The estimate after acceptance: status `accepted`, `acceptedAt` set, and `convertedToOrderId` pointing at the new order. Null on failure.
  """
  updatedEstimate: EstimateState
  """
  Field-level validation errors — including attachments whose file has been removed or is not `ready`, and a missing template-instantiation service for blueprint lines. Empty on success; when non-empty nothing was written.
  """
  errors: [FieldError!]!
}

One stable address across all schema views. Follow a field’s type to explore connections between domains.