Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Chargify migrate preview
def plan_change_preview(new_plan_id)
api_url = "https://#{Chargify.subdomain}{subscription_id}/migrations/preview.json"
data = {:migration => {:product_handle => p_handle} }
response =, :body => data.as_json, :basic_auth => {:username => Chargify.api_key, :password => 'X'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.