Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url https://api.olostep.com/user/purchase-topup \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "credits": 10000 } '
200
Example
{ "success": true, "payment_intent_id": "pi_xxx", "credits": 10000 }
一步完成保存卡的扣款和购买积分。无需结账重定向或嵌入支付界面。
credits
10000
20000
80000
100000
Bearer认证头格式为Bearer ,其中是你的认证令牌。
要购买的信用数量。允许的值:10,000、20,000、80,000 或 100,000。
支付成功。
true
此次收费的 Stripe PaymentIntent id。
此请求中购买的信用。
此页面对您有帮助吗?