# RunePay - [RunePay docs](/docs.md): Take card payments with hosted checkout, get told when they succeed, and get paid out. - [Quickstart: hosted checkout in 5 minutes](/docs/quickstart.md): Create a checkout session, pay it with a test card, and confirm the payment from a webhook. - **Guides** - [Node.js SDK](/docs/sdk.md): Use the first-party TypeScript client for checkout, payments, pagination and signed webhooks. - Webhooks - [Fulfil orders with webhooks](/docs/webhooks.md): Receive signed events, verify them, deduplicate, and respond fast. - [Event reference](/docs/webhooks/events.md): Every webhook event RunePay sends today, and what its data holds. - [Testing](/docs/testing.md): Test keys, test cards, and how to make each payment outcome happen. - [Keys and security](/docs/keys.md): Secret keys, where they go, and how to rotate them. - [Tax and merchant of record](/docs/tax-and-mor.md): What being the merchant of record means for you, and where tax fits in the API. - **Reference** - API reference - [API reference](/docs/api.md): Conventions shared by every endpoint, and the generated reference for each one. - [Errors](/docs/api/errors.md): The error shape and every code the API returns. - [Idempotency](/docs/api/idempotency.md): Retry POST requests safely with an Idempotency-Key. - [Pagination](/docs/api/pagination.md): Page through lists with limit, starting_after and has_more. - [Versioning](/docs/api/versioning.md): How the API will change, and what is versioned. - [Rate limits](/docs/api/rate-limits.md): Planned per-key request limits and how to handle them. - **Endpoints** - Checkout sessions - [Create a checkout session](/docs/api/checkout-sessions/create-checkout-session.md): Returns a hosted checkout URL for 1–100 inline line items in one currency. Tax is zero with the none calculator; a tax provider must be selected before live launch. - [Expire an open checkout session](/docs/api/checkout-sessions/expire-checkout-session.md): Refuses complete sessions and pending payments. Already expired sessions return unchanged. - [List a session's line items](/docs/api/checkout-sessions/list-checkout-session-line-items.md) - [List checkout sessions](/docs/api/checkout-sessions/list-checkout-sessions.md) - [Retrieve a checkout session](/docs/api/checkout-sessions/retrieve-checkout-session.md) - Payments - [List payments](/docs/api/payments/list-payments.md): Newest first. - [Retrieve a payment](/docs/api/payments/retrieve-payment.md) - Refunds - [Refund a payment](/docs/api/refunds/create-refund.md): Omit `amount` for a full refund of what is left. - Disputes - [List disputes](/docs/api/disputes/list-disputes.md): Newest first. - [Retrieve a dispute](/docs/api/disputes/retrieve-dispute.md) - Payment links - [Create a payment link](/docs/api/payment-links/create-payment-link.md): A reusable checkout URL. Pass `amount`, or omit it and pass `min_amount` and `max_amount` to let the buyer choose. - [List payment links](/docs/api/payment-links/list-payment-links.md): Newest first. - [Retrieve a payment link](/docs/api/payment-links/retrieve-payment-link.md) - [Update a payment link](/docs/api/payment-links/update-payment-link.md): Changes `active`, `name` or `description`. Omitted fields keep their value. - Balance - [Retrieve the balance](/docs/api/balance/retrieve-balance.md) - Payouts - [List payouts](/docs/api/payouts/list-payouts.md): This merchant's payout lines from approval on, newest first. - [Retrieve a payout](/docs/api/payouts/retrieve-payout.md) - Events - [List events](/docs/api/events/list-events.md): Newest first. Only events from the last 30 days are listable. Filter by exact type or a prefix such as payment.*. - [Retrieve an event](/docs/api/events/retrieve-event.md): Returns the original snapshot for an event from the last 30 days. - Webhook endpoints - [Create a webhook endpoint](/docs/api/webhook-endpoints/create-webhook-endpoint.md): Returns the signing `secret` once. A retry with the same Idempotency-Key gets `409 secret_not_replayable` with the endpoint id instead of the secret. - [Retire the previous signing secret](/docs/api/webhook-endpoints/delete-webhook-endpoint-previous-secret.md): Ends a rotation overlap now. Deliveries are then signed with the current secret only. - [Delete a webhook endpoint](/docs/api/webhook-endpoints/delete-webhook-endpoint.md): Soft-deletes the endpoint, hides it from reads and stops pending and future deliveries. - [List an endpoint's deliveries](/docs/api/webhook-endpoints/list-webhook-deliveries.md): Most recently queued or replayed first. - [List webhook endpoints](/docs/api/webhook-endpoints/list-webhook-endpoints.md): Newest first. - [Replay an event to an endpoint](/docs/api/webhook-endpoints/replay-webhook-event.md): Queues the event for the enabled endpoint and resets its delivery attempts and retry window. - [Retrieve a webhook endpoint](/docs/api/webhook-endpoints/retrieve-webhook-endpoint.md): Never returns the signing secret. - [Rotate the signing secret](/docs/api/webhook-endpoints/rotate-webhook-endpoint-secret.md): Returns the new secret once. Deliveries are signed with both secrets during the overlap unless `immediate` is true. A retry with the same Idempotency-Key gets `409 secret_not_replayable`; rotate again for a new secret. - [Update a webhook endpoint](/docs/api/webhook-endpoints/update-webhook-endpoint.md): Disabling fails pending deliveries; enabling does not resend them. - Webhooks - [checkout.session.completed](/docs/api/webhooks/checkout-session-completed.md): Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time. - [checkout.session.expired](/docs/api/webhooks/checkout-session-expired.md): Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time. - [dispute.closed](/docs/api/webhooks/dispute-closed.md): Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time. - [dispute.created](/docs/api/webhooks/dispute-created.md): Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time. - [dispute.updated](/docs/api/webhooks/dispute-updated.md): Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time. - [payment.failed](/docs/api/webhooks/payment-failed.md): Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time. - [payment_link.created](/docs/api/webhooks/payment-link-created.md): Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time. - [payment_link.updated](/docs/api/webhooks/payment-link-updated.md): Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time. - [payment.refunded](/docs/api/webhooks/payment-refunded.md): Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time. - [payment.succeeded](/docs/api/webhooks/payment-succeeded.md): Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time. - [payout.created](/docs/api/webhooks/payout-created.md): Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time. - [payout.failed](/docs/api/webhooks/payout-failed.md): Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time. - [payout.paid](/docs/api/webhooks/payout-paid.md): Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time. - [refund.created](/docs/api/webhooks/refund-created.md): Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time. - [refund.failed](/docs/api/webhooks/refund-failed.md): Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time. - [refund.succeeded](/docs/api/webhooks/refund-succeeded.md): Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time. - [Changelog](/docs/changelog.md): Changes to the RunePay API and these docs.