← API reference
SCHEMA VIEW

Order Intake

Quotes, estimates, orders, invoices, customers, products and pricing.

Open workbench ↗Download SDL ↓AI context →

169 operations · complete schema 399 KB

Query

magicQuery

Executes a Magic Query string and returns the predefined query's JSON result. On a bad noun or parameter, returns a structured error whose 'extensions' carry 'code', 'actionable_message', and 'suggestions' for self-correction.

→
Query

getMagicQuerySchema

Returns the input JSON Schema and output introspection for a Magic Query noun, so consumers (especially LLMs) can learn its contract before calling magicQuery.

→
Query

listMagicQueries

Lists every available Magic Query noun with a short description and its options — the discovery entry point.

→
Query

getMagicQueryGraphQL

Resolves a Magic Query string to the real GraphQL operation and variables it runs, so consumers can graduate from the façade to raw GraphQL. Does not execute.

→
Query

listDataChangeEventTopics

List all valid data change event topics, grouped by resource. Requires authentication.

→
Query

generateDefaultDataQuery

Generate a default GraphQL data query for an event topic. Returns a query string with all scalar fields for the resource, or null if the topic has no matching query. The query uses $id as the variable for the resource ID.

→
Query

ping

Health check endpoint

→
Query

getProductTemplate

Fetch a product template by ID. Requires productTemplate:read permission.

→
Query

listProductTemplates

List product templates with optional filters, sorted by name. Requires productTemplate:list permission.

→
Query

listProductTemplateVersions

List published versions of a template with pagination. Requires productTemplate:read permission.

→
Query

getProductTemplateVersion

Fetch a specific published version. Requires productTemplate:read permission.

→
Query

getCustomer

Fetch a single customer by ID. Requires customer:read permission.

→
Query

getCustomerBy

Fetch a customer by external ID. Requires customer:read permission.

→
Query

listCustomers

List customers with pagination, filtering, and sorting. Requires customer:list permission.

→
Query

listContacts

List contacts with pagination. Requires contact:list permission.

→
Query

getContact

Fetch a contact by its stable ID. Requires contact:read permission.

→
Query

getContactBy

Fetch a contact by external ID or email. Requires contact:read permission.

→
Query

getAddress

Fetch a single address by ID. Requires address:read permission.

→
Query

getAddressBy

Fetch an address by external ID. Requires address:read permission.

→
Query

listAddresses

List addresses with pagination. Requires address:list permission.

→
Query

getBusinessUnit

Fetch a single business unit by ID. Requires businessunit:read permission.

→
Query

getBusinessUnitBy

Fetch a business unit by external ID or code. Requires businessunit:read permission.

→
Query

listBusinessUnits

List business units with pagination. Requires businessunit:list permission.

→
Query

getCostCenter

Fetch a single cost center by ID. Requires costcenter:read permission.

→
Query

getCostCenterBy

Fetch a cost center by external ID or code. Requires costcenter:read permission.

→
Query

listCostCenters

List cost centers with pagination. Requires costcenter:list permission.

→
Query

listCustomerPriceOverrides

List customer price overrides. Requires customerPriceOverride:list permission.

→
Query

iacSchema

The infrastructure-only view of this schema, for declarative tooling. Contains only annotated resources and the types they reach.

→
Query

iacValidate

Validate an infrastructure artifact. Pure and side-effect free; safe to alias many times in one document.

→
Query

iacGuides

Every authoring guide, for a tool that syncs them to a folder. Intended for `schema pull` to call once and write to disk, not for an agent to call while authoring — a file can be grepped and re-read in part, where a response arrives whole.

→
Query

helpChapters

List human-facing manual chapters from the running deployment.

→
Query

helpChapter

Read a chapter of the current published manual edition.

→
Query

searchHelp

Search human-facing manuals using shared semantic and text retrieval.

→
Query

schemaAuthoringCatalog

Compiler-owned vocabulary for the standalone XML JSON Schema dialect, including native form annotations.

→
Query

compileSchemaXML

Compile standalone XML schema syntax into JSON Schema without persisting it; host restrictions apply when embedded.

→
Query

renderSchemaXML

Render JSON Schema as native XML without dropping unsupported keywords or changing a saved document.

→
Query

iacSchemaDocument

Fetch the JSON Schema document a SCHEMA-kind validator references, for declarative tooling.

→
Query

orderFulfillmentCompletion

Assess current policy across every order line using explicitly attributed quantities

→
Query

getEntityNote

Read operational notes with current target permissions

→
Query

getEntityNoteBySource

Read operational notes with current target permissions

→
Query

entityNotes

Read operational notes with current target permissions

→
Query

searchEntityNotes

Read operational notes with current target permissions

→
Query

getOrder

Fetch an order by ID. Requires order:read permission.

→
Query

getOrderBy

Fetch an order by external ID. Requires order:read permission.

→
Query

listOrders

List orders with pagination. Requires order:list permission.

→
Query

getOrderLine

Fetch an order line by ID. Requires order:read permission.

→
Query

listOrderLines

List order lines with pagination. Requires order:list permission.

→
Query

getEstimate

Fetch an estimate by ID. Requires estimate:read permission.

→
Query

getEstimateBy

Fetch an estimate by external ID. Requires estimate:read permission.

→
Query

listEstimates

List estimates with pagination, filtering, and sorting. Requires estimate:list permission.

→
Query

getEstimateLine

Fetch an estimate line by ID. Requires estimate:read permission.

→
Query

listEstimateLines

List estimate lines with pagination, filtering, and sorting. Requires estimate:list permission.

→
Query

listEstimateCostBreakdowns

List cost breakdowns for an estimate line. Requires estimate:read permission.

→
Query

getInvoice

Fetch a single invoice by ID. Requires invoice:read permission.

→
Query

listInvoices

List invoices with pagination, filtering, and sorting. Requires invoice:list permission.

→
Query

getInvoiceLine

Fetch a single invoice line by ID. Requires invoice:read permission.

→
Query

listInvoiceLines

List invoice lines with pagination, filtering, and sorting. Requires invoice:list permission.

→
Query

getPayment

Fetch a single payment by ID. Requires payment:read permission.

→
Query

listPayments

List payments with pagination. Requires payment:list permission.

→
Query

getTaxCode

Fetch a single tax code by ID. Requires taxCode:read permission.

→
Query

listTaxCodes

List tax codes with pagination. Requires taxCode:list permission.

→
Query

getPriceBracket

Fetch a single price bracket by ID. Requires priceBracket:read permission.

→
Query

listPriceBrackets

List price brackets with pagination. Requires priceBracket:list permission.

→
Query

getSupplier

Fetch a single supplier by ID. Requires supplier:read permission.

→
Query

listSuppliers

List suppliers with pagination, filtering, and sorting. Requires supplier:list permission.

→
Query

getPurchaseOrder

Fetch a single purchase order by ID. Requires purchaseOrder:read permission.

→
Query

listPurchaseOrders

List purchase orders with pagination, filtering, and sorting. Requires purchaseOrder:list permission.

→
Query

getPurchaseOrderLine

Fetch a single purchase order line by ID. Requires purchaseOrder:read permission.

→
Query

listPurchaseOrderLines

List purchase order lines with pagination, filtering, and sorting. Requires purchaseOrder:list permission.

→
Query

getProduct

Fetch a single product by ID. Requires product:read permission.

→
Query

listProducts

List products with pagination, filtering, and sorting. Requires product:list permission.

→
Query

orderLifecycle

Fetch a complete order lifecycle: order, lines, estimate, invoices, shipments, and jobs. Requires order:read.

→
Query

customerAccountSummary

Fetch a customer account summary with orders, estimates, invoices and financial totals. Requires customer:read.

→
Mutation

upsertProductTemplate

Create or update a product template. Requires productTemplate:write permission.

→
Mutation

createProductTemplate

Create a new product template. Requires productTemplate:write permission.

→
Mutation

updateProductTemplate

Update a product template. Only provided fields are changed. Requires productTemplate:write permission.

→
Mutation

deleteProductTemplate

Delete a product template. Requires productTemplate:delete permission.

→
Mutation

publishProductTemplate

Publish a product template version. Requires productTemplate:write permission.

→
Mutation

upsertCustomer

Create or update a customer. Requires customer:write permission.

→
Mutation

createCustomer

Create a new customer. Requires customer:write permission.

→
Mutation

updateCustomer

Update a customer. Only provided fields are changed. Requires customer:write permission.

→
Mutation

deleteCustomer

Delete a customer. Requires customer:delete permission.

→
Mutation

upsertContact

Create or update a contact. Requires contact:write permission.

→
Mutation

createContact

Create a new contact. Requires contact:write permission.

→
Mutation

updateContact

Update a contact. Only provided fields are changed. Requires contact:write permission.

