Hosted pages are the easiest and most secure way to integrate chargebee with your website. By using hosted pages, you can avoid the sensitive card information passing through your server and be compliant with most of the PCI DSS requirements.

When you request for a hosted page, a secure & unique URL will be returned which you could either embed or redirect depending upon the embed parameter value that you had passed.

Specifying "embed" parameter as true allows you to embed the "hosted page" in an iframe in your own website. This helps you provide the best experience to your user as they do not have to leave your website to provide card information. Drawbacks are

  • Your site should also be in https
  • You have to be careful with height and width of the iframe otherwise users might get scroll.

To use the hosted pages, you must configure Redirect URL in the ChargeBee web interface under HOSTED PAGES SETTINGS -> Configuration. The configured redirect URL will be called with the following parameters after user had submitted the page.

  • id - unique identifier of the hosted page resource
  • state - succeeded, failed or cancelled

After the Redirect URL is called by ChargeBee with the above parameters, the details of the hosted page can be fetched using Retrieve a hosted page API. The content attribute will have the details about the customer, subscription, card & invoice based on the type of the hosted page.

For Checkout New Subscription:

  • Customer - The details about the new customer created.
  • Subscription - The details about the new subscription created.
  • Card - The details about the card provided while subscribing.
  • Invoice - The details about the invoice, if one is generated.

For Checkout Existing Subscription:

  • Customer - The details about updated the customer.
  • Subscription - The details about the updated subscription.
  • Card - The details about the card provided while subscribing.
  • Invoice - The details about the invoice, if one is generated.

For Update Payment Method:

  • Customer - The details about the customer for whom the card was updated.
  • Card - The details about the updated card. It will be present only if the type of payment method is card.

When an embedded hosted page is cancelled by your end user, the content attribute will have the unmodified details of customer, subscription & card resources.

Sample hosted page [ JSON ]

{ "id": "Fr1711MtnYH2YJKdCXpG2hlTRcuWoncv8", "type": "checkout_new", "url": "https://yourapp.chargebee.com/pages/Fr1711MtnYH2YJKdCXpG2hlTRcuWoncv8/checkout", "state": "succeeded", "embed": true, "created_at": 1482763638, "expires_at": 1482767238, "object": "hosted_page", "content": { "subscription": { "id": "KyVp6AQ6VB7Kx5C", "customer_id": "KyVp6AQ6VB7Kx5C", "plan_id": "basic", "plan_quantity": 1, "status": "in_trial", "trial_start": 1482763642, "trial_end": 1485442042, "created_at": 1482763642, "started_at": 1482763642, "created_from_ip": "127.0.0.1", "updated_at": 1482763642, "has_scheduled_changes": false, "resource_version": 1482763642000, "deleted": false, "object": "subscription", "currency_code": "USD", "due_invoices_count": 0 }, "customer": { "id": "KyVp6AQ6VB7Kx5C", "first_name": "John", "last_name": "test", "email": "abc@def.com", "auto_collection": "on", "net_term_days": 0, "allow_direct_debit": false, "created_at": 1482763642, "created_from_ip": "127.0.0.1", "taxability": "taxable", "updated_at": 1482763642, "resource_version": 1482763642000, "deleted": false, "object": "customer", "card_status": "valid", "payment_method": { "object": "payment_method", "type": "card", "reference_id": "tok_3Nl8EpvQ6VB8UB4g", "gateway": "chargebee", "status": "valid" }, "promotional_credits": 0, "refundable_credits": 0, "excess_payments": 0 }, "card": { "customer_id": "KyVp6AQ6VB7Kx5C", "status": "valid", "gateway": "chargebee", "first_name": "John", "last_name": "test", "iin": "601111", "last4": "1117", "card_type": "discover", "funding_type": "not_known", "expiry_month": 12, "expiry_year": 2024, "ip_address": "127.0.0.1", "object": "card", "masked_number": "************1117" } } }
id
Unique identifier generated for each hosted page requested.
optional, string, max chars=70
type
Type of the requested hosted page.
optional, enumerated string
Possible values are
checkout_newCheckout new Subscription.checkout_existingCheckout existing Subscription.update_payment_methodUpdate Payment Method for a Customer.
url
Unique URL for the hosted page that will be included in your website.
optional, string, max chars=250
state
Indicating the current state of the hosted page resource.
optional, enumerated string, default=created
Possible values are
createdIndicates the hosted page is just created.requestedIndicates the hosted page is requested by the website.succeededIndicates the hosted page is successfully submitted by the user and response is sent to the return url.cancelledIndicates the page is cancelled by the end user after requesting it.failedIndicates the page submition is failed and response is sent to the return url.
failure_reason
Possible reason if the state is failed.
optional, enumerated string
Possible values are
card_errorIndicates the hosted page is failed due to card error.server_errorindicates the hosted page is failed due to chargebee server error.
pass_thru_content
You can pass through any content specific to the hosted page request and get it back after user had submitted the hosted page.
optional, string, max chars=2048
embed
If true then hosted page formatted to be shown in in-app iframe embed.If false, it is formatted to be shown as a separate page .
boolean, default=true
created_at
Indicates when this hosted page url is generated.
optional, timestamp(UTC) in seconds
expires_at
Indicates when this hosted page url will expire. After this, the hosted page cannot be accessed.
optional, timestamp(UTC) in seconds
content
This attribute will be returned only during retrieve hosted page API call and also the retrieved hosted page resource state should be either in "succeeded" or "canceled" state.
If hosted page state is "succeeded", then the subscription, customer, card & invoice(optional) resources during checkout can be obtained.
If hosted page is state is "canceled", then it will be empty i.e no information about checkout.
jsonobject

Hosted page to accept card details from the subscriber and create a new subscription. This is similar to our server to server API Create a Subscription.

When the redirect URL is notified of the result, we would advise you to retrieve the subscription and verify the details.

Related Tutorials

Notes

As mentioned before this behavior is very similar to the create subscription API call. All the web hook events will be fired only after the submission of payment details by the customer and successful creation of subscription.

Any errors related to the payment form that is submitted is handled as a response within the form so that the user is kept informed about the reason for failure to take corrective action.

Sample Request
curl  https://{site}.chargebee.com/api/v2/hosted_pages/checkout_new \
     -u {site_api_key}: \
     -d customer[email]="john@user.com" \
     -d customer[first_name]="John" \
     -d customer[last_name]="Doe" \
     -d customer[locale]="fr-CA" \
     -d customer[phone]="+1-949-999-9999" \
     -d subscription[plan_id]="basic"
copy
curl  https://{site}.chargebee.com/api/v2/hosted_pages/checkout_new \
     -u {site_api_key}: \
     -d customer[email]="john@user.com" \
     -d customer[first_name]="John" \
     -d customer[last_name]="Doe" \
     -d customer[locale]="fr-CA" \
     -d customer[phone]="+1-949-999-9999" \
     -d subscription[plan_id]="basic"

Sample Response [ JSON ]

{"hosted_page": { "id": "tCI0gvicPcdBEl8hknQh8R4S7I2n01mrx", "type": "checkout_new", "url": "https://yourapp.chargebee.com/pages/v2/tCI0gvicPcdBEl8hknQh8R4S7I2n01mrx/checkout", "state": "created", "embed": true, "created_at": 1482763725, "expires_at": 1482767325, "object": "hosted_page" }}

URL Format POST

https://{site}.chargebee.com/api/v2/hosted_pages/checkout_new
billing_cycles
Number of cycles(plan interval) this subscription should be charged. After the billing cycles exhausted, the subscription will be cancelled.
optional, integer, min=0
redirect_url
The customers will be redirected to this URL upon successful checkout. The hosted page id and state will be passed as parameters to this URL. This parameter is not applicable for iframe messaging.
Note : Redirect URL configured in Settings > Hosted Pages Settings would be overriden by this redirect URL.
Eg : http://yoursite.com?id=<hosted_page_id>&state=succeeded.
optional, string, max chars=250
cancel_url
The customers will be redirected to this URL upon canceling checkout. The hosted page id and state will be passed as parameters to this URL. This parameter is not applicable for iframe messaging.
Note : Cancel URL configured in Settings > Hosted Pages Settings would be overriden by this cancel URL.
Eg : http://yoursite.com?id=<hosted_page_id>&state=cancelled.
optional, string, max chars=250
pass_thru_content
You can pass through any content specific to the hosted page request and get it back after user had submitted the hosted page.
optional, string, max chars=2048
embed
If true then hosted page formatted to be shown in in-app iframe embed.If false, it is formatted to be shown as a separate page .
optional, boolean, default=true
iframe_messaging
If true then iframe will communicate with the parent window. Applicable only for embedded(iframe) hosted pages. If you're using iframe_messaging you need to implement onSuccess & onCancel callbacks. To know more about iframe_messaging please refer to this tutorial.
optional, boolean, default=false
subscription
Parameters for subscription
pass parameters as subscription[<param name>]
subscription[id]
A unique identifier to identify the subscription. You will use this to perform all operations on this subscription.
optional, string, max chars=50
subscription[plan_id]
Identifier of the plan for this subscription.
required, string, max chars=100
subscription[plan_quantity]
Plan quantity for this subscription.
optional, integer, default=1, min=1
subscription[plan_unit_price]
Amount that will override the Plan's default price.
optional, in cents, min=0
subscription[setup_fee]
Amount that will override the default setup fee.
optional, in cents, min=0
subscription[start_date]
Specify this if you want to start the subscription at a future date instead of starting it immediately.
optional, timestamp(UTC) in seconds
subscription[trial_end]
The time at which the trial ends for this subscription. Can be specified to override the default trial period.If '0' is passed, the subscription will be activated immediately.
optional, timestamp(UTC) in seconds
subscription[coupon]

The id of the coupon. For validating the coupon code provided by the user , use the following codes in combination with the param attribute in the error response.

  • resource_not_found : Returned if the coupon is not present.
  • resource_limit_exhausted : Returned if the coupon has expired or the maximum redemption for the coupon has already been reached.
  • invalid_request : Returned if the coupon is not applicable for the particular plan/addon.

optional, string, max chars=50
subscription[invoice_notes]
Invoice Notes for this resource. Read More.
optional, string, max chars=1000
customer
Parameters for customer
pass parameters as customer[<param name>]
customer[id]
Id for the new customer. If not given, this will be same as the subscription id.
optional, string, max chars=50
customer[email]
Email of the customer. Configured email notifications will be sent to this email.
optional, string, max chars=70
customer[first_name]
First name of the customer. If not provided it will be got from contact information entered in the hosted page .
optional, string, max chars=150
customer[last_name]
Last name of the customer. If not provided it will be got from contact information entered in the hosted page .
optional, string, max chars=150
customer[company]
Company name of the customer.
optional, string, max chars=250
customer[taxability]
Specifies if the customer is liable for tax.
optional, enumerated string, default=taxable
Possible values are
taxableCustomer is taxable.exemptCustomer is exempted from tax.
customer[locale]
Determines which region-specific language Chargebee uses to communicate with the customer. In the absence of the locale attribute, Chargebee will use your site's default language for customer communication.
optional, string, max chars=50
customer[phone]
Phone number of the customer.
optional, string, max chars=50
card
Parameters for card
pass parameters as card[<param name>]
card[gateway]
Name of the gateway this card is stored with.
optional, enumerated string
Possible values are
chargebeeChargebee test gateway.stripeStripe payment gateway.wepayWePay Gateway.braintreeBraintree payment gateway.
authorize_netAuthorize.net payment gateway.paypal_proPaypal Pro Account.pinPin payment gateway.ewayeWAy Account.eway_rapideWAy Rapid gateway.worldpayWorldPay payment gateway.balanced_paymentsBalanced payment gateway.beanstreamBeanstream Account.bluepayBluePay payment gateway.elavonElavon Virtual Merchant.first_data_globalFirst Data Global Gateway Virtual Terminal Account.hdfcHDFC Account.migsMasterCard Internet Gateway Service.nmiNMI gateway.ogoneOgone Account.paymillPaymill payment gateway.paypal_payflow_proPaypal Payflow Pro gateway.sage_paySage Pay gateway.tco2Checkout payment gateway.wirecardWireCard Account.not_applicableIndicates that payment gateway is not applicable for this resource.
Show all values[+]
addons
Parameters for addons. Multiple addons can be passed by specifying unique indices.
pass parameters as addons[<param name>][<idx:0..n>]
addons[id][0..n]
Identifier of the addon. Multiple addons can be passed.
optional, string, max chars=100
addons[quantity][0..n]
Addon quantity. Applicable only for the quantity based addons. Should be passed with the same index as that of associated addon id.
optional, integer, default=1, min=1
addons[unit_price][0..n]
Amount that will override the Addon's default price. The Plan's billing frequency will not be considered for overriding. E.g. If the Plan's billing frequency is every 3 months, and if the price override amount is $10, $10 will be used, and not $30 (i.e $10*3).
optional, in cents, min=0
Resource object representing hosted_page.
always returned

You can checkout an existing subscription(typically in the trial state) by passing in the plan, quantity and addon details(like Update a Subscription)

When the redirect URL is notified of the result, we would advise you to retrieve the subscription and verify the details.

Related Tutorial

Notes

As mentioned before this behavior is very similar to the update subscription API call. All the web hook events will be fired only after the submission of payment details by the customer and successful checkout of subscription.

Any errors related to the payment form that is submitted is handled as a response within the form so that the user is kept informed about the reason for failure to take corrective action.

Sample Request
curl  https://{site}.chargebee.com/api/v2/hosted_pages/checkout_existing \
     -u {site_api_key}: \
     -d subscription[id]="8avVGOkx8U1MX" \
     -d subscription[plan_id]="basic"
copy
curl  https://{site}.chargebee.com/api/v2/hosted_pages/checkout_existing \
     -u {site_api_key}: \
     -d subscription[id]="8avVGOkx8U1MX" \
     -d subscription[plan_id]="basic"

Sample Response [ JSON ]

{"hosted_page": { "id": "xBcny5u5BQhPseGeGilwpLPL6lcy1Waq", "type": "checkout_existing", "url": "https://yourapp.chargebee.com/pages/v2/xBcny5u5BQhPseGeGilwpLPL6lcy1Waq/checkout", "state": "created", "embed": true, "created_at": 1482763725, "expires_at": 1482767325, "object": "hosted_page" }}

URL Format POST

https://{site}.chargebee.com/api/v2/hosted_pages/checkout_existing
billing_cycles
Number of cycles(plan interval) this subscription should be charged. After the billing cycles exhausted, the subscription will be cancelled.
optional, integer, min=0
replace_addon_list
Should be true if the existing addons should be replaced with the ones that are being passed.
optional, boolean, default=false
redirect_url
The customers will be redirected to this URL upon successful checkout. The hosted page id and state will be passed as parameters to this URL. This parameter is not applicable for iframe messaging.
Note : Redirect URL configured in Settings > Hosted Pages Settings would be overriden by this redirect URL.
Eg : http://yoursite.com?id=<hosted_page_id>&state=succeeded.
optional, string, max chars=250
cancel_url
The customers will be redirected to this URL upon canceling checkout. The hosted page id and state will be passed as parameters to this URL. This parameter is not applicable for iframe messaging.
Note : Cancel URL configured in Settings > Hosted Pages Settings would be overriden by this cancel URL.
Eg : http://yoursite.com?id=<hosted_page_id>&state=cancelled.
optional, string, max chars=250
pass_thru_content
You can pass through any content specific to the hosted page request and get it back after user had submitted the hosted page.
optional, string, max chars=2048
embed
If true then hosted page formatted to be shown in in-app iframe embed.If false, it is formatted to be shown as a separate page .
optional, boolean, default=true
iframe_messaging
If true then iframe will communicate with the parent window. Applicable only for embedded(iframe) hosted pages. If you're using iframe_messaging you need to implement onSuccess & onCancel callbacks. To know more about iframe_messaging please refer to this tutorial.
optional, boolean, default=false
subscription
Parameters for subscription
pass parameters as subscription[<param name>]
subscription[id]
A unique identifier to identify the subscription. You will use this to perform all operations on this subscription.
required, string, max chars=50
subscription[plan_id]
Identifier of the plan for this subscription.
optional, string, max chars=100
subscription[plan_quantity]
Represents the plan quantity for this subscription.
optional, integer, default=1, min=1
subscription[plan_unit_price]
Amount that will override the Plan's default price.
optional, in cents, min=0
subscription[setup_fee]
Amount that will override the default setup fee.
optional, in cents, min=0
subscription[start_date]
Applicable only for 'future' subscriptions. The new start date of the 'future' subscription.
optional, timestamp(UTC) in seconds
subscription[trial_end]
The time at which the trial should end for this subscription. Can be specified to override the default trial period defined in plan. If '0' is passed, the subscription will be activated immediately.
optional, timestamp(UTC) in seconds
subscription[coupon]
Used to uniquely identify the coupon in your website/application and to integrate with Chargebee.
optional, string, max chars=50
subscription[invoice_notes]
Invoice Notes for this resource. Read More.
optional, string, max chars=1000
card
Parameters for card
pass parameters as card[<param name>]
card[gateway]
Name of the gateway this card is stored with.
optional, enumerated string
Possible values are
chargebeeChargebee test gateway.stripeStripe payment gateway.wepayWePay Gateway.braintreeBraintree payment gateway.
authorize_netAuthorize.net payment gateway.paypal_proPaypal Pro Account.pinPin payment gateway.ewayeWAy Account.eway_rapideWAy Rapid gateway.worldpayWorldPay payment gateway.balanced_paymentsBalanced payment gateway.beanstreamBeanstream Account.bluepayBluePay payment gateway.elavonElavon Virtual Merchant.first_data_globalFirst Data Global Gateway Virtual Terminal Account.hdfcHDFC Account.migsMasterCard Internet Gateway Service.nmiNMI gateway.ogoneOgone Account.paymillPaymill payment gateway.paypal_payflow_proPaypal Payflow Pro gateway.sage_paySage Pay gateway.tco2Checkout payment gateway.wirecardWireCard Account.not_applicableIndicates that payment gateway is not applicable for this resource.
Show all values[+]
addons
Parameters for addons. Multiple addons can be passed by specifying unique indices.
pass parameters as addons[<param name>][<idx:0..n>]
addons[id][0..n]
Identifier of the addon. Multiple addons can be passed.
optional, string, max chars=100
addons[quantity][0..n]
Addon quantity. Applicable only for the quantity based addons. Should be passed with the same index as that of associated addon id.
optional, integer, default=1, min=1
addons[unit_price][0..n]
Amount that will override the Addon's default price. The Plan's billing frequency will not be considered for overriding. E.g. If the Plan's billing frequency is every 3 months, and if the price override amount is $10, $10 will be used, and not $30 (i.e $10*3).
optional, in cents, min=0
Resource object representing hosted_page.
always returned

Using this API, you can request your customers to update their payment method details or change their payment method. This is used in scenarios like customers updating their payment methods before the end of trial or customers switching among payment methods.

When this API is invoked, it returns a hosted page URL. When the customers are directed to this URL, they will be able to change/update their payment methods.

Depending on the payment methods (Card, PayPal Express Checkout, Amazon Payments) that you offer your customers, they will find options to switch among the various methods of payment.

Note:
  • If the card[gateway] parameter is passed, and the customer chooses Card as a payment method, then the card details are stored in the gateway which is passed. However, if the card[gateway] parameter is passed and the customer chooses PayPal Express Checkout/Amazon Payments as a payment method, the gateway passed will be ignored.
  • The option of embedding into an iframe is not supported for PayPal Express Checkout and Amazon Payments as customers are redirected to the respective website pages. Hence if you have PayPal Express Checkout/Amazon Payments configured and pass the parameter embed=true, this will result in an unsuccessful API request. Also, if you have all the three payment methods (Card, Paypal Express Checkout and Amazon Payments) configured and pass the parameter embed=true, the returned hosted page URL will show only Card Payment as a payment method.
Sample Request
curl  https://{site}.chargebee.com/api/v2/hosted_pages/update_payment_method \
     -u {site_api_key}: \
     -d customer[id]="4gkYnd21ouvW"
copy
curl  https://{site}.chargebee.com/api/v2/hosted_pages/update_payment_method \
     -u {site_api_key}: \
     -d customer[id]="4gkYnd21ouvW"

Sample Response [ JSON ]

{"hosted_page": { "id": "PifpQJnSOLlfDbcdMINlYULRcdFmfMdlzY", "type": "update_payment_method", "url": "https://yourapp.chargebee.com/pages/v2/PifpQJnSOLlfDbcdMINlYULRcdFmfMdlzY/update_payment_method", "state": "created", "embed": true, "created_at": 1482763725, "expires_at": 1482850125, "object": "hosted_page" }}

URL Format POST

https://{site}.chargebee.com/api/v2/hosted_pages/update_payment_method
redirect_url
The customers will be redirected to this URL upon successful checkout. The hosted page id and state will be passed as parameters to this URL. This parameter is not applicable for iframe messaging.
Note : Redirect URL configured in Settings > Hosted Pages Settings would be overriden by this redirect URL.
Eg : http://yoursite.com?id=<hosted_page_id>&state=succeeded.
optional, string, max chars=250
cancel_url
The customers will be redirected to this URL upon canceling checkout. The hosted page id and state will be passed as parameters to this URL. This parameter is not applicable for iframe messaging.
Note : Cancel URL configured in Settings > Hosted Pages Settings would be overriden by this cancel URL.
Eg : http://yoursite.com?id=<hosted_page_id>&state=cancelled.
optional, string, max chars=250
pass_thru_content
You can pass through any content specific to the hosted page request and get it back after user had submitted the hosted page.
optional, string, max chars=2048
embed
If true then hosted page formatted to be shown in in-app iframe embed.If false, it is formatted to be shown as a separate page .
optional, boolean, default=true
iframe_messaging
If true then iframe will communicate with the parent window. Applicable only for embedded(iframe) hosted pages. If you're using iframe_messaging you need to implement onSuccess & onCancel callbacks. To know more about iframe_messaging please refer to this tutorial.
optional, boolean, default=false
customer
Parameters for customer
pass parameters as customer[<param name>]
customer[id]
Identifier of the customer.
required, string, max chars=50
card
Parameters for card
pass parameters as card[<param name>]
card[gateway]
Name of the gateway this card is stored with.
optional, enumerated string
Possible values are
chargebeeChargebee test gateway.stripeStripe payment gateway.wepayWePay Gateway.braintreeBraintree payment gateway.
authorize_netAuthorize.net payment gateway.paypal_proPaypal Pro Account.pinPin payment gateway.ewayeWAy Account.eway_rapideWAy Rapid gateway.worldpayWorldPay payment gateway.balanced_paymentsBalanced payment gateway.beanstreamBeanstream Account.bluepayBluePay payment gateway.elavonElavon Virtual Merchant.first_data_globalFirst Data Global Gateway Virtual Terminal Account.hdfcHDFC Account.migsMasterCard Internet Gateway Service.nmiNMI gateway.ogoneOgone Account.paymillPaymill payment gateway.paypal_payflow_proPaypal Payflow Pro gateway.sage_paySage Pay gateway.tco2Checkout payment gateway.wirecardWireCard Account.gocardlessGoCardless.not_applicableIndicates that payment gateway is not applicable for this resource.
Show all values[+]
Resource object representing hosted_page.
always returned
Retrieves the hosted page resource.
Sample Request
curl  https://{site}.chargebee.com/api/v2/hosted_pages/Fr1711MtnYH2YJKdCXpG2hlTRcuWoncv8 \
     -u {site_api_key}:
copy
curl  https://{site}.chargebee.com/api/v2/hosted_pages/Fr1711MtnYH2YJKdCXpG2hlTRcuWoncv8 \
     -u {site_api_key}:

Sample Response [ JSON ]

{"hosted_page": { "id": "Fr1711MtnYH2YJKdCXpG2hlTRcuWoncv8", "type": "checkout_new", "url": "https://yourapp.chargebee.com/pages/Fr1711MtnYH2YJKdCXpG2hlTRcuWoncv8/checkout", "state": "succeeded", "embed": true, "created_at": 1482763638, "expires_at": 1482767238, "object": "hosted_page", "content": { "subscription": { "id": "KyVp6AQ6VB7Kx5C", "customer_id": "KyVp6AQ6VB7Kx5C", "plan_id": "basic", "plan_quantity": 1, "status": "in_trial", "trial_start": 1482763642, "trial_end": 1485442042, "created_at": 1482763642, "started_at": 1482763642, "created_from_ip": "127.0.0.1", "updated_at": 1482763642, "has_scheduled_changes": false, "resource_version": 1482763642000, "deleted": false, "object": "subscription", "currency_code": "USD", "due_invoices_count": 0 }, "customer": { "id": "KyVp6AQ6VB7Kx5C", "first_name": "John", "last_name": "test", "email": "abc@def.com", "auto_collection": "on", "net_term_days": 0, "allow_direct_debit": false, "created_at": 1482763642, "created_from_ip": "127.0.0.1", "taxability": "taxable", "updated_at": 1482763642, "resource_version": 1482763642000, "deleted": false, "object": "customer", "card_status": "valid", "payment_method": { "object": "payment_method", "type": "card", "reference_id": "tok_3Nl8EpvQ6VB8UB4g", "gateway": "chargebee", "status": "valid" }, "promotional_credits": 0, "refundable_credits": 0, "excess_payments": 0 }, "card": { "customer_id": "KyVp6AQ6VB7Kx5C", "status": "valid", "gateway": "chargebee", "first_name": "John", "last_name": "test", "iin": "601111", "last4": "1117", "card_type": "discover", "funding_type": "not_known", "expiry_month": 12, "expiry_year": 2024, "ip_address": "127.0.0.1", "object": "card", "masked_number": "************1117" } } }}

URL Format GET

https://{site}.chargebee.com/api/v2/hosted_pages/{hosted_page_id}
Resource object representing hosted_page.
always returned