{"openapi":"3.1.0","info":{"title":"RunePay API","version":"v1","description":"The RunePay merchant API. Authenticate with a secret key as a Bearer token; test and live keys see separate data. Every response carries `Request-Id`. Errors use one shape, documented as `Error`."},"servers":[{"url":"https://runepay.co/api/v1"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Checkout sessions","description":"A hosted checkout page for one payment. The main way to take payments."},{"name":"Payments","description":"Card payments, created by checkout."},{"name":"Refunds","description":"Money returned to the buyer for a payment."},{"name":"Disputes","description":"Chargebacks and inquiries raised by the buyer's bank."},{"name":"Payment links","description":"Reusable checkout URLs you can share."},{"name":"Balance","description":"Funds RunePay holds for you, by state."},{"name":"Payouts","description":"Transfers of your available balance to your bank or wallet."},{"name":"Events","description":"Things that happened in your account, the same objects webhooks deliver."},{"name":"Webhook endpoints","description":"URLs RunePay sends signed events to."},{"name":"Webhooks","description":"Events RunePay sends to your webhook endpoints."}],"paths":{"/checkout_sessions":{"post":{"operationId":"createCheckoutSession","summary":"Create a checkout session","description":"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.","tags":["Checkout sessions"],"x-runepay-scope":"checkout_sessions:write","x-runepay-idempotency":"store","parameters":[{"in":"query","name":"expand[]","schema":{"type":"string","const":"line_items"}},{"in":"header","name":"Idempotency-Key","schema":{"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324","type":"string"},"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request."}],"requestBody":{"required":true,"content":{"application/json":{"example":{"line_items":[{"price_data":{"currency":"usd","unit_amount":1999,"product_data":{"name":"Pro plan, 1 month"},"tax_code":"saas"},"quantity":1}],"client_reference_id":"order_1042","success_url":"https://merchant.example/thanks?session={CHECKOUT_SESSION_ID}","metadata":{"order_id":"1042"}},"schema":{"type":"object","properties":{"line_items":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"price_data":{"type":"object","properties":{"currency":{"type":"string","pattern":"^[a-zA-Z]{3}$"},"unit_amount":{"type":"integer","exclusiveMinimum":0},"product_data":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":500},"description":{"type":"string","maxLength":2000}},"required":["name"],"additionalProperties":false},"tax_code":{"default":"general_digital","type":"string","enum":["digital_software","digital_service","ebook","saas","general_digital"]},"tax_behavior":{"default":"exclusive","type":"string","enum":["exclusive","inclusive"]}},"required":["currency","unit_amount","product_data"],"additionalProperties":false},"quantity":{"type":"integer","exclusiveMinimum":0}},"required":["price_data","quantity"],"additionalProperties":false}},"customer_email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"customer":{"description":"Reserved for customers. Until the customers resource ships, every id returns 404 not_found. Mutually exclusive with customer_email.","type":"string","minLength":1},"client_reference_id":{"type":"string","maxLength":500},"success_url":{"description":"Absolute http(s) URL. {CHECKOUT_SESSION_ID} is replaced at redirect time.","type":["string","null"]},"cancel_url":{"description":"Absolute http(s) cancel URL.","type":["string","null"]},"expires_at":{"description":"30 minutes to 24 hours from now; defaults to 24 hours.","type":"integer"},"metadata":{"type":"object","propertyNames":{"type":"string","maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"locale":{"default":"auto","description":"Hosted checkout supports English; auto uses English.","type":"string","enum":["auto","en"]}},"required":["line_items"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"id":"cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","object":"checkout_session","livemode":false,"status":"open","payment_status":"unpaid","amount_subtotal":1999,"amount_tax":0,"amount_total":1999,"currency":"USD","tax_behavior":"exclusive","line_items":{"object":"list","url":"/api/v1/checkout_sessions/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T/line_items","data":[{"id":"li_01KA4XZY8T2R5M7P1Q4W6E8R0T","object":"item","currency":"USD","quantity":1,"price_data":{"currency":"USD","unit_amount":1999,"product_data":{"name":"Pro plan, 1 month"},"tax_code":"saas","tax_behavior":"exclusive"},"amount_subtotal":1999,"amount_tax":0,"amount_total":1999}],"has_more":false},"description":"Pro plan, 1 month","customer_email":null,"customer":null,"client_reference_id":"order_1042","payment":null,"payment_link":null,"success_url":"https://merchant.example/thanks?session={CHECKOUT_SESSION_ID}","cancel_url":null,"metadata":{"order_id":"1042"},"locale":"auto","url":"https://runepay.co/pay/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","expires_at":1767312000,"expired_at":null,"created":1767225600},"schema":{"$ref":"#/components/schemas/CheckoutSession"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/IdempotencyKeyReused"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"get":{"operationId":"listCheckoutSessions","summary":"List checkout sessions","tags":["Checkout sessions"],"x-runepay-scope":"checkout_sessions:read","parameters":[{"in":"query","name":"limit","schema":{"default":20,"description":"Page size, 1 to 100.","example":20,"type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100."},{"in":"query","name":"starting_after","schema":{"description":"An object id from the previous page; the page starts after it.","type":"string"},"description":"An object id from the previous page; the page starts after it."},{"in":"query","name":"expand[]","schema":{"type":"string","const":"line_items"}},{"in":"query","name":"status","schema":{"type":"string","enum":["open","complete","expired"]}},{"in":"query","name":"payment_link","schema":{"type":"string"}},{"in":"query","name":"customer","schema":{"type":"string"}},{"in":"query","name":"client_reference_id","schema":{"type":"string"}},{"in":"query","name":"created[gte]","schema":{"type":"string","pattern":"^\\d{1,11}$"}},{"in":"query","name":"created[lte]","schema":{"type":"string","pattern":"^\\d{1,11}$"}}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"data":[{"id":"cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","object":"checkout_session","livemode":false,"status":"open","payment_status":"unpaid","amount_subtotal":1999,"amount_tax":0,"amount_total":1999,"currency":"USD","tax_behavior":"exclusive","line_items":{"object":"list","url":"/api/v1/checkout_sessions/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T/line_items","data":[{"id":"li_01KA4XZY8T2R5M7P1Q4W6E8R0T","object":"item","currency":"USD","quantity":1,"price_data":{"currency":"USD","unit_amount":1999,"product_data":{"name":"Pro plan, 1 month"},"tax_code":"saas","tax_behavior":"exclusive"},"amount_subtotal":1999,"amount_tax":0,"amount_total":1999}],"has_more":false},"description":"Pro plan, 1 month","customer_email":null,"customer":null,"client_reference_id":"order_1042","payment":null,"payment_link":null,"success_url":"https://merchant.example/thanks?session={CHECKOUT_SESSION_ID}","cancel_url":null,"metadata":{"order_id":"1042"},"locale":"auto","url":"https://runepay.co/pay/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","expires_at":1767312000,"expired_at":null,"created":1767225600}],"has_more":false},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CheckoutSession"}},"has_more":{"type":"boolean","description":"Whether another page follows."}},"required":["data","has_more"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/checkout_sessions/{id}":{"get":{"operationId":"retrieveCheckoutSession","summary":"Retrieve a checkout session","tags":["Checkout sessions"],"x-runepay-scope":"checkout_sessions:read","parameters":[{"in":"path","name":"id","schema":{"type":"string","description":"The object id."},"required":true,"description":"The object id."},{"in":"query","name":"expand[]","schema":{"type":"string","const":"line_items"}}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"id":"cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","object":"checkout_session","livemode":false,"status":"open","payment_status":"unpaid","amount_subtotal":1999,"amount_tax":0,"amount_total":1999,"currency":"USD","tax_behavior":"exclusive","line_items":{"object":"list","url":"/api/v1/checkout_sessions/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T/line_items","data":[{"id":"li_01KA4XZY8T2R5M7P1Q4W6E8R0T","object":"item","currency":"USD","quantity":1,"price_data":{"currency":"USD","unit_amount":1999,"product_data":{"name":"Pro plan, 1 month"},"tax_code":"saas","tax_behavior":"exclusive"},"amount_subtotal":1999,"amount_tax":0,"amount_total":1999}],"has_more":false},"description":"Pro plan, 1 month","customer_email":null,"customer":null,"client_reference_id":"order_1042","payment":null,"payment_link":null,"success_url":"https://merchant.example/thanks?session={CHECKOUT_SESSION_ID}","cancel_url":null,"metadata":{"order_id":"1042"},"locale":"auto","url":"https://runepay.co/pay/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","expires_at":1767312000,"expired_at":null,"created":1767225600},"schema":{"$ref":"#/components/schemas/CheckoutSession"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/checkout_sessions/{id}/line_items":{"get":{"operationId":"listCheckoutSessionLineItems","summary":"List a session's line items","tags":["Checkout sessions"],"x-runepay-scope":"checkout_sessions:read","parameters":[{"in":"path","name":"id","schema":{"type":"string","description":"The object id."},"required":true,"description":"The object id."},{"in":"query","name":"limit","schema":{"default":20,"description":"Page size, 1 to 100.","example":20,"type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100."},{"in":"query","name":"starting_after","schema":{"description":"An object id from the previous page; the page starts after it.","type":"string"},"description":"An object id from the previous page; the page starts after it."}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"object":"list","url":"/api/v1/checkout_sessions/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T/line_items","data":[{"id":"li_01KA4XZY8T2R5M7P1Q4W6E8R0T","object":"item","currency":"USD","quantity":1,"price_data":{"currency":"USD","unit_amount":1999,"product_data":{"name":"Pro plan, 1 month"},"tax_code":"saas","tax_behavior":"exclusive"},"amount_subtotal":1999,"amount_tax":0,"amount_total":1999}],"has_more":false},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CheckoutLineItem"}},"has_more":{"type":"boolean","description":"Whether another page follows."},"object":{"type":"string","const":"list"},"url":{"type":"string"}},"required":["data","has_more","object","url"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/checkout_sessions/{id}/expire":{"post":{"operationId":"expireCheckoutSession","summary":"Expire an open checkout session","description":"Refuses complete sessions and pending payments. Already expired sessions return unchanged.","tags":["Checkout sessions"],"x-runepay-scope":"checkout_sessions:write","x-runepay-idempotency":"store","parameters":[{"in":"path","name":"id","schema":{"type":"string","description":"The object id."},"required":true,"description":"The object id."},{"in":"header","name":"Idempotency-Key","schema":{"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324","type":"string"},"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request."}],"requestBody":{"required":true,"content":{"application/json":{"example":{},"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"id":"cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","object":"checkout_session","livemode":false,"status":"expired","payment_status":"unpaid","amount_subtotal":1999,"amount_tax":0,"amount_total":1999,"currency":"USD","tax_behavior":"exclusive","line_items":{"object":"list","url":"/api/v1/checkout_sessions/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T/line_items","data":[{"id":"li_01KA4XZY8T2R5M7P1Q4W6E8R0T","object":"item","currency":"USD","quantity":1,"price_data":{"currency":"USD","unit_amount":1999,"product_data":{"name":"Pro plan, 1 month"},"tax_code":"saas","tax_behavior":"exclusive"},"amount_subtotal":1999,"amount_tax":0,"amount_total":1999}],"has_more":false},"description":"Pro plan, 1 month","customer_email":null,"customer":null,"client_reference_id":"order_1042","payment":null,"payment_link":null,"success_url":"https://merchant.example/thanks?session={CHECKOUT_SESSION_ID}","cancel_url":null,"metadata":{"order_id":"1042"},"locale":"auto","url":"https://runepay.co/pay/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","expires_at":1767312000,"expired_at":1767227400,"created":1767225600},"schema":{"$ref":"#/components/schemas/CheckoutSession"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/IdempotencyKeyReused"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/payments":{"get":{"operationId":"listPayments","summary":"List payments","description":"Newest first.","tags":["Payments"],"x-runepay-scope":"payments:read","parameters":[{"in":"query","name":"limit","schema":{"default":20,"description":"Page size, 1 to 100.","example":20,"type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100."},{"in":"query","name":"starting_after","schema":{"description":"An object id from the previous page; the page starts after it.","type":"string"},"description":"An object id from the previous page; the page starts after it."},{"in":"query","name":"status","schema":{"type":"string","enum":["created","pending","succeeded","failed","canceled","partially_refunded","refunded","disputed","charged_back"]}},{"in":"query","name":"created[gte]","schema":{"description":"Created at or after, unix seconds.","type":"string","pattern":"^\\d{1,11}$"},"description":"Created at or after, unix seconds."},{"in":"query","name":"created[lte]","schema":{"description":"Created at or before, unix seconds (the whole second counts).","type":"string","pattern":"^\\d{1,11}$"},"description":"Created at or before, unix seconds (the whole second counts)."}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"data":[{"id":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","object":"payment","livemode":false,"status":"succeeded","amount":1999,"amount_refunded":0,"amount_tax":0,"customer":null,"currency":"USD","fee":88,"description":"Pro plan, 1 month","customer_email":"buyer@example.com","metadata":{"order_id":"1042"},"checkout_session":"cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","card":{"brand":"visa","last4":"4242"},"decline_code":null,"decline_message":null,"outcome":{"risk_level":"normal","risk_score":12},"available_on":1767830400,"created":1767225600}],"has_more":false},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Payment"}},"has_more":{"type":"boolean","description":"Whether another page follows."}},"required":["data","has_more"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/payments/{id}":{"get":{"operationId":"retrievePayment","summary":"Retrieve a payment","tags":["Payments"],"x-runepay-scope":"payments:read","parameters":[{"in":"path","name":"id","schema":{"type":"string","description":"The object id."},"required":true,"description":"The object id."}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"id":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","object":"payment","livemode":false,"status":"succeeded","amount":1999,"amount_refunded":0,"amount_tax":0,"customer":null,"currency":"USD","fee":88,"description":"Pro plan, 1 month","customer_email":"buyer@example.com","metadata":{"order_id":"1042"},"checkout_session":"cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","card":{"brand":"visa","last4":"4242"},"decline_code":null,"decline_message":null,"outcome":{"risk_level":"normal","risk_score":12},"available_on":1767830400,"created":1767225600},"schema":{"$ref":"#/components/schemas/Payment"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/refunds":{"post":{"operationId":"createRefund","summary":"Refund a payment","description":"Omit `amount` for a full refund of what is left.","tags":["Refunds"],"x-runepay-scope":"refunds:write","x-runepay-idempotency":"store","parameters":[{"in":"header","name":"Idempotency-Key","schema":{"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324","type":"string"},"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request."}],"requestBody":{"required":true,"content":{"application/json":{"example":{"payment":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","amount":500,"reason":"requested_by_customer"},"schema":{"type":"object","properties":{"payment":{"type":"string","minLength":1,"description":"The payment to refund."},"amount":{"description":"Amount in minor units. Defaults to the whole refundable amount.","type":"integer"},"reason":{"description":"Your reason, kept on the refund.","type":["string","null"]}},"required":["payment"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"id":"re_01KA5B2C4D6E8F0G2H4J6K8M0N","object":"refund","livemode":false,"payment":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","amount":500,"currency":"USD","status":"succeeded","reason":"requested_by_customer","failure_reason":null,"created":1767312000},"schema":{"$ref":"#/components/schemas/Refund"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/IdempotencyKeyReused"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/disputes":{"get":{"operationId":"listDisputes","summary":"List disputes","description":"Newest first.","tags":["Disputes"],"x-runepay-scope":"disputes:read","parameters":[{"in":"query","name":"limit","schema":{"default":20,"description":"Page size, 1 to 100.","example":20,"type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100."},{"in":"query","name":"starting_after","schema":{"description":"An object id from the previous page; the page starts after it.","type":"string"},"description":"An object id from the previous page; the page starts after it."},{"in":"query","name":"payment","schema":{"description":"Only disputes on this payment.","type":"string"},"description":"Only disputes on this payment."}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"data":[{"id":"dp_01KA6C3D5E7F9G1H3J5K7M9N1P","object":"dispute","livemode":false,"payment":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","amount":1999,"currency":"USD","status":"needs_response","reason":"fraudulent","financial_effect":"chargeback","chargeback_fee":1500,"evidence_due_by":1768435200,"closed_at":null,"created":1767398400}],"has_more":false},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Dispute"}},"has_more":{"type":"boolean","description":"Whether another page follows."}},"required":["data","has_more"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/disputes/{id}":{"get":{"operationId":"retrieveDispute","summary":"Retrieve a dispute","tags":["Disputes"],"x-runepay-scope":"disputes:read","parameters":[{"in":"path","name":"id","schema":{"type":"string","description":"The object id."},"required":true,"description":"The object id."}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"id":"dp_01KA6C3D5E7F9G1H3J5K7M9N1P","object":"dispute","livemode":false,"payment":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","amount":1999,"currency":"USD","status":"needs_response","reason":"fraudulent","financial_effect":"chargeback","chargeback_fee":1500,"evidence_due_by":1768435200,"closed_at":null,"created":1767398400},"schema":{"$ref":"#/components/schemas/Dispute"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/payment_links":{"post":{"operationId":"createPaymentLink","summary":"Create a payment link","description":"A reusable checkout URL. Pass `amount`, or omit it and pass `min_amount` and `max_amount` to let the buyer choose.","tags":["Payment links"],"x-runepay-scope":"payment_links:write","x-runepay-idempotency":"store","parameters":[{"in":"header","name":"Idempotency-Key","schema":{"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324","type":"string"},"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request."}],"requestBody":{"required":true,"content":{"application/json":{"example":{"name":"Pro plan","description":"One month of Pro","amount":1999,"success_url":"https://merchant.example/thanks","metadata":{"plan":"pro"}},"schema":{"type":"object","properties":{"name":{"type":"string","description":"Shown to the buyer."},"description":{"description":"Shown to the buyer.","type":["string","null"]},"amount":{"description":"Fixed amount in minor units.","type":["integer","null"]},"min_amount":{"description":"Lowest amount the buyer may choose, in minor units.","type":["integer","null"]},"max_amount":{"description":"Highest amount the buyer may choose, in minor units.","type":["integer","null"]},"currency":{"description":"ISO 4217 code, any case. Defaults to the account's currency.","type":["string","null"]},"success_url":{"description":"Where the buyer goes after paying. Absolute http(s) URL.","type":["string","null"]},"metadata":{"description":"Key-value strings stored on the object. Values that are not strings are ignored.","anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"id":"plink_01KA7D4E6F8G0H2J4K6M8N0P2Q","object":"payment_link","livemode":false,"active":true,"name":"Pro plan","description":"One month of Pro","amount":1999,"min_amount":null,"max_amount":null,"currency":"USD","success_url":"https://merchant.example/thanks","metadata":{"plan":"pro"},"url":"https://runepay.co/pay/l/plink_01KA7D4E6F8G0H2J4K6M8N0P2Q","created":1767225600,"updated":1767225600},"schema":{"$ref":"#/components/schemas/PaymentLink"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/IdempotencyKeyReused"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"get":{"operationId":"listPaymentLinks","summary":"List payment links","description":"Newest first.","tags":["Payment links"],"x-runepay-scope":"payment_links:read","parameters":[{"in":"query","name":"limit","schema":{"default":20,"description":"Page size, 1 to 100.","example":20,"type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100."},{"in":"query","name":"starting_after","schema":{"description":"An object id from the previous page; the page starts after it.","type":"string"},"description":"An object id from the previous page; the page starts after it."},{"in":"query","name":"active","schema":{"description":"Only active or only inactive links.","type":"string","enum":["true","false"]},"description":"Only active or only inactive links."}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"object":"list","data":[{"id":"plink_01KA7D4E6F8G0H2J4K6M8N0P2Q","object":"payment_link","livemode":false,"active":true,"name":"Pro plan","description":"One month of Pro","amount":1999,"min_amount":null,"max_amount":null,"currency":"USD","success_url":"https://merchant.example/thanks","metadata":{"plan":"pro"},"url":"https://runepay.co/pay/l/plink_01KA7D4E6F8G0H2J4K6M8N0P2Q","created":1767225600,"updated":1767225600}],"has_more":false},"schema":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PaymentLink"}},"has_more":{"type":"boolean"}},"required":["object","data","has_more"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/payment_links/{id}":{"get":{"operationId":"retrievePaymentLink","summary":"Retrieve a payment link","tags":["Payment links"],"x-runepay-scope":"payment_links:read","parameters":[{"in":"path","name":"id","schema":{"type":"string","description":"The object id."},"required":true,"description":"The object id."}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"id":"plink_01KA7D4E6F8G0H2J4K6M8N0P2Q","object":"payment_link","livemode":false,"active":true,"name":"Pro plan","description":"One month of Pro","amount":1999,"min_amount":null,"max_amount":null,"currency":"USD","success_url":"https://merchant.example/thanks","metadata":{"plan":"pro"},"url":"https://runepay.co/pay/l/plink_01KA7D4E6F8G0H2J4K6M8N0P2Q","created":1767225600,"updated":1767225600},"schema":{"$ref":"#/components/schemas/PaymentLink"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"updatePaymentLink","summary":"Update a payment link","description":"Changes `active`, `name` or `description`. Omitted fields keep their value.","tags":["Payment links"],"x-runepay-scope":"payment_links:write","x-runepay-idempotency":"store","parameters":[{"in":"path","name":"id","schema":{"type":"string","description":"The object id."},"required":true,"description":"The object id."},{"in":"header","name":"Idempotency-Key","schema":{"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324","type":"string"},"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request."}],"requestBody":{"required":true,"content":{"application/json":{"example":{"active":false},"schema":{"type":"object","properties":{"active":{"type":"boolean"},"name":{"type":"string"},"description":{"description":"null clears it.","type":["string","null"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"id":"plink_01KA7D4E6F8G0H2J4K6M8N0P2Q","object":"payment_link","livemode":false,"active":false,"name":"Pro plan","description":"One month of Pro","amount":1999,"min_amount":null,"max_amount":null,"currency":"USD","success_url":"https://merchant.example/thanks","metadata":{"plan":"pro"},"url":"https://runepay.co/pay/l/plink_01KA7D4E6F8G0H2J4K6M8N0P2Q","created":1767225600,"updated":1767312000},"schema":{"$ref":"#/components/schemas/PaymentLink"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/IdempotencyKeyReused"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/balance":{"get":{"operationId":"retrieveBalance","summary":"Retrieve the balance","tags":["Balance"],"x-runepay-scope":"balance:read","parameters":[{"in":"query","name":"currency","schema":{"default":"USD","description":"ISO 4217 code, any case.","example":"USD","type":"string"},"description":"ISO 4217 code, any case."}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"object":"balance","livemode":false,"currency":"USD","pending":18990,"available":10200,"reserve":1200},"schema":{"$ref":"#/components/schemas/Balance"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/payouts":{"get":{"operationId":"listPayouts","summary":"List payouts","description":"This merchant's payout lines from approval on, newest first.","tags":["Payouts"],"x-runepay-scope":"payouts:read","parameters":[{"in":"query","name":"limit","schema":{"default":20,"description":"Page size, 1 to 100.","example":20,"type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100."},{"in":"query","name":"starting_after","schema":{"description":"An object id from the previous page; the page starts after it.","type":"string"},"description":"An object id from the previous page; the page starts after it."}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"data":[{"id":"8d0c7a52-3f3e-4c1b-9a77-0c5b8f1e2d34","object":"payout","livemode":false,"amount":10200,"currency":"USD","status":"paid","rail":"fiat_ach","bank_reference":"ACH-20260107-0042","tx_hash":null,"paid_at":1767830400,"created":1767744000}],"has_more":false},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Payout"}},"has_more":{"type":"boolean","description":"Whether another page follows."}},"required":["data","has_more"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/payouts/{id}":{"get":{"operationId":"retrievePayout","summary":"Retrieve a payout","tags":["Payouts"],"x-runepay-scope":"payouts:read","parameters":[{"in":"path","name":"id","schema":{"type":"string","description":"The object id."},"required":true,"description":"The object id."}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"id":"8d0c7a52-3f3e-4c1b-9a77-0c5b8f1e2d34","object":"payout","livemode":false,"amount":10200,"currency":"USD","status":"paid","rail":"fiat_ach","bank_reference":"ACH-20260107-0042","tx_hash":null,"paid_at":1767830400,"created":1767744000},"schema":{"$ref":"#/components/schemas/Payout"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/events":{"get":{"operationId":"listEvents","summary":"List events","description":"Newest first. Only events from the last 30 days are listable. Filter by exact type or a prefix such as payment.*.","tags":["Events"],"x-runepay-scope":"events:read","parameters":[{"in":"query","name":"limit","schema":{"default":20,"description":"Page size, 1 to 100.","example":20,"type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100."},{"in":"query","name":"starting_after","schema":{"description":"An object id from the previous page; the page starts after it.","type":"string"},"description":"An object id from the previous page; the page starts after it."},{"in":"query","name":"type","schema":{"type":"string","pattern":"^[a-z_]+(?:\\.[a-z_]+)*(?:\\.\\*)?$"}},{"in":"query","name":"created[gte]","schema":{"description":"Created at or after, unix seconds.","type":"string","pattern":"^\\d{1,11}$"},"description":"Created at or after, unix seconds."},{"in":"query","name":"created[lte]","schema":{"description":"Created at or before, unix seconds.","type":"string","pattern":"^\\d{1,11}$"},"description":"Created at or before, unix seconds."}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"data":[{"id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","object":"event","type":"payment.succeeded","api_version":"2026-12-15","livemode":false,"created":1767225600,"data":{"object":{"id":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","object":"payment","livemode":false,"status":"succeeded","amount":1999,"amount_refunded":0,"amount_tax":0,"customer":null,"currency":"USD","fee":88,"description":"Pro plan, 1 month","customer_email":"buyer@example.com","metadata":{"order_id":"1042"},"checkout_session":"cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","card":{"brand":"visa","last4":"4242"},"decline_code":null,"decline_message":null,"outcome":{"risk_level":"normal","risk_score":12},"available_on":1767830400,"created":1767225600}},"request":null}],"has_more":false},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"has_more":{"type":"boolean","description":"Whether another page follows."}},"required":["data","has_more"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/events/{id}":{"get":{"operationId":"retrieveEvent","summary":"Retrieve an event","description":"Returns the original snapshot for an event from the last 30 days.","tags":["Events"],"x-runepay-scope":"events:read","parameters":[{"in":"path","name":"id","schema":{"type":"string","description":"The object id."},"required":true,"description":"The object id."}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","object":"event","type":"payment.succeeded","api_version":"2026-12-15","livemode":false,"created":1767225600,"data":{"object":{"id":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","object":"payment","livemode":false,"status":"succeeded","amount":1999,"amount_refunded":0,"amount_tax":0,"customer":null,"currency":"USD","fee":88,"description":"Pro plan, 1 month","customer_email":"buyer@example.com","metadata":{"order_id":"1042"},"checkout_session":"cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","card":{"brand":"visa","last4":"4242"},"decline_code":null,"decline_message":null,"outcome":{"risk_level":"normal","risk_score":12},"available_on":1767830400,"created":1767225600}},"request":null},"schema":{"$ref":"#/components/schemas/Event"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/webhook_endpoints":{"get":{"operationId":"listWebhookEndpoints","summary":"List webhook endpoints","description":"Newest first.","tags":["Webhook endpoints"],"x-runepay-scope":"webhook_endpoints:read","parameters":[{"in":"query","name":"limit","schema":{"default":20,"description":"Page size, 1 to 100.","example":20,"type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100."},{"in":"query","name":"starting_after","schema":{"description":"An object id from the previous page; the page starts after it.","type":"string"},"description":"An object id from the previous page; the page starts after it."}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"data":[{"id":"we_01KA9F6G8H0J2K4M6N8P0Q2R4S","object":"webhook_endpoint","url":"https://merchant.example/hooks","livemode":false,"enabled_events":["*"],"status":"enabled","api_version":"2026-12-15","description":null,"metadata":{},"created":1767225600}],"has_more":false},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}},"has_more":{"type":"boolean","description":"Whether another page follows."}},"required":["data","has_more"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"createWebhookEndpoint","summary":"Create a webhook endpoint","description":"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.","tags":["Webhook endpoints"],"x-runepay-scope":"webhook_endpoints:write","x-runepay-idempotency":"claim_only","parameters":[{"in":"header","name":"Idempotency-Key","schema":{"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324","type":"string"},"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request."}],"requestBody":{"required":true,"content":{"application/json":{"example":{"url":"https://merchant.example/hooks","enabled_events":["*"]},"schema":{"type":"object","properties":{"api_version":{"description":"Event envelope version. Defaults to 2026-12-15.","type":"string","const":"2026-12-15"},"description":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Your own key-value strings, returned as sent."},"url":{"type":"string","description":"A public HTTPS URL."},"enabled_events":{"type":"array","items":{"type":"string"},"description":"Event types to deliver, or `[\"*\"]` for all."}},"required":["url","enabled_events"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"id":"we_01KA9F6G8H0J2K4M6N8P0Q2R4S","object":"webhook_endpoint","url":"https://merchant.example/hooks","livemode":false,"enabled_events":["*"],"status":"enabled","api_version":"2026-12-15","description":null,"metadata":{},"created":1767225600,"secret":"whsec_9fK2mQ7xR4tV1wY8zA3bC6dE0gH5jL"},"schema":{"$ref":"#/components/schemas/WebhookEndpointWithSecret"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/IdempotencyKeyReused"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/webhook_endpoints/{id}":{"get":{"operationId":"retrieveWebhookEndpoint","summary":"Retrieve a webhook endpoint","description":"Never returns the signing secret.","tags":["Webhook endpoints"],"x-runepay-scope":"webhook_endpoints:read","parameters":[{"in":"path","name":"id","schema":{"type":"string","description":"The object id."},"required":true,"description":"The object id."}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"id":"we_01KA9F6G8H0J2K4M6N8P0Q2R4S","object":"webhook_endpoint","url":"https://merchant.example/hooks","livemode":false,"enabled_events":["*"],"status":"enabled","api_version":"2026-12-15","description":null,"metadata":{},"created":1767225600},"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"patch":{"operationId":"updateWebhookEndpoint","summary":"Update a webhook endpoint","description":"Disabling fails pending deliveries; enabling does not resend them.","tags":["Webhook endpoints"],"x-runepay-scope":"webhook_endpoints:write","x-runepay-idempotency":"store","parameters":[{"in":"path","name":"id","schema":{"type":"string","description":"The object id."},"required":true,"description":"The object id."},{"in":"header","name":"Idempotency-Key","schema":{"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324","type":"string"},"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request."}],"requestBody":{"required":true,"content":{"application/json":{"example":{"status":"disabled"},"schema":{"type":"object","properties":{"api_version":{"description":"Event envelope version. Defaults to 2026-12-15.","type":"string","const":"2026-12-15"},"description":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Your own key-value strings, returned as sent."},"url":{"description":"A public HTTPS URL.","type":"string"},"enabled_events":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["enabled","disabled"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"id":"we_01KA9F6G8H0J2K4M6N8P0Q2R4S","object":"webhook_endpoint","url":"https://merchant.example/hooks","livemode":false,"enabled_events":["*"],"status":"disabled","api_version":"2026-12-15","description":null,"metadata":{},"created":1767225600},"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/IdempotencyKeyReused"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"deleteWebhookEndpoint","summary":"Delete a webhook endpoint","description":"Soft-deletes the endpoint, hides it from reads and stops pending and future deliveries.","tags":["Webhook endpoints"],"x-runepay-scope":"webhook_endpoints:write","x-runepay-idempotency":"store","parameters":[{"in":"path","name":"id","schema":{"type":"string","description":"The object id."},"required":true,"description":"The object id."},{"in":"header","name":"Idempotency-Key","schema":{"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324","type":"string"},"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request."}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"id":"we_01KA9F6G8H0J2K4M6N8P0Q2R4S","object":"webhook_endpoint","deleted":true},"schema":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"webhook_endpoint"},"deleted":{"type":"boolean","const":true}},"required":["id","object","deleted"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/IdempotencyKeyReused"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/webhook_endpoints/{id}/deliveries":{"get":{"operationId":"listWebhookDeliveries","summary":"List an endpoint's deliveries","description":"Most recently queued or replayed first.","tags":["Webhook endpoints"],"x-runepay-scope":"webhook_endpoints:read","parameters":[{"in":"path","name":"id","schema":{"type":"string","description":"The object id."},"required":true,"description":"The object id."},{"in":"query","name":"limit","schema":{"default":20,"description":"Page size, 1 to 100.","example":20,"type":"integer","minimum":1,"maximum":100},"description":"Page size, 1 to 100."},{"in":"query","name":"starting_after","schema":{"description":"An object id from the previous page; the page starts after it.","type":"string"},"description":"An object id from the previous page; the page starts after it."}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"data":[{"id":"0f9e8d7c-6b5a-4c3d-8e2f-1a0b9c8d7e6f","event_id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","status":"succeeded","attempts":1,"last_response_status":200,"last_error":null,"created":1767225600,"delivered_at":1767225601}],"has_more":false},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"}},"has_more":{"type":"boolean","description":"Whether another page follows."}},"required":["data","has_more"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/webhook_endpoints/{id}/previous_secret":{"delete":{"operationId":"deleteWebhookEndpointPreviousSecret","summary":"Retire the previous signing secret","description":"Ends a rotation overlap now. Deliveries are then signed with the current secret only.","tags":["Webhook endpoints"],"x-runepay-scope":"webhook_endpoints:write","x-runepay-idempotency":"none","parameters":[{"in":"path","name":"id","schema":{"type":"string","description":"The object id."},"required":true,"description":"The object id."}],"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"id":"we_01KA9F6G8H0J2K4M6N8P0Q2R4S","object":"webhook_endpoint","url":"https://merchant.example/hooks","livemode":false,"enabled_events":["*"],"status":"enabled","api_version":"2026-12-15","description":null,"metadata":{},"created":1767225600},"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/webhook_endpoints/{id}/replay":{"post":{"operationId":"replayWebhookEvent","summary":"Replay an event to an endpoint","description":"Queues the event for the enabled endpoint and resets its delivery attempts and retry window.","tags":["Webhook endpoints"],"x-runepay-scope":"webhook_endpoints:write","x-runepay-idempotency":"store","parameters":[{"in":"path","name":"id","schema":{"type":"string","description":"The object id."},"required":true,"description":"The object id."},{"in":"header","name":"Idempotency-Key","schema":{"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324","type":"string"},"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request."}],"requestBody":{"required":true,"content":{"application/json":{"example":{"event_id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"},"schema":{"type":"object","properties":{"event_id":{"type":"string","description":"The event to deliver again."}},"required":["event_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"id":"0f9e8d7c-6b5a-4c3d-8e2f-1a0b9c8d7e6f","event_id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","status":"pending"},"schema":{"type":"object","properties":{"id":{"type":"string"},"event_id":{"type":"string"},"status":{"type":"string","enum":["pending","succeeded","failed"]}},"required":["id","event_id","status"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/IdempotencyKeyReused"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/webhook_endpoints/{id}/rotate":{"post":{"operationId":"rotateWebhookEndpointSecret","summary":"Rotate the signing secret","description":"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.","tags":["Webhook endpoints"],"x-runepay-scope":"webhook_endpoints:write","x-runepay-idempotency":"claim_only","parameters":[{"in":"path","name":"id","schema":{"type":"string","description":"The object id."},"required":true,"description":"The object id."},{"in":"header","name":"Idempotency-Key","schema":{"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324","type":"string"},"description":"Makes a retry safe: the same key and body within 24 hours does not repeat the request."}],"requestBody":{"required":true,"content":{"application/json":{"example":{"immediate":false},"schema":{"type":"object","properties":{"immediate":{"description":"Retire the current and any previous secret now, e.g. after a leak.","type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"id":"we_01KA9F6G8H0J2K4M6N8P0Q2R4S","object":"webhook_endpoint","url":"https://merchant.example/hooks","livemode":false,"enabled_events":["*"],"status":"enabled","api_version":"2026-12-15","description":null,"metadata":{},"created":1767225600,"secret":"whsec_9fK2mQ7xR4tV1wY8zA3bC6dE0gH5jL"},"schema":{"$ref":"#/components/schemas/WebhookEndpointWithSecret"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/IdempotencyKeyReused"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}}},"webhooks":{"checkout.session.completed":{"post":{"operationId":"webhook_checkout_session_completed","summary":"checkout.session.completed","description":"Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time.","tags":["Webhooks"],"parameters":[{"in":"header","name":"RunePay-Signature","schema":{"type":"string","description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},"required":true,"description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},{"in":"header","name":"RunePay-Event-Id","schema":{"type":"string"},"required":true},{"in":"header","name":"RunePay-Event-Type","schema":{"type":"string","const":"checkout.session.completed"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","object":"event","type":"checkout.session.completed","api_version":"2026-12-15","livemode":false,"created":1767225600,"data":{"object":{"id":"cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","object":"checkout_session","livemode":false,"status":"complete","payment_status":"paid","amount_subtotal":1999,"amount_tax":0,"amount_total":1999,"currency":"USD","tax_behavior":"exclusive","line_items":{"object":"list","url":"/api/v1/checkout_sessions/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T/line_items","data":[{"id":"li_01KA4XZY8T2R5M7P1Q4W6E8R0T","object":"item","currency":"USD","quantity":1,"price_data":{"currency":"USD","unit_amount":1999,"product_data":{"name":"Pro plan, 1 month"},"tax_code":"saas","tax_behavior":"exclusive"},"amount_subtotal":1999,"amount_tax":0,"amount_total":1999}],"has_more":false},"description":"Pro plan, 1 month","customer_email":null,"customer":null,"client_reference_id":"order_1042","payment":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","payment_link":null,"success_url":"https://merchant.example/thanks?session={CHECKOUT_SESSION_ID}","cancel_url":null,"metadata":{"order_id":"1042"},"locale":"auto","url":"https://runepay.co/pay/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","expires_at":1767312000,"expired_at":null,"created":1767225600}},"request":null},"schema":{"type":"object","properties":{"id":{"type":"string","example":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"checkout.session.completed"},"api_version":{"type":"string"},"livemode":{"type":"boolean"},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"data":{"type":"object","properties":{"object":{"$ref":"#/components/schemas/CheckoutSession"}},"required":["object"],"additionalProperties":false},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"idempotency_key":{"type":["string","null"]}},"required":["id","idempotency_key"],"additionalProperties":false},{"type":"null"}],"description":"The originating API request, or null for processor webhooks, cron and dashboard actions."}},"required":["id","object","type","api_version","livemode","created","data","request"],"additionalProperties":false}}}},"responses":{"200":{"description":"Return any 2xx quickly to acknowledge the event."}}}},"checkout.session.expired":{"post":{"operationId":"webhook_checkout_session_expired","summary":"checkout.session.expired","description":"Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time.","tags":["Webhooks"],"parameters":[{"in":"header","name":"RunePay-Signature","schema":{"type":"string","description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},"required":true,"description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},{"in":"header","name":"RunePay-Event-Id","schema":{"type":"string"},"required":true},{"in":"header","name":"RunePay-Event-Type","schema":{"type":"string","const":"checkout.session.expired"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","object":"event","type":"checkout.session.expired","api_version":"2026-12-15","livemode":false,"created":1767225600,"data":{"object":{"id":"cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","object":"checkout_session","livemode":false,"status":"expired","payment_status":"unpaid","amount_subtotal":1999,"amount_tax":0,"amount_total":1999,"currency":"USD","tax_behavior":"exclusive","line_items":{"object":"list","url":"/api/v1/checkout_sessions/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T/line_items","data":[{"id":"li_01KA4XZY8T2R5M7P1Q4W6E8R0T","object":"item","currency":"USD","quantity":1,"price_data":{"currency":"USD","unit_amount":1999,"product_data":{"name":"Pro plan, 1 month"},"tax_code":"saas","tax_behavior":"exclusive"},"amount_subtotal":1999,"amount_tax":0,"amount_total":1999}],"has_more":false},"description":"Pro plan, 1 month","customer_email":null,"customer":null,"client_reference_id":"order_1042","payment":null,"payment_link":null,"success_url":"https://merchant.example/thanks?session={CHECKOUT_SESSION_ID}","cancel_url":null,"metadata":{"order_id":"1042"},"locale":"auto","url":"https://runepay.co/pay/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","expires_at":1767312000,"expired_at":1767225600,"created":1767225600}},"request":null},"schema":{"type":"object","properties":{"id":{"type":"string","example":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"checkout.session.expired"},"api_version":{"type":"string"},"livemode":{"type":"boolean"},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"data":{"type":"object","properties":{"object":{"$ref":"#/components/schemas/CheckoutSession"}},"required":["object"],"additionalProperties":false},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"idempotency_key":{"type":["string","null"]}},"required":["id","idempotency_key"],"additionalProperties":false},{"type":"null"}],"description":"The originating API request, or null for processor webhooks, cron and dashboard actions."}},"required":["id","object","type","api_version","livemode","created","data","request"],"additionalProperties":false}}}},"responses":{"200":{"description":"Return any 2xx quickly to acknowledge the event."}}}},"payment.succeeded":{"post":{"operationId":"webhook_payment_succeeded","summary":"payment.succeeded","description":"Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time.","tags":["Webhooks"],"parameters":[{"in":"header","name":"RunePay-Signature","schema":{"type":"string","description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},"required":true,"description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},{"in":"header","name":"RunePay-Event-Id","schema":{"type":"string"},"required":true},{"in":"header","name":"RunePay-Event-Type","schema":{"type":"string","const":"payment.succeeded"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","object":"event","type":"payment.succeeded","api_version":"2026-12-15","livemode":false,"created":1767225600,"data":{"object":{"id":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","object":"payment","livemode":false,"status":"succeeded","amount":1999,"amount_refunded":0,"amount_tax":0,"customer":null,"currency":"USD","fee":88,"description":"Pro plan, 1 month","customer_email":"buyer@example.com","metadata":{"order_id":"1042"},"checkout_session":"cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","card":{"brand":"visa","last4":"4242"},"decline_code":null,"decline_message":null,"outcome":{"risk_level":"normal","risk_score":12},"available_on":1767830400,"created":1767225600}},"request":null},"schema":{"type":"object","properties":{"id":{"type":"string","example":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"payment.succeeded"},"api_version":{"type":"string"},"livemode":{"type":"boolean"},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"data":{"type":"object","properties":{"object":{"$ref":"#/components/schemas/Payment"}},"required":["object"],"additionalProperties":false},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"idempotency_key":{"type":["string","null"]}},"required":["id","idempotency_key"],"additionalProperties":false},{"type":"null"}],"description":"The originating API request, or null for processor webhooks, cron and dashboard actions."}},"required":["id","object","type","api_version","livemode","created","data","request"],"additionalProperties":false}}}},"responses":{"200":{"description":"Return any 2xx quickly to acknowledge the event."}}}},"payment.failed":{"post":{"operationId":"webhook_payment_failed","summary":"payment.failed","description":"Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time.","tags":["Webhooks"],"parameters":[{"in":"header","name":"RunePay-Signature","schema":{"type":"string","description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},"required":true,"description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},{"in":"header","name":"RunePay-Event-Id","schema":{"type":"string"},"required":true},{"in":"header","name":"RunePay-Event-Type","schema":{"type":"string","const":"payment.failed"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","object":"event","type":"payment.failed","api_version":"2026-12-15","livemode":false,"created":1767225600,"data":{"object":{"id":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","object":"payment","livemode":false,"status":"failed","amount":1999,"amount_refunded":0,"amount_tax":0,"customer":null,"currency":"USD","fee":null,"description":"Pro plan, 1 month","customer_email":"buyer@example.com","metadata":{"order_id":"1042"},"checkout_session":"cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","card":{"brand":"visa","last4":"4242"},"decline_code":"do_not_honor","decline_message":"The card was declined.","outcome":{"risk_level":"normal","risk_score":12},"available_on":null,"created":1767225600}},"request":null},"schema":{"type":"object","properties":{"id":{"type":"string","example":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"payment.failed"},"api_version":{"type":"string"},"livemode":{"type":"boolean"},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"data":{"type":"object","properties":{"object":{"$ref":"#/components/schemas/Payment"}},"required":["object"],"additionalProperties":false},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"idempotency_key":{"type":["string","null"]}},"required":["id","idempotency_key"],"additionalProperties":false},{"type":"null"}],"description":"The originating API request, or null for processor webhooks, cron and dashboard actions."}},"required":["id","object","type","api_version","livemode","created","data","request"],"additionalProperties":false}}}},"responses":{"200":{"description":"Return any 2xx quickly to acknowledge the event."}}}},"payment.refunded":{"post":{"operationId":"webhook_payment_refunded","summary":"payment.refunded","description":"Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time.","tags":["Webhooks"],"parameters":[{"in":"header","name":"RunePay-Signature","schema":{"type":"string","description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},"required":true,"description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},{"in":"header","name":"RunePay-Event-Id","schema":{"type":"string"},"required":true},{"in":"header","name":"RunePay-Event-Type","schema":{"type":"string","const":"payment.refunded"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","object":"event","type":"payment.refunded","api_version":"2026-12-15","livemode":false,"created":1767225600,"data":{"object":{"id":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","object":"payment","livemode":false,"status":"refunded","amount":1999,"amount_refunded":1999,"amount_tax":0,"customer":null,"currency":"USD","fee":88,"description":"Pro plan, 1 month","customer_email":"buyer@example.com","metadata":{"order_id":"1042"},"checkout_session":"cs_01KA4XZY8T2R5M7P1Q4W6E8R0T","card":{"brand":"visa","last4":"4242"},"decline_code":null,"decline_message":null,"outcome":{"risk_level":"normal","risk_score":12},"available_on":1767830400,"created":1767225600}},"request":null},"schema":{"type":"object","properties":{"id":{"type":"string","example":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"payment.refunded"},"api_version":{"type":"string"},"livemode":{"type":"boolean"},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"data":{"type":"object","properties":{"object":{"$ref":"#/components/schemas/Payment"}},"required":["object"],"additionalProperties":false},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"idempotency_key":{"type":["string","null"]}},"required":["id","idempotency_key"],"additionalProperties":false},{"type":"null"}],"description":"The originating API request, or null for processor webhooks, cron and dashboard actions."}},"required":["id","object","type","api_version","livemode","created","data","request"],"additionalProperties":false}}}},"responses":{"200":{"description":"Return any 2xx quickly to acknowledge the event."}}}},"refund.created":{"post":{"operationId":"webhook_refund_created","summary":"refund.created","description":"Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time.","tags":["Webhooks"],"parameters":[{"in":"header","name":"RunePay-Signature","schema":{"type":"string","description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},"required":true,"description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},{"in":"header","name":"RunePay-Event-Id","schema":{"type":"string"},"required":true},{"in":"header","name":"RunePay-Event-Type","schema":{"type":"string","const":"refund.created"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","object":"event","type":"refund.created","api_version":"2026-12-15","livemode":false,"created":1767225600,"data":{"object":{"id":"re_01KA5B2C4D6E8F0G2H4J6K8M0N","object":"refund","livemode":false,"payment":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","amount":500,"currency":"USD","status":"pending","reason":"requested_by_customer","failure_reason":null,"created":1767312000}},"request":null},"schema":{"type":"object","properties":{"id":{"type":"string","example":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"refund.created"},"api_version":{"type":"string"},"livemode":{"type":"boolean"},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"data":{"type":"object","properties":{"object":{"$ref":"#/components/schemas/Refund"}},"required":["object"],"additionalProperties":false},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"idempotency_key":{"type":["string","null"]}},"required":["id","idempotency_key"],"additionalProperties":false},{"type":"null"}],"description":"The originating API request, or null for processor webhooks, cron and dashboard actions."}},"required":["id","object","type","api_version","livemode","created","data","request"],"additionalProperties":false}}}},"responses":{"200":{"description":"Return any 2xx quickly to acknowledge the event."}}}},"refund.succeeded":{"post":{"operationId":"webhook_refund_succeeded","summary":"refund.succeeded","description":"Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time.","tags":["Webhooks"],"parameters":[{"in":"header","name":"RunePay-Signature","schema":{"type":"string","description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},"required":true,"description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},{"in":"header","name":"RunePay-Event-Id","schema":{"type":"string"},"required":true},{"in":"header","name":"RunePay-Event-Type","schema":{"type":"string","const":"refund.succeeded"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","object":"event","type":"refund.succeeded","api_version":"2026-12-15","livemode":false,"created":1767225600,"data":{"object":{"id":"re_01KA5B2C4D6E8F0G2H4J6K8M0N","object":"refund","livemode":false,"payment":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","amount":500,"currency":"USD","status":"succeeded","reason":"requested_by_customer","failure_reason":null,"created":1767312000}},"request":null},"schema":{"type":"object","properties":{"id":{"type":"string","example":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"refund.succeeded"},"api_version":{"type":"string"},"livemode":{"type":"boolean"},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"data":{"type":"object","properties":{"object":{"$ref":"#/components/schemas/Refund"}},"required":["object"],"additionalProperties":false},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"idempotency_key":{"type":["string","null"]}},"required":["id","idempotency_key"],"additionalProperties":false},{"type":"null"}],"description":"The originating API request, or null for processor webhooks, cron and dashboard actions."}},"required":["id","object","type","api_version","livemode","created","data","request"],"additionalProperties":false}}}},"responses":{"200":{"description":"Return any 2xx quickly to acknowledge the event."}}}},"refund.failed":{"post":{"operationId":"webhook_refund_failed","summary":"refund.failed","description":"Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time.","tags":["Webhooks"],"parameters":[{"in":"header","name":"RunePay-Signature","schema":{"type":"string","description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},"required":true,"description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},{"in":"header","name":"RunePay-Event-Id","schema":{"type":"string"},"required":true},{"in":"header","name":"RunePay-Event-Type","schema":{"type":"string","const":"refund.failed"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","object":"event","type":"refund.failed","api_version":"2026-12-15","livemode":false,"created":1767225600,"data":{"object":{"id":"re_01KA5B2C4D6E8F0G2H4J6K8M0N","object":"refund","livemode":false,"payment":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","amount":500,"currency":"USD","status":"failed","reason":"requested_by_customer","failure_reason":null,"created":1767312000}},"request":null},"schema":{"type":"object","properties":{"id":{"type":"string","example":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"refund.failed"},"api_version":{"type":"string"},"livemode":{"type":"boolean"},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"data":{"type":"object","properties":{"object":{"$ref":"#/components/schemas/Refund"}},"required":["object"],"additionalProperties":false},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"idempotency_key":{"type":["string","null"]}},"required":["id","idempotency_key"],"additionalProperties":false},{"type":"null"}],"description":"The originating API request, or null for processor webhooks, cron and dashboard actions."}},"required":["id","object","type","api_version","livemode","created","data","request"],"additionalProperties":false}}}},"responses":{"200":{"description":"Return any 2xx quickly to acknowledge the event."}}}},"dispute.created":{"post":{"operationId":"webhook_dispute_created","summary":"dispute.created","description":"Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time.","tags":["Webhooks"],"parameters":[{"in":"header","name":"RunePay-Signature","schema":{"type":"string","description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},"required":true,"description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},{"in":"header","name":"RunePay-Event-Id","schema":{"type":"string"},"required":true},{"in":"header","name":"RunePay-Event-Type","schema":{"type":"string","const":"dispute.created"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","object":"event","type":"dispute.created","api_version":"2026-12-15","livemode":false,"created":1767225600,"data":{"object":{"id":"dp_01KA6C3D5E7F9G1H3J5K7M9N1P","object":"dispute","livemode":false,"payment":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","amount":1999,"currency":"USD","status":"needs_response","reason":"fraudulent","financial_effect":"chargeback","chargeback_fee":1500,"evidence_due_by":1768435200,"closed_at":null,"created":1767398400}},"request":null},"schema":{"type":"object","properties":{"id":{"type":"string","example":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"dispute.created"},"api_version":{"type":"string"},"livemode":{"type":"boolean"},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"data":{"type":"object","properties":{"object":{"$ref":"#/components/schemas/Dispute"}},"required":["object"],"additionalProperties":false},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"idempotency_key":{"type":["string","null"]}},"required":["id","idempotency_key"],"additionalProperties":false},{"type":"null"}],"description":"The originating API request, or null for processor webhooks, cron and dashboard actions."}},"required":["id","object","type","api_version","livemode","created","data","request"],"additionalProperties":false}}}},"responses":{"200":{"description":"Return any 2xx quickly to acknowledge the event."}}}},"dispute.updated":{"post":{"operationId":"webhook_dispute_updated","summary":"dispute.updated","description":"Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time.","tags":["Webhooks"],"parameters":[{"in":"header","name":"RunePay-Signature","schema":{"type":"string","description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},"required":true,"description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},{"in":"header","name":"RunePay-Event-Id","schema":{"type":"string"},"required":true},{"in":"header","name":"RunePay-Event-Type","schema":{"type":"string","const":"dispute.updated"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","object":"event","type":"dispute.updated","api_version":"2026-12-15","livemode":false,"created":1767225600,"data":{"object":{"id":"dp_01KA6C3D5E7F9G1H3J5K7M9N1P","object":"dispute","livemode":false,"payment":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","amount":1999,"currency":"USD","status":"needs_response","reason":"fraudulent","financial_effect":"chargeback","chargeback_fee":1500,"evidence_due_by":1768435200,"closed_at":null,"created":1767398400},"previous_attributes":{"status":"under_review"}},"request":null},"schema":{"type":"object","properties":{"id":{"type":"string","example":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"dispute.updated"},"api_version":{"type":"string"},"livemode":{"type":"boolean"},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"data":{"type":"object","properties":{"object":{"$ref":"#/components/schemas/Dispute"},"previous_attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["object"],"additionalProperties":false},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"idempotency_key":{"type":["string","null"]}},"required":["id","idempotency_key"],"additionalProperties":false},{"type":"null"}],"description":"The originating API request, or null for processor webhooks, cron and dashboard actions."}},"required":["id","object","type","api_version","livemode","created","data","request"],"additionalProperties":false}}}},"responses":{"200":{"description":"Return any 2xx quickly to acknowledge the event."}}}},"dispute.closed":{"post":{"operationId":"webhook_dispute_closed","summary":"dispute.closed","description":"Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time.","tags":["Webhooks"],"parameters":[{"in":"header","name":"RunePay-Signature","schema":{"type":"string","description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},"required":true,"description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},{"in":"header","name":"RunePay-Event-Id","schema":{"type":"string"},"required":true},{"in":"header","name":"RunePay-Event-Type","schema":{"type":"string","const":"dispute.closed"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","object":"event","type":"dispute.closed","api_version":"2026-12-15","livemode":false,"created":1767225600,"data":{"object":{"id":"dp_01KA6C3D5E7F9G1H3J5K7M9N1P","object":"dispute","livemode":false,"payment":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","amount":1999,"currency":"USD","status":"won","reason":"fraudulent","financial_effect":"chargeback","chargeback_fee":1500,"evidence_due_by":1768435200,"closed_at":1767225600,"created":1767398400}},"request":null},"schema":{"type":"object","properties":{"id":{"type":"string","example":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"dispute.closed"},"api_version":{"type":"string"},"livemode":{"type":"boolean"},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"data":{"type":"object","properties":{"object":{"$ref":"#/components/schemas/Dispute"}},"required":["object"],"additionalProperties":false},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"idempotency_key":{"type":["string","null"]}},"required":["id","idempotency_key"],"additionalProperties":false},{"type":"null"}],"description":"The originating API request, or null for processor webhooks, cron and dashboard actions."}},"required":["id","object","type","api_version","livemode","created","data","request"],"additionalProperties":false}}}},"responses":{"200":{"description":"Return any 2xx quickly to acknowledge the event."}}}},"payout.created":{"post":{"operationId":"webhook_payout_created","summary":"payout.created","description":"Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time.","tags":["Webhooks"],"parameters":[{"in":"header","name":"RunePay-Signature","schema":{"type":"string","description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},"required":true,"description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},{"in":"header","name":"RunePay-Event-Id","schema":{"type":"string"},"required":true},{"in":"header","name":"RunePay-Event-Type","schema":{"type":"string","const":"payout.created"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","object":"event","type":"payout.created","api_version":"2026-12-15","livemode":false,"created":1767225600,"data":{"object":{"id":"8d0c7a52-3f3e-4c1b-9a77-0c5b8f1e2d34","object":"payout","livemode":false,"amount":10200,"currency":"USD","status":"in_transit","rail":"fiat_ach","bank_reference":null,"tx_hash":null,"paid_at":null,"created":1767744000}},"request":null},"schema":{"type":"object","properties":{"id":{"type":"string","example":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"payout.created"},"api_version":{"type":"string"},"livemode":{"type":"boolean"},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"data":{"type":"object","properties":{"object":{"$ref":"#/components/schemas/Payout"}},"required":["object"],"additionalProperties":false},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"idempotency_key":{"type":["string","null"]}},"required":["id","idempotency_key"],"additionalProperties":false},{"type":"null"}],"description":"The originating API request, or null for processor webhooks, cron and dashboard actions."}},"required":["id","object","type","api_version","livemode","created","data","request"],"additionalProperties":false}}}},"responses":{"200":{"description":"Return any 2xx quickly to acknowledge the event."}}}},"payout.paid":{"post":{"operationId":"webhook_payout_paid","summary":"payout.paid","description":"Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time.","tags":["Webhooks"],"parameters":[{"in":"header","name":"RunePay-Signature","schema":{"type":"string","description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},"required":true,"description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},{"in":"header","name":"RunePay-Event-Id","schema":{"type":"string"},"required":true},{"in":"header","name":"RunePay-Event-Type","schema":{"type":"string","const":"payout.paid"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","object":"event","type":"payout.paid","api_version":"2026-12-15","livemode":false,"created":1767225600,"data":{"object":{"id":"8d0c7a52-3f3e-4c1b-9a77-0c5b8f1e2d34","object":"payout","livemode":false,"amount":10200,"currency":"USD","status":"paid","rail":"fiat_ach","bank_reference":"ACH-20260107-0042","tx_hash":null,"paid_at":1767830400,"created":1767744000}},"request":null},"schema":{"type":"object","properties":{"id":{"type":"string","example":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"payout.paid"},"api_version":{"type":"string"},"livemode":{"type":"boolean"},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"data":{"type":"object","properties":{"object":{"$ref":"#/components/schemas/Payout"}},"required":["object"],"additionalProperties":false},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"idempotency_key":{"type":["string","null"]}},"required":["id","idempotency_key"],"additionalProperties":false},{"type":"null"}],"description":"The originating API request, or null for processor webhooks, cron and dashboard actions."}},"required":["id","object","type","api_version","livemode","created","data","request"],"additionalProperties":false}}}},"responses":{"200":{"description":"Return any 2xx quickly to acknowledge the event."}}}},"payout.failed":{"post":{"operationId":"webhook_payout_failed","summary":"payout.failed","description":"Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time.","tags":["Webhooks"],"parameters":[{"in":"header","name":"RunePay-Signature","schema":{"type":"string","description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},"required":true,"description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},{"in":"header","name":"RunePay-Event-Id","schema":{"type":"string"},"required":true},{"in":"header","name":"RunePay-Event-Type","schema":{"type":"string","const":"payout.failed"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","object":"event","type":"payout.failed","api_version":"2026-12-15","livemode":false,"created":1767225600,"data":{"object":{"id":"8d0c7a52-3f3e-4c1b-9a77-0c5b8f1e2d34","object":"payout","livemode":false,"amount":10200,"currency":"USD","status":"failed","rail":"fiat_ach","bank_reference":null,"tx_hash":null,"paid_at":null,"created":1767744000}},"request":null},"schema":{"type":"object","properties":{"id":{"type":"string","example":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"payout.failed"},"api_version":{"type":"string"},"livemode":{"type":"boolean"},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"data":{"type":"object","properties":{"object":{"$ref":"#/components/schemas/Payout"}},"required":["object"],"additionalProperties":false},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"idempotency_key":{"type":["string","null"]}},"required":["id","idempotency_key"],"additionalProperties":false},{"type":"null"}],"description":"The originating API request, or null for processor webhooks, cron and dashboard actions."}},"required":["id","object","type","api_version","livemode","created","data","request"],"additionalProperties":false}}}},"responses":{"200":{"description":"Return any 2xx quickly to acknowledge the event."}}}},"payment_link.created":{"post":{"operationId":"webhook_payment_link_created","summary":"payment_link.created","description":"Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time.","tags":["Webhooks"],"parameters":[{"in":"header","name":"RunePay-Signature","schema":{"type":"string","description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},"required":true,"description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},{"in":"header","name":"RunePay-Event-Id","schema":{"type":"string"},"required":true},{"in":"header","name":"RunePay-Event-Type","schema":{"type":"string","const":"payment_link.created"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","object":"event","type":"payment_link.created","api_version":"2026-12-15","livemode":false,"created":1767225600,"data":{"object":{"id":"plink_01KA7D4E6F8G0H2J4K6M8N0P2Q","object":"payment_link","livemode":false,"active":true,"name":"Pro plan","description":"One month of Pro","amount":1999,"min_amount":null,"max_amount":null,"currency":"USD","success_url":"https://merchant.example/thanks","metadata":{"plan":"pro"},"url":"https://runepay.co/pay/l/plink_01KA7D4E6F8G0H2J4K6M8N0P2Q","created":1767225600,"updated":1767225600}},"request":null},"schema":{"type":"object","properties":{"id":{"type":"string","example":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"payment_link.created"},"api_version":{"type":"string"},"livemode":{"type":"boolean"},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"data":{"type":"object","properties":{"object":{"$ref":"#/components/schemas/PaymentLink"}},"required":["object"],"additionalProperties":false},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"idempotency_key":{"type":["string","null"]}},"required":["id","idempotency_key"],"additionalProperties":false},{"type":"null"}],"description":"The originating API request, or null for processor webhooks, cron and dashboard actions."}},"required":["id","object","type","api_version","livemode","created","data","request"],"additionalProperties":false}}}},"responses":{"200":{"description":"Return any 2xx quickly to acknowledge the event."}}}},"payment_link.updated":{"post":{"operationId":"webhook_payment_link_updated","summary":"payment_link.updated","description":"Sent to your endpoint, signed with `RunePay-Signature`. The full object is snapshotted at emit time.","tags":["Webhooks"],"parameters":[{"in":"header","name":"RunePay-Signature","schema":{"type":"string","description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},"required":true,"description":"t=unix-seconds,v1=HMAC-SHA256; multiple v1 signatures during rotation."},{"in":"header","name":"RunePay-Event-Id","schema":{"type":"string"},"required":true},{"in":"header","name":"RunePay-Event-Type","schema":{"type":"string","const":"payment_link.updated"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R","object":"event","type":"payment_link.updated","api_version":"2026-12-15","livemode":false,"created":1767225600,"data":{"object":{"id":"plink_01KA7D4E6F8G0H2J4K6M8N0P2Q","object":"payment_link","livemode":false,"active":false,"name":"Pro plan","description":"One month of Pro","amount":1999,"min_amount":null,"max_amount":null,"currency":"USD","success_url":"https://merchant.example/thanks","metadata":{"plan":"pro"},"url":"https://runepay.co/pay/l/plink_01KA7D4E6F8G0H2J4K6M8N0P2Q","created":1767225600,"updated":1767225600},"previous_attributes":{"active":true}},"request":null},"schema":{"type":"object","properties":{"id":{"type":"string","example":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"payment_link.updated"},"api_version":{"type":"string"},"livemode":{"type":"boolean"},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"data":{"type":"object","properties":{"object":{"$ref":"#/components/schemas/PaymentLink"},"previous_attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["object"],"additionalProperties":false},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"idempotency_key":{"type":["string","null"]}},"required":["id","idempotency_key"],"additionalProperties":false},{"type":"null"}],"description":"The originating API request, or null for processor webhooks, cron and dashboard actions."}},"required":["id","object","type","api_version","livemode","created","data","request"],"additionalProperties":false}}}},"responses":{"200":{"description":"Return any 2xx quickly to acknowledge the event."}}}}},"components":{"schemas":{"CheckoutSession":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"checkout_session"},"livemode":{"type":"boolean"},"status":{"type":"string","enum":["open","complete","expired"]},"amount_subtotal":{"type":"integer"},"amount_tax":{"type":"integer"},"amount_total":{"type":"integer"},"currency":{"type":"string","description":"Three-letter ISO 4217 code, uppercase.","example":"USD"},"tax_behavior":{"anyOf":[{"type":"string","enum":["exclusive","inclusive"]},{"type":"null"}],"description":"Null when line items mix inclusive and exclusive tax behavior."},"payment_status":{"type":"string","enum":["unpaid","paid"]},"line_items":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CheckoutLineItem"}},"has_more":{"type":"boolean","description":"Whether another page follows."},"object":{"type":"string","const":"list"},"url":{"type":"string"}},"required":["data","has_more","object","url"],"additionalProperties":false,"description":"Immutable inline line items. First 10 on create/retrieve, omitted on lists; expand[]=line_items returns all items. Also available through the paged line_items endpoint."},"client_reference_id":{"type":["string","null"]},"customer":{"type":["string","null"]},"customer_email":{"type":["string","null"]},"description":{"type":["string","null"]},"payment":{"type":["string","null"]},"payment_link":{"type":["string","null"]},"success_url":{"type":["string","null"]},"cancel_url":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Your own key-value strings, returned as sent."},"locale":{"type":"string"},"url":{"type":"string"},"expires_at":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"expired_at":{"description":"Unix timestamp in seconds, or null.","example":null,"type":["integer","null"]},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600}},"required":["id","object","livemode","status","amount_subtotal","amount_tax","amount_total","currency","tax_behavior","payment_status","client_reference_id","customer","customer_email","description","payment","payment_link","success_url","cancel_url","metadata","locale","url","expires_at","expired_at","created"],"additionalProperties":false},"CheckoutLineItem":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"item"},"currency":{"type":"string","description":"Three-letter ISO 4217 code, uppercase.","example":"USD"},"quantity":{"type":"integer"},"price_data":{"type":"object","properties":{"currency":{"type":"string","description":"Three-letter ISO 4217 code, uppercase.","example":"USD"},"unit_amount":{"type":"integer"},"product_data":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name"],"additionalProperties":false},"tax_code":{"type":"string","enum":["digital_software","digital_service","ebook","saas","general_digital"]},"tax_behavior":{"type":"string","enum":["exclusive","inclusive"]}},"required":["currency","unit_amount","product_data","tax_code","tax_behavior"],"additionalProperties":false},"amount_subtotal":{"type":"integer"},"amount_tax":{"type":"integer"},"amount_total":{"type":"integer"}},"required":["id","object","currency","quantity","price_data","amount_subtotal","amount_tax","amount_total"],"additionalProperties":false},"Payment":{"type":"object","properties":{"id":{"type":"string","example":"pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"},"object":{"type":"string","const":"payment"},"livemode":{"type":"boolean"},"status":{"type":"string","enum":["created","pending","succeeded","failed","canceled","partially_refunded","refunded","disputed","charged_back"]},"amount":{"type":"integer","description":"Amount in minor units (cents for USD)."},"amount_refunded":{"type":"integer"},"amount_tax":{"type":"integer"},"customer":{"type":["string","null"]},"currency":{"type":"string","description":"Three-letter ISO 4217 code, uppercase.","example":"USD"},"fee":{"description":"RunePay's fee in minor units, once known.","type":["integer","null"]},"description":{"type":["string","null"]},"customer_email":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Your own key-value strings, returned as sent."},"checkout_session":{"description":"The checkout session that created the payment.","type":["string","null"]},"card":{"anyOf":[{"type":"object","properties":{"brand":{"type":["string","null"]},"last4":{"type":"string"}},"required":["brand","last4"],"additionalProperties":false},{"type":"null"}]},"decline_code":{"type":["string","null"]},"decline_message":{"type":["string","null"]},"outcome":{"anyOf":[{"type":"object","properties":{"risk_level":{"type":"string","enum":["normal","elevated","highest"]},"risk_score":{"type":["integer","null"]}},"required":["risk_level","risk_score"],"additionalProperties":false},{"type":"null"}]},"available_on":{"description":"When the funds become available, once settled.","example":null,"type":["integer","null"]},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600}},"required":["id","object","livemode","status","amount","amount_refunded","amount_tax","customer","currency","fee","description","customer_email","metadata","checkout_session","card","decline_code","decline_message","outcome","available_on","created"],"additionalProperties":false},"Refund":{"type":"object","properties":{"id":{"type":"string","example":"re_01KA5B2C4D6E8F0G2H4J6K8M0N"},"object":{"type":"string","const":"refund"},"livemode":{"type":"boolean"},"payment":{"type":"string"},"amount":{"type":"integer","description":"Amount in minor units."},"currency":{"type":"string","description":"Three-letter ISO 4217 code, uppercase.","example":"USD"},"status":{"type":"string","enum":["pending","succeeded","failed"]},"reason":{"type":["string","null"]},"failure_reason":{"type":["string","null"]},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600}},"required":["id","object","livemode","payment","amount","currency","status","reason","failure_reason","created"],"additionalProperties":false},"Dispute":{"type":"object","properties":{"id":{"type":"string","example":"dp_01KA6C3D5E7F9G1H3J5K7M9N1P"},"object":{"type":"string","const":"dispute"},"livemode":{"type":"boolean"},"payment":{"type":"string"},"amount":{"type":"integer","description":"Disputed amount in minor units."},"currency":{"type":"string","description":"Three-letter ISO 4217 code, uppercase.","example":"USD"},"status":{"type":"string","enum":["unknown","needs_response","under_review","won","lost"]},"reason":{"type":["string","null"]},"financial_effect":{"type":"string","enum":["chargeback","nonfinancial","unknown"]},"chargeback_fee":{"description":"The chargeback fee in minor units, once known.","type":["integer","null"]},"evidence_due_by":{"description":"Unix timestamp in seconds, or null.","example":null,"type":["integer","null"]},"closed_at":{"description":"Unix timestamp in seconds, or null.","example":null,"type":["integer","null"]},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600}},"required":["id","object","livemode","payment","amount","currency","status","reason","financial_effect","chargeback_fee","evidence_due_by","closed_at","created"],"additionalProperties":false},"Payout":{"type":"object","properties":{"id":{"type":"string","example":"8d0c7a52-3f3e-4c1b-9a77-0c5b8f1e2d34"},"object":{"type":"string","const":"payout"},"livemode":{"type":"boolean"},"amount":{"type":"integer","description":"Net amount paid out, in minor units."},"currency":{"type":"string","description":"Three-letter ISO 4217 code, uppercase.","example":"USD"},"status":{"type":"string","enum":["in_transit","paid","failed"]},"rail":{"description":"`fiat_ach` or `crypto`.","type":["string","null"]},"bank_reference":{"type":["string","null"]},"tx_hash":{"description":"On-chain transaction hash for crypto payouts.","type":["string","null"]},"paid_at":{"description":"Unix timestamp in seconds, or null.","example":null,"type":["integer","null"]},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600}},"required":["id","object","livemode","amount","currency","status","rail","bank_reference","tx_hash","paid_at","created"],"additionalProperties":false},"PaymentLink":{"type":"object","properties":{"id":{"type":"string","example":"plink_01KA7D4E6F8G0H2J4K6M8N0P2Q"},"object":{"type":"string","const":"payment_link"},"livemode":{"type":"boolean"},"active":{"type":"boolean"},"name":{"type":"string"},"description":{"type":["string","null"]},"amount":{"description":"Fixed amount in minor units, or null when the buyer chooses.","type":["integer","null"]},"min_amount":{"type":["integer","null"]},"max_amount":{"type":["integer","null"]},"currency":{"type":"string","description":"Three-letter ISO 4217 code, uppercase.","example":"USD"},"success_url":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Your own key-value strings, returned as sent."},"url":{"type":"string","description":"Share this URL with buyers."},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"updated":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600}},"required":["id","object","livemode","active","name","description","amount","min_amount","max_amount","currency","success_url","metadata","url","created","updated"],"additionalProperties":false},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","idempotency_error","rate_limit_error","api_error"]},"code":{"type":"string","description":"A stable, machine-readable code. See the error catalog."},"message":{"type":"string","description":"A human-readable message. It may change; branch on `code`."},"param":{"description":"The request parameter at fault, when there is one.","type":"string"},"object_id":{"description":"Only on `secret_not_replayable`: the object the original request created or changed.","type":"string"},"request_id":{"type":"string","pattern":"^req_[0-9A-Z]{26}$","description":"Same as the `Request-Id` response header."},"doc_url":{"type":"string","description":"Where this code is documented."}},"required":["type","code","message","request_id","doc_url"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every non-2xx response has this body."},"Balance":{"type":"object","properties":{"object":{"type":"string","const":"balance"},"livemode":{"type":"boolean"},"currency":{"type":"string","description":"Three-letter ISO 4217 code, uppercase.","example":"USD"},"pending":{"type":"integer","description":"Captured but not yet settled, in minor units."},"available":{"type":"integer","description":"Settled and payable, in minor units."},"reserve":{"type":"integer","description":"Held in reserve, in minor units."}},"required":["object","livemode","currency","pending","available","reserve"],"additionalProperties":false},"Event":{"type":"object","properties":{"id":{"type":"string","example":"evt_01KA8E5F7G9H1J3K5M7N9P1Q3R"},"object":{"type":"string","const":"event"},"type":{"type":"string","enum":["checkout.session.completed","checkout.session.expired","payment.succeeded","payment.failed","payment.refunded","refund.created","refund.succeeded","refund.failed","dispute.created","dispute.updated","dispute.closed","payout.created","payout.paid","payout.failed","payment_link.created","payment_link.updated"]},"api_version":{"type":"string"},"livemode":{"type":"boolean"},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"data":{"type":"object","properties":{"object":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"The full serialized object, snapshotted when the event happened."},"previous_attributes":{"description":"Previous values of changed fields. Only present on *.updated events.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["object"],"additionalProperties":false},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"idempotency_key":{"type":["string","null"]}},"required":["id","idempotency_key"],"additionalProperties":false},{"type":"null"}],"description":"The originating API request, or null for processor webhooks, cron and dashboard actions."}},"required":["id","object","type","api_version","livemode","created","data","request"],"additionalProperties":false},"WebhookEndpoint":{"type":"object","properties":{"id":{"type":"string","example":"we_01KA9F6G8H0J2K4M6N8P0Q2R4S"},"object":{"type":"string","const":"webhook_endpoint"},"url":{"type":"string"},"livemode":{"type":"boolean"},"enabled_events":{"type":"array","items":{"type":"string"},"description":"Event types to deliver, or `[\"*\"]` for all."},"status":{"type":"string","enum":["enabled","disabled","deleted"]},"api_version":{"type":"string"},"description":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Your own key-value strings, returned as sent."},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600}},"required":["id","object","url","livemode","enabled_events","status","api_version","description","metadata","created"],"additionalProperties":false},"WebhookEndpointWithSecret":{"type":"object","properties":{"id":{"type":"string","example":"we_01KA9F6G8H0J2K4M6N8P0Q2R4S"},"object":{"type":"string","const":"webhook_endpoint"},"url":{"type":"string"},"livemode":{"type":"boolean"},"enabled_events":{"type":"array","items":{"type":"string"},"description":"Event types to deliver, or `[\"*\"]` for all."},"status":{"type":"string","enum":["enabled","disabled","deleted"]},"api_version":{"type":"string"},"description":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Your own key-value strings, returned as sent."},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"secret":{"type":"string","description":"The signing secret. Returned only here, once; it is never stored in a retrievable form."}},"required":["id","object","url","livemode","enabled_events","status","api_version","description","metadata","created","secret"],"additionalProperties":false},"WebhookDelivery":{"type":"object","properties":{"id":{"type":"string"},"event_id":{"type":"string"},"status":{"type":"string","enum":["pending","succeeded","failed"]},"attempts":{"type":"integer"},"last_response_status":{"type":["integer","null"]},"last_error":{"type":["string","null"]},"created":{"type":"integer","description":"Unix timestamp in seconds.","example":1767225600},"delivered_at":{"description":"Unix timestamp in seconds, or null.","example":null,"type":["integer","null"]}},"required":["id","event_id","status","attempts","last_response_status","last_error","created","delivered_at"],"additionalProperties":false}},"responses":{"BadRequest":{"description":"Invalid request: a parameter is missing, unknown or malformed.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"error":{"type":"invalid_request_error","code":"parameter_missing","message":"Missing required param: amount.","param":"amount","request_id":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","doc_url":"https://runepay.co/docs/api/errors#parameter_missing"}},"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"No valid API key.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"Provide a valid API key as a Bearer token.","request_id":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","doc_url":"https://runepay.co/docs/api/errors#invalid_api_key"}},"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The key may not do this, e.g. a publishable key.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"error":{"type":"permission_error","code":"secret_key_required","message":"This endpoint needs a secret key (sk_…).","request_id":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","doc_url":"https://runepay.co/docs/api/errors#secret_key_required"}},"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such object for this key's organization and mode.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"error":{"type":"invalid_request_error","code":"not_found","message":"Payment not found.","request_id":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","doc_url":"https://runepay.co/docs/api/errors#not_found"}},"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"The object's state does not allow this, or an idempotent request conflicts.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"error":{"type":"idempotency_error","code":"in_progress","message":"A request with this Idempotency-Key is still in progress.","request_id":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","doc_url":"https://runepay.co/docs/api/errors#in_progress"}},"schema":{"$ref":"#/components/schemas/Error"}}}},"PayloadTooLarge":{"description":"The request body is over 256 KB.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"error":{"type":"invalid_request_error","code":"body_too_large","message":"Request body must be at most 256 KB.","request_id":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","doc_url":"https://runepay.co/docs/api/errors#body_too_large"}},"schema":{"$ref":"#/components/schemas/Error"}}}},"IdempotencyKeyReused":{"description":"The Idempotency-Key was used with a different request.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"error":{"type":"idempotency_error","code":"key_reused","message":"This Idempotency-Key was used with a different request.","request_id":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","doc_url":"https://runepay.co/docs/api/errors#key_reused"}},"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Something went wrong on RunePay's side.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"error":{"type":"api_error","code":"internal","message":"Something went wrong on our side.","request_id":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","doc_url":"https://runepay.co/docs/api/errors#internal"}},"schema":{"$ref":"#/components/schemas/Error"}}}},"ServiceUnavailable":{"description":"RunePay or an upstream processor is unavailable. Retry later.","headers":{"Request-Id":{"required":true,"description":"Unique id of this request, `req_…`. Quote it to support.","schema":{"type":"string","description":"Unique id of this request, `req_…`. Quote it to support.","example":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y"}}},"content":{"application/json":{"example":{"error":{"type":"api_error","code":"processor_unavailable","message":"The processor is unavailable.","request_id":"req_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y","doc_url":"https://runepay.co/docs/api/errors#processor_unavailable"}},"schema":{"$ref":"#/components/schemas/Error"}}}}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A secret key, `sk_test_…` or `sk_live_…`."}}}}