cURL
curl --request POST \ --url https://app.closerx.ai/api/add_paypal_credits/ \ --header 'Content-Type: application/json' \ --header 'api_key: <api-key>' \ --data ' { "amount": 25, "currency": "USD", "user_id": "user_12345" } '
{ "payment_link": "https://xyz.com/abc?token=123", "status": "pending" }
Creates a PayPal payment link to purchase custom credits using a specified PayPal account.
The amount of credits (in currency) the user wants to purchase.
25
The currency in which the payment will be made.
"USD"
The ID of the user purchasing the credits.
"user_12345"
PayPal payment link successfully created
The PayPal payment link the user should be redirected to.
"https://xyz.com/abc?token=123"
The status of the payment link generation.
"pending"