Bulk Import Gift Card with Codes?

Hello, any app to bulk import gift card with codes?

Importing from Woocommerce, can export them into csv files, but they all have special codes already assigned with values, any way i can keep the same codes for my customers while importing?

Thanks

Hello @PlantedAquaria
Hope you are doing well!
Can you check this app. May be this one help you.

Hello @PlantedAquaria ,

Can you please provide more details?

As far as I understand, Matrixify can be a good solution for you. In general, it allows you to migrate data to Shopify from Woocommerce.

It seems you wouldn’t be able to solve it without custom coding.

If you need any assistance, please, don’t hesitate to drop me a line.

Best regards,
Anastasia

This is great, thank you!

Shopify doesn’t natively support bulk importing gift cards with pre-defined codes, so most people end up generating them in Shopify and then exporting, or using an app that handles codes explicitly. If you need to import existing codes from a spreadsheet, tools like Altera can help since they support more flexible import logic and validation than Shopify’s default importer. Either way, double-check the codes post-import since gift cards are one area where Shopify is pretty strict.

Here’s the current state of things for anyone migrating gift cards from WooCommerce with existing codes.

Shopify’s Admin API does support keeping your original codes. The giftCardCreate mutation accepts a custom code value, so customers can keep redeeming the exact codes they already have. Four things to check before you import, because these catch almost everyone:

  1. Code format. Shopify gift card codes must be 8 to 20 characters, letters and numbers only. WooCommerce codes with dashes or symbols need cleaning first. Stripping dashes usually works, but that changes the code your customer is holding, so decide whether that matters before you commit.
  2. Balance, not original value. Export the current remaining balance from WooCommerce, not the amount the card was originally issued for. Shopify’s create mutation takes a single initial value, and that becomes the card’s balance. If you import the original amount, every partially spent card gets topped back up to full, which is a real liability problem. Migrate the remaining balance, and skip zero-balance cards entirely.
  3. The accidental email. If you attach a customer to a gift card at creation, Shopify automatically sends them its native “here’s your gift card” email. There is no API opt-out. For a migration you almost never want a thousand customers getting a confusing new gift card notification, so create the cards without the customer attached and keep the card-to-customer mapping in your own records or spreadsheet.
  4. Codes are hidden after creation. Shopify masks gift card codes in the admin once they’re created (you only see the last 4 characters). Whatever method you use, capture and verify the codes during the import itself, because you can’t audit them afterwards.

As for how to actually run it: Matrixify covers this as part of a broader store migration (as Anastasia mentioned above), a developer can script it against the GraphQL Admin API fairly quickly, or there are gift-card-specific import apps. Full disclosure, I built one of those (BatchCard), so weigh that accordingly. Any of the three routes will preserve your codes as long as they fit Shopify’s format.