ChargebeeAPI

Copy card

Idempotency Supported
Try in API Explorer

deprecated

The Payment Sources API , with its additional options and improvements, obsoletes the Cards APIs. This request is obsoleted by the Export payment source API .

Copies the customer's card information to another payment gateway. This is useful if you want to port your customer's card details to another gateway.

Limitation

This request does not support copying of cards 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}/copy_card

Input Parameters

gateway_account_id
required, string, max chars=50

The gateway account you want to copy the card.

Returns

third_party_payment_methodThird party payment method object

Resource object representing third_party_payment_method