Skip to content

update-bank-transaction fails with 400 "document total does not equal total of the lines" (v0.0.17) #206

Description

@liamfisheruk

update-bank-transaction fails on every call, including a valid no-op, with a 400 ValidationException ("document sub total / total does not equal the sub total/total of the lines").

Read and create work. The update POST body echoes back the calculated SubTotal, TotalTax, Total and UpdatedDateUTC read from the existing transaction; Xero recalculates from the line items and rejects the submitted totals (reproduced with a single line, TaxType: NONE, LineAmountTypes: Inclusive, £3.15). Expected: the update handler should submit only editable fields + line items and let Xero calculate the totals. Reproduced on v0.0.17 (latest). Tenant + full request/response bodies available on request.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions