Skip to main content
The Order Data Model represents a purchase order, typically linked to an invoice. Orders track the commercial transaction details and can generate invoices. In V4, orders embed complete transaction history for comprehensive financial tracking.
  • Invoice generation: Orders can generate one or more invoices
  • Embedded transactions: Complete payment history embedded in the order object
  • Status tracking: Track both order fulfillment status and payment status
  • Line item details: Detailed breakdown of items in the order

Attributes

Orders Attributes

PropertyTypeDescription
rootfi_idintegerUnique identifier for this order
rootfi_created_atstringWhen this order was created in Commenda’s system (ISO 8601)
rootfi_updated_atstringWhen this order was last updated (ISO 8601)
rootfi_integration_typeenum
platform_idstringPlatform-specific order identifier
order_numberstring
contact_idstringReference to the Contact
currency_idenumISO 4217 currency code
statusenumCurrent order status
payment_statusenumPayment state of the order
fulfillment_statusenum
total_amountdoubleTotal order amount
total_discountdoubleTotal discount amount
total_taxdoubleTotal tax amount
shipping_amountdouble
invoice_idstringReference to the primary Invoice
invoice_idsarrayReferences to all related invoices
transaction_idsarray
created_atstringOriginal creation timestamp from platform (ISO 8601)
updated_atstringLast update timestamp from platform (ISO 8601)

Status Enum Values

ValueDescription
PENDINGOrder created but not yet processed
PROCESSINGOrder is being processed
COMPLETEDOrder has been fulfilled
CANCELEDOrder was canceled
ON_HOLDOrder is temporarily on hold
UNKNOWNStatus cannot be determined

Payment Status Enum Values

ValueDescription
DRAFTPayment created but not yet initiated
PENDINGPayment initiated but not confirmed
PAIDPayment completed successfully
PARTIALLY_PAIDPartial payment received
FAILEDPayment failed to process
REFUNDEDPayment refunded
PARTIALLY_REFUNDEDPartial refund issued
VOIDEDPayment voided before capture
UNKNOWNPayment status cannot be determined

Expandable Attributes

Use the expand query parameter to include related objects:
  • expand=line_items — includes the related Line Items object(s).
  • expand=transactions — includes the related Transactions object(s).
  • expand=addresses — includes the related Addresses object(s).