Luria Credits Checkout
Changed onBuy a Luria credits pack. Lives in main (not luria.py) so it can reuse the billing rails verbatim: payment_orders row + provider pay URL + the same webhooks. plan_code='luria_credits' makes _finalize_order_paid credit the ledger instead of activating a subscription; the pack's credit count rides in discount_meta so finalize never has to re-look-up prices that may have changed between checkout and payment.
post/api/luria/credits/checkout
Request
- Base URL: https://api.omicos.cn (the document declares no server; this is the origin it was published from)
- URL: https://api.omicos.cn/api/luria/credits/checkout
- Auth: none declared
Headers
authorizationstring nullable
x-omicos-devicestring nullable
x-omicos-device-kindstring nullable
x-omicos-device-namestring nullable
Request body
Response
Successful Response
object required
Changes
- info
added the new optional
headerrequest parameterx-omicos-device - info
added the new optional
headerrequest parameterx-omicos-device-kind - info
added the new optional
headerrequest parameterx-omicos-device-name
- info