Skip to content

Add JSON Schema for subscription migration listing - #8586

Draft
gonzaloriestra wants to merge 1 commit into
donald/subscription-migrations-cancel-json-schemafrom
gonzalo/json-subscription-migrations-list
Draft

gonzaloriestra wants to merge 1 commit into
donald/subscription-migrations-cancel-json-schemafrom
gonzalo/json-subscription-migrations-list

Conversation

@gonzaloriestra

@gonzaloriestra gonzaloriestra commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Make the existing subscription migration list JSON contract discoverable and validated.

Related to shop/issues-develop#23886. Stacked on #8541.

WHAT is this pull request doing?

Add a domain-owned schema and infer the subscription type from it. Preserve streamed CSV, the versioned JSON envelope, nullable fields, and page-failure behavior.

Example output

shopify app subscription-migrations list

Text output for an empty list (CSV):

shop_id,status,manual_subscription_name,manual_subscription_price_amount,manual_subscription_price_currency_code,manual_subscription_interval,target_plan_handle,notification_kind,notification_opt_out_deadline,notification_sent_at,price_behavior,effective_date,last_failure_reason

With --json:

{
  "schemaVersion": 1,
  "subscriptions": []
}

How to manually test your changes?

shopify app subscription-migrations list --help
shopify app subscription-migrations list --json-schema
shopify app subscription-migrations list
shopify app subscription-migrations list --json

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes
  • I've considered analytics changes to measure impact

@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label Sep 18, 2026
@gonzaloriestra
gonzaloriestra added this pull request to stack #8590 September 18, 2026 12:23
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/json-subscription-migrations-list branch from 6257876 to f1fc0cd Compare September 21, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant