Skip to content

POST /v1/billing/subscribe

POST /v1/billing/subscribe

POST

Request body

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

Responses

  • 200 — Checkout URL
  • 502 — Billing provider error
  • 503 — Billing provider unconfigured

Example

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