AutumnA
Autumn2mo ago
Olly

Hey, I'm trying to integrate autumn into

Hey, I'm trying to integrate autumn into my dev seeding flow to allow me to seed organizations with products other than the default "free" - however when I run this in the seeder it will still always set the product to "free" rather than respecting the product_id? Even though the products exist with the correct id

await autumn.attach({
  customer_id: org.id,
  product_id: org.plan, // pro / enterprise
});


Is there a different way to programmatically handle attaching a user to a product on the server? unsure why this wouldn't work?
Was this page helpful?