ValidateOrderAmountsParam
Response
validate_amounts
Validation errors for order amounts can be triggered when the `validate_amounts` parameter is set to true.
First, `subtotal_amount` will be validated by summing all `order.line_items` amounts and subtracting any `order.line_items.discounts` amounts.
Next, `total_amount` will be validated by taking `subtotal_amount`, adding the `order.line_items.taxes` amounts, `order.service_charges` amounts, and `order.shipping_charges` amounts to the `subtotal_amount`, and then subtracting the `ORDER`-scoped `order.discounts` amounts from this sum.