Subscription migration guide

Fix upcoming_billing_date errors: UTC format, the 24-hour rule and time zones

Convert dates with the builder

The two errors

  • “upcoming_billing_date has an invalid date time format”: the value isn’t exactly YYYY-MM-DDTHH:MM:SSZ. 2026-12-05, 12/05/2026, 2026-12-05 09:00 and 2026-12-05T17:00:00.000Z all fail.
  • “upcoming_billing_date has an invalid upcoming billing date”: the date is less than 24 hours after the moment you import the file.
Works
upcoming_billing_date
2026-12-05T17:00:00Z

Time zones: where billing days shift

The Z means UTC. Most apps export local time without saying which zone. Recharge’s export FAQ says all dates and times in its CSV exports are Eastern Time. If you treat an Eastern midnight as UTC midnight, that customer bills the evening before in the US.

Safest approach: keep the calendar day the old app shows and choose a billing time of day in your store’s time zone (for example 09:00). The builder does this and shows each conversion in the report.

Recharge 2026-12-05 (Eastern) billed at 9:00 Eastern
2026-12-05T00:00:00  →  2026-12-05T14:00:00Z

Spreadsheets and day/month order

  • Excel may rewrite dates as 05/12/2026 or 12/5/26. Don’t round-trip the export through Excel; if you must, check the date column as text.
  • A date like 03/04/2026 can be March 4 or April 3. Tell the builder which order your file uses.
  • Daylight saving time changes the UTC hour between summer and winter. Convert each date with its own offset, not one fixed number of hours.

When a date is too soon

If a customer’s next charge is tomorrow, you can’t import it today. Either let the old app take that charge and import the next date, or move the date later on purpose (the builder can do that and flags each one). Never let both apps charge the same cycle.

Stop the old app billing at the right moment

Importing a contract CSV doesn’t stop your old app. If both are active on a billing date, the customer is charged twice. If you stop the old app too early, the customer is charged late or not at all.

  1. Back up first: keep every original export, untouched, until the migration is confirmed.
  2. Pick an import time at least 24 hours before the earliest next billing date in your file.
  3. Import one test contract, then open it in Shopify (Apps > Subscriptions > Contracts) and compare customer, items, price, next billing date, address and payment method with the old app.
  4. Pause or cancel that customer in the old app before the new contract’s billing date. Let the test contract bill once if you can.
  5. Import the rest, then stop billing in the old app for everyone you moved (for Recharge, cancelling the account stops all processing).
  6. Only then uninstall the old app. Shopify cancels the contracts an uninstalled subscription app owns 48 hours after it’s uninstalled.

More subscription migration guides

Sources:

Not affiliated with, endorsed by, or sponsored by Shopify Inc. Shopify is a trademark of Shopify Inc. Not affiliated with Recharge, Seal, Appstle or Loop.