Order Errors

How processing errors are tracked on orders, including the error model, severity levels, and resolution workflow.

Order Errors

When order processing fails, errors are added to the order's error list. These errors provide structured information about what went wrong and are visible directly on the order.

Error Model

The errors array on an order contains EntityError entries:

PropertyTypeDescription
keystringError identifier/code
messagestringHuman-readable error message
detailsstringAdditional error details
referenceIdstringReference to a related entity (e.g., shipment ID, payment ID)
severitystringError severity level
occuredDateTimeWhen the error occurred
statusstringError status (e.g., Active, Solved)
commentstringOptional comment on the error (e.g., resolution notes)

How Errors Work

  • Orders with errors are flagged visually in the order list UI, making them easy to spot
  • Errors can be reviewed on the order detail page
  • Errors can be resolved by marking them as Solved with an optional comment
  • Workflow steps with ContinueOnError: true will add an error but allow the workflow to continue

Example error on an order:

{
  "errors": [
    {
      "key": "PaymentCaptureFailed",
      "message": "Payment capture failed for transaction TX-9876",
      "details": "Gateway returned: insufficient funds",
      "referenceId": "PAY-001",
      "severity": "Error",
      "occured": "2025-01-15T14:20:00Z",
      "status": "Active",
      "comment": null
    }
  ]
}

On this page