This guide explains how to switch card products when the old and new products have the same program ID but different BINs.

If the old and new card products have the same BIN, see <a href="doc:switching-products#using-the-switch-product-endpoint" target="_blank">Using the Switch Product endpoint</a> in the _Switching Products_ guide for instructions.

## Result of following this procedure

When this procedure is completed successfully, a new card account with the new product ID is created, and it shares a balance with the old card account. The new card has a new PAN, CAD, expiry, and CVV. The new card and account are active and the old card and account are canceled.

### Program parameters

These program parameters are related to card-activation behavior.

CANCSUsed in conjunction with CANOC, it specifies the status that a card must be in to be canceled when a new card is activated. Default: `N,X,Y,W`
CANOCWhen this parameter is set to `Y` and a new PAN is generated, cards that have the same program ID and cardholder as the newly activated card—and that have statuses specified in CANCS—are changed to status `C` (canceled) when the new card is activated. <br><br>When this parameter is not set, other active cards are not canceled. This parameter must be set at the program level to cancel cards with different product IDs.

## Procedure

This procedure shows how to switch from product ID 3333 to product ID 4444. For details on using the <a href="ref:post_addaccount" target="_blank">Add Account</a> endpoint, see the <a href="doc:add-account-procedure" target="_blank">Adding an Account</a> guide.

  1. Call Add Account with these parameters:

    • `accountNo:` \<PRN or PAN of product 3333>

    • `prodId: 4444`

    • `sharedBalance: 1`

  2. Galileo returns the new PRN, PAN, expiry, and CVV,

  3. The emboss process creates a new emboss record in `status: Y`.

  4. When the new card is included in the batch file to send to the embosser, Galileo sends the <a href="ref:api-reference-events-api-card-shipped" target="_blank">`SHIP: card_shipped`</a> event message.

  5. The embosser mails the new card to the cardholder.

  6. When the cardholder activates the card, you receive the <a href="ref:api-reference-events-api-card-activated" target="_blank">`BACT: card_activated`</a> event message.

  7. During the activation process, Galileo checks CANOC at the program level:

    • If CANOC is `Y`, the old card is canceled.

    • If CANOC is not set, the old card and account are still active. Call <a href="ref:post_modifystatus" target="_blank">Modify Status</a> with these parameters:

      • `accountNo:` \<PRN or PAN of product 3333>

      • `type: 2`


Modify Status with `type: 2` cancels the old account but does not change the status of the cards associated with the account; however, with the account in `status: C` the cards cannot be used. See <a href="doc:about-accounts#closing-accounts" target="_blank">Closing accounts</a> in the _About Accounts_ guide for other ways to cancel an account, such as `type: 16` (change both account and cards to `status: Z`) and `type: 23` (change both account and cards to `status: D`). Make sure your chosen method does not cancel related accounts that you want to keep open, such as savings accounts.