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

Copy card

Idempotency Supported

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

Sample Result[JSON]

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 method object
Resource object representing third_party_payment_method