cURL
curl --request POST \ --url https://app.closerx.ai/api/add_credits/ \ --header 'Content-Type: application/json' \ --header 'api_key: <api-key>' \ --data ' { "custom_credits": 1000, "custom_amount": 99, "payment_method": "stripe" } '
{ "success": true, "errors": [ "<string>" ], "response": { "amount": 9900, "url": "<string>", "email": "[email protected]" }, "message": "Stripe Payment Link for credit purchase created" }
Creates a Stripe payment link to purchase custom credits using a specified payment method.
Number of credits the user wants to purchase
1000
Amount to be paid for the credits (in dollars)
99
Payment gateway used for transaction
"stripe"
Stripe payment link successfully created
true
Show child attributes
Total amount in smallest currency unit (e.g., cents)
9900
Stripe payment URL to complete the transaction
User's email associated with the transaction
"[email protected]"
"Stripe Payment Link for credit purchase created"