API error: Action is invalid

Modified on: Tue, 25 Jul, 2023 at 6:00 PM

This article covers


API returns error message: {“errors”:[{“message”:”Action is invalid.”}]}


Solution

You might see the below error message when making an API call.

{“errors”:[{“message”:”Action is invalid.”}]}


This is because Chargebee API accepts requests only from urlencoded request body, i.e, x-www-form-urlencoded


In the screenshot below, the form-data is used but x-www-form-urlencoded should be used.






Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.
×