Appearance
Sync Plan
Reconcile a plan with the connected payment provider(s): creates any missing Stripe/Polar product and pushes the current name/description. Price is left as-is — use Update Plan to change pricing.
POST /v1/products/:id/plans/:planId/syncPath Parameters
| Parameter | Description |
|---|---|
id | Product ID |
planId | Plan ID |
Response
json
{
"data": {
"message": "Plan synced with payment provider"
}
}Example
bash
curl -X POST "https://api.packedge.dev/v1/products/prd_xxx/plans/plan_xxx/sync" \
-H "Authorization: Bearer pk_your_api_key"Notes
- Returns
400when no payment provider is connected (connect Stripe or Polar in Console → Settings → Payments first) - Creates real objects in your Stripe/Polar account; the resulting provider linkage is persisted on the plan
- Useful to backfill a provider you connected after the plan was created
