ChargebeeAPI

Switch gateway account

Idempotency Supported
Try in API Explorer

Moves a card payment source from one gateway account to another.

Use this operation to migrate payment methods between gateway accounts, such as when:

  • consolidating gateway accounts
  • switching from Spreedly to direct gateway integration
  • aligning payment sources with regional/business unit gateway configurations

Supported gateways

See the Use Cases section for the list of supported source-destination gateway combinations.

Impact on reference_id

This operation updates the reference_id attribute of the payment source. In case you are using this value for any downstream system integrations, you will need to update the reference_id for the payment source in the downstream system to the new value.

Prerequisites & Constraints

Impacts

Payment source

Use Cases

Supported source-destination gateway combinations

The API supports only the following source-destination gateway combinations:

Sample Request

URL Format

POST https://[site].chargebee.com/api/v2/payment_sources/{cust-payment-source-id}/switch_gateway_account

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

payment_sourcePayment source object

Resource object representing payment_source