Open MercatoDocsSearch docsAPI reference

Framework

Data Model

Follow an order into the records created around it. Lines describe what was sold, payment allocations account for money received, and shipments describe fulfillment. Pick the entity that owns the fact before attaching a custom field or building a report.

All sales entities support custom fields via the Custom Entities & Fields system.

Orders

Entity IDLabelDescription
sales.sales_orderSales OrderCommitted sales document that drives fulfillment and invoicing.
sales.sales_order_lineSales Order LineIndividual line on a sales order, including product or service details.
sales.sales_order_adjustmentSales Order AdjustmentOrder-level adjustment representing promotions, taxes, or surcharges.

Quotes

Entity IDLabelDescription
sales.sales_quoteSales QuotePre-order offer shared with customers before confirmation.
sales.sales_quote_lineSales Quote LineLine within a quote containing proposed products or services.
sales.sales_quote_adjustmentSales Quote AdjustmentQuote-level adjustment capturing promotional or tax calculations.

Invoices & Credit Memos

Entity IDLabelDescription
sales.sales_invoiceSales InvoiceFinancial invoice derived from orders and shipments.
sales.sales_invoice_lineSales Invoice LineLine within an invoice referencing products or services billed.
sales.sales_credit_memoSales Credit MemoCredit memo issued for returns or adjustments.
sales.sales_credit_memo_lineSales Credit Memo LineLine entry within a credit memo detailing refunded items or services.

Fulfillment

Entity IDLabelDescription
sales.sales_shipmentSales ShipmentShipment record tracking dispatched packages for an order.
sales.sales_shipment_itemSales Shipment ItemLine-level fulfillment record mapped to shipped quantities.
sales.sales_paymentSales PaymentPayment captured against orders or invoices.
sales.sales_payment_allocationSales Payment AllocationAllocation mapping a payment to specific documents and amounts.

Other

Entity IDLabelDescription
sales.sales_noteSales NoteInternal or customer-facing note attached to a sales document.

See also

Previous: Commands · Next: Events