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

Manage Payment Sources

Idempotency Supported
Try in API Explorer

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

Sample Request

URL Format

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

Input Parameters

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_pageHosted page object
Resource object representing hosted_page