curl --request POST \
--url https://api.dualship.run/admin/billing/sync-plans \
--header 'Authorization: Bearer <token>'{
"results": [
{
"monthly_price_id": "price_monthly_abc",
"product_id": "prod_abc123",
"slug": "pro",
"status": "synced",
"yearly_price_id": "price_yearly_abc"
}
]
}Creates or updates Stripe products and prices for all active subscription plans. Idempotent - safe to run multiple times.
curl --request POST \
--url https://api.dualship.run/admin/billing/sync-plans \
--header 'Authorization: Bearer <token>'{
"results": [
{
"monthly_price_id": "price_monthly_abc",
"product_id": "prod_abc123",
"slug": "pro",
"status": "synced",
"yearly_price_id": "price_yearly_abc"
}
]
}Was this page helpful?