Check wallet access
Whether the customer’s prepaid credit in a currency or credit unit still covers them, net of
usage not invoiced yet. Denies only when the wallet blocks usage once its credit is used up;
otherwise access stays allowed and exhausted signals the empty balance on its own. With
subscription_id, only the credit that subscription can use counts: pass it when the
customer has several subscriptions, since one subscription’s credit cannot pay another’s
usage. The balance follows usage within a few seconds near zero or a threshold, within a
minute otherwise, and the answer is cached for one second: use it to gate consumption, not
to bill.
Authorizations
Query Parameters
Defaults to the customer's currency.
AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHF, CLP, CNH, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SRD, SSP, STD, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VES, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW, ZWL "EUR"
Checks only the credit this subscription (sub_…) can spend, net of its own usage no
credit pays: the credit that belongs to it and the customer's credit that belongs to no
subscription, once every subscription's unbilled usage is paid. has_access is then the
decision the access gate makes for that subscription's usage. Absent checks the
customer's credit as a whole.
"sub_7n42DGM5Tflk9n8mt7Fhc7"
Response
Whether the customer still has credit
Whether a customer may keep consuming what their prepaid credit pays for.
The balance: credit on account net of the usage not invoiced yet that it will pay, in
minor units of currency or credit_unit; never negative for the customer as a whole,
as balance of GET /wallets. With product_id, only the credit that can pay for that
product, net of its usage no credit covers. With subscription_id, only the credit that
subscription can spend (credit restricted to products it is not charged for left out),
net of its usage no credit covers; credit that belongs to no subscription counts in every
subscription's balance (see shared_balance).
False only once balance is at or below zero and blocks_when_exhausted is true.
Customers without a wallet in currency do not prepay, and always have access. With
subscription_id: false when blocks_when_exhausted is true and no credit that
subscription can spend is left for some of its usage (of product_id when given), as the
access gate refuses it; a subscription charged no usage in the wallet keeps access.
Absent when a credit unit was checked.
AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHF, CLP, CNH, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SRD, SSP, STD, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VES, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW, ZWL "EUR"
With subscription_id only: the part of balance that belongs to no subscription, which
the customer's other subscriptions can spend too.