→
Mutation

deleteContact

Delete a contact. Requires contact:delete permission.

→
Mutation

upsertAddress

Create or update an address. Requires address:write permission.

→
Mutation

createAddress

Create a new address. Requires address:write permission.

→
Mutation

updateAddress

Update an address. Only provided fields are changed. Requires address:write permission.

→
Mutation

deleteAddress

Delete an address. Requires address:delete permission.

→
Mutation

upsertBusinessUnit

Create or update a business unit. Requires businessunit:write permission.

→
Mutation

createBusinessUnit

Create a new business unit. Requires businessunit:write permission.

→
Mutation

updateBusinessUnit

Update a business unit. Only provided fields are changed. Requires businessunit:write permission.

→
Mutation

deleteBusinessUnit

Delete a business unit. Requires businessunit:delete permission.

→
Mutation

upsertCostCenter

Create or update a cost center. Requires costcenter:write permission.

→
Mutation

createCostCenter

Create a new cost center. Requires costcenter:write permission.

→
Mutation

updateCostCenter

Update a cost center. Only provided fields are changed. Requires costcenter:write permission.

→
Mutation

deleteCostCenter

Delete a cost center. Requires costcenter:delete permission.

→
Mutation

upsertCustomerPriceOverride

Create or update a customer price override. Requires customerPriceOverride:write permission.

→
Mutation

createCustomerPriceOverride

Create a new customer price override. Requires customerPriceOverride:write permission.

→
Mutation

updateCustomerPriceOverride

Update a customer price override. Only provided fields are changed. Requires customerPriceOverride:write permission.

→
Mutation

deleteCustomerPriceOverride

Delete a customer price override. Requires customerPriceOverride:delete permission.

→
Mutation

completeOrderFulfillment

Explicitly complete an order when all its planned quantities satisfy the current milestone; never fabricate delivery or reopen completed work

→
Mutation

createEntityNote

Save note changes independently of embedding success

→
Mutation

updateEntityNote

Save note changes independently of embedding success

→
Mutation

deleteEntityNote

Save note changes independently of embedding success

→
Mutation

reindexEntityNotes

Queue bounded recoverable indexing work using the current model

→
Mutation

upsertOrder

Create or update an order. Requires order:write permission.

→
Mutation

createOrder

Create a new order. Requires order:write permission.

→
Mutation

updateOrder

Update an order. Only provided fields are changed. Requires order:write permission.

→
Mutation

createOrderGraph

Create a complete order — header, customer, billing/shipping addresses, and lines — in a single transaction. Each nested input reuses the same type as the corresponding individual upsert mutation; nested ids are rejected because this mutation is create-only. The resolver also enforces customer:write / address:write / orderline:write when those nested inputs are provided.

→
Mutation

deleteOrder

Delete an order. Requires order:delete permission.

→
Mutation

upsertOrderLine

Create or update an order line. Requires order:write permission.

→
Mutation

createOrderLine

Create a new order line. Requires order:write permission.

→
Mutation

updateOrderLine

Update an order line. Only provided fields are changed. Requires order:write permission.

→
Mutation

deleteOrderLine

Delete an order line. Requires order:delete permission.

→
Mutation

upsertEstimate

Create or update an estimate. Requires estimate:write permission.

→
Mutation

createEstimate

Create a new estimate. Requires estimate:write permission.

→
Mutation

updateEstimate

Update an estimate. Only provided fields are changed. Requires estimate:write permission.

→
Mutation

deleteEstimate

Delete an estimate. Requires estimate:delete permission.

→
Mutation

upsertEstimateLine

Create or update an estimate line. Requires estimate:write permission.

→
Mutation

createEstimateLine

Create a new estimate line. Requires estimate:write permission.

→
Mutation

updateEstimateLine

Update an estimate line. Only provided fields are changed. Requires estimate:write permission.

→
Mutation

deleteEstimateLine

Delete an estimate line. Requires estimate:delete permission.

→
Mutation

upsertInvoice

Create or update an invoice. Requires invoice:write permission.

→
Mutation

createInvoice

Create a new invoice. Requires invoice:write permission.

→
Mutation

updateInvoice

Update an existing invoice. Requires invoice:write permission.

→
Mutation

deleteInvoice

Delete an invoice. Requires invoice:delete permission.

→
Mutation

upsertInvoiceLine

Create or update an invoice line. Requires invoice:write permission.

→
Mutation

createInvoiceLine

Create a new invoice line. Requires invoice:write permission.

→
Mutation

updateInvoiceLine

Update an invoice line. Only provided fields are changed. Requires invoice:write permission.

→
Mutation

deleteInvoiceLine

Delete an invoice line. Requires invoice:delete permission.

→
Mutation

recordPayment

Record a payment against an invoice: writes a payment ledger row and rolls the payment up onto the invoice (`paidAmount`, `paid`/`partiallyPaid`, `paidAt`) and its order (`paymentStatus`), atomically. Requires payment:write permission.

→
Mutation

deletePayment

Delete a payment record. Requires payment:delete permission.

→
Mutation

upsertTaxCode

Create or update a tax code. Requires taxCode:write permission.

→
Mutation

createTaxCode

Create a new tax code. Requires taxCode:write permission.

→
Mutation

updateTaxCode

Update a tax code. Only provided fields are changed. Requires taxCode:write permission.

→
Mutation

deleteTaxCode

Delete a tax code. Requires taxCode:delete permission.

→
Mutation

upsertPriceBracket

Create or update a price bracket. Requires priceBracket:write permission.

→
Mutation

createPriceBracket

Create a new price bracket. Requires priceBracket:write permission.

→
Mutation

updatePriceBracket

Update a price bracket. Only provided fields are changed. Requires priceBracket:write permission.

→
Mutation

deletePriceBracket

Delete a price bracket. Requires priceBracket:delete permission.

→
Mutation

upsertSupplier

Create or update a supplier. Requires supplier:write permission.

→
Mutation

createSupplier

Create a new supplier. Requires supplier:write permission.

→
Mutation

updateSupplier

Update a supplier. Only provided fields are changed. Requires supplier:write permission.

→
Mutation

deleteSupplier

Delete a supplier. Requires supplier:delete permission.

→
Mutation

upsertPurchaseOrder

Create or update a purchase order. Requires purchaseOrder:write permission.

→
Mutation

updatePurchaseOrder

Update a purchase order. Only provided fields are changed. Requires purchaseOrder:write permission.

→
Mutation

deletePurchaseOrder

Delete a purchase order. Requires purchaseOrder:delete permission.

→
Mutation

upsertPurchaseOrderLine

Create or update a purchase order line. Requires purchaseOrder:write permission.

→
Mutation

createPurchaseOrderLine

Create a new purchase order line. Requires purchaseOrder:write permission.

→
Mutation

updatePurchaseOrderLine

Update a purchase order line. Only provided fields are changed. Requires purchaseOrder:write permission.

→
Mutation

deletePurchaseOrderLine

Delete a purchase order line. Requires purchaseOrder:delete permission.

→
Mutation

upsertProduct

Create or update a product. Requires product:write permission.

→
Mutation

createProduct

Create a new product. Requires product:write permission.

→
Mutation

updateProduct

Update a product. Only provided fields are changed. Requires product:write permission.

→
Mutation

deleteProduct

Delete a product. Requires product:delete permission.

→
Mutation

convertEstimateToOrder

Convert an accepted estimate into an order with order lines. Requires order:write.

→
Mutation

reviseEstimate

Create a new revision of an estimate, copying all lines. Requires estimate:write.

→
Mutation

createJobsFromOrder

Create jobs from order lines. Requires job:write.

→
Mutation

acceptEstimateAndCreateJobs

Accept an estimate and create order + jobs with components/operations from production blueprints. Requires order:write.

→
Mutation

invoiceOrder

Generate an invoice from an order and its lines. Rejects orders that already have an invoice, including concurrent retries. Requires invoice:write.

→
Mutation

issueCreditNote

Issue a credit note against an invoice. Requires invoice:write.

→
Mutation

generateEstimate

Generate an automated estimate by inferring operations, calculating costs, and creating estimate lines. Requires estimate:write permission.

→
Mutation

bulkUpdateOrderStatuses

Update the status of multiple orders at once. Requires order:write.

→
Mutation

duplicateEstimateForCustomer

Duplicate an estimate for a different customer, optionally adjusting prices. Requires estimate:write.

→
Mutation

instantiateProductTemplate

Instantiate a published product template into a print job. Requires productTemplate:execute permission.

→
Mutation

installCanonicalTemplate

Install a canonical product template (shipped with the app) into the calling tenant as a fresh draft. Requires productTemplate:write permission.

→
Subscription

dataChangeEvents

Subscribe to real-time data change events. Requires read permission on each requested resource.

→