Skip to content

4.7 HostedPage ContractTerm$ActionAtTermEndEnum`, problem: Unexpected value 'RENEW'" #100

@StefanLobbenmeierObjego

Description

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

  1. Create hosted page configured with ActionAtAtTermEnd set to RENEW

  2. Attempt to open the hosted page on the client

  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions