For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
GuidesAPI Reference
GuidesAPI Reference
  • Network API
      • Address
      • Authorization
      • Category
      • Country
      • Currency
      • Grant
      • Idempotency_key
      • Metadata
      • Error
      • ErrorResponse
      • ValidateOrderAmountsParam
  • Customer Request API
  • Management API
LogoLogo
Network APISchemas

ValidateOrderAmountsParam

Example
1false
Was this page helpful?
Previous

Create request

Next
Built with

Response

validate_amountsbooleanRequiredDefaults to false
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.