---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/21902#article
headline: "21902: InvoiceTag length must be between 0 and 32"
url: https://www.twilio.com/docs/api/errors/21902
inLanguage: en
dateModified: 2026-03-25T13:47:45.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 21902: InvoiceTag length must be between 0 and 32

Log Type: APPLICATION

Log Level: ERROR

## Description

This error appears when a Messaging request includes an `InvoiceTag` value that is outside the supported 0 to 32 character length range.

### Possible causes

* The `InvoiceTag` value is longer than 32 characters.
* The request sends an `InvoiceTag` value that does not fit the supported length validation.

### Possible solutions

* Shorten `InvoiceTag` to 32 characters or fewer before you send the request.
* Validate the `InvoiceTag` length in your application so the request cannot exceed the supported range.

#### Additional resources

* [Messages resource](/docs/messaging/api/message-resource)
