Replaces top-level tax-related properties with improved tax modeling on Invoices, Invoice Line Items, and Credit Note Line ItemsBreaking changes
What’s new
We’re introducing a new taxes concept on Invoice Line Items and Credit Note Line Items that contains tax-related data and unifies the structure of tax objects in preparation for adding new types of tax objects. This replaces the top-level tax-related properties on the Invoice Line Item and Credit Note Line Item objects.
We’re also introducing a new total_taxes property on the Invoice and Credit Note objects for aggregated tax information.
Why is this a breaking change?
tax_andrates tax_are no longer available on the Invoice Line Item and Credit Note Line Item objects.amounts total_is no longer available on the Invoice object.tax_ amounts
Impact
Tax Rate IDs on Invoice Line Items and Credit Note Line Items are now nested inside the new taxes property:
- Replace
line_withitem. tax_ rates[0] line_(after verifying thatitem. taxes[0]. tax_ rate_ details. tax_ rate line_isitem. taxes[0]. type tax_)rate_ details - Replace
line_withitem. tax_ amounts[0]. amount line_item. taxes[0]. amount
Tax totals on Invoices and Credit Notes are now stored in total_:
- Replace
invoice.withtotal_ tax_ amounts[0]. amount invoice.(after verifying thattotal_ taxes[0]. amount invoice.istotal_ taxes[0]. type tax_)rate_ details