Debit Loyalty Points and Create Wallet Transaction

This API method allows the calling application to Debit an EES AIR Account, Create an Account Transaction and create a DEBIT Wallet Transaction. Please note: by default for Loyalty Points Accounts, EES AIR allows debits of an amount larger than the account's available balance, which would result in a negative balance. This could be mitigated by EES Scheme settings:

  • Disable 'allow negative balance'
  • Enable 'autotopup' - EES AIR will detect these negative balances and instantly correct them by bringing a balance to zero (and creating a corresponding Account Transaction of type AUTOTOPUP).
    In very, very rare case when for some reason this negative balance auto-correction is enabled but it fails, EES AIR would perform an automatic ROLLBACK.

Household debit

When the request includes the schemeId in the payload body and not accountId, the amount is taken from across the calling Wallet's household, i.e. the ACTIVE Points Accounts for that Scheme on the calling Wallet, its parent Wallet and its sibling Wallets. When the calling Wallet is itself a parent, its household is its child Wallets. The calling Wallet must hold a Points Account for the Scheme. The amount is split in proportion to each Account's usable balance. An Account with a negative balance is not charged, but its balance still counts towards the household total. Where the Scheme has a Points Burn Limit, no Account is charged more than it may still burn in the period.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

EES AIR Wallet ID

Body Params

JSON payload

A debit against an individual Points Account specified by accountId.

string
required

EES AIR Account ID of the Points Account to debit.

int32
required

Debit Amount, for monetary values denominated to the smallest currency value

walletTransaction
object
location
object
debitAccountTransaction
object

Optional details of the debit Account Transaction.

Responses

Language
Credentials
LoadingLoading…
Response
Choose an example:
application/json