Billing

Create Stripe billing portal session

Creates a Stripe customer portal session for the authenticated user's linked Stripe customer so they can manage payment method, invoices, and subscription state.

post/billing/me/portal

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/billing/me/portal
  • Auth: API key in header x-api-key

Request body

return_urlstring

Example request

{
  "return_url": "https://fe.tonywang.io/app/billing"
}

Response

Stripe portal session

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "id": "cs_test_123",
    "url": "https://checkout.stripe.com/c/pay/cs_test_123"
  },
  "msg": "OK"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.