Skip to content
Developers
Get started
Early access: these pages are being written and reviewed. Facts in the header boxes come straight from the product.

Get wallet auto top-up

GET
/api/v1/billing/wallet/auto-topup
curl --request GET \
--url https://api.pitch2sale.com/api/v1/billing/wallet/auto-topup \
--header 'Authorization: Bearer <token>'

The organization’s auto top-up: available (auto top-up can be set up for this organization now) with unavailable_reason when not (auto_topup_unavailable: switched off; currency_unavailable: a USD wallet while USD billing is off, with no pack or threshold options), status (off, setting_up, active, pending_charge, paused, revoked or new_mandate_required — the mandate’s authorised total is used up, set up again), the pack and threshold (minor units of the wallet currency), a payment method label such as Card or UPI AutoPay (never card numbers), mandate_since, paused_reason (charge_failed, charge_mismatch, charge_unconfirmed or mandate_on_hold), setup_failed, today’s count against the daily limit (UTC day), the last charge, pre_debit_notice (INR: the bank notifies before each charge, so it can settle up to about a day later) and the pack and threshold options (options_unavailable: true with no threshold options when the INR exchange rate is unavailable). Thresholds are $5 / $10 / $25; for INR wallets they are converted at the wallet-rate FX (platform rate × 1.05) and rounded to the nearest ₹50. A setup still waiting for Cashfree is confirmed on the server. Owners and admins only (members 403).

OK

Authentication required or token invalid

Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"message": "example",
"code": "example"
}
]
}

Role permission or token scope missing; OAuth app tokens are not accepted on this route

Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"message": "example",
"code": "example"
}
]
}

Rate limit exceeded

Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"message": "example",
"code": "example"
}
]
}