Get wallet auto top-up
const url = 'https://api.pitch2sale.com/api/v1/billing/wallet/auto-topup';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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).
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Authentication required or token invalid
object
object
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
object
object
Examplegenerated
{ "error": "example", "code": "example", "message": "example", "details": [ { "field": "example", "message": "example", "code": "example" } ]}Rate limit exceeded
object
object
Examplegenerated
{ "error": "example", "code": "example", "message": "example", "details": [ { "field": "example", "message": "example", "code": "example" } ]}