Skip to contentSkip to navigationSkip to topbar
Page toolsOn this pageProducts used
Looking for more inspiration?Visit the
Error
Application error

21627: Max Price must be a valid float

Twilio Messaging DocumentationMessaging

Description

description page anchor

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

possible-causes page anchor
  • 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.
  • 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

additional-resources page anchor