Sales orders

A confirmed commercial document for a sale, with its products, quantities, prices, and terms.

Fields

The API name is what the API, MCP and the CLI use.

NameAPI nameTypeRequiredDescription
IDidRecord IDYes
NamelabelText
Order numberuidTextThe number is a human-readable, unique identifier for the record.
DatedateDateYesPricing date. Used to resolve applicable price lists.
DealsalesdealIdReference
QuotesalesquoteIdReference
Framework agreementsalesagreementIdReference
ProjectprojectIdReference
CustomercustomerIdReferenceYes
BranchcustomerbranchIdReference
ContactcustomercontactIdReference
SelleruserIdUser
Delivery addressaddressDeliveryAddress
Quote currencycurrencyConstantYesValue from the table catalog for this field.
Product revisionproductrevisionIdReference
Customer referencecustomerReferenceTextThe customer's own reference for this document, such as their purchase order number.
Credit checkcreditcheckOutcomeConstantOutcome of the customer credit exposure check for this approved order.
Billing due sincedateBillingDueDateEarliest date since which a line of this order has billable quantity that is not invoiced yet. Set by the system; empty when nothing is left to bill.
Fulfillment sitesiteIdFulfillmentReference
DeliverydeliveryConstantMethod and conditions for delivering goods.
IncotermincotermConstantFixed option from the allowed set for this field.
Incoterm placeincotermPlaceText
Requested datedateRequestedDateCalendar date without time of date.
Shipment policyshipmentPolicyConstantYesWhether the order may ship in parts or only when complete.
Hold fulfillmentholdFulfillmentBooleanYesWhen enabled, the related rule or behavior applies to this record.
Payment termfinancespaymenttermIdReference
Sales termssalestermsconditionIdReference
Price basispriceBasisConstantYesWhether unit prices include tax (gross) or exclude tax (net).
SubtotalsubtotalCurrencyYesSum of line amounts before tax and withholding on this document.
TaxtaxCurrencyYesTax amount for this scope, in document currency, from the configured tax engine.
WithholdingwithholdingCurrencyYesWithholding tax amount retained on this scope, in document currency.
TotaltotalCurrencyYesDocument total after discounts, tax, and withholding in document currency.
Force close reasonforceCloseReasonConstantRequired explanation when closing despite open documents.
Credit release reasonreleaseCreditReasonText AreaRequired when you release an order from credit hold.
Cancel reasoncancelReasonText AreaRequired explanation when canceling this record.
TagstagIdsTags
CommentscommentsText AreaPrinted on the document. Use this field for the DOF exchange-rate clause or other commercial terms.
DatadataData
Created bycreatedByUser
Created atcreatedAtDate and TimeYes
Updated byupdatedByUser
Updated atupdatedAtDate and TimeYes
Approved byapprovedByUser
Approved atapprovedAtDate and Time
Closed byclosedByUser
Closed atclosedAtDate and Time
Canceled bycanceledByUser
Canceled atcanceledAtDate and Time
Credit released bycreditReleasedByUser
Credit releasedcreditReleasedAtDate and Time
Blocked byblockedByUser
Blocked atblockedAtDate and Time
Archived byarchivedByUser
Archived atarchivedAtDate and Time

Relations

Owned records (solid line) are deleted with their owner. Grouped records (dashed line) can exist alone.

FieldPoints toKind
Deal salesdealIdSales dealsreference
Quote salesquoteIdSales quotesreference
Framework agreement salesagreementIdFramework agreementsreference
Project projectIdProjectsreference
Customer customerIdCustomersreference
Branch customerbranchIdCustomer branchesreference
Contact customercontactIdCustomer contactsreference
Seller userIdUsersreference
Fulfillment site siteIdFulfillmentSitesreference
Payment term financespaymenttermIdPayment termsreference
Sales terms salestermsconditionIdSales terms and conditionsreference
Tags tagIdsTagsreference

Actions

What you can do with a record. Every action also sends the webhook event salesorders.<action>. Reads (find, get, count) work on every table.

NameAPI nameDescriptionWhere
CreatecreateAdd an new order.App · API · MCP · CLI
EditupdateSave changes to this order.App · API · MCP · CLI
ApproveapproveApprove this order so the next step can run.App · API · MCP · CLI
ClosecloseStop new references to this order. It stays, and existing documents stay. Unclose to allow new references again.App · API · MCP · CLI
ReopenuncloseAllow new references to this order again.App · API · MCP · CLI
CancelcancelReverse the posted effect of this order.App · API · MCP · CLI
Revoke external linksrevokeRevoke active external share links for this order.App · API · MCP · CLI
Create invoicecreateInvoiceCreate an invoice from the lines of this order that are not billed yet.App · API · MCP · CLI
Release creditreleaseCreditClear credit hold so this order can be reserved, shipped, or invoiced.App · API · MCP · CLI
ReservereserveCreate a draft goods issue and reserve stock that is available.App · API · MCP · CLI
Share externallysharePublish and send an external link to this document.App · API · MCP · CLI
BlockblockStop edits and deletion of this order. It stays visible and can still appear on existing documents. Unblock to edit again.App · API · MCP · CLI
UnblockunblockAllow edits and deletion of this order again.App · API · MCP · CLI
ArchivearchiveRetire this order from daily use. It leaves active lists and pickers, and most actions stop. Unarchive to restore it.App · API · MCP · CLI
RestoreunarchiveReturn this order to active lists and actions.App · API · MCP · CLI
DeletedeleteDelete this order and the data that belongs with it. This cannot be undone.App · API · MCP · CLI

States

How a record moves from state to state. Archive and block can happen in any state.

ApproveRelease creditCloseCancelRelease creditApproveReopenCloseCancelReopenCreatedApprovedCredit releasedClosed · ApprovedCanceled · ApprovedCredit released · ApprovedCredit released · Closed ·ApprovedCredit released · Canceled· Approved