# 21627: Max Price must be a valid float

Log Type: APPLICATION

Log Level: ERROR

## Description

This error code is obsolete. Historically, Twilio returned 21627 when your request included the `maxPrice` parameter with a value that was not a valid positive floating-point number. The Message resource marks `maxPrice` as obsolete, and as of June 3, 2024, the parameter no longer has any effect on message sending. Remove `maxPrice` from new requests.

### Possible causes

* A historical API request included `maxPrice` with a value of `0`.
* A historical API request included `maxPrice` with a negative value.
* A historical API request included `maxPrice` with a value that was not a float.
* Your application still sends the obsolete `maxPrice` parameter in Message resource requests. This parameter is obsolete and no longer has any effect as of June 3, 2024.

### Possible solutions

* Remove the `maxPrice` parameter from your Message resource requests.
* If you are troubleshooting an older implementation, set `maxPrice` to a valid positive floating-point value.
* Review your SMS Geo Permissions settings and allow only the countries where you intend to send messages. Twilio recommends this as a more robust way to avoid unexpected messaging costs.

#### Additional resources

* [Messages resource](/docs/messaging/api/message-resource)
* [SMS Geo Permissions](/docs/messaging/guides/sms-geo-permissions)
* [End of Life (EOL) of Twilio Messaging MaxPrice API Parameter](https://www.twilio.com/en-us/changelog/end-of-life--eol--of-twilio-messaging-maxprice-api-parameter)
