v1

latestOpenAPI 3.0.32026-07-243003151.2 MB
Services

Spend Loyalty Points and Create Wallet Transaction

This API method allows the calling application to Spend from an EES AIR Account, Create an Account Transaction and create a SPEND Wallet Transaction

post/services/wallet/{walletId}/transaction/spend

Path parameters

walletIdstring string required

EES AIR Wallet ID

Request body

accountIdstring string required

EES AIR Account ID

Example request

{
  "balances": {
    "current": 130,
    "lifetime_spend": 800,
    "lifetime_spend_value": 33
  },
  "accountId": "133121",
  "walletTransaction": {
    "meta": {
      "metaFoo": "metaBar"
    },
    "transactionDateTime": "2020-04-01T15:15:14+00:00"
  },
  "spendAccountTransaction": {
    "details": {
      "detailsFoo": "detailsBar",
      "reason": "A Reason #1"
    },
    "reasonCode": "AA"
  },
  "location": {
    "storeId": "32432"
  }
}

Response

Created

walletTransactionIdstring

Wallet Transaction ID

parentWalletTransactionIdstring

Parent Wallet Transaction ID

walletIdstring

Wallet ID

referencestring

Calling party's reference to this transaction

transactionDateTimestring

Calling party's Transaction Date Time

identityIdstring

Wallet Identity ID used for this transaction.

typestring

Wallet Transaction Type

status'ACTIVE' | 'SETTLED' | 'EXPIRED' | 'CANCELLED' | 'DELETED' | 'PURGED'

Wallet Transaction status

statestring

Wallet Transaction state

expiryDatestring

Wallet Transaction Expiry Timestamp (date-time), when transaction should expiry and automatically be settled.

channelstring

Channel used for Transaction creation or update

dateCreatedstring

Date this Wallet Transaction was created

lastUpdatedstring

Date this Wallet Transaction was last updated