createOrgBillingSync
Sync the org's plan and subscription from Stripe now, without waiting for Stripe's event, and answer them as getOrgBilling does. Call it when a person returns from a checkout or the billing portal. An org that never started a checkout stays on free. Takes manageBilling on the org.
POST
/orgs/{org_id}/billing/syncPath parameters
Returns
200
OrgBilling
400
InvalidRequest
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
500
OrgFailure | ControlPlaneFailure
JSON
One of the following:
- OrgFailureEncoded
- ControlPlaneFailureEncoded
503
BillingNotConfigured | SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- BillingNotConfiguredEncoded
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded