Responding to messages in the Transaction API?

I am submitting a POST to the Transaction api /uiserver0/api/V2/Transaction. Sometimes it works properly, but depending on the user selections, I get the below error.

        "Transaction 1:: The order profit percentage of 24.42% is less than the acceptable limit of 26.00%. Continue? [Response: No]\n "

How do I “respond” to the Transaction error and Continue with y ?

Submission

{
  "Name": "Order",
  "UseCodeValues": true,
  "IgnoreDisabled": true,
  "Transactions": [
    {
      "Status": "New",
      "DataElements": [
        {
          "Name": "TABPAGE_1.order",
          "BusinessObjectName": null,
          "Type": "Form",
          "Keys": [
            "order_no"
          ],
          "Rows": [
            {
              "Edits": [
                {
                  "Name": "order_no",
                  "Value": "12586381",
                  "IgnoreIfEmpty": true
                }
              ],
              "RelativeDateEdits": [
                
              ]
            }
          ]
        },
        {
          "Name": "TP_ITEMS.items",
          "Type": "List",
          "Keys": [
            "oe_order_item_id",
            "line_seq_no"
          ],
          "Rows": [
            {
              "Edits": [
                {
                  "Name": "oe_order_item_id",
                  "Value": "SBP25P4XX"
                },
                {
                  "Name": "unit_quantity",
                  "Value": "0"
                },
                {
                  "Name": "line_seq_no",
                  "Value": "1"
                }
              ]
            }
          ],
          "Documents": null
        }
      ],
      "Query": null,
      "FieldMap": [
        
      ],
      "TransactionSplitMethod": 0,
      "Parameters": null
    }
  ]
}

Response

{
    "Results": {
        "Name": "Order",
        "Description": null,
        "UseCodeValues": false,
        "IgnoreDisabled": false,
        "Transactions": [
            {
                "Status": "Failed",
                "DataElements": [
                    {
                        "Name": "TABPAGE_1.order",
                        "BusinessObjectName": null,
                        "Type": "Form",
                        "Keys": [
                            "order_no"
                        ],
                        "Rows": [
                            {
                                "Edits": [
                                    {
                                        "Name": "order_no",
                                        "Value": "12586381",
                                        "IgnoreIfEmpty": true
                                    }
                                ],
                                "RelativeDateEdits": []
                            }
                        ]
                    },
                    {
                        "Name": "TP_ITEMS.items",
                        "BusinessObjectName": null,
                        "Type": "List",
                        "Keys": [
                            "oe_order_item_id",
                            "line_seq_no"
                        ],
                        "Rows": [
                            {
                                "Edits": [
                                    {
                                        "Name": "oe_order_item_id",
                                        "Value": "SBP25P4XX",
                                        "IgnoreIfEmpty": false
                                    },
                                    {
                                        "Name": "unit_quantity",
                                        "Value": "0",
                                        "IgnoreIfEmpty": false
                                    },
                                    {
                                        "Name": "line_seq_no",
                                        "Value": "1",
                                        "IgnoreIfEmpty": false
                                    }
                                ],
                                "RelativeDateEdits": []
                            }
                        ]
                    }
                ],
                "Documents": null
            }
        ],
        "Query": null,
        "FieldMap": [],
        "TransactionSplitMethod": 0,
        "Parameters": null
    },
    "Messages": [
        "Transaction 1:: The order profit percentage of 24.42% is less than the acceptable limit of 26.00%. Continue? [Response: No]\n "
    ],
    "Summary": {
        "Failed": 1,
        "Succeeded": 0,
        "Other": 0
    }
}

Bump. I feel like responding in the Transaction API is a common enough challenge. Maybe not :frowning: