# Luminous API Documentation: API Reference ## API Reference - [API Reference / Products & Catalog (67 pages)](https://docs.joinluminous.com/_llms/api-reference/products-and-catalog.txt): Products, Alternate SKUs, Product Substitutions, Product Builder Profiles, B2B Product Templates, Distribution Templates, Product Pricing, BOMs, Labels, Imports. - [API Reference / Sales & Fulfillment (156 pages)](https://docs.joinluminous.com/_llms/api-reference/sales-and-fulfillment.txt): Sales Orders, Fulfillment Orders, Freight, Fulfillment Priority Lists, PickFlow Warehouse, PickFlow Shipping, Picklists, Cycle Counts, Print Stations, Purgatory, Activity Logs, Invoices, Customer Returns, Deals (CRM). - [API Reference / Manufacturing (103 pages)](https://docs.joinluminous.com/_llms/api-reference/manufacturing.txt): Work Orders, Work Order Steps & Production, Work Order Materials & Orders, Work Order Comments & Shipments, Production Batches. - [API Reference / Configuration (87 pages)](https://docs.joinluminous.com/_llms/api-reference/configuration.txt): Tags, Custom Fields, Account, Users, Notification Settings, Carton Templates, Approvals, Shipping Rules, Automations, Export Templates, Currency, Unit Classes, Units of Measure, Unit Conversion Rules. ### Companies & Contacts #### Companies - [Companies](https://docs.joinluminous.com/api-reference/companies/companies.md): Get a paginated list of companies with optional filtering and sorting. - [Create a company](https://docs.joinluminous.com/api-reference/companies/create-a-company.md): Create a new company with optional tags, custom fields, and shipping addresses - [Company](https://docs.joinluminous.com/api-reference/companies/company.md): Get detailed information for a specific company - [Update a company](https://docs.joinluminous.com/api-reference/companies/update-a-company.md): Update an existing company's information - [Delete a company](https://docs.joinluminous.com/api-reference/companies/delete-a-company.md): Delete a company by ID - [List shipping addresses](https://docs.joinluminous.com/api-reference/companies/list-shipping-addresses.md): List all shipping addresses for a company. - [Create shipping address](https://docs.joinluminous.com/api-reference/companies/create-shipping-address.md): Create a new shipping address for a company - [Update shipping address](https://docs.joinluminous.com/api-reference/companies/update-shipping-address.md): Update an existing shipping address for a company - [Delete shipping address](https://docs.joinluminous.com/api-reference/companies/delete-shipping-address.md): Delete a shipping address for a company - [Company Contacts](https://docs.joinluminous.com/api-reference/companies/company-contacts.md): Get a paginated list of contacts associated with a specific company. - [Company Product Price Overrides](https://docs.joinluminous.com/api-reference/companies/company-product-price-overrides.md): Get a list of product-specific price overrides for a particular company. - [Create company product price override](https://docs.joinluminous.com/api-reference/companies/create-company-product-price-override.md): Set a company-specific price for one product. Identify the product by `product_id`, `sku`, or both (when both are sent they must refer to the same product). - [Bulk upsert company product price overrides](https://docs.joinluminous.com/api-reference/companies/bulk-upsert-company-product-price-overrides.md): Create or update a company's price for many products in one call. For each item, an existing override for that product is updated (a deleted one is restored); otherwise a new one is created. - [Update company product price override](https://docs.joinluminous.com/api-reference/companies/update-company-product-price-override.md): Change the price on one of a company's product price overrides. - [Delete company product price override](https://docs.joinluminous.com/api-reference/companies/delete-company-product-price-override.md): Remove one of a company's product price overrides. The product goes back to the company's normal pricing. - [List company price groups](https://docs.joinluminous.com/api-reference/companies/list-company-price-groups.md): List a company's pricing structure: which price level applies to each product category (or subcategory) for this company. Ordered by ID; not paginated. - [Assign company price group](https://docs.joinluminous.com/api-reference/companies/assign-company-price-group.md): Assign the price level a company gets for a product category, optionally narrowed to one subcategory. The subcategory must belong to the category. - [Bulk assign company price groups](https://docs.joinluminous.com/api-reference/companies/bulk-assign-company-price-groups.md): Assign several category/subcategory price levels to a company in one call. The same rules as the single assign apply to each entry. The whole call runs in one transaction: if any entry fails, nothing is saved, and the error key names the entry (for example `groups.1.price_level_id`). - [Delete company price group](https://docs.joinluminous.com/api-reference/companies/delete-company-price-group.md): Remove one of a company's price-level assignments. - [Company Products](https://docs.joinluminous.com/api-reference/companies/company-products.md): Get a paginated list of products associated with a specific company. - [List invoices for a company](https://docs.joinluminous.com/api-reference/companies/list-invoices-for-a-company.md): List invoices (client purchase orders) for the given company. Supports the same filtering as `GET /invoices` (the company is fixed by the path) plus field projection via the `fields` query parameter. - [List sales orders for a company](https://docs.joinluminous.com/api-reference/companies/list-sales-orders-for-a-company.md): List sales orders for the given company. Supports the same filtering as `GET /sales-orders` (the company is fixed by the path) plus field projection via the `fields` query parameter. #### Contacts - [Contacts](https://docs.joinluminous.com/api-reference/contacts/contacts.md): Get a paginated list of all contacts with optional filtering and sorting. - [Create a contact](https://docs.joinluminous.com/api-reference/contacts/create-a-contact.md): Create a new contact. Requires `first_name` and either `company_id` or `company_ids`. - [Single contact](https://docs.joinluminous.com/api-reference/contacts/single-contact.md): Get detailed information for a specific contact by ID - [Update a contact](https://docs.joinluminous.com/api-reference/contacts/update-a-contact.md): Update an existing contact's information. **All fields are optional**, allowing partial updates. - [Set or rotate B2B portal password](https://docs.joinluminous.com/api-reference/contacts/set-or-rotate-b2b-portal-password.md): Sets or rotates the B2B client portal password for a contact. Uses the same backend logic as sending `password` on `POST /contacts/{contactId}`, but accepts only the password field. - [Delete a contact](https://docs.joinluminous.com/api-reference/contacts/delete-a-contact.md): Delete a contact by ID. This performs a soft delete by setting the contact status to inactive. #### Suppliers - [Suppliers](https://docs.joinluminous.com/api-reference/suppliers/suppliers.md): Get a paginated list of suppliers (factories) that are active and visible to the authenticated user. - [Create a supplier](https://docs.joinluminous.com/api-reference/suppliers/create-a-supplier.md): Create a new supplier (factory). - [Supplier](https://docs.joinluminous.com/api-reference/suppliers/supplier.md): Get detailed information for a specific supplier. - [Update a supplier](https://docs.joinluminous.com/api-reference/suppliers/update-a-supplier.md): Update an existing supplier's information. - [Partially update a supplier](https://docs.joinluminous.com/api-reference/suppliers/partially-update-a-supplier.md): Partially update an existing supplier. Only the fields present in the request body are written; omitted fields are left unchanged, and a nullable field sent as `null` is cleared. At least one recognized supplier field must be supplied. - [Delete a supplier](https://docs.joinluminous.com/api-reference/suppliers/delete-a-supplier.md): Delete a supplier by ID. - [Supplier contacts](https://docs.joinluminous.com/api-reference/suppliers/supplier-contacts.md): List the contacts attached to a supplier. Suppliers hold contacts separately from company contacts, so these are not reachable via the company-scoped `POST /contacts` endpoint. - [Add a supplier contact](https://docs.joinluminous.com/api-reference/suppliers/add-a-supplier-contact.md): Attach a new contact to a supplier. This appends to the supplier's existing contacts rather than replacing them. The contact email must be unique across the platform. #### Supplier SKUs - [List supplier SKUs](https://docs.joinluminous.com/api-reference/supplier-skus/list-supplier-skus.md): Returns a paginated list of supplier-specific SKU and unit-cost overrides. Each row represents one supplier's SKU for a given Luminous product. - [Create a supplier SKU](https://docs.joinluminous.com/api-reference/supplier-skus/create-a-supplier-sku.md): Creates a new supplier-specific SKU and optional unit cost for a given product/supplier pair. The combination of `product_id` + `supplier_id` + `sku` must be unique; the underlying service enforces this constraint. - [Bulk upsert supplier SKUs](https://docs.joinluminous.com/api-reference/supplier-skus/bulk-upsert-supplier-skus.md): Upserts multiple supplier SKU records for a single supplier, keyed by **internal Luminous SKU**. For each item: - If a record already exists for the resolved product + supplier, it is updated. - Otherwise a new record is created. - [Get a supplier SKU](https://docs.joinluminous.com/api-reference/supplier-skus/get-a-supplier-sku.md): Returns a single supplier SKU record by ID. - [Update a supplier SKU](https://docs.joinluminous.com/api-reference/supplier-skus/update-a-supplier-sku.md): Updates a supplier SKU record. All fields are optional — only fields present in the body are changed. - [Delete a supplier SKU](https://docs.joinluminous.com/api-reference/supplier-skus/delete-a-supplier-sku.md): Permanently deletes a supplier SKU record. #### Pricing - [Price Schedules](https://docs.joinluminous.com/api-reference/pricing/price-schedules.md): Get a paginated list of price schedules with optional filtering. - [Price Schedule](https://docs.joinluminous.com/api-reference/pricing/price-schedule.md): Get detailed information for a specific price schedule - [Price Levels](https://docs.joinluminous.com/api-reference/pricing/price-levels.md): Get a paginated list of price levels with optional filtering. - [Price Level](https://docs.joinluminous.com/api-reference/pricing/price-level.md): Get detailed information for a specific price level ### Inventory & Warehousing #### Warehouses - [Warehouses](https://docs.joinluminous.com/api-reference/locations/warehouses.md): Get a paginated list of warehouses with optional filtering. - [Create warehouse](https://docs.joinluminous.com/api-reference/locations/create-warehouse.md): Create a new warehouse (top-level location). - [Get warehouse by ID](https://docs.joinluminous.com/api-reference/locations/get-warehouse-by-id.md): Retrieve a specific warehouse by its ID - [Update warehouse](https://docs.joinluminous.com/api-reference/locations/update-warehouse.md): Update an existing warehouse. All fields are optional. - [Delete warehouse](https://docs.joinluminous.com/api-reference/locations/delete-warehouse.md): Soft-delete a warehouse by ID (sets `status = 0`). #### Warehouse Groups - [Warehouse groups](https://docs.joinluminous.com/api-reference/locations/warehouse-groups.md): Get a paginated list of warehouse groups. - [Create warehouse group](https://docs.joinluminous.com/api-reference/locations/create-warehouse-group.md): Create a new warehouse group with optional warehouse assignments. - [Get warehouse group by ID](https://docs.joinluminous.com/api-reference/locations/get-warehouse-group-by-id.md): Retrieve a specific warehouse group by its ID. - [Update warehouse group](https://docs.joinluminous.com/api-reference/locations/update-warehouse-group.md): Update an existing warehouse group. All fields are optional. - [Delete warehouse group](https://docs.joinluminous.com/api-reference/locations/delete-warehouse-group.md): Delete a warehouse group by ID. #### Locations - [Locations](https://docs.joinluminous.com/api-reference/locations/locations.md): Get a paginated list of locations with optional filtering. - [Create location](https://docs.joinluminous.com/api-reference/locations/create-location.md): Create a new location (a child of an existing warehouse, e.g. a bin or aisle). - [Get location by ID](https://docs.joinluminous.com/api-reference/locations/get-location-by-id.md): Retrieve a specific location by its ID - [Update location](https://docs.joinluminous.com/api-reference/locations/update-location.md): Update an existing location. All fields are optional. - [Delete location](https://docs.joinluminous.com/api-reference/locations/delete-location.md): Soft-delete a location (sets `status = 0`). Only non-warehouse locations may be deleted via this endpoint — i.e. rows whose `parent_id` is not null and not zero. To delete a top-level warehouse, use `DELETE /warehouses/{id}`. #### Inventory - [Inventory stock](https://docs.joinluminous.com/api-reference/inventory/inventory-stock.md): Get a paginated list of inventory stock levels with various filter options. - [Export inventory stock (cursor pagination)](https://docs.joinluminous.com/api-reference/inventory/export-inventory-stock-cursor-pagination.md): Bulk-export stock for all active products (`status > 0`) using cursor-based keyset pagination. Designed for full inventory syncs and reporting pipelines that need every product's warehouse, location, and lot-level stock in one pass. - [List cost layers](https://docs.joinluminous.com/api-reference/inventory/list-cost-layers.md): List **legacy** FIFO/WAC cost layers (`rfq_stock_cost_layers`) with offset pagination. Each layer represents a quantity of a product received into a warehouse at a specific unit cost. - [Get cost layer by ID](https://docs.joinluminous.com/api-reference/inventory/get-cost-layer-by-id.md): Retrieve a single legacy FIFO/WAC cost layer (`rfq_stock_cost_layers`) by ID. Returns the same object shape as the list endpoint. - [Adjust inventory stock](https://docs.joinluminous.com/api-reference/inventory/adjust-inventory-stock.md): Adjust on-hand stock for any given product in a given location. Either the product `sku` or `product_id` is required to identify the product. - [Inventory adjustments](https://docs.joinluminous.com/api-reference/inventory/inventory-adjustments.md): Get a paginated list of posted inventory adjustments, so integrations can audit the adjustments they have submitted. Results default to newest first (`created_at:desc`). Each item is an adjustment header; the per-line `entries` are returned only by `GET /inventory/adjustments/{adjustmentId}`. - [Inventory adjustment](https://docs.joinluminous.com/api-reference/inventory/inventory-adjustment.md): Get a single posted inventory adjustment, including its per-SKU/location detail lines in the `entries` array. - [Transfer inventory between locations (PickFlow)](https://docs.joinluminous.com/api-reference/inventory/transfer-inventory-between-locations-pickflow.md): Move on-hand stock from one location to another. Each item identifies a product by `sku` or `product_id` (or a specific `rfq_stock_location_id`) and a `quantity`. Lot-tracked products require a `lot_id`, `lot_number`, or `rfq_stock_location_id`. The source and destination locations must differ. - [Recount a bin/lot row (PickFlow)](https://docs.joinluminous.com/api-reference/inventory/recount-a-binlot-row-pickflow.md): Set one stock row's on-hand to an absolute counted quantity (recorded as a manual recount adjustment). Send `expected_quantity` — the on-hand the operator was shown — and the recount is refused with `409` if stock moved in the meantime (a pick or receipt), rather than overwriting a quantity nobody l… #### Lots - [Create a lot](https://docs.joinluminous.com/api-reference/lots/create-a-lot.md): Creates a single lot (batch) for a lot-tracked product. Metadata only — no stock is placed. Add or change lot quantities with [`POST /inventory/adjustments`](/api-reference/inventory/post-inventoryadjustments). - [Get a lot](https://docs.joinluminous.com/api-reference/lots/get-a-lot.md): Returns a single lot's full metadata, including fields the inventory stock view omits (`manufacturerCode`, `status`, `originalQuantity`). - [Update a lot](https://docs.joinluminous.com/api-reference/lots/update-a-lot.md): Partially updates a lot's metadata. Only fields present in the body are changed; omitted fields are left untouched. Pass `null` to clear a nullable field. Metadata only — lot quantities are changed through inventory adjustments, not here. - [Delete a lot](https://docs.joinluminous.com/api-reference/lots/delete-a-lot.md): Soft-deletes a lot, mirroring the UI delete: the lot's regular on-hand stock is automatically cleared to zero (via an inventory adjustment posted by the authenticated user) and then the lot is soft-deleted. - [Bulk delete lots](https://docs.joinluminous.com/api-reference/lots/bulk-delete-lots.md): Best-effort bulk soft-delete of lots. Each lot follows the same UI-parity behavior as `DELETE /lots/{lotId}`: its regular on-hand stock is auto-cleared (via an inventory adjustment posted by the authenticated user) and the lot is soft-deleted. A per-lot failure — an unknown ID, or a lot whose stock… - [List a product's lots](https://docs.joinluminous.com/api-reference/lots/list-a-products-lots.md): Returns all lots for a product, newest first. Soft-deleted lots are excluded unless `include_deleted=1`; each lot carries `deletedAt` (`null` for a live lot). The same lot number can exist as a deleted lot and a live lot (e.g. after a lot was deleted and re-created) — pass both IDs to `GET /products… - [List a product's Qty Log movements](https://docs.joinluminous.com/api-reference/lots/list-a-products-qty-log-movements.md): Returns a product's (SKU's) Qty Log movements — the SKU's Qty Logs tab — filtered, sorted and paged on the server. Use it to trace a lot's inventory history: pass the IDs from `GET /products/{productId}/lots?include_deleted=1` to `lot_id[in]` (the same lot number can exist as a deleted lot and a liv… #### Transfer Orders - [Transfer orders](https://docs.joinluminous.com/api-reference/transfer-orders/transfer-orders.md): Get a paginated list of transfer orders. - [Create a transfer order](https://docs.joinluminous.com/api-reference/transfer-orders/create-a-transfer-order.md): Create a new transfer order. Send `status: DRAFT` to create a draft you can edit with `PUT /transfer-orders/{id}` and post later with `POST /transfer-orders/{id}/post`, or `status: POSTED` to post it immediately. Creating with `status: POSTED` returns `403` when the API user is assigned to specific… - [Single transfer order](https://docs.joinluminous.com/api-reference/transfer-orders/single-transfer-order.md): Get details of a specific transfer order by ID - [Update a draft transfer order](https://docs.joinluminous.com/api-reference/transfer-orders/update-a-draft-transfer-order.md): Replace a draft transfer order. The body is the same as `POST /transfer-orders`; items and extra costs are replaced with the ones sent. Only drafts can be updated, and `status` must be `DRAFT` (use `POST /transfer-orders/{id}/post` to post). The order can keep its own `number`. Shipment type, suppli… - [Post a draft transfer order](https://docs.joinluminous.com/api-reference/transfer-orders/post-a-draft-transfer-order.md): Post a draft transfer order. Posting creates the linked sales order and purchase order (returned as `sales_order_id` and `purchase_order_id`). - [Push transfer order as inbound shipment to WMS](https://docs.joinluminous.com/api-reference/transfer-orders/push-transfer-order-as-inbound-shipment-to-wms.md): Push a posted transfer order to the WMS as an inbound shipment. This pushes the purchase order that posting the transfer order created, the same way as `POST /purchase-orders/{purchaseOrderId}/push-inbound-shipment` (including sending an EDI 943 instead when the warehouse group is externally managed… - [Get transfer order custom fields](https://docs.joinluminous.com/api-reference/transfer-orders/get-transfer-order-custom-fields.md): List the custom field values on one transfer order, keyed by label. Every custom field defined for transfer orders is listed, with `null` for fields that have no value on this transfer order. A token restricted from PII gets `{}`. Equivalent to `GET /{recordType}/{recordId}/custom-fields` with `reco… - [Update transfer order custom fields](https://docs.joinluminous.com/api-reference/transfer-orders/update-transfer-order-custom-fields.md): Set custom field values on one transfer order, whatever its status. Send a `{label: value}` object; the update is partial and validated against the custom fields defined for transfer orders: - Only the labels sent are changed; other fields keep their values. - Labels are matched case-insensitively.… - [List transfer routes](https://docs.joinluminous.com/api-reference/transfer-orders/list-transfer-routes.md): A **transfer route** is the per warehouse-pair default for transfers from one warehouse to another: each side is either `worked` (people handle it) or `automated` (it happens on its own). The source side can also be `three_pl` ("Shipped by 3PL"): the transfer ships on the date the source warehouse's… - [Create or replace a transfer route](https://docs.joinluminous.com/api-reference/transfer-orders/create-or-replace-a-transfer-route.md): Create or replace the route for a warehouse pair, keyed by `source_warehouse_id` → `destination_warehouse_id`. Idempotent: applying the same body twice changes nothing, so this is the call to use for configuration. `PATCH /transfer-routes` (on the collection) behaves the same. - [Create or replace a transfer route (PATCH alias)](https://docs.joinluminous.com/api-reference/transfer-orders/create-or-replace-a-transfer-route-patch-alias.md): Same as `PUT /transfer-routes`: creates or replaces the route for the warehouse pair in the body (`201` created, `200` replaced). To change only some fields of an existing route, use `PATCH /transfer-routes/{transferRouteId}`. - [Get a transfer route](https://docs.joinluminous.com/api-reference/transfer-orders/get-a-transfer-route.md): Return one transfer route. - [Update a transfer route](https://docs.joinluminous.com/api-reference/transfer-orders/update-a-transfer-route.md): Change only the fields sent: `source_mode`, `destination_mode`, `channel_id`. - [Delete a transfer route](https://docs.joinluminous.com/api-reference/transfer-orders/delete-a-transfer-route.md): Delete a route. New transfers between the pair then keep the normal transfer-order defaults; existing transfers are unchanged. #### Inbound Shipments - [Inbound shipments](https://docs.joinluminous.com/api-reference/inbound-shipments/inbound-shipments.md): Get a paginated list of inbound shipments with optional filtering. Results are ordered by `updated_at` descending — use `updated_at[gt]` for incremental polling. - [Get inbound shipment](https://docs.joinluminous.com/api-reference/inbound-shipments/get-inbound-shipment.md): Get a single inbound shipment by ID. - [Amazon FBA inbound plans not yet shipped](https://docs.joinluminous.com/api-reference/inbound-shipments/amazon-fba-inbound-plans-not-yet-shipped.md): List active Amazon FBA inbound plans (Fulfillment Inbound API 2024-03-20) for one Amazon FBA integration account that have no confirmed shipment yet, so they do not appear in `GET /inbound-shipments`. A plan is included when it has no shipments, or every shipment is still `UNCONFIRMED`. Each item ca… ### Purchasing #### Purchase Orders - [Purchase orders](https://docs.joinluminous.com/api-reference/purchase-orders/purchase-orders.md): Get a paginated list of purchase orders with optional filtering. - [Create a new purchase order](https://docs.joinluminous.com/api-reference/purchase-orders/create-a-new-purchase-order.md): Create a new purchase order with items, payments, and optional metadata. - [Bulk create purchase orders](https://docs.joinluminous.com/api-reference/purchase-orders/bulk-create-purchase-orders.md): Create up to 100 purchase orders in one request. Each element of `purchase_orders` is the same object as `POST /purchase-orders` and is validated and created on its own, in the order given. - [Email purchase orders to suppliers](https://docs.joinluminous.com/api-reference/purchase-orders/email-purchase-orders-to-suppliers.md): Email up to 100 purchase orders to their suppliers, the same as sending them from the app. Purchase orders are grouped by supplier, one email per supplier, addressed to that supplier's contacts with email addresses. Each email can attach the purchase order PDFs, a CSV or Excel file per purchase orde… - [List purchase order email templates](https://docs.joinluminous.com/api-reference/purchase-orders/list-purchase-order-email-templates.md): List the purchase order email templates, tenant-wide ones first, then supplier-specific ones. Pass a template's `id` as `template_id` to `POST /purchase-orders/email`. Returns `404` when document email is not enabled for your account. - [Single purchase order](https://docs.joinluminous.com/api-reference/purchase-orders/single-purchase-order.md): Get details of a specific purchase order by ID - [Update a purchase order](https://docs.joinluminous.com/api-reference/purchase-orders/update-a-purchase-order.md): Update an existing purchase order. All fields are optional - only provided fields will be updated. - [Update a purchase order (PATCH alias)](https://docs.joinluminous.com/api-reference/purchase-orders/update-a-purchase-order-patch-alias.md): Same as `PUT /purchase-orders/{id}`: only the fields you send change, and `items`, when sent, replaces every line. See that operation for the full behavior, including supplier currency (`currency_code`, `exchange_rate`, `items[].presentment_unit_price`). - [Delete a purchase order](https://docs.joinluminous.com/api-reference/purchase-orders/delete-a-purchase-order.md): Delete a purchase order. All associated stock counts and incoming quantities are automatically adjusted when the order is deleted. - [Purchase order PDF](https://docs.joinluminous.com/api-reference/purchase-orders/purchase-order-pdf.md): Download a purchase order as a PDF, rendered with the account's default supplier purchase order template (the same default the in-app PDF export uses when no template is chosen). There is no template parameter. - [List extra costs](https://docs.joinluminous.com/api-reference/purchase-orders/list-extra-costs.md): List the extra-cost lines stored on one purchase order, including lines created by cost rules and lines copied from a transfer order. Read only; there is no write on this path. - [List messages](https://docs.joinluminous.com/api-reference/purchase-orders/list-messages.md): List the comments on a purchase order's staff thread, newest first. Both `internal` comments and comments `shared` with the supplier are returned. Read only. - [Append line items to a purchase order](https://docs.joinluminous.com/api-reference/purchase-orders/append-line-items-to-a-purchase-order.md): Append one or more line items to an existing **active** purchase order without pruning any existing lines. This is the additive counterpart to `PUT /purchase-orders/{id}`, which is replace-all (any omitted line is deleted). The appended lines go through the same builders as `POST /purchase-orders` —… - [Edit a purchase-order line's quantity or unit price](https://docs.joinluminous.com/api-reference/purchase-orders/edit-a-purchase-order-lines-quantity-or-unit-price.md): Change one purchase-order line's `quantity` and/or `unit_price` in place. Send either field or both. The line keeps its `id`, so its bill and receipt links stay attached, and the other lines on the purchase order are left alone. By contrast, the full-replace `PUT /purchase-orders/{id}` prunes any li… - [Set or clear a purchase-order line's lot](https://docs.joinluminous.com/api-reference/purchase-orders/set-or-clear-a-purchase-order-lines-lot.md): Assign a lot to a single purchase-order line item, or clear the one it already has, **ahead of receiving**. The change is lot-only and stock-neutral — nothing is received, allocated, or costed — so an automated process can annotate the lots on an active purchase order without going through the repla… - [Close or reopen a purchase-order line](https://docs.joinluminous.com/api-reference/purchase-orders/close-or-reopen-a-purchase-order-line.md): Close a single purchase-order line **short** — mark the rest of it as no longer expected — or reopen a previously closed line. Ordered and received quantities are **not** rewritten, so the purchase order keeps an accurate record of what was ordered versus what actually arrived. - [Allocate a sales order onto a purchase order](https://docs.joinluminous.com/api-reference/purchase-orders/allocate-a-sales-order-onto-a-purchase-order.md): Peg one or more sales-order lines onto an existing **active** purchase order so they auto-fulfil when the purchase order is received (the "add-to-existing-PO" step of the Purchase-to-Order / container workflow). The allocation appends the required line to the purchase order and creates a peg from th… - [Reverse (unallocate) an allocation peg](https://docs.joinluminous.com/api-reference/purchase-orders/reverse-unallocate-an-allocation-peg.md): Reverse a single allocation peg created by the Purchase-to-Order workflow (the inverse of `POST /purchase-orders/{purchaseOrderId}/allocate`), freeing the pegged stock so it reposts as available against the incoming purchase order / on-hand supply. - [Purchase order items](https://docs.joinluminous.com/api-reference/purchase-orders/purchase-order-items.md): Get a paginated list of purchase order items with optional filtering. Lines of a deleted purchase order are never returned, however the purchase order was deleted. - [Preview a purchase order's arrival due date](https://docs.joinluminous.com/api-reference/purchase-orders/preview-a-purchase-orders-arrival-due-date.md): Returns the Arrival Due Date that the Transit Time Matrix (or an override) gives for a warehouse, freight mode and requested ship date, before the purchase order exists. Read-only: nothing is created or changed. Use it to show the date on a new-PO form before the PO is saved. - [Create a payment for a purchase order](https://docs.joinluminous.com/api-reference/purchase-orders/create-a-payment-for-a-purchase-order.md): Create a new payment for a purchase order. The purchase order totals (`total_paid` and `total_due`) are automatically recalculated after the payment is created. - [Update a purchase order payment](https://docs.joinluminous.com/api-reference/purchase-orders/update-a-purchase-order-payment.md): Update an existing payment for a purchase order. All fields are optional - only provided fields will be updated. The purchase order totals (`total_paid` and `total_due`) are automatically recalculated after the payment is updated. - [Delete a purchase order payment](https://docs.joinluminous.com/api-reference/purchase-orders/delete-a-purchase-order-payment.md): Delete a payment from a purchase order. The purchase order totals (`total_paid` and `total_due`) are automatically recalculated after the payment is deleted. - [Move a purchase order payment](https://docs.joinluminous.com/api-reference/purchase-orders/move-a-purchase-order-payment.md): Move all or part of a payment from one purchase order to another purchase order of the same vendor. - [Get billable lines for a purchase order](https://docs.joinluminous.com/api-reference/purchase-orders/get-billable-lines-for-a-purchase-order.md): Returns billable lines for a specific purchase order. - [List payment obligations for a purchase order](https://docs.joinluminous.com/api-reference/purchase-orders/list-payment-obligations-for-a-purchase-order.md): Returns a list of payment obligations for a specific purchase order. - [Create a payment obligation for a purchase order](https://docs.joinluminous.com/api-reference/purchase-orders/create-a-payment-obligation-for-a-purchase-order.md): Create a new payment obligation for a specific purchase order. - [Generate payment obligations for a purchase order](https://docs.joinluminous.com/api-reference/purchase-orders/generate-payment-obligations-for-a-purchase-order.md): Auto-generate payment obligations from purchase order terms. - [Push purchase order as inbound shipment to WMS](https://docs.joinluminous.com/api-reference/purchase-orders/push-purchase-order-as-inbound-shipment-to-wms.md): Push the supplier purchase order to its externally managed warehouse (TrackStar inbound shipment create). Requires warehouse group with external management and OMS SKU mappings. #### Purchase Order Shipments - [Purchase order shipments](https://docs.joinluminous.com/api-reference/purchase-order-shipments/purchase-order-shipments.md): Get a paginated list of supplier purchase order shipments with optional filtering. Results are ordered by `updated_at` descending — use `updated_at[gt]` for incremental polling. - [Create purchase order shipment](https://docs.joinluminous.com/api-reference/purchase-order-shipments/create-purchase-order-shipment.md): Create one supplier purchase order shipment, using the same writer as the in-app form. The body uses the same snake_case field names as the shipment response. - [Get purchase order shipment](https://docs.joinluminous.com/api-reference/purchase-order-shipments/get-purchase-order-shipment.md): Get a single supplier purchase order shipment by ID. - [Get purchase order shipment cartons](https://docs.joinluminous.com/api-reference/purchase-order-shipments/get-purchase-order-shipment-cartons.md): Get the shipment's saved cartons. When none are saved, returns a suggested carton structure instead (`is_saved: false`) built the same way as `GET /purchase-order-shipments/{id}/packages/suggested`. Includes the per-line packing check. - [Suggest purchase order shipment cartons](https://docs.joinluminous.com/api-reference/purchase-order-shipments/suggest-purchase-order-shipment-cartons.md): Build a fresh carton suggestion from the shipment's lines. Nothing is saved, and saved cartons are ignored (`is_saved` is always false). Save it with `PUT /purchase-order-shipments/{id}/packages` to use it. - [Replace purchase order shipment cartons](https://docs.joinluminous.com/api-reference/purchase-order-shipments/replace-purchase-order-shipment-cartons.md): Replace every carton on the shipment with the given list. Send an empty `packages` array to remove the saved cartons, so the shipment goes back to the suggested structure. Saved cartons are sent to the warehouse when the shipment is pushed as an inbound shipment (for mappings that use cartons). - [Push purchase order shipment as inbound shipment to WMS](https://docs.joinluminous.com/api-reference/purchase-order-shipments/push-purchase-order-shipment-as-inbound-shipment-to-wms.md): Push one purchase order shipment to its externally managed warehouse as an inbound shipment (TrackStar inbound shipment create). Requires a warehouse group with external management and OMS SKU mappings. - [Get purchase order shipment box labels](https://docs.joinluminous.com/api-reference/purchase-order-shipments/get-purchase-order-shipment-box-labels.md): Get the 3PL's box content labels (PDF) for the shipment's pushed inbound. Currently available for Flexport inbounds only; check `box_labels_available` on the shipment's cartons. - [List shipments for a purchase order](https://docs.joinluminous.com/api-reference/purchase-order-shipments/list-shipments-for-a-purchase-order.md): Get a paginated list of shipments scoped to a specific purchase order. Returns the same shape as `GET /purchase-order-shipments`, filtered to shipments that have at least one line item tied to `{purchaseOrderId}`. - [Get shipment by purchase order](https://docs.joinluminous.com/api-reference/purchase-order-shipments/get-shipment-by-purchase-order.md): Get a single shipment scoped to a specific purchase order. Returns 404 if the shipment exists but has no line item tied to `{purchaseOrderId}`. #### Supplier Portal - [List supplier acceptance responses](https://docs.joinluminous.com/api-reference/supplier-portal/list-supplier-acceptance-responses.md): Get a paginated list of a supplier's responses to a purchase order, made through the supplier portal. Newest first. - [List supplier extra-cost requests](https://docs.joinluminous.com/api-reference/supplier-portal/list-supplier-extra-cost-requests.md): Get a paginated list of costs a supplier asked to add to a purchase order, and what was decided about each. - [List quality inspections for a purchase order](https://docs.joinluminous.com/api-reference/supplier-portal/list-quality-inspections-for-a-purchase-order.md): Get a paginated list of quality inspections filed against a purchase order, by anyone. - [Mint and email a supplier portal link](https://docs.joinluminous.com/api-reference/supplier-portal/mint-and-email-a-supplier-portal-link.md): Mint a one-click portal link per contact and email each one. The link lets a supplier open the purchase order without an account or password and respond to it — accepting, rejecting, or proposing different quantities, prices or ship dates. - [Revoke a supplier's portal access](https://docs.joinluminous.com/api-reference/supplier-portal/revoke-a-suppliers-portal-access.md): Revoke a supplier's portal access to this purchase order. Revokes live sessions **and** burns any link token not yet exchanged — otherwise revoking would leave a working link sitting in an unopened inbox. #### Receiving Reports - [Receiving reports](https://docs.joinluminous.com/api-reference/receiving-reports/receiving-reports.md): Get a paginated list of receiving reports with optional filtering. - [Create a receiving report](https://docs.joinluminous.com/api-reference/receiving-reports/create-a-receiving-report.md): Create a new receiving report, booking the received quantities against the referenced purchase order line items. - [Single receiving report](https://docs.joinluminous.com/api-reference/receiving-reports/single-receiving-report.md): Get details of a specific receiving report by ID - [Correct a posted receiving-report line quantity](https://docs.joinluminous.com/api-reference/receiving-reports/correct-a-posted-receiving-report-line-quantity.md): Preview or apply a quantity correction for a **posted** receiving-report line, identified by its receiving-report *item* id. - [Get billable lines for a receiving report](https://docs.joinluminous.com/api-reference/receiving-reports/get-billable-lines-for-a-receiving-report.md): Returns the billable lines for a receiving report — the lines you would turn into a vendor bill. A single receiving report can consolidate lines from several purchase orders, and those purchase orders can belong to different vendors, so `data` is a flat list of every billable line on the receipt. Us… #### Defective Reports - [Defective reports](https://docs.joinluminous.com/api-reference/defective-reports/defective-reports.md): List defective reports, newest `reported_date` first. Returns the same rows as the Inventory > Defectives screen for the same filters. Deleted reports are never returned. - [Create a defective report](https://docs.joinluminous.com/api-reference/defective-reports/create-a-defective-report.md): Record defective units of one SKU received on a purchase order, the way the Inventory > Defectives screen's "add item" picker does. The report gets one line, built from the SKU's latest receiving-report line on that purchase order (unit price, unit, vendor, product name and received date come from t… - [Get a defective report](https://docs.joinluminous.com/api-reference/defective-reports/get-a-defective-report.md): Get one defective report with its lines. Deleted reports return `404`. #### Payment Obligations - [Get payment obligations dashboard](https://docs.joinluminous.com/api-reference/payment-obligations/get-payment-obligations-dashboard.md): Returns dashboard summary data for payment obligations. - [List payment obligations](https://docs.joinluminous.com/api-reference/payment-obligations/list-payment-obligations.md): Get a paginated list of payment obligations. - [Get a payment obligation](https://docs.joinluminous.com/api-reference/payment-obligations/get-a-payment-obligation.md): Get a single payment obligation by ID. - [Update a payment obligation](https://docs.joinluminous.com/api-reference/payment-obligations/update-a-payment-obligation.md): Update an existing payment obligation. - [Update payment obligation status](https://docs.joinluminous.com/api-reference/payment-obligations/update-payment-obligation-status.md): Update the status of a payment obligation. - [Link a bill to a payment obligation](https://docs.joinluminous.com/api-reference/payment-obligations/link-a-bill-to-a-payment-obligation.md): Link an existing bill to a payment obligation. - [Unlink a bill from a payment obligation](https://docs.joinluminous.com/api-reference/payment-obligations/unlink-a-bill-from-a-payment-obligation.md): Remove the link between a bill and a payment obligation. #### Cost Rules - [List cost rules](https://docs.joinluminous.com/api-reference/cost-rules/list-cost-rules.md): Paginated list of cost rules (vendor-scoped tiered pricing / extra-cost rules). - [Create a cost rule](https://docs.joinluminous.com/api-reference/cost-rules/create-a-cost-rule.md): Create a cost rule. Accepts the same snake_case body as the admin Cost Rules API. Requires the tenant **Cost Rules** feature flag. - [Single cost rule](https://docs.joinluminous.com/api-reference/cost-rules/single-cost-rule.md): Get a single cost rule by ID, including nested `scopes`, `conditions`, `tiers` (with `effects`), and `vendor_name`. Requires the tenant **Cost Rules** feature flag. - [Update a cost rule](https://docs.joinluminous.com/api-reference/cost-rules/update-a-cost-rule.md): Update an existing cost rule. Same body shape as create, but every field is optional — send the fields you intend to change. Nested collections (`scopes`, `conditions`, `tiers`) **replace** the existing set when provided. Requires the tenant **Cost Rules** feature flag. - [Delete a cost rule](https://docs.joinluminous.com/api-reference/cost-rules/delete-a-cost-rule.md): Permanently delete a cost rule. Requires the tenant **Cost Rules** feature flag. ### Accounts Payable #### Bills - [List bills](https://docs.joinluminous.com/api-reference/bills/list-bills.md): Get a paginated list of bills with optional filtering. - [Create a bill](https://docs.joinluminous.com/api-reference/bills/create-a-bill.md): Create a new bill record. - [Single bill](https://docs.joinluminous.com/api-reference/bills/single-bill.md): Get details of a specific bill by ID. - [Update a bill](https://docs.joinluminous.com/api-reference/bills/update-a-bill.md): Update an existing bill by ID. Send only the fields you want to change. - [Bills summary](https://docs.joinluminous.com/api-reference/bills/bills-summary.md): Returns summary and aggregate data for bills, such as totals and counts by status. - [Check for duplicate bill](https://docs.joinluminous.com/api-reference/bills/check-for-duplicate-bill.md): Check whether a bill already exists based on the provided query parameters. Useful for preventing duplicate bill entry. - [Calculate bill due date](https://docs.joinluminous.com/api-reference/bills/calculate-bill-due-date.md): Calculate the due date for a bill based on the provided payment terms and bill date. - [Prefill bill from shipments](https://docs.joinluminous.com/api-reference/bills/prefill-bill-from-shipments.md): Get prefilled bill data based on one or more shipments. Use this to auto-populate a new bill from incoming shipment records. - [Parse bill import](https://docs.joinluminous.com/api-reference/bills/parse-bill-import.md): Parse imported bill data from an uploaded file or raw input. Returns structured bill data ready for review and creation. - [Bills by purchase order](https://docs.joinluminous.com/api-reference/bills/bills-by-purchase-order.md): Returns all bills associated with a specific purchase order. - [Bills by vendor](https://docs.joinluminous.com/api-reference/bills/bills-by-vendor.md): Returns all bills for a specific vendor (company). - [Update bill status](https://docs.joinluminous.com/api-reference/bills/update-bill-status.md): Update the status of an existing bill. - [Post a bill](https://docs.joinluminous.com/api-reference/bills/post-a-bill.md): Post a bill to the connected accounting provider (e.g. QuickBooks or Xero), marking it as finalized and ready for payment processing. - [Reopen a bill](https://docs.joinluminous.com/api-reference/bills/reopen-a-bill.md): Reopen a previously posted or closed bill, returning it to an editable state. - [Hold a bill](https://docs.joinluminous.com/api-reference/bills/hold-a-bill.md): Place a bill on hold or mark it as disputed, preventing it from being processed for payment. A reason is required and is recorded on the bill. - [Unhold a bill](https://docs.joinluminous.com/api-reference/bills/unhold-a-bill.md): Remove the hold from a bill, allowing it to be processed for payment again. - [Link a purchase order to a bill](https://docs.joinluminous.com/api-reference/bills/link-a-purchase-order-to-a-bill.md): Link another purchase order to a bill, for a vendor invoice that covers several POs. The purchase order must belong to the same vendor as the bill. The bill cannot be cancelled, on hold or disputed, and the PO cannot already be linked. - [Unlink a purchase order from a bill](https://docs.joinluminous.com/api-reference/bills/unlink-a-purchase-order-from-a-bill.md): Remove a linked purchase order from a bill. The bill cannot be cancelled or on hold. - [Link a work order to a bill](https://docs.joinluminous.com/api-reference/bills/link-a-work-order-to-a-bill.md): Link a production-run work order to a bill, for a vendor invoice that covers a production run. The work order must belong to the same vendor as the bill. The bill cannot be cancelled, on hold or disputed, and the work order cannot already be linked. - [Unlink a work order from a bill](https://docs.joinluminous.com/api-reference/bills/unlink-a-work-order-from-a-bill.md): Remove a linked work order from a bill. The bill cannot be cancelled, on hold or disputed. #### Bill Payments - [Record a bill payment](https://docs.joinluminous.com/api-reference/bills/record-a-bill-payment.md): Record a payment against a bill. - [Delete a bill payment](https://docs.joinluminous.com/api-reference/bills/delete-a-bill-payment.md): Remove a payment from a bill. - [Void a bill payment](https://docs.joinluminous.com/api-reference/bills/void-a-bill-payment.md): Void a payment on a bill. - [Move a bill payment](https://docs.joinluminous.com/api-reference/bills/move-a-bill-payment.md): Move all or part of a recorded payment from one bill to another bill of the same vendor. #### Bill Attachments - [Upload a bill attachment](https://docs.joinluminous.com/api-reference/bills/upload-a-bill-attachment.md): Upload an attachment to a bill. - [Download a bill attachment](https://docs.joinluminous.com/api-reference/bills/download-a-bill-attachment.md): Download an attachment file from a bill. - [Delete a bill attachment](https://docs.joinluminous.com/api-reference/bills/delete-a-bill-attachment.md): Delete an attachment from a bill. #### Bill Allocations - [Bills allocation inbox](https://docs.joinluminous.com/api-reference/bills/bills-allocation-inbox.md): Returns a list of bills that need allocation attention, such as bills with unallocated amounts or pending cost allocations. - [List bill allocations](https://docs.joinluminous.com/api-reference/bills/list-bill-allocations.md): List allocations for a bill. - [Create a bill allocation](https://docs.joinluminous.com/api-reference/bills/create-a-bill-allocation.md): Create an allocation for a bill. - [Delete a bill allocation](https://docs.joinluminous.com/api-reference/bills/delete-a-bill-allocation.md): Remove an allocation from a bill. - [Auto-allocate bill](https://docs.joinluminous.com/api-reference/bills/auto-allocate-bill.md): Automatically allocate bill line items. - [Bulk reconcile bills to a purchase order](https://docs.joinluminous.com/api-reference/bills/bulk-reconcile-bills-to-a-purchase-order.md): Link up to 100 existing bills to one purchase order, then run the same receipt auto-allocation as `POST /bills/{id}/auto-allocate` on each bill. - [Get bill billable lines](https://docs.joinluminous.com/api-reference/bills/get-bill-billable-lines.md): List billable lines for a bill. - [Get bill candidate lines](https://docs.joinluminous.com/api-reference/bills/get-bill-candidate-lines.md): List candidate lines for a bill. - [Get eligible lines for a bill item](https://docs.joinluminous.com/api-reference/bills/get-eligible-lines-for-a-bill-item.md): List eligible lines for a specific bill item. - [Get AI suggestions for a bill item](https://docs.joinluminous.com/api-reference/bills/get-ai-suggestions-for-a-bill-item.md): Get AI-powered allocation suggestions for a specific bill item. - [Prorate allocation for a bill item](https://docs.joinluminous.com/api-reference/bills/prorate-allocation-for-a-bill-item.md): Prorate and allocate a specific bill item across eligible lines. - [Get bill variance](https://docs.joinluminous.com/api-reference/bills/get-bill-variance.md): Returns variance data for a bill. - [Resolve bill variance](https://docs.joinluminous.com/api-reference/bills/resolve-bill-variance.md): Resolve variance on a bill. - [Get billable lines for a shipment](https://docs.joinluminous.com/api-reference/bills/get-billable-lines-for-a-shipment.md): Returns billable lines for a specific shipment. - [Get billable lines for an assembly order](https://docs.joinluminous.com/api-reference/bills/get-billable-lines-for-an-assembly-order.md): Returns the assembly order component lines and extra costs (manufacturing service fees) that still have a remaining billable amount. Use this to pre-fill a bill form when creating a bill from an assembly order. - [Get billable lines for a work order](https://docs.joinluminous.com/api-reference/bills/get-billable-lines-for-a-work-order.md): Returns the billable lines aggregated from every assembly order linked to the work order — component lines and extra costs (manufacturing service fees) that still have a remaining billable amount. Use this to pre-fill a bill form when creating a bill from a work order. - [Get billable lines for a production batch](https://docs.joinluminous.com/api-reference/bills/get-billable-lines-for-a-production-batch.md): Returns the billable lines aggregated from every work order in the production batch (production run), which in turn come from each work order's linked assembly orders — component lines and extra costs (manufacturing service fees) that still have a remaining billable amount. Use this to pre-fill a bi… #### Prepayments - [List prepayments](https://docs.joinluminous.com/api-reference/prepayments/list-prepayments.md): Get a paginated list of prepayments. - [Create a prepayment](https://docs.joinluminous.com/api-reference/prepayments/create-a-prepayment.md): Create a new prepayment (vendor deposit) record, optionally linked to one or more purchase orders. A prepayment that exceeds a PO's remaining balance is accepted as-is (no overpayment confirmation is required through the API). - [Apply a prepayment](https://docs.joinluminous.com/api-reference/prepayments/apply-a-prepayment.md): Apply a prepayment to a bill or payment obligation. - [Transfer a prepayment to another purchase order](https://docs.joinluminous.com/api-reference/prepayments/transfer-a-prepayment-to-another-purchase-order.md): Move all or part of a prepayment's credit to another purchase order or production-run work order of the same vendor. Send exactly one target: `purchase_order_id` or `work_order_id`. - [Reverse a prepayment application](https://docs.joinluminous.com/api-reference/prepayments/reverse-a-prepayment-application.md): Reverse a previously applied prepayment application. #### Vendor Credits - [List vendor credits](https://docs.joinluminous.com/api-reference/vendor-credits/list-vendor-credits.md): Get a paginated list of vendor credits. - [Create a vendor credit](https://docs.joinluminous.com/api-reference/vendor-credits/create-a-vendor-credit.md): Create a new vendor credit record. - [Get a vendor credit](https://docs.joinluminous.com/api-reference/vendor-credits/get-a-vendor-credit.md): Get a single vendor credit by ID. - [Apply a vendor credit](https://docs.joinluminous.com/api-reference/vendor-credits/apply-a-vendor-credit.md): Apply a vendor credit to a bill or payment obligation. - [Cancel a vendor credit](https://docs.joinluminous.com/api-reference/vendor-credits/cancel-a-vendor-credit.md): Cancel an existing vendor credit. - [Delete a vendor credit application](https://docs.joinluminous.com/api-reference/vendor-credits/delete-a-vendor-credit-application.md): Delete a vendor credit application. - [Reverse a vendor credit application](https://docs.joinluminous.com/api-reference/vendor-credits/reverse-a-vendor-credit-application.md): Reverse a previously applied vendor credit application. - [Get vendor statement](https://docs.joinluminous.com/api-reference/vendor-credits/get-vendor-statement.md): Returns a vendor statement in JSON or PDF format. #### Vendor Returns - [List vendor returns](https://docs.joinluminous.com/api-reference/vendor-returns/list-vendor-returns.md): Get a paginated list of vendor returns. - [Create a vendor return](https://docs.joinluminous.com/api-reference/vendor-returns/create-a-vendor-return.md): Create a new vendor return record. - [Get a vendor return](https://docs.joinluminous.com/api-reference/vendor-returns/get-a-vendor-return.md): Get a single vendor return by ID. - [Process a vendor return](https://docs.joinluminous.com/api-reference/vendor-returns/process-a-vendor-return.md): Process a vendor return. - [Generate credit for a vendor return](https://docs.joinluminous.com/api-reference/vendor-returns/generate-credit-for-a-vendor-return.md): Generate a vendor credit from a vendor return. - [Cancel a vendor return](https://docs.joinluminous.com/api-reference/vendor-returns/cancel-a-vendor-return.md): Cancel an existing vendor return. ### Reports & Analytics #### Customer Topology - [Customer operational topology snapshot](https://docs.joinluminous.com/api-reference/customer-topology/customer-operational-topology-snapshot.md): Returns a read-only snapshot of the tenant's Luminous operational landscape (channels, integrations, warehouses, settings, profile, health signals, etc.). The snapshot is built from read-only queries and stored centrally. #### Stock Snapshot - [Stock snapshot (JSON, CSV, or Excel)](https://docs.joinluminous.com/api-reference/stock-snapshot/stock-snapshot-json-csv-or-excel.md): Point-in-time stock snapshot with optional product filters. #### Consumption - [Consumption report (paginated)](https://docs.joinluminous.com/api-reference/consumption/consumption-report-paginated.md): Aggregated or transactional consumption data. The `group` parameter controls the row shape. - [Consumption report export](https://docs.joinluminous.com/api-reference/consumption/consumption-report-export.md): Export consumption report as CSV or Excel file. Same data as `GET /inventory/transactions/consumption`, unpaginated. Accepts the same `group`, `date`, `warehouse_group.id`, `warehouse_id`, `type` and `include_transfer_orders` parameters with the same meaning (see that endpoint for warehouse attribut… #### Inventory Aging - [Inventory aging (paginated)](https://docs.joinluminous.com/api-reference/inventory-aging/inventory-aging-paginated.md): Cost-layer-based aging buckets per product. Use optional `as_of_date` for historical valuation. - [Inventory aging export](https://docs.joinluminous.com/api-reference/inventory-aging/inventory-aging-export.md): Export inventory aging report as CSV or Excel file. #### Bills Aging - [AP bills aging by vendor](https://docs.joinluminous.com/api-reference/bills-reports/ap-bills-aging-by-vendor.md): Accounts payable bills aging report grouped by vendor with per-bill breakdown and bucket totals. #### Forecast - [Materialized forecast rows (paginated)](https://docs.joinluminous.com/api-reference/forecast/materialized-forecast-rows-paginated.md): Requires feature **forecast_materialized_table**. Returns **403** if the feature is not enabled. - [Materialized forecast export](https://docs.joinluminous.com/api-reference/forecast/materialized-forecast-export.md): Export materialized forecast data as CSV or Excel. Requires feature **forecast_materialized_table**. - [Forecast table refresh metadata](https://docs.joinluminous.com/api-reference/forecast/forecast-table-refresh-metadata.md): Returns the last refresh timestamp, total record count, and staleness indicator. Requires feature **forecast_materialized_table**. - [Forecast row by product (RFQ) ID](https://docs.joinluminous.com/api-reference/forecast/forecast-row-by-product-rfq-id.md): Retrieve a single forecast row by its product RFQ ID. Requires feature **forecast_materialized_table**. - [Forecast row by materialized row ID](https://docs.joinluminous.com/api-reference/forecast/forecast-row-by-materialized-row-id.md): Retrieve a single forecast row by its materialized table row ID. Requires feature **forecast_materialized_table**. - [Materialized forecast by warehouse group (paginated)](https://docs.joinluminous.com/api-reference/forecast/materialized-forecast-by-warehouse-group-paginated.md): Warehouse-level materialized forecast data. Same feature gate as /forecast-data. Requires feature **forecast_materialized_table**. - [Warehouse forecast export](https://docs.joinluminous.com/api-reference/forecast/warehouse-forecast-export.md): Export warehouse-level forecast data as CSV or Excel. Requires feature **forecast_materialized_table**. - [Warehouse forecast refresh metadata](https://docs.joinluminous.com/api-reference/forecast/warehouse-forecast-refresh-metadata.md): Returns the last refresh timestamp, total record count, and staleness indicator for warehouse forecast data. Requires feature **forecast_materialized_table**. - [All warehouse-group forecast rows for a product](https://docs.joinluminous.com/api-reference/forecast/all-warehouse-group-forecast-rows-for-a-product.md): Retrieve all warehouse-group forecast rows for a given product RFQ ID. Requires feature **forecast_materialized_table**. - [Warehouse forecast row by ID](https://docs.joinluminous.com/api-reference/forecast/warehouse-forecast-row-by-id.md): Retrieve a single warehouse forecast row by its materialized table row ID. Requires feature **forecast_materialized_table**. #### Core Inventory Ledger - [List Core inventory transactions](https://docs.joinluminous.com/api-reference/core-inventory-ledger/list-core-inventory-transactions.md): List Luminous Core inventory ledger transactions (CITs) with offset pagination. - [Export Core inventory transactions](https://docs.joinluminous.com/api-reference/core-inventory-ledger/export-core-inventory-transactions.md): Bulk export of Core inventory ledger transactions using cursor (keyset) pagination, intended for incremental syncs into an external system. - [Get a Core inventory transaction](https://docs.joinluminous.com/api-reference/core-inventory-ledger/get-a-core-inventory-transaction.md): Retrieve a single Core inventory ledger transaction (CIT) with its allocated cost lines, lineage, and a `unit_cost_breakdown` explaining how the transaction's unit cost is derived from its cost lines. - [List Core inventory costs](https://docs.joinluminous.com/api-reference/core-inventory-ledger/list-core-inventory-costs.md): List Luminous Core inventory cost records (CICs) with offset pagination. A cost record represents an amount (product cost or extra/landed cost) that is allocated across one or more inventory transactions. - [Export Core inventory costs](https://docs.joinluminous.com/api-reference/core-inventory-ledger/export-core-inventory-costs.md): Bulk export of Core inventory cost records (CICs) using cursor (keyset) pagination, intended for incremental syncs into an external system. - [Get a Core inventory cost](https://docs.joinluminous.com/api-reference/core-inventory-ledger/get-a-core-inventory-cost.md): Retrieve a single Core inventory cost record (CIC) with its provenance (how the cost originated) and the transaction lines it is allocated across. #### Reports - [Sales by company report](https://docs.joinluminous.com/api-reference/reports/sales-by-company-report.md): Aggregated sales totals per company over a date range, with a per-item breakdown grouped by SKU or product. Results are paginated by company. The date range is required and is matched against each invoice's order date. - [Close the Books — sales summary by channel](https://docs.joinluminous.com/api-reference/reports/close-the-books-—-sales-summary-by-channel.md): Sales summary grouped by channel for the specified date range. Date range must be ≤ 3 months. - [Close the Books — zero-cost line items in range](https://docs.joinluminous.com/api-reference/reports/close-the-books-—-zero-cost-line-items-in-range.md): Returns line items with zero cost within the specified date range. Date range must be ≤ 3 months. - [Close the Books — zero valuation inventory](https://docs.joinluminous.com/api-reference/reports/close-the-books-—-zero-valuation-inventory.md): Returns inventory items with zero valuation. - [Close the Books — invoice sync errors](https://docs.joinluminous.com/api-reference/reports/close-the-books-—-invoice-sync-errors.md): Returns invoice sync errors (e.g. QuickBooks) within the specified date range. Date range must be ≤ 3 months. - [Stock / cost-layer discrepancy rows](https://docs.joinluminous.com/api-reference/reports/stock-cost-layer-discrepancy-rows.md): Returns stock and cost-layer discrepancy data, optionally filtered by warehouse. - [Discrepancy dashboard summary](https://docs.joinluminous.com/api-reference/reports/discrepancy-dashboard-summary.md): Summary view of stock discrepancies, optionally filtered by warehouse. - [Transaction COGS (paginated, read-only)](https://docs.joinluminous.com/api-reference/reports/transaction-cogs-paginated-read-only.md): Transaction-level cost of goods sold data. Supports filtering by date range, product, channel, order number, and cost. - [Update per-line COGS from unit cost](https://docs.joinluminous.com/api-reference/reports/update-per-line-cogs-from-unit-cost.md): Applies `cost_per_unit` to matching sales lines: sets line total cost (quantity × unit cost), updates linked sales item cost layers, and rolls up parent order item costs. This is the same behavior as the admin Transaction COGS SKU-to-period import. - [EDI documents (paginated)](https://docs.joinluminous.com/api-reference/reports/edi-documents-paginated.md): Paginated list of EDI documents with filtering by type, status, direction, order, date range, and more. - [EDI aggregate summary](https://docs.joinluminous.com/api-reference/reports/edi-aggregate-summary.md): Aggregate summary of EDI documents with counts by status and type. - [EDI report CSV export](https://docs.joinluminous.com/api-reference/reports/edi-report-csv-export.md): Export EDI documents as CSV. Same filters as GET /reports/edi. Rows capped at 50,000. Only CSV format is supported. ### Drive #### Folders - [List folders](https://docs.joinluminous.com/api-reference/drive/list-folders.md): List the top-level folders of the shared drive, or the sub-folders of `parent_id`. Each folder has `has_children`, so you can walk the tree one level at a time. - [Create a folder](https://docs.joinluminous.com/api-reference/drive/create-a-folder.md): Create a folder at the top level, or inside `parent_id`. - [Get a folder and its contents](https://docs.joinluminous.com/api-reference/drive/get-a-folder-and-its-contents.md): Get a folder with its breadcrumbs, its sub-folders and one page of its files. - [Update a folder](https://docs.joinluminous.com/api-reference/drive/update-a-folder.md): Rename a folder, move it to another parent, or change whether it is restricted. System folders cannot be renamed or moved. - [Delete a folder](https://docs.joinluminous.com/api-reference/drive/delete-a-folder.md): Move a folder and everything under it to the trash, as one batch. Items stay in the trash for 30 days, then are deleted forever. Restore the batch with `POST /file-cabinet/trash/restore`. #### Files - [Search files](https://docs.joinluminous.com/api-reference/drive/search-files.md): Search everything in the shared drive the token can see. Returns at most 50 files (newest first) and, when `search` is set and no file-only filter is used, at most 50 folders whose name matches. - [Upload a small file](https://docs.joinluminous.com/api-reference/drive/upload-a-small-file.md): Upload a file of up to 5 MB in a single request. Send `folder_id` to create a new file, or `file_id` to upload a new version of an existing file. - [Get a file](https://docs.joinluminous.com/api-reference/drive/get-a-file.md): Get one file. For images, `thumbnail_url` is a 400px JPEG. - [Update a file](https://docs.joinluminous.com/api-reference/drive/update-a-file.md): Rename a file, move it to another folder, restrict it, or set its expiry. - [Delete a file](https://docs.joinluminous.com/api-reference/drive/delete-a-file.md): Move a file to the trash. It stays there for 30 days, then is deleted forever. Restore it with `POST /file-cabinet/trash/restore`. - [Get a download URL](https://docs.joinluminous.com/api-reference/drive/get-a-download-url.md): Get a signed URL for a file's bytes. The URL is valid for 5 minutes and needs no `Authorization` header. - [Get a file thumbnail](https://docs.joinluminous.com/api-reference/drive/get-a-file-thumbnail.md): Get the JPEG thumbnail of a file's current version as raw bytes (`Content-Type: image/jpeg`). Use this instead of the thumbnail URL when your app cannot fetch from the storage host, for example an embedded app or browser sandbox: request it with your API token and turn the response into a Blob. Resp… - [Get image file content](https://docs.joinluminous.com/api-reference/drive/get-image-file-content.md): Stream the current version of an image file through the API, with its own `Content-Type`. Signed download URLs do not send CORS headers, so a browser cannot read their pixels (`fetch()`, canvas); this endpoint can. Only JPEG, PNG, GIF and WebP files are served; other types return 422. For other file… - [List file versions](https://docs.joinluminous.com/api-reference/drive/list-file-versions.md): Get a file's version history. To upload a new version, call `POST /file-cabinet/uploads` or `POST /file-cabinet/files` with `file_id`. - [List file activity](https://docs.joinluminous.com/api-reference/drive/list-file-activity.md): Get a file's activity log, newest first. - [Apply an image to a SKU](https://docs.joinluminous.com/api-reference/drive/apply-an-image-to-a-sku.md): Copy a Drive image into a SKU's product images, the images pushed to Shopify and other channels. - [Turn on the public image URL](https://docs.joinluminous.com/api-reference/drive/turn-on-the-public-image-url.md): Turn on the stable public URL for an image. The URL is returned as `public_image_url` on the file and keeps working across new versions. #### Large Uploads - [Start a large upload](https://docs.joinluminous.com/api-reference/drive/start-a-large-upload.md): Start a direct upload of up to 500 MB. Uploading takes three steps: - [Finish a large upload](https://docs.joinluminous.com/api-reference/drive/finish-a-large-upload.md): Finish an upload started with `POST /file-cabinet/uploads`, after the bytes have been PUT to `upload_url`. Returns `422` if the uploaded size does not match the declared `size`. #### Drive Tags - [Set folder tags](https://docs.joinluminous.com/api-reference/drive/set-folder-tags.md): Replace the tags on a folder. Send an empty `tag_ids` array to remove every tag. Create tags first with `POST /file-cabinet/tags`. - [Set file tags](https://docs.joinluminous.com/api-reference/drive/set-file-tags.md): Replace the tags on a file. Send an empty `tag_ids` array to remove every tag. Create tags first with `POST /file-cabinet/tags`. - [List tags](https://docs.joinluminous.com/api-reference/drive/list-tags.md): List every Drive tag with how many items carry it. - [Create a tag](https://docs.joinluminous.com/api-reference/drive/create-a-tag.md): Create a tag. Returns `422` if a tag with the same name (ignoring case) exists. - [Update a tag](https://docs.joinluminous.com/api-reference/drive/update-a-tag.md): Rename or recolor a tag. Returns `422` if the new name is taken. - [Delete a tag](https://docs.joinluminous.com/api-reference/drive/delete-a-tag.md): Delete a tag and remove it from every folder and file. #### Record Attachments - [List where a file is used](https://docs.joinluminous.com/api-reference/drive/list-where-a-file-is-used.md): List every record the file is linked to: attachments on sales orders, deals, lots and SKUs, product images, and the records whose emailed documents were filed here. - [List files attached to a record](https://docs.joinluminous.com/api-reference/drive/list-files-attached-to-a-record.md): List the Drive files attached to a record. - [Attach files to a record](https://docs.joinluminous.com/api-reference/drive/attach-files-to-a-record.md): Attach up to 100 Drive files to a sales order, deal, lot or SKU. - [Detach a file from a record](https://docs.joinluminous.com/api-reference/drive/detach-a-file-from-a-record.md): Remove an attachment. The file itself stays in Drive. #### Trash - [List the trash](https://docs.joinluminous.com/api-reference/drive/list-the-trash.md): List what the token's owner deleted, newest first (everyone's deletions, with `fileCabinet.manage`). Only the top item of each delete batch is listed: a deleted folder appears once, not once per item inside it. - [Restore from the trash](https://docs.joinluminous.com/api-reference/drive/restore-from-the-trash.md): Restore a trashed folder or file. The whole delete batch comes back: restoring a folder restores everything that was deleted with it. - [Delete a folder forever](https://docs.joinluminous.com/api-reference/drive/delete-a-folder-forever.md): Permanently delete a trashed folder and everything deleted with it, including the stored bytes. This cannot be undone. - [Delete a file forever](https://docs.joinluminous.com/api-reference/drive/delete-a-file-forever.md): Permanently delete a trashed file, including the stored bytes. This cannot be undone. ### Integrations #### Channels - [List channels](https://docs.joinluminous.com/api-reference/channels/list-channels.md): Paginated list of non-deleted channels with optional filters. Always allowed — `apiLocked` does not block reads. - [Create channel](https://docs.joinluminous.com/api-reference/channels/create-channel.md): Create a channel of any type (`sales_channel`, `fulfillment_channel`, `end_to_end_channel`). New channels are created **unlocked** (`apiLocked: false`). Many fields are conditionally required based on `channelType` and the OMS integrations enabled — see the description on each property. - [Create sales channel (legacy)](https://docs.joinluminous.com/api-reference/channels/create-sales-channel-legacy.md): Backward-compatible endpoint that creates a sales channel without requiring `channelType` in the body. Same underlying flow as `POST /channels` with `channelType=sales_channel`. Prefer `POST /channels` for new integrations. - [List channel restriction fields](https://docs.joinluminous.com/api-reference/channels/list-channel-restriction-fields.md): Return the catalog of fields available for building channel restriction rules, along with the operators each field supports. Use this to construct a valid `restrictions` draft for `POST /channels/{channelId}/test-restrictions` or when configuring a channel. - [Get channel](https://docs.joinluminous.com/api-reference/channels/get-channel.md): Read full channel detail including loaded mappings, warehouse group, tags, and metafields. Always allowed. - [Update channel](https://docs.joinluminous.com/api-reference/channels/update-channel.md): Update an existing channel. Validator uses **merge / PATCH semantics** — omitted keys are preserved. `channelType` cannot be changed once set (sending it returns 422). - [Delete channel](https://docs.joinluminous.com/api-reference/channels/delete-channel.md): Soft-delete a channel. Returns **403** when `apiLocked: true`. - [Lock channel](https://docs.joinluminous.com/api-reference/channels/lock-channel.md): Set `apiLocked: true` on a channel to block subsequent external API mutations (`PUT`, `DELETE`, `POST /channels/{id}/integration-products`). - [List channel integration products](https://docs.joinluminous.com/api-reference/channels/list-channel-integration-products.md): List the channel SKU → Luminous SKU mappings on a sales or end-to-end channel: the read side of `POST /channels/{channelId}/integration-products`, using the same field names (the same rows as the Channel Products export). Results are ordered by id and paginated. - [Sync channel integration products](https://docs.joinluminous.com/api-reference/channels/sync-channel-integration-products.md): Bulk-create or update channel SKU → Luminous SKU mappings for a sales or end-to-end channel. Up to 500 items per call. Set `delete: true` on an item to remove its mapping. - [Test channel restrictions against a sample order](https://docs.joinluminous.com/api-reference/channels/test-channel-restrictions-against-a-sample-order.md): Evaluate a channel's restriction rules against a sample order context and report whether the order would be **eligible** for that channel. Optionally send a `restrictions` draft to test unsaved rules instead of the channel's saved rules. #### Integration Accounts - [List integration accounts](https://docs.joinluminous.com/api-reference/integration-accounts/list-integration-accounts.md): Paginated list of app integration accounts for this tenant. Returns `id`, `label`, `app`, and `status` (`connection_health_status`). **Credentials are never included.** - [Get integration account](https://docs.joinluminous.com/api-reference/integration-accounts/get-integration-account.md): Returns `id`, `label`, `app`, and `status` for one integration account. **Credentials are never included.** - [List OMS shipping methods](https://docs.joinluminous.com/api-reference/integration-accounts/list-oms-shipping-methods.md): Live-fetches available shipping methods from the destination OMS for the given integration account. Currently only TrackStar accounts are supported. - [List OMS warehouses](https://docs.joinluminous.com/api-reference/integration-accounts/list-oms-warehouses.md): Live-fetches warehouses from the destination OMS for the given integration account (TrackStar `GET /wms/warehouses`). Currently only TrackStar accounts are supported. - [Get the write schema for a push action](https://docs.joinluminous.com/api-reference/integration-accounts/get-the-write-schema-for-a-push-action.md): Returns the write allow-list and destination JSON Schema for a push action on an integration account. Use this to discover which fields the connected system accepts (and their shapes) before calling a push endpoint such as `POST /products/{productId}/push`. - [List OMS product links](https://docs.joinluminous.com/api-reference/integration-accounts/list-oms-product-links.md): Lists the OMS product links for an integration account — the mapping between third-party (OMS/WMS) products and their Luminous SKUs. Optionally filter by third-party `sku` (exact match) or by `lum_sku_id`. Results are paginated and ordered most-recent first. #### Integration Mappings - [List integration mappings](https://docs.joinluminous.com/api-reference/integration-mappings/list-integration-mappings.md): Get a paginated list of integration mappings. - [Create an integration mapping](https://docs.joinluminous.com/api-reference/integration-mappings/create-an-integration-mapping.md): Create a new integration mapping. - [List available transformations](https://docs.joinluminous.com/api-reference/integration-mappings/list-available-transformations.md): Return every transformation the mapping engine can execute, with the shape of each one's `transformationConfig`. The mapping editor renders directly from this catalogue, and it is parity-tested against the transformation engine, so this list is exactly what will run — never more, never less. - [Get an integration mapping](https://docs.joinluminous.com/api-reference/integration-mappings/get-an-integration-mapping.md): Get details of a specific integration mapping by ID. - [Update an integration mapping](https://docs.joinluminous.com/api-reference/integration-mappings/update-an-integration-mapping.md): Update an existing integration mapping by ID. - [Delete an integration mapping](https://docs.joinluminous.com/api-reference/integration-mappings/delete-an-integration-mapping.md): Delete an integration mapping by ID. - [Preview a mapping (dry run)](https://docs.joinluminous.com/api-reference/integration-mappings/preview-a-mapping-dry-run.md): Run the mapping's stored source sample (`source_order_json`) through the same transformation engine the push path uses, and return what the destination would receive. **This makes no OMS call and writes nothing** — it is how a mapping gets tested without pushing a real order. - [List a mapping's version history](https://docs.joinluminous.com/api-reference/integration-mappings/list-a-mappings-version-history.md): List the version-history snapshots recorded for an integration mapping, newest first. - [Get a single mapping version](https://docs.joinluminous.com/api-reference/integration-mappings/get-a-single-mapping-version.md): Get one version-history snapshot, including its full `mapping_config`, for diffing against the current mapping or loading back into the editor. - [AI auto-map a mapping](https://docs.joinluminous.com/api-reference/integration-mappings/ai-auto-map-a-mapping.md): Propose a full set of mapping rows from the mapping's source and destination schemas. - [AI edit a mapping](https://docs.joinluminous.com/api-reference/integration-mappings/ai-edit-a-mapping.md): Apply a natural-language change to the rows the editor currently has (saved or not) and return the complete updated row list; the editor diffs it against what is on screen. - [AI draft a custom-function script](https://docs.joinluminous.com/api-reference/integration-mappings/ai-draft-a-custom-function-script.md): Draft a `customFunction` transformation script from a natural-language description. #### Integration Field Mappings - [List integration field mappings](https://docs.joinluminous.com/api-reference/integration-field-mappings/list-integration-field-mappings.md): Get a list of integration field mappings with optional filtering. - [Create an integration field mapping](https://docs.joinluminous.com/api-reference/integration-field-mappings/create-an-integration-field-mapping.md): Create a new integration field mapping. - [Bulk create integration field mappings](https://docs.joinluminous.com/api-reference/integration-field-mappings/bulk-create-integration-field-mappings.md): Create multiple integration field mappings in a single request. - [List mapping groups](https://docs.joinluminous.com/api-reference/integration-field-mappings/list-mapping-groups.md): Get a list of distinct mapping group values. - [List mapping field names](https://docs.joinluminous.com/api-reference/integration-field-mappings/list-mapping-field-names.md): Get a list of distinct field name values. - [Quick-add field mappings from recent orders](https://docs.joinluminous.com/api-reference/integration-field-mappings/quick-add-field-mappings-from-recent-orders.md): Seeds self-mappings from recent orders. Analyzes recent order data to automatically create field mappings where the Luminous value matches the external value. - [Bulk delete integration field mappings](https://docs.joinluminous.com/api-reference/integration-field-mappings/bulk-delete-integration-field-mappings.md): Delete multiple integration field mappings by their IDs. - [Suggest carrier mapping](https://docs.joinluminous.com/api-reference/integration-field-mappings/suggest-carrier-mapping.md): Fuzzy match a carrier value to Trackstar schema carrier enums. Returns suggested mappings based on the provided carrier value. - [Create mapping and retry fulfillment](https://docs.joinluminous.com/api-reference/integration-field-mappings/create-mapping-and-retry-fulfillment.md): Creates a new field mapping and may retry the fulfillment push for the associated sales order. - [Toggle auto carrier mapping](https://docs.joinluminous.com/api-reference/integration-field-mappings/toggle-auto-carrier-mapping.md): Toggles the auto carrier mapping setting for an integration account. - [Get an integration field mapping](https://docs.joinluminous.com/api-reference/integration-field-mappings/get-an-integration-field-mapping.md): Get details of a specific integration field mapping by ID. - [Update an integration field mapping](https://docs.joinluminous.com/api-reference/integration-field-mappings/update-an-integration-field-mapping.md): Update an existing integration field mapping by ID. - [Delete an integration field mapping](https://docs.joinluminous.com/api-reference/integration-field-mappings/delete-an-integration-field-mapping.md): Delete an integration field mapping by ID. ## OpenAPI Specs - [build](/api-reference/build.yaml)