Skip to main content
POST
/
api
/
v1
/
billing
/
subscription
/
topup
Buy extra credits on an active subscription
curl --request POST \
  --url https://neo.api.projectdiscovery.io/api/v1/billing/subscription/topup \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "credits": 123,
  "payment_method_id": "<string>"
}
'
{
  "amount_cents": 123,
  "amount_display": "<string>",
  "credits": 123,
  "has_payment_method": true,
  "invoice_id": "<string>",
  "invoice_url": "<string>",
  "monthly_max": 123,
  "monthly_remaining": 123,
  "new_topup_balance": 123,
  "payment_methods": [
    {
      "brand": "<string>",
      "exp_month": 123,
      "exp_year": 123,
      "id": "<string>",
      "is_default": true,
      "last4": "<string>"
    }
  ],
  "unit_price": 123
}

Authorizations

Authorization
string
header
required

JWT authentication token

Body

application/json
action
enum<string>
required
Available options:
estimate,
purchase
credits
number<double>
required
payment_method_id
string

Response

Top-up estimate or charged

action
enum<string>
required
Available options:
estimate,
charged
amount_cents
integer
amount_display
string
credits
number<double>
has_payment_method
boolean
invoice_id
string
invoice_url
string
monthly_max
number<double>

Maximum top-up credits purchasable per billing month for this buyer.

monthly_remaining
number<double>

Remaining top-up credits purchasable in the current billing month.

new_topup_balance
number<double>
payment_methods
object[]
unit_price
number<double>