Dry-run order validation. Calculates pricing with optional discount code and checks if the user can afford the plan. Does not create any records.
cURL
curl --request POST \ --url https://orbitflare.com/api/customer/v2/orders/validate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "product_slug": "<string>", "billing_period": "monthly", "discount_code": "<string>" } '
{ "success": true, "message": "<string>", "data": { "product": { "name": "<string>", "slug": "<string>" }, "billing_period": "<string>", "pricing": { "base_price": 123, "period_months": 123, "period_total": 123, "discount_percent": 123, "discount_amount": 123, "final_price": 123 }, "discount": {}, "user_balance": 123, "can_afford": true } }
Bearer token from device or wallet auth
Slug of the RPC plan product.
monthly
quarterly
semi-annual
annual
Optional coupon code.
Order validated.
true
Show child attributes
此页面对您有帮助吗?