Using AI coding agents like Claude Code or Cursor? Try the official Chargebee Agent Skills to speed up your development.Try now
ChargebeeAPI

Manage Payment Sources

Idempotency Supported

This API generates a hosted page URL to add new or update existing payment sources for the customer.

Sample Request

Sample Result[JSON]

URL Format

POST https://[site].chargebee.com/api/v2/hosted_pages/manage_payment_sources

Input Parameters

business_entity_id
optional, string, max chars=50
redirect_url
optional, string, max chars=250

URL to redirect after payment method is added.

customer
Parameters for customer
pass parameters as customer[<param name>]
card
Parameters for card
pass parameters as card[<param name>]

Returns

Hosted page object
Resource object representing hosted_page