In this section: Credits and certificates

Credits and certificates

Annual credits, certificates, and free-night awards: what a card grants and what's already been used.

get_certificates

Companion certificates and lounge-pass bundles across the wallet -- what's pending, available, used, or expired, plus an estimated total value. The quantity-aware sibling of get_free_nights (a lounge-pass bundle grants more than one use; a companion fare does not).

ScopeQuota
miles:readstandard
NameTypeRequired
statusstring
programstring

get_credit_usage

Which of the wallet's recurring card credits are still unused this period -- the read half of the reconciliation loop get_reconciliation_needs opens.

ScopeQuota
miles:readstandard
NameTypeRequired
card_namestring
only_unusedboolean

get_free_nights

Free-night hotel certificates across the wallet (Marriott/Hilton/ Hyatt/IHG-style annual and spend-triggered certs): status (available/pending/used/expired/may_have_expired/unconfirmed), estimated expiry, and estimated value.

ScopeQuota
miles:readstandard
NameTypeRequired
statusstring
programstring

set_certificate_status

Record a companion certificate or lounge-pass bundle's status. Requires wallet-change access.

ScopeQuota
miles:writestandard
NameTypeRequired
card_idstringrequired
cert_idstringrequired
statusstringrequired
countinteger
expected_used_countinteger
used_onstring
sourcestring

set_credit_usage

Record which recurring card credits were used, for a batch of periods -- the write half of the reconciliation loop get_reconciliation_needs opens. Requires wallet-change access.

ScopeQuota
miles:writestandard
NameTypeRequired
entriesobject[]required

set_free_night_status

Record a free-night certificate as used, or confirm a pending spend-threshold certificate was earned. Requires wallet-change access.

ScopeQuota
miles:writestandard
NameTypeRequired
card_namestring
statusstring
cert_idstring
used_onstring
card_idstring
sourcestring