Skip to documentation
Brightree Margin Review integration

Write Sales Order Margin Result

Perform Write Sales Order Margin Result through Brightree Margin Review.

View as Markdown
brightree_write_sales_order_margin_result
writebrightree

Inputs

  • sales_order_key
    expressionrequired
    Sales Order Key

    Required literal value or workflow expression.

  • margin_percent
    expression
    Margin Percent

    Optional literal value or workflow expression.

  • dry_run
    boolean
    Dry Run

    Optional true-or-false value.

    Default: false

Outputs

  • successSuccess
  • statusStatus
  • attemptedAttempted
  • updatedUpdated
  • sales_order_keySales Order Key
  • verifiedVerified
  • low_profit_marginLow Profit Margin
  • margin_percentMargin Percent
  • user_3_valueUser 3 Value
  • errorError
  • error_messageError Message

Output schema completeness: best_effort_declared

Safety

External effect
write
Confirmation recommended
No
Retry safe
No
Dry run supported
Yes

Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

Input schema
{
  "type": "object",
  "required": [
    "sales_order_key"
  ],
  "properties": {
    "dry_run": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "margin_percent": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "sales_order_key": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
Output schema
{
  "type": "object",
  "properties": {
    "error": {},
    "status": {},
    "success": {},
    "updated": {},
    "verified": {},
    "attempted": {},
    "user_3_value": {},
    "error_message": {},
    "margin_percent": {},
    "sales_order_key": {},
    "low_profit_margin": {}
  },
  "additionalProperties": true
}
View all Brightree Margin Review actions