Write Sales Order Margin Result
Perform Write Sales Order Margin Result through Brightree Margin Review.
brightree_write_sales_order_margin_resultwritebrightree
Inputs
- Sales Order Key
sales_order_keyexpressionrequiredRequired literal value or workflow expression.
- Margin Percent
margin_percentexpressionOptional literal value or workflow expression.
- Dry Run
dry_runbooleanOptional true-or-false value.
Default:
false
Outputs
successSuccessstatusStatusattemptedAttemptedupdatedUpdatedsales_order_keySales Order KeyverifiedVerifiedlow_profit_marginLow Profit Marginmargin_percentMargin Percentuser_3_valueUser 3 ValueerrorErrorerror_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
}