---
title: Xero account code issues with zero amount line items
description: Zero rated line-items account code in Xero is either missing or incorrectly assigned.
---

[Skip to content](https://kb.clouddepot.com/knowledge/xero-account-code-issues-with-zero-amount-line-items#main-content)

English

Show submenu for translations

![CoudDepot\_LOGO\_RGB.png\]](https://kb.clouddepot.com/hs-fs/hubfs/CoudDepot_LOGO_RGB.png?height=40&name=CoudDepot_LOGO_RGB.png)

- [Read Our Blog](https://blog.clouddepot.com/)

Open main navigation

Close main navigation

- [Read Our Blog](https://blog.clouddepot.com/)
- English
  
  Show submenu for translations
- [Go to clouddepot.com](https://www.clouddepot.com/)

[Go to clouddepot.com](https://www.clouddepot.com/)

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Cloud Depot Knowledge Base](https://kb.clouddepot.com/knowledge?hsLang=en)
2. [Product - Autotask to Xero](https://kb.clouddepot.com/knowledge/product-autotask-to-xero?hsLang=en)
3. [Troubleshooting](https://kb.clouddepot.com/knowledge/product-autotask-to-xero?hsLang=en#troubleshooting)

# Xero account code issues with zero amount line items

## The GL mappings in Cloud Depot are configured correctly, and the audit report aligns with the appropriate account codes. However, the zero rated line-items account code in Xero is either missing or incorrectly assigned.

An invoice sent through the API with a line-item value of zero will have its account code automatically removed by the Xero API. However, if you later edit the invoice in Xero, it may default to a different account code. This can create a misleading impression of a mapping issue within Cloud Depot.

 

**You can test this behaviour in the Xero web app by following this simple example below.**

Step 1.

Create a test draft invoice that includes two line items, ensuring that the second line item has a price of zero and is assigned an account code that differs from your default account code. Then save and close the invoice.

![](https://kb.clouddepot.com/hs-fs/hubfs/image-png-Feb-18-2025-06-14-08-2587-AM.png?width=1198&height=206&name=image-png-Feb-18-2025-06-14-08-2587-AM.png)

Step 2.

After saving the draft invoice and closing it, when you re-open the invoice, you will notice that the account code for the second line item has reverted to the default account code.

![](https://kb.clouddepot.com/hs-fs/hubfs/image-png-Feb-18-2025-06-14-41-4631-AM.png?width=1210&height=218&name=image-png-Feb-18-2025-06-14-41-4631-AM.png)

**Why does Xero handle zero line items in this way?**  
This occurs because Xero handles line items with a value of zero differently from standard line items in its financial reporting processes. To verify that this behavior is not a bug, we consulted with the Xero API team, who confirmed that this is consistent with the functionality observed in the Xero web interface.

Below is the response from the Xero API Team

*This is just following what happened in the Xero web interface.*  
*If you created an invoice directly in the Xero web interface and one of the line items will have a zero amount, the account info will be removed once the invoice is approved.*

 

- [Product - Autotask to Xero](https://kb.clouddepot.com/knowledge/product-autotask-to-xero?hsLang=en#main-content)

    - [Getting Started](https://kb.clouddepot.com/knowledge/product-autotask-to-xero?hsLang=en#getting-started)
    - [Setup](https://kb.clouddepot.com/knowledge/product-autotask-to-xero?hsLang=en#setup)
    - [Troubleshooting](https://kb.clouddepot.com/knowledge/product-autotask-to-xero?hsLang=en#troubleshooting)
- [Product - Recurring Payment Service (RPS)](https://kb.clouddepot.com/knowledge/product-recurring-payment-service-rps?hsLang=en#main-content)

    - [Getting Started](https://kb.clouddepot.com/knowledge/product-recurring-payment-service-rps?hsLang=en#getting-started)
    - [Customers & Invoices](https://kb.clouddepot.com/knowledge/product-recurring-payment-service-rps?hsLang=en#customers-invoices)
    - [Payment Rules & Auto Pay](https://kb.clouddepot.com/knowledge/product-recurring-payment-service-rps?hsLang=en#payment-rules-auto-pay)
    - [Customer Portal](https://kb.clouddepot.com/knowledge/product-recurring-payment-service-rps?hsLang=en#customer-portal)
    - [Surcharges](https://kb.clouddepot.com/knowledge/product-recurring-payment-service-rps?hsLang=en#surcharges)
    - [Payment Gateways](https://kb.clouddepot.com/knowledge/product-recurring-payment-service-rps?hsLang=en#payment-gateways)
    - [Troubleshooting](https://kb.clouddepot.com/knowledge/product-recurring-payment-service-rps?hsLang=en#troubleshooting)
- [Product - HostedPay](https://kb.clouddepot.com/knowledge/product-hostedpay?hsLang=en)
- [Integrations](https://kb.clouddepot.com/knowledge/integrations?hsLang=en#main-content)

    - [Xero](https://kb.clouddepot.com/knowledge/integrations?hsLang=en#xero)
    - [Autotask](https://kb.clouddepot.com/knowledge/integrations?hsLang=en#autotask)
    - [HaloPSA](https://kb.clouddepot.com/knowledge/integrations?hsLang=en#halopsa)
- [Support, security & updates](https://kb.clouddepot.com/knowledge/support-security-updates?hsLang=en)
- [Billing and Accounting](https://kb.clouddepot.com/knowledge/billing-and-accounting?hsLang=en)
- [Setting up Cloud Depot](https://kb.clouddepot.com/knowledge/setting-up-cloud-depot?hsLang=en)
- [Cloud Depot Status and Contacting Support](https://kb.clouddepot.com/knowledge/cloud-depot-status-and-contacting-support?hsLang=en#main-content)

    - [View Service Status](https://kb.clouddepot.com/knowledge/cloud-depot-status-and-contacting-support?hsLang=en#view-service-status)
    - [Support](https://kb.clouddepot.com/knowledge/cloud-depot-status-and-contacting-support?hsLang=en#support)
- [Sync Customization Documentation](https://kb.clouddepot.com/knowledge/sync-customization-documentation?hsLang=en)

- [Read Our Blog](https://blog.clouddepot.com/)

# Cloud Depot

Cloud Depot Help Center

Copyright © 2026, Cloud Depot