Skip to main content
POST
/
add_credits
Add Stripe Credits
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"
}

Authorizations

api_key
string
header
required

Body

application/json
custom_credits
integer
required

Number of credits the user wants to purchase

Example:

1000

custom_amount
number<float>
required

Amount to be paid for the credits (in dollars)

Example:

99

payment_method
string
required

Payment gateway used for transaction

Example:

"stripe"

Response

Stripe payment link successfully created

success
boolean
Example:

true

errors
string[]
response
object
message
string
Example:

"Stripe Payment Link for credit purchase created"