- 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
Order Attributes
| Property | Type | Description |
|---|---|---|
| rootfi_id | integer | Unique identifier for this order |
| rootfi_created_at | string | When this order was created in Commenda’s system (ISO 8601) |
| rootfi_updated_at | string | When this order was last updated (ISO 8601) |
| rootfi_company_id | integer | Company identifier this order belongs to |
| platform_id | string | Platform-specific order identifier |
| contact_id | string | Reference to the Contact |
| currency_id | string | ISO 4217 currency code |
| status | enum | Current order status |
| payment_status | enum | Payment state of the order |
| total_amount | number | Total order amount |
| total_discount | number | Total discount amount |
| total_tax | number | Total tax amount |
| created_at | string | Original creation timestamp from platform (ISO 8601) |
| updated_at | string | Last update timestamp from platform (ISO 8601) |
| invoice_id | string | Reference to the primary Invoice |
| invoice_ids | array | References to all related invoices |
| line_items | array | Items included in this order |
| transactions | array | All payment transactions for this order |
Status Enum Values
| Value | Description |
|---|---|
pending | Order created but not yet processed |
processing | Order is being processed |
completed | Order has been fulfilled |
cancelled | Order was cancelled |
on_hold | Order is temporarily on hold |
unknown | Status cannot be determined |
Payment Status Enum Values
| Value | Description |
|---|---|
pending | Payment initiated but not confirmed |
paid | Payment completed successfully |
partially_paid | Partial payment received |
failed | Payment failed to process |
refunded | Payment refunded |
partially_refunded | Partial refund issued |
voided | Payment voided before capture |
unknown | Payment status cannot be determined |
LineItem Attributes
| Property | Type | Description |
|---|---|---|
| rootfi_id | integer | Unique identifier for this line item |
| item_id | string | Reference to the Item/Product |
| description | string | Text description of the product or service |
| quantity | integer | Number of units |
| unit_amount | number | Price per unit |
| tax_amount | number | Total tax for this line item |
| discount_amount | number | Total discount applied |
| total_amount | number | Final amount |
Expandable Attributes
Use theexpand query parameter to include related objects:
expand=contact- Includes full Contact objectexpand=invoice- Includes the primary Invoice objectexpand=invoices- Includes all related Invoice objectsexpand=line_items- Includes detailed LineItem objectsexpand=transactions- Includes all Transaction objects