`POST /v1/orgs/{org}/billing/portal` (DAWG-144, DAWG-145).
const url = 'https://api.updawg.net/v1/orgs/example/billing/portal';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.updawg.net/v1/orgs/example/billing/portalStripe’s customer portal, configured for Updawg: invoices to download, the card to change, and cancelling, which takes effect at the end of the period. Changing plan is not offered there; the plans share one meter.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Organization slug.
Responses
Section titled “Responses”Where to send the person.
object
Stripe Checkout. Send the person here; they come back to the portal’s billing page either way.
Example generated
{ "url": "example"}No session.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Only an owner, in person, manages billing.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No such organization, or not yours.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}This organization has never been a Stripe customer (no-customer).
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}The organization’s data is in another region (wrong-region, DAWG-159). detail names that region’s API; send the request there.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Over the organization’s request limit. Retry-After says when to try again; RateLimit-Limit is the burst.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}This deployment takes no payments (billing-unavailable).
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}