Skip to Content
RunePayDocs

Changelog

Changes to the RunePay API and these docs.

The API is not versioned yet (see Versioning). Until the v1 launch, changes are listed here by date.

Checkout sessions v1

Checkout creation now requires inline line_items with price_data; the top-level amount, currency and description shorthand is removed. Sessions return amount_subtotal, amount_tax and amount_total (replacing amount), immutable line items, customer and client references, payment_status and tax behavior. The current none tax calculator returns zero tax. Live launch still requires selecting a tax engine.

Retrieve and list sessions, page their line items, or explicitly expire an open session. Hosted checkout shows every item and quantity. Expiry is persisted on read and by the daily settlement sweep, and emits checkout.session.expired once. Pending payments prevent expiry. Set expires_at between 30 minutes and 24 hours; use {CHECKOUT_SESSION_ID} in success_url to correlate the return.

Customer ids return 404 not_found until the customers resource ships; use customer_email and client_reference_id for now.

Webhook envelope and runner

Events now wrap the full object snapshot in data.object, with object: "event", api_version and originating API request context. Fulfil on checkout.session.completed. New emitted types: refund.created, dispute.updated, payout.created and payout.failed. Updates include changed fields' previous values in data.previous_attributes.

The first delivery is kicked after commit; the existing every-minute runner retries failures. Delivery requests add RunePay-Event-Id and RunePay-Event-Type. Endpoint creation accepts api_version, description and metadata; DELETE /webhook_endpoints/{id} soft-deletes an endpoint. GET /events/{id} retrieves snapshots from the last 30 days, and event lists accept type and creation-time filters.

2026-11-15

Docs. These docs launch at /docs: a quickstart, guides for webhooks, testing, keys, tax, idempotency, pagination, versioning and rate limits, an API reference generated from the OpenAPI spec, and an event reference. Every page is also served as Markdown (/llms.txt, /llms-full.txt, and .md on any page URL).

API foundations. Behaviour changes for existing integrations:

  • Errors gain param, request_id and doc_url, and every code is listed in the error catalog.
  • Publishable keys are refused with 403 permission_error (code secret_key_required); this was an authentication_error before.
  • Unknown body parameters are rejected with parameter_unknown.
  • Every response carries a Request-Id header and Cache-Control: no-store.
  • Idempotency-Key is accepted on every POST, PATCH and DELETE. Creating a webhook endpoint and rotating its secret answer a retry with 409 secret_not_replayable instead of running again.
  • The OpenAPI 3.1 spec is published at /openapi/runepay-v1.json.