Omono API
Menu Enums

Enums

View as Markdown

This page lists the values of each field that takes one value from a list, such as a status. Each value is a lower-case word, such as on_order, and the lists are the same in every organisation. The lists below are the values known today. Omono can add a value to a list within v1, so every list is open in a response: make sure your code copes with a value it doesn't recognise, and don't build logic on an allow-list of today's values. A request accepts only the known values. In the OpenAPI document, each response field accepts any string and lists its known values in its description, and the values are also in a schema whose name starts with Known, such as KnownOrderStatus, which requests use. Learn more in Handle what you don't recognise.

Quote status#

A quote's status, and the status filter when you list quotes.

Value Meaning
draft The quote, or its newest revision, hasn't been sent to the customer yet.
active The quote has been sent to the customer, and you're waiting for their decision.
won The customer accepted the quote, and Omono created a sales order from it.
lost The customer didn't accept the quote, or Omono closed it automatically.

Order status#

The status of a sales order or a purchase order, and the status filter when you list either of them. Both use the same list.

Value Meaning
draft The order is still being prepared and isn't active yet.
on_order The order is active. A sales order is on order once it's activated, and a purchase order once it's issued to the supplier.
complete Everything on a sales order has shipped, or everything on a purchase order has been received.
cancelled The order was cancelled and is no longer active.
on_hold At least one of the order's dispatches or deliveries is on hold.
on_order_call_off The order is an active call-off order, which means its goods are delivered in several parts over a period.

Credit note status#

A credit note's status, and the status filter when you list credit notes.

Value Meaning
draft The credit note can still be changed.
complete The credit note is final and can't be changed or reopened.

Delivery status#

The status of a delivery on a purchase order.

Value Meaning
not_received The goods are expected but haven't arrived yet.
received The goods have arrived and are in stock.
on_hold The delivery is paused.

Stock kind#

A stock item's kind, the kind filter when you list stock items, and the kind you send to create or update one.

Value Meaning
normal An ordinary item that Omono keeps a stock level for.
assembly An item that Omono builds from the other stock items in its bill of materials (bom). Picking an assembly picks its components.
never_diminishing Something you buy and sell but don't count, such as a service, carriage or consumables. Omono keeps no stock level for it.

Payment terms type#

A company's invoiceTermsType and billTermsType. Each one says how Omono uses the number in invoiceTermsDays or billTermsDays to work out when an invoice or a bill is due. For the two types that name a day of the month, if that day doesn't exist in the month, such as the 31st in April, Omono uses the last day of the month.

Value Meaning
days_after_invoice The invoice is due a number of days after its date. For example, 30 days on an invoice dated 10 March makes it due on 9 April.
days_after_month_end The invoice is due a number of days after the end of the month it's dated in. For example, 30 days on an invoice dated 10 March makes it due on 30 April.
day_of_current_month The invoice is due on a set day of the month it's dated in. For example, 20 on an invoice dated 10 March makes it due on 20 March. The due date never moves to the next month, so 20 on an invoice dated 25 March also makes it due on 20 March, before the invoice date.
day_of_next_month The invoice is due on a set day of the following month. For example, 20 on an invoice dated 10 March makes it due on 20 April.

Workflow status type#

The type of each workflow status, and of each entry in a dispatch's legalTransitions.

Value Meaning
unallocated No stock is reserved for the dispatch yet. Moving an allocated dispatch back to a status of this type unpicks its goods and releases their stock. Omono asks staff to confirm this first, but a move through the API doesn't ask.
allocated Stock is reserved for the dispatch, so it can be picked. Moving a dispatch to a status of this type reserves its stock.
on_hold The dispatch is on hold. While any of a sales order's dispatches is on hold, the order's status is on_hold.
final A status of this type is the last step in the workflow, and it's called the final status. Moving a dispatch to it ships the dispatch and raises its invoice, and the dispatch can't move again after that.

A task's linkedEntityType, and the linkedEntityType filter when you list tasks.

Value Meaning
company The task is linked to a company.
contact The task is linked to a contact.
quote The task is linked to a quote.
sales_order The task is linked to a sales order.
credit_note The task is linked to a credit note.
purchase_order The task is linked to a purchase order.
stock_item The task is linked to a stock item.
general The task isn't linked to a record.

Event resource#

The resource of an event, which says what kind of record the event is about.

companies · contacts · addresses · quotes · quote_line_items · sales_orders · sales_order_line_items · dispatches · credit_notes · credit_note_line_items · purchase_orders · purchase_order_line_items · deliveries · stock_items · tasks · documents

Xero sync status#

The xero.status of an invoice, a credit note or a delivery on a purchase order, which says where the record stands in Omono's sync to Xero.

Value Meaning
never Omono hasn't sent the document to Xero.
ok The last sync worked.
warning The last sync worked, but Xero returned a warning. Staff can read it on the document in Omono.
error The last sync failed. Staff can read the error on the document in Omono, fix the cause, and Omono tries again.
pending The document is waiting for the next sync.
skipped Omono doesn't send this document to Xero, such as an invoice whose total is zero.