Description of the Bug
{
"instance": "/pages/Hld8lZyz6bczIejaOnPnyi1WdcdjygdoG",
"status": 500,
"timestamp": "21-05-2026 15:45:31.257",
"title": "JSON decoding error: Cannot construct instance of com.chargebee.checkout.client.ms.model.ContractTerm$ActionAtTermEndEnum, problem: Unexpected value 'RENEW'"
}
Steps to reproduce
-
Create hosted page configured with ActionAtAtTermEnd set to RENEW
-
Attempt to open the hosted page on the client
-
Client gets an error from Chargebee api
{
"instance": "/pages/Hld8lZyz6bczIejaOnPnyi1WdcdjygdoG",
"status": 500,
"timestamp": "21-05-2026 15:45:31.257",
"title": "JSON decoding error: Cannot construct instance of com.chargebee.checkout.client.ms.model.ContractTerm$ActionAtTermEndEnum, problem: Unexpected value 'RENEW'"
}
Expected Behavior
no error
I suspect the java client needs to pass "renew" not "RENEW", but I cannot say for sure without checking your backend
Code Snippets (if applicable)
contractTerm(
HostedPageCheckoutExistingForItemsParams.ContractTermParams.builder()
.actionAtTermEnd(HostedPageCheckoutExistingForItemsParams.ContractTermParams.ActionAtTermEnd.RENEW)
.build()
)
Operating System
Docker / temurin-ubuntu-24-04
Language version
Java 25
Library version
4.7.0
Additional context
I just upgraded from v3 to v4, before I did not see this issue so I suspect its a client issue or something I did wrong during the migration, but if its a server issue later in the process it should be caught early right
Description of the Bug
{
"instance": "/pages/Hld8lZyz6bczIejaOnPnyi1WdcdjygdoG",
"status": 500,
"timestamp": "21-05-2026 15:45:31.257",
"title": "JSON decoding error: Cannot construct instance of
com.chargebee.checkout.client.ms.model.ContractTerm$ActionAtTermEndEnum, problem: Unexpected value 'RENEW'"}
Steps to reproduce
Create hosted page configured with ActionAtAtTermEnd set to RENEW
Attempt to open the hosted page on the client
Client gets an error from Chargebee api
{
"instance": "/pages/Hld8lZyz6bczIejaOnPnyi1WdcdjygdoG",
"status": 500,
"timestamp": "21-05-2026 15:45:31.257",
"title": "JSON decoding error: Cannot construct instance of
com.chargebee.checkout.client.ms.model.ContractTerm$ActionAtTermEndEnum, problem: Unexpected value 'RENEW'"}
Expected Behavior
no error
I suspect the java client needs to pass "renew" not "RENEW", but I cannot say for sure without checking your backend
Code Snippets (if applicable)
Operating System
Docker / temurin-ubuntu-24-04
Language version
Java 25
Library version
4.7.0
Additional context
I just upgraded from v3 to v4, before I did not see this issue so I suspect its a client issue or something I did wrong during the migration, but if its a server issue later in the process it should be caught early right