Skip to content

POST /v1/billing/portal

POST /v1/billing/portal

POST

Request body

{
"$ref": "#/components/schemas/BillingPortalRequest"
}

Responses

  • 200 — Portal URL
  • 404 — No billing customer
  • 502 — Billing provider error
  • 503 — Billing provider unconfigured

Example

Terminal window
curl -X POST "https://mercury-api.deepeshkalurs.workers.dev/v1/billing/portal" \
-H "Authorization: Bearer $MR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'