ChargebeeAPI

Switch gateway

Idempotency Supported
Try in API Explorer

Deprecated

This request is obsoleted by the Switch gateway account API for Payment Sources.

Switches the gateway in which customer's card information is stored. This is applicable only if the payment method is card.

Limitation

This request does not support switching between Braintree and Stripe payment gateways. Contact Chargebee Support to perform those actions.

Sample Request

URL Format

POST https://[site].chargebee.com/api/v2/customers/{customer-id}/switch_gateway

Input Parameters

gateway_account_id
required, string, max chars=50

The gateway account you want to switch to.

Returns

customerCustomer object

Resource object representing customer

cardCard object

Resource object representing card