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.