# Luminous API Documentation: API Reference Configuration ## Configuration ### Tags - [Get tags for a record](https://docs.joinluminous.com/api-reference/tags/get-tags-for-a-record.md): Retrieve all tags associated with a specific record. Supported record types: `sales-orders`,`sales-order-items`,`invoices`,`products` For `products`, any SKU type works, including kits and non-inventory SKUs. - [Replace all tags on a record](https://docs.joinluminous.com/api-reference/tags/replace-all-tags-on-a-record.md): Replace all existing tags on a record with a new set of tags. Supported record types: `sales-orders`,`sales-order-items`,`invoices`,`products` For `products`, any SKU type works, including kits and non-inventory SKUs. - [Attach tags to a record](https://docs.joinluminous.com/api-reference/tags/attach-tags-to-a-record.md): Attach one or more tags to a specific record. Supported record types: `sales-orders`,`sales-order-items`,`invoices`,`products` For `products`, any SKU type works, including kits and non-inventory SKUs. - [Detach a tag from a record](https://docs.joinluminous.com/api-reference/tags/detach-a-tag-from-a-record.md): Remove a specific tag from a record. Supported record types: `sales-orders`,`sales-order-items`,`invoices`,`products` ### Custom Fields - [Get custom field definitions](https://docs.joinluminous.com/api-reference/custom-fields/get-custom-field-definitions.md): List all custom field definitions (schema). Optionally filter to only the fields applicable to a specific entity type. - [Create a custom field definition](https://docs.joinluminous.com/api-reference/custom-fields/create-a-custom-field-definition.md): Create a new custom field definition. - [Get a custom field definition](https://docs.joinluminous.com/api-reference/custom-fields/get-a-custom-field-definition.md): Retrieve a single custom field definition by ID. - [Update a custom field definition](https://docs.joinluminous.com/api-reference/custom-fields/update-a-custom-field-definition.md): Update a custom field definition's label, type, options, and linked entity types. `object_types` is required on update — pass an empty array to unlink the field from all entity types. - [Partially update a custom field definition](https://docs.joinluminous.com/api-reference/custom-fields/partially-update-a-custom-field-definition.md): Patch one or more attributes of a custom field definition without resending the full record. Only the keys you include are touched; omitted keys keep their current value. To clear `options`, send `"options": null`. - [Add or remove dropdown choices](https://docs.joinluminous.com/api-reference/custom-fields/add-or-remove-dropdown-choices.md): Safely add and/or remove dropdown choices on a `dropdown` or `multi_dropdown` custom field without resending the entire choice list. Only applies to fields whose `type` is `dropdown` or `multi_dropdown`. - [Delete a custom field definition](https://docs.joinluminous.com/api-reference/custom-fields/delete-a-custom-field-definition.md): Delete a custom field definition by ID. Fields that are already in use on records cannot be deleted and will return a 422. - [Get custom field values](https://docs.joinluminous.com/api-reference/custom-fields/get-custom-field-values.md): Retrieve all custom field values for a specific record. Supported record types: `sales-orders`,`sales-order-items`,`invoices`,`products`,`purchase-orders`,`purchase-order-shipments`,`transfer-orders` - [Update custom field values](https://docs.joinluminous.com/api-reference/custom-fields/update-custom-field-values.md): Update custom field values for a specific record. Supported record types: `sales-orders`,`sales-order-items`,`invoices`,`products`,`purchase-orders`,`purchase-order-shipments`,`transfer-orders` Values must match the field type (string, number, date, dropdown, or multi_dropdown). For a `multi_dropdow… ### Account - [Account company profile](https://docs.joinluminous.com/api-reference/account/account-company-profile.md): Get your Luminous account's own company details: the company name, address, phone number and logo set under **Settings > My Profile** (what prints on your invoices and purchase orders). These are not customer companies; use `GET /companies` for those. ### Users - [Users](https://docs.joinluminous.com/api-reference/users/users.md): List the staff users on your Luminous account, sorted by first and last name. Use it to resolve user IDs that appear elsewhere in the API (for example `picked_by_user` on picklists) to a name, email and role. - [User](https://docs.joinluminous.com/api-reference/users/user.md): Get one staff user by ID, in any status (active, inactive or removed). Same fields as `GET /users`. Requires the staff read (`staff.read`) permission. ### Notification Settings - [Get notification settings](https://docs.joinluminous.com/api-reference/notification-settings/get-notification-settings.md): Returns the staff users who receive the daily Low Quantity Products Notification email (products below their Low Stock Alert Quantity). This is the same setting as **Settings › Notifications** in the app, so recipients set there show here and the reverse. - [Update notification settings](https://docs.joinluminous.com/api-reference/notification-settings/update-notification-settings.md): Partial update: only the fields you send are written, and no other account setting changes. Returns the saved settings. ### Carton Templates - [List carton templates](https://docs.joinluminous.com/api-reference/carton-templates/list-carton-templates.md): Return the carton catalog — the boxes, envelopes, and packer-custom containers the cartonization engine chooses from when packing a shipment. Results are ordered by `priority` (descending) then `name`. - [Create a carton template](https://docs.joinluminous.com/api-reference/carton-templates/create-a-carton-template.md): Add a carton to the catalog. Only `name` is required; every other field falls back to its default (`type` = `box`, `fill_limit_pct` = `100`, `priority` = `0`, `is_active` = `true`, `requires_dry_ice` = `false`). `name` must be unique among non-deleted cartons. - [Single carton template](https://docs.joinluminous.com/api-reference/carton-templates/single-carton-template.md): Get a single carton template by ID. - [Update a carton template](https://docs.joinluminous.com/api-reference/carton-templates/update-a-carton-template.md): Update an existing carton template. Every field is optional — send only the fields you intend to change. `name`, if provided, must remain unique among non-deleted cartons. - [Update a carton template (PATCH)](https://docs.joinluminous.com/api-reference/carton-templates/update-a-carton-template-patch.md): Alias for `PUT /carton-templates/{cartonTemplateId}` — a partial update. Send only the fields you intend to change. - [Delete a carton template](https://docs.joinluminous.com/api-reference/carton-templates/delete-a-carton-template.md): Soft-delete a carton template. Returns `204 No Content` on success. ### Approvals - [List approval rules](https://docs.joinluminous.com/api-reference/approvals/list-approval-rules.md): Return every approval rule, ordered by `id`, each with its approver template and approvers. Rules are the same records as Settings › Approvals, so rules made in either place show in both. - [Create an approval rule](https://docs.joinluminous.com/api-reference/approvals/create-an-approval-rule.md): Create a rule that holds every **new** document of its `model` matching its conditions for sign-off by the users of its approver template. - [Get an approval rule](https://docs.joinluminous.com/api-reference/approvals/get-an-approval-rule.md): Return one approval rule with its approver template and approvers. - [Replace an approval rule](https://docs.joinluminous.com/api-reference/approvals/replace-an-approval-rule.md): Replace a rule, as the Settings form saves it. Send the full body: every field of create is required again, and `enable_single_approver` is **required** too (so omitting it cannot reset it). The `condition` array replaces the existing conditions. - [Delete an approval rule](https://docs.joinluminous.com/api-reference/approvals/delete-an-approval-rule.md): Delete an approval rule. New documents are no longer held by it. - [List approval condition fields](https://docs.joinluminous.com/api-reference/approvals/list-approval-condition-fields.md): Return the fields an approval rule's conditions can use on a model, each with the operators it allows — the same choices as the Settings › Approvals rule form. - [List approver templates](https://docs.joinluminous.com/api-reference/approvals/list-approver-templates.md): Return the approver templates (named lists of approving users) that approval rules point at, each with its users. Paginated. - [Create an approver template](https://docs.joinluminous.com/api-reference/approvals/create-an-approver-template.md): Create a named list of approving users to point approval rules at. `label` must be unique. - [Get an approver template](https://docs.joinluminous.com/api-reference/approvals/get-an-approver-template.md): Return one approver template with its users. - [Replace an approver template](https://docs.joinluminous.com/api-reference/approvals/replace-an-approver-template.md): Replace a template's `label` and its whole approver list (`user_ids` replaces the existing users). - [Delete an approver template](https://docs.joinluminous.com/api-reference/approvals/delete-an-approver-template.md): Delete an approver template. ### Shipping Rules - [Get shipping rules](https://docs.joinluminous.com/api-reference/shipping-rules/get-shipping-rules.md): Return the tenant's saved shipping rules — one ordered list that decides which carriers and services an order may ship with, and on which days. The same list is edited in the app under **Operations → Operations Admin → Shipping Rules**. - [Replace shipping rules](https://docs.joinluminous.com/api-reference/shipping-rules/replace-shipping-rules.md): Replace the whole ordered list of shipping rules. The list is in apply order and replaces everything saved; `{ "rules": [] }` clears it. - [Get the shipping-rule schema](https://docs.joinluminous.com/api-reference/shipping-rules/get-the-shipping-rule-schema.md): Describe the shipping-rule format — every condition (`when`) and effect (`then`), with its type, allowed options and meaning — plus the maximum number of rules. Useful for building an editor or for an AI agent authoring rules. - [Test shipping rules against an order](https://docs.joinluminous.com/api-reference/shipping-rules/test-shipping-rules-against-an-order.md): Evaluate shipping rules against one fulfillment order and explain the result: the order's facts, each rule's per-condition result and whether it matched, and the label refusal (if any) for a given service at a given time. ### Automations - [Get the automation catalog](https://docs.joinluminous.com/api-reference/automations/get-the-automation-catalog.md): The catalog that rule writes are validated against: rule statuses, tester models, every trigger (with the model it runs on and whether the live tester can fire it), condition types, action types, value-pipeline initial values and functions, and the leaf field paths for each model. - [List automation rules](https://docs.joinluminous.com/api-reference/automations/list-automation-rules.md): Paginated list of automation rules, newest first, each with its conditions and actions. - [Create an automation rule](https://docs.joinluminous.com/api-reference/automations/create-an-automation-rule.md): Create a rule. The trigger, condition types, and action types must be in the catalog (`GET /automations/schema`); values are otherwise loosely typed, apart from the engine's checks for `hold_order` (valid hold type) and `add_line_item` (SKU or product id, quantity > 0). - [Get an automation rule](https://docs.joinluminous.com/api-reference/automations/get-an-automation-rule.md): One rule with its conditions and actions. Condition and action `value` are decoded objects. - [Replace an automation rule](https://docs.joinluminous.com/api-reference/automations/replace-an-automation-rule.md): Replace the rule's name, trigger, summary, conditions, and actions (and status, when sent). **Conditions and actions are replaced wholesale** — ids in the body are ignored, so send the full lists you want kept. Omitting `status` leaves the current status. - [Delete an automation rule](https://docs.joinluminous.com/api-reference/automations/delete-an-automation-rule.md): Delete the rule and its conditions and actions. - [Set an automation rule's status](https://docs.joinluminous.com/api-reference/automations/set-an-automation-rules-status.md): Activate, pause, or mark a rule as errored. Only `active` and `error` rules run. - [Live-test an automation event](https://docs.joinluminous.com/api-reference/automations/live-test-an-automation-event.md): Load a saved record, fire the event against it, and return the run summary plus its full execution log. - [List automation runs](https://docs.joinluminous.com/api-reference/automations/list-automation-runs.md): Paginated list of automation runs, newest first. - [Get an automation run](https://docs.joinluminous.com/api-reference/automations/get-an-automation-run.md): One run summary. Use `GET /automations/runs/{runId}/logs` for its log lines. - [Get an automation run's log](https://docs.joinluminous.com/api-reference/automations/get-an-automation-runs-log.md): Log lines for a run, oldest first. Use `after_id` to page forward (or tail a run). ### Export Templates - [List export template types](https://docs.joinluminous.com/api-reference/export-templates/list-export-template-types.md): Return the catalogue of supported template types with, for each, the render modes it supports, its HTML body shape, whether it can be previewed, and which document its `document_id` refers to during preview. Use this first when authoring a new template. - [Get the export template authoring guide](https://docs.joinluminous.com/api-reference/export-templates/get-the-export-template-authoring-guide.md): Return a structured JSON playbook for authoring templates: Mustache syntax notes, the per-type body shapes, formatter sub-keys, and what `document_id` means per type. Aimed at AI authors and integrators building templates end to end. - [List placeholders for a template type](https://docs.joinluminous.com/api-reference/export-templates/list-placeholders-for-a-template-type.md): Return the placeholder catalogue for an HTML-capable template `type`, grouped for authoring. Includes tenant custom fields. Copy exact placeholder names from here so they resolve at render time. - [Get the options-mode form schema](https://docs.joinluminous.com/api-reference/export-templates/get-the-options-mode-form-schema.md): Return the options-mode form schema — the toggles and sections available when a template is authored in `options` render mode (rather than raw HTML). Pass an optional `type` to scope the schema to one template type. - [List export templates](https://docs.joinluminous.com/api-reference/export-templates/list-export-templates.md): Paginated list of PDF/HTML **document export templates** for the tenant. - [Create an export template](https://docs.joinluminous.com/api-reference/export-templates/create-an-export-template.md): Create a PDF/HTML export template. `name`, `type`, and `fields` are required. - [Get an export template](https://docs.joinluminous.com/api-reference/export-templates/get-an-export-template.md): Get a single export template by ID, including its full raw `fields`. - [Update an export template](https://docs.joinluminous.com/api-reference/export-templates/update-an-export-template.md): Update an existing export template. Send only the fields you intend to change. When you send `fields`, the same shape rules as create apply for the template's type. - [Update an export template (PATCH)](https://docs.joinluminous.com/api-reference/export-templates/update-an-export-template-patch.md): Alias for `PUT /export-templates/{exportTemplateId}` — a partial update. - [Delete an export template](https://docs.joinluminous.com/api-reference/export-templates/delete-an-export-template.md): Soft-delete an export template. Returns `204 No Content` on success. - [Set an export template as default](https://docs.joinluminous.com/api-reference/export-templates/set-an-export-template-as-default.md): Make this template the default for its `type`. Any previously-default template of the same type is unset. Takes no request body. - [Validate an export template draft](https://docs.joinluminous.com/api-reference/export-templates/validate-an-export-template-draft.md): Dry-run a template draft without saving. Runs the same shape rules as create/update, compiles the Mustache markup, and flags unknown placeholders. Returns a unified `{ valid, errors, warnings }` result. - [Preview an unsaved export template draft](https://docs.joinluminous.com/api-reference/export-templates/preview-an-unsaved-export-template-draft.md): Render an **unsaved** template draft against a live document — supply `type` and `fields` inline along with `document_id`. Ideal for iterating on markup before saving. - [Preview a saved export template](https://docs.joinluminous.com/api-reference/export-templates/preview-a-saved-export-template.md): Render a saved template against a live document and return the result. The template's `type` and `fields` are taken from the saved record — the body only needs `document_id` (and optionally `format` and, for `packing_slip`, `document_kind`). ### Currency - [Get available currencies](https://docs.joinluminous.com/api-reference/currency/get-available-currencies.md): Returns a list of available currencies. - [Get base currency](https://docs.joinluminous.com/api-reference/currency/get-base-currency.md): Returns the configured base currency. - [Set base currency](https://docs.joinluminous.com/api-reference/currency/set-base-currency.md): Set the base currency for your account. - [Convert currency](https://docs.joinluminous.com/api-reference/currency/convert-currency.md): Convert an amount between currencies using current exchange rates. - [List currency rates](https://docs.joinluminous.com/api-reference/currency/list-currency-rates.md): Get a list of currency exchange rates. - [Create a currency rate](https://docs.joinluminous.com/api-reference/currency/create-a-currency-rate.md): Create a new currency exchange rate. ### Unit Classes - [List unit classes](https://docs.joinluminous.com/api-reference/unit-classes/list-unit-classes.md): Paginated list of unit classes (e.g. Length, Weight, Volume). - [Create unit class](https://docs.joinluminous.com/api-reference/unit-classes/create-unit-class.md): Create a new unit class. - [Single unit class](https://docs.joinluminous.com/api-reference/unit-classes/single-unit-class.md): Retrieve a unit class by ID. - [Update unit class](https://docs.joinluminous.com/api-reference/unit-classes/update-unit-class.md): Update an existing unit class. - [Delete unit class](https://docs.joinluminous.com/api-reference/unit-classes/delete-unit-class.md): Delete a unit class. Returns 422 if any UOMs or conversion rules still reference it, or if it is the default unit class ("The default unit class cannot be deleted."). ### Units of Measure - [List units of measure](https://docs.joinluminous.com/api-reference/units-of-measure/list-units-of-measure.md): Paginated list of units of measure. - [Create unit of measure](https://docs.joinluminous.com/api-reference/units-of-measure/create-unit-of-measure.md): Create a new UOM under an existing unit class. - [Single unit of measure](https://docs.joinluminous.com/api-reference/units-of-measure/single-unit-of-measure.md): Retrieve a UOM by ID. - [Update unit of measure](https://docs.joinluminous.com/api-reference/units-of-measure/update-unit-of-measure.md): Update an existing UOM. - [Delete unit of measure](https://docs.joinluminous.com/api-reference/units-of-measure/delete-unit-of-measure.md): Delete a UOM. Returns 422 if the UOM is the base unit of its unit class ("{name} is the base unit of the {class} unit class and cannot be deleted."), or if it is still referenced anywhere — conversion rules, product/kit default units, BOM and kit items, supplier SKUs, purchase/sales/transfer order l… - [Set base UOM for a unit class](https://docs.joinluminous.com/api-reference/units-of-measure/set-base-uom-for-a-unit-class.md): Mark a UOM as the base unit for its parent unit class. The previous base UOM (if any) is unset, and conversion factors continue to be expressed relative to the new base. ### Unit Conversion Rules - [List unit conversion rules](https://docs.joinluminous.com/api-reference/unit-conversion-rules/list-unit-conversion-rules.md): Paginated list of `SYSTEM` and `SKU` conversion rules. Internal kit-scoped rules are excluded from this endpoint. - [Create unit conversion rule](https://docs.joinluminous.com/api-reference/unit-conversion-rules/create-unit-conversion-rule.md): Create a new conversion rule. Use `type=SYSTEM` for global per-class rules and `type=SKU` for product-specific overrides — when `type=SKU`, `product_id` is required (and must be omitted for `SYSTEM`). - [Resolve effective conversion rule](https://docs.joinluminous.com/api-reference/unit-conversion-rules/resolve-effective-conversion-rule.md): Resolve the effective conversion rule for a `(product, base_uom, converted_uom)` triple. SKU-specific rules win over SYSTEM rules. Returns 404 when no matching rule exists. - [Single unit conversion rule](https://docs.joinluminous.com/api-reference/unit-conversion-rules/single-unit-conversion-rule.md): Retrieve a unit conversion rule by ID. - [Update unit conversion rule](https://docs.joinluminous.com/api-reference/unit-conversion-rules/update-unit-conversion-rule.md): Update an existing conversion rule. Same payload shape and rules as create. - [Delete unit conversion rule](https://docs.joinluminous.com/api-reference/unit-conversion-rules/delete-unit-conversion-rule.md): Delete a unit conversion rule. ## OpenAPI Specs - [build](/api-reference/build.yaml)