---
title: "Void"
method: POST
path: "/connect/wallet/spend/void"
tags: ["Wallet"]
---

# Void

`POST /connect/wallet/spend/void`

## Request

- Base URL: `https://pos.uk.eagleeye.com/2.0`
- URL: `https://pos.uk.eagleeye.com/2.0/connect/wallet/spend/void`
- Auth: API key in header `X-EES-AUTH-CLIENT-ID` and API key in header `X-EES-AUTH-HASH`

Void an ACTIVE spend transaction against the given wallet and undo the spending of points. This call is used in the case of a cancelled transaction where a customer has spent points but does not wish to complete the settle. Please note where a points burn limit is configured against a Scheme, voiding a spend made in the current period also returns those points to what the Consumer may still burn in that period; voiding a spend from an earlier period returns the points to the Account but does not change the current period's limit.

## Headers

- `Accept-Encoding` '''' | ''gzip'' | ''deflate'' | ''gzip,deflate'' | ''deflate,gzip''
- `Connection` 'keep-alive' | 'close'
- `Content-Type` string, string
- `X-EES-AUTH-CLIENT-ID` string, string, required
- `X-EES-AUTH-HASH` string, string, required
- `X-EES-TRANSACTION-ID` string, string
- `X-CUSTOM-SUBSYSTEM-ID` string, string
- `X-CUSTOM-KEY` string, string

## Request body

- object
  - `identity` object
    - `identityValue` string, string: The value of the identity to use to find a wallet.
  - `reference` string, string: The reference of the Spend transaction to be voided.

## Response `200`

Response payload from calling the spend void endpoint

- WalletAndAccountTransactionResponse
  - `walletTransactions` WalletTransactionNoBasketTypeEntity[], nullable, required: Wallet Transaction(s) created as a result of this transaction.
    - `walletTransactionId` string, required: Wallet Transaction ID
    - `parentWalletTransactionId` string, nullable, required: Parent Wallet Transaction ID
    - `walletId` string, nullable, required: Wallet ID
    - `reference` string, nullable, required: Calling party's reference to this transaction
    - `identityId` string, nullable, required: The Identity ID responsible for this transaction.
    - `identity` WalletIdentityEntity
      - `identityId` string, required: EES AIR Wallet Identity ID
      - `walletId` string, required: EES AIR Wallet ID
      - `type` string, required: Type of the Identity, list of possible enum values could be defined per Client as part of the Onboarding process.
      - `friendlyName` string, required: Wallet Identity friendly name
      - `value` string, required: Wallet Identity value
      - `safeValue` string, required: Identity Safe Value (e.g. "original value salted and hashed") - safeValue could be than used in external systems like analytics, referencing original identity, provide uniqueness within a retailer, but without exposing sensitive information like card number.
      - `secret` string, required: Wallet Identity secret
      - `dates` DatesEntity, required
        - `start` string, date-time
        - `end` string, date-time
      - `meta` MetaEntity, required: Key-Value object, please note key name length should be less then 255 characters and key values should be less then 255 characters
      - `state` string, required: Wallet Identity state, list of possible values could be defined and set-up per Client during Onboarding process.
      - `status` 'ACTIVE' | 'DELETED' | 'SUSPENDED' | 'LOST' | 'STOLEN' | 'INACTIVE', required: Identity status
      - `dateCreated` string, date-time, required: Date this identity was created
      - `lastUpdated` string, date-time, required: Date this identity was last updated
      - `mobileWallet` string, required: A url that can be used to add this identity to a mobile wallet (like Apple Wallet and Google Pay)
    - `type` string, nullable, required: Transaction Type, defined per retailer
    - `status` 'ACTIVE' | 'SETTLED' | 'EXPIRED' | 'CANCELLED' | 'DELETED' | 'PURGED' | 'FULFILLING' | 'FULFILLED', required: Transaction status
    - `meta` MetaEntity, required: Key-Value object, please note key name length should be less then 255 characters and key values should be less then 255 characters
    - `state` string, nullable, required: Transaction state
    - `transactionDateTime` string, date-time, required: Transaction date-time in ATOM format.
    - `transactionDateTimeOffset` string, string: The offset of the date-time from UTC in format "+00:00".
    - `expiryDate` string, date-time, nullable, required: Transaction Expiry Timestamp (date-time in ATOM format), when transaction should expiry and automatically be settled.
    - `accounts` object[], required
      - `accountId` string, required: Account ID
      - `accountTransactionId` string, required: Account Transaction ID
    - `channel` string, required: Channel used for Transaction creation or update
    - `location` LocationResponseEntity, required
      - `storeId` string, string: The Incoming Identifier of the Outlet.
      - `storeParentId` string, string: The Incoming Identifier of the Outlet's Parent Unit.
    - `dateCreated` string, date-time, required: Date this Wallet Transaction was created
    - `lastUpdated` string, date-time, required: Date this Wallet Transaction was last updated
    - `basket` union, required
      - StandardBasketNoTypeEntity
        - `summary` StandardBasketSummaryEntity
          - `totalItems` integer, required: Basket Items count
          - `totalBasketValue` integer, required: Total Basket monetary Value after discounts, denominated to a smallest currency unit (e.g. for `USD` this value should be provided in `cents`)
          - `totalDiscountAmount` object
            - `promotions` integer, nullable: Promotions Discount Amount. If basket adjustment adds to discounts, this amount will be added to
            - `staff` integer, nullable: Staff Discount Amount
            - `general` integer, nullable: General Discount Amount
          - `totalQualifyingAmount` object, nullable
            - `points` integer: Basket Monetary Value for Loyalty Points calculations
            - `baseEarn` integer: Basket Monetary Value used for calculating base earn, overriding totalBasketValue. Adheres to basket discounts
            - `promotions` integer: Basket Monetary Value for Promotion Offer selections
            - `discount` integer: Basket Monetary Value for Discount calculations
            - `staff` integer: Basket Monetary Value for Staff Discount or Promotions
          - `totalTaxAmount` integer: Total Tax Amount denominated to a smallest currency unit (e.g. for `USD` this value should be provided in `cents`)
          - `adjustmentRules` AdjustmentRulesBasketEntity
            - `externalAdjustment` boolean: Whether a discount has already been applied to this basket by a POS before calling EE.<br> This is purely for information and no action is taken with the data.
            - `externalAdjustmentReason` string: An external reason why a discount has already been applied to this basket by a POS before calling EE.<br> This is purely for information and no action is taken with the data.
            - `ignore` boolean: If set to true the transaction is not eligible for any additional basket level discounts.
          - `adjustmentResults` object[]
            - `resourceType` 'CAMPAIGN': EES Resource Type
            - `resourceId` string, string: EES AIR Resource ID (Campaign ID, Programme ID, Scheme ID)
            - `resourceReference` string, string: The EES AIR Resource Reference (Campaign Reference) relating to this adjustment result. Only included for external adjustment results.
            - `playOrderPosition` integer, nullable: The exact position the offer was triggered during analysis
            - `success` boolean, nullable
            - `type` 'redeem' | 'createRedeem': Operation Type
            - `value` integer: Operation Amount
            - `isUnredeemable` boolean: Boolean Flag indicating if this offer should be Unredeemable
            - `relatedAccountIds` string[]
            - `targetedAccountId` string, string: EES AIR Account ID
            - `targetedWalletId` string, string, nullable: EES AIR Wallet ID. Nullable
            - `multiItem` string[]
            - `totalDiscountAmount` integer: The monetary effect of the discount in the lowest unit of currency
            - `totalMatchingUnits` integer: The number of products the adjustment was applied to
            - `instanceId` string, string: A mechanism to distinguish each individual reward that has been given for any account
            - `totalRewardUnits` integer, nullable: The number of units the reward applies to within this item.
          - `redemptionChannel` string, string: The redemption channel used for this request
        - `contents` object[], nullable
          - `sku` string, string: Item SKU. Either `sku` or `upc` should be provided to identify the product.
          - `upc` string, string: Item UPC. Either `sku` or `upc` should be provided to identify the product.
          - `description` string, string: Product Name
          - `redemptionPartnerIncomingIdentifier` string, string, nullable: Allows a product belonging to another redemption partner to be adjudicated alongside the calling. Must be provided if `outletIncomingIdentifier` is used.
          - `outletIncomingIdentifier` string, string: The outlet the product should be adjudicated against. Belongs directly to the product's `redemptionPartnerIncomingIdentifier`. (For Future Use)
          - `groupReference` string[]: Allows passing in group reference for the item. This reference will be used to process the item as part of any groups with the given reference.
          - `itemUnitCost` integer: Item Price per unit, denominated to a smaller currency unit
          - `itemUnitMetric` 'LITRES' | 'GRAMS' | 'MILLILITERS' | 'KILOGRAMS' | 'POUNDS' | 'OUNCES' | 'PIECE' | 'EACH': The metric in which the item is measure (nullable)
          - `itemUnitCount` integer: Item Quantity
          - `itemUnitDiscount` integer: Discount per Item
          - `totalUnitCost` integer: Total cost for this item
          - `totalUnitCostAfterDiscount` integer, required: Total cost for this item after discount (please note this does not take into account whole basket discounts). This attribute is mandatory for every basket content item.
          - `taxRate` number, float: Tax Rate (Percentage)
          - `taxAmount` integer: Tax Amount for that item, denominated to a smallest currency unit
          - `adjustmentResults` object[]
            - `resourceType` 'CAMPAIGN': EES Resource Type
            - `resourceId` string, string: EES AIR Resource ID (Campaign ID, Programme ID, Scheme ID)
            - `resourceReference` string, string: The EES AIR Resource Reference (Campaign Reference) relating to this adjustment result. Only included for external adjustment results.
            - `playOrderPosition` integer, nullable: The exact position the offer was triggered during analysis
            - `success` boolean, nullable
            - `type` 'redeem' | 'createRedeem': Operation Type
            - `value` integer: Operation Amount
            - `isUnredeemable` boolean: Boolean Flag indicating if this offer should be Unredeemable
            - `relatedAccountIds` string[]
            - `targetedAccountId` string, string: EES AIR Account ID
            - `targetedWalletId` string, string, nullable: EES AIR Wallet ID. Nullable
            - `multiItem` string[]
            - `totalDiscountAmount` integer: The monetary effect of the discount in the lowest unit of currency
            - `totalMatchingUnits` integer: The number of products the adjustment was applied to
            - `instanceId` string, string: A mechanism to distinguish each individual reward that has been given for any account
            - `totalRewardUnits` integer, nullable: The number of units the reward applies to within this item.
          - `qualifies` object, nullable
            - `discount` boolean, required: Determines if the item is eligible for basket level discounting. If false this item will not qualify for basket level discounts but still qualify for product level discounts. However this is possible to override based on the ‘ignorePreviousExcludes’ key on a campaign.
            - `points` boolean, required: Determines if the item is eligible for Base Earn points. If false this item will not qualify for Base Earn points but still qualify for basket and product level discounts.
            - `offerPoints` boolean: Determines if the item is eligible for points reward Campaigns. If false this item will not qualify for rewards points however, it remains eligible to qualify for Base Earn Points, as well as both Basket and Product-Level Discounts.
          - `meta` MetaEntity: Key-Value object, please note key name length should be less then 255 characters and key values should be less then 255 characters
          - `adjustmentRules` AdjustmentRulesItemEntity
            - `externalAdjustment` boolean: Whether a discount has already been applied to this item by a POS before calling EE.<br> This is purely for information and no action is taken with the data.
            - `externalAdjustmentReason` string: An external reason why a discount has already been applied to this item by a POS before calling EE.<br> This is purely for information and no action is taken with the data.
            - `ignore` boolean: If set to true the item is not eligible for any additional product level discounts however it is still included in the qualification of any basket level discounts.
          - `relatedContents` object[]: Recursive list of contents related to the parent item with the same schema as this object.
            - `sku` string, string: Item SKU
            - `upc` string, string: Item SKU
            - `salesKey` 'SALE' | 'REFUND' | 'FULFIL': `SALE`/`REFUND`/`FULFIL` Flag
            - `description` string, string: Product Name
            - `itemUnitCost` integer: Item Price per unit, denominated to a smaller currency unit
            - `itemUnitMetric` 'LITRES' | 'GRAMS' | 'MILLILITERS' | 'KILOGRAMS' | 'POUNDS' | 'OUNCES' | 'PIECE': The metric in which the item is measure (nullable)
            - `itemUnitCount` integer: Item Quantity
            - `itemUnitDiscount` integer: Discount per Item
            - `totalUnitCost` integer: Total cost for this item
            - `totalUnitCostAfterDiscount` integer: Total cost for this item after discount (please note this does not take into account whole basket discounts)
            - `taxRate` number, float: Tax Rate (Percentage)
            - `taxAmount` integer: Tax Amount for that item, denominated to a smallest currency unit
            - `qualifies` object, nullable
              - …
            - `meta` MetaEntity: Key-Value object, please note key name length should be less then 255 characters and key values should be less then 255 characters
            - `adjustmentRules` AdjustmentRulesItemEntity
              - …
            - `relatedContents` unknown
        - `payment` object[], nullable
          - `tenderType` string, string, required: Tender type - predefined by Eagle Eye
          - `amount` integer, required: Monetary amount of payment in lowest unit of currency
          - `bin` string, string: The bin for the tender
          - `identifier` string, string: An identifying value of what was scanned, could be a token, barcode, gift-card
      - EnrichedBasketNoTypeEntity
        - `summary` object, required
          - `totalItems` integer, required: Basket Items count
          - `totalBasketValue` integer, required: Total Basket monetary Value after discounts, denominated to a smallest currency unit (e.g. for `USD` this value should be provided in `cents`)
          - `totalQualifyingAmount` object, nullable
            - `points` integer, nullable: Basket Monetary Value for Loyalty Points calculations
            - `baseEarn` integer: Basket Monetary Value used for calculating base earn, overriding totalBasketValue. Adheres to basket discounts
            - `promotions` integer, nullable: Basket Monetary Value for Promotion Offer selections
            - `discount` integer, nullable: Basket Monetary Value for Discount calculations
            - `staff` integer, nullable: Basket Monetary Value for Staff Discount or Promotions
          - `totalTaxAmount` integer, nullable: Total Tax Amount denominated to a smallest currency unit (e.g. for `USD` this value should be provided in `cents`)
          - `totalDiscountAmount` object
            - `promotions` integer, nullable: Promotions Discount Amount. If basket adjustment adds to discounts, this amount will be added to
            - `staff` integer, nullable: Staff Discount Amount
            - `general` integer, nullable: General Discount Amount
          - `reporting` ReportingEntity, nullable
            - `byOutlet` object[], nullable: Reporting values of coupon redemptions and scheme base earn by outlet
              - …
          - `fulfilledBaseEarn` object[]: Records the base earn points rewarded to customer during mid fulfil requests.
            - `targetedAccountId` string, string: EES AIR Account ID.
            - `points` integer: Total value of base earn points rewarded.
          - `expectedPoints` object[]: Indicates the intended base earn and credits for any Scheme (during fulfil flow), along with whether these points will go into the `pending` bucket. N.B. Even if all coupons are not redeemed and threshold is not met, points will still go `pending`.
            - `schemeId` string, string: Scheme ID which the points relate to.
            - `earn` integer: Total value of base earn points.
            - `credit` integer: Total value of points to be credited.
            - `isPending` boolean: Indicated whether the points will be put into `pending`.
          - `adjustmentRules` AdjustmentRulesBasketEntity
            - `externalAdjustment` boolean: Whether a discount has already been applied to this basket by a POS before calling EE.<br> This is purely for information and no action is taken with the data.
            - `externalAdjustmentReason` string: An external reason why a discount has already been applied to this basket by a POS before calling EE.<br> This is purely for information and no action is taken with the data.
            - `ignore` boolean: If set to true the transaction is not eligible for any additional basket level discounts.
          - `tenderResults` object[]
            - `resourceType` 'CAMPAIGN': EES Resource Type
            - `resourceId` string, string: EES AIR Resource ID (Campaign ID, Programme ID, Scheme ID)
            - `playOrderPosition` integer, nullable: The exact position the offer was triggered during analysis
            - `success` boolean, nullable
            - `type` 'redeem' | 'createRedeem': Operation Type
            - `value` integer: Operation Amount
            - `isUnredeemable` boolean: Boolean Flag indicating if this offer should be Unredeemable
            - `relatedAccountIds` string[]
            - `targetedAccountId` string, string: EES AIR Account ID
            - `targetedWalletId` string, string, nullable: EES AIR Wallet ID. Nullable
            - `multiItem` string[]
            - `totalTenderAmount` integer: The amount of tender value in the lowest unit of currency
          - `adjustmentResults` object[]
            - `resourceType` 'CAMPAIGN': EES Resource Type
            - `resourceId` string, string: EES AIR Resource ID (Campaign ID, Programme ID, Scheme ID)
            - `resourceReference` string, string: The EES AIR Resource Reference (Campaign Reference) relating to this adjustment result. Only included for external adjustment results.
            - `playOrderPosition` integer, nullable: The exact position the offer was triggered during analysis
            - `success` boolean, nullable
            - `type` 'redeem' | 'createRedeem': Operation Type
            - `value` integer: Operation Amount
            - `isUnredeemable` boolean: Boolean Flag indicating if this offer should be Unredeemable
            - `relatedAccountIds` string[]
            - `targetedAccountId` string, string: EES AIR Account ID
            - `targetedWalletId` string, string, nullable: EES AIR Wallet ID. Nullable
            - `multiItem` string[]
            - `totalDiscountAmount` integer: The monetary effect of the discount in the lowest unit of currency
            - `totalMatchingUnits` integer: The number of products the adjustment was applied to
            - `instanceId` string, string: A mechanism to distinguish each individual reward that has been given for any account
            - `totalRewardUnits` integer, nullable: The number of units the reward applies to within this item.
          - `bounceBackResults` object[]
            - `resourceType` 'CAMPAIGN': EES Resource Type
            - `resourceId` string, string: EES AIR Campaign Id
            - `playOrderPosition` integer, nullable: The exact position the offer was triggered during analysis
            - `success` boolean, nullable
            - `type` 'redeem'
            - `value` integer: Value of transaction
            - `balances` AccountBalancesEntity: The object of balances. Some balances only apply to certain types of accounts. See notes below on balances.
              - …
            - `isRefundable` boolean: Boolean Flag indicating if this offer should be refundable
            - `isUnredeemable` boolean: Boolean Flag indicating if this offer should be Unredeemable
            - `relatedAccounts` string[]
            - `targetedAccountId` string, string: EES AIR Account ID
            - `targetedWalletId` string, string, nullable: EES AIR Wallet ID.
          - `qualifiesResults` object[]: If an offer was buy a pizza and get a free garlic bread, the pizza would have this entity against it.
            - `totalMatchingUnits` integer: The number of products forming part of the offer's qualification.
            - `totalMatchingSpend` integer: The monetary value this product contributes towards the offer's qualification.
            - `totalOverallMatchingSpend` integer: The monetary value this product contributes towards the offer's overall qualification across valid Redemption Partners.
            - `instanceId` string, string: The reference back to the offer reward which these qualifiers relate.
          - `adjudicationResults` object[]
            - `resourceType` 'CAMPAIGN' | 'PROGRAMME' | 'SCHEME': EES Resource Type
            - `resourceId` string, string: EES AIR Resource ID (Campaign ID, Programme ID, Scheme ID)
            - `playOrderPosition` integer, nullable: The exact position the offer was triggered during analysis
            - `success` boolean, nullable
            - `type` 'redeem' | 'credit' | 'debit' | 'earn' | 'spend': Operation Type
            - `value` integer: Operation Amount (please note&#58; value and balances attributes are mutually exclusive)
            - `balances` AccountBalancesEntity: The object of balances. Some balances only apply to certain types of accounts. See notes below on balances.
              - …
            - `isRefundable` boolean: Boolean Flag indicating if this offer should be refundable
            - `isUnredeemable` boolean: Boolean Flag indicating if this offer should be Unredeemable
            - `relatedAccountIds` string[]
            - `relatedWalletId` string, string, nullable: EES AIR Wallet ID.
            - `targetedAccountId` string, string: EES AIR Account ID
            - `targetedWalletId` string, string, nullable: EES AIR Wallet ID.
            - `totalMatchingUnits` integer, nullable: The minimum number of products required to trigger offer
            - `totalRewardUnits` integer, nullable: The number of units the reward applies to within this item.
            - `rewardType` 'standard' | 'boltOn', nullable: Indicates whether a `credit` type was a standard reward or is a bolt on. All other operations will have be `null`, when present.
          - `results` EnrichedBasketSummaryResultsEntity
            - `pointsByScheme` object[], nullable
              - …
            - `points` ResultsPointsEntity
              - …
            - `tiers` object
              - …
          - `tierMembershipResults` object[], nullable
            - `tierMembershipId` string: The ID of the tierMembership.
            - `type` 'credit'
            - `balances` object
              - …
            - `success` boolean, nullable: If this has been successfully settled (always null in open response).
          - `redemptionChannel` string, string: The redemption channel used for this request
        - `contents` object[], nullable
          - `sku` string, string: Item SKU
          - `upc` string, string: Item SKU
          - `salesKey` 'SALE' | 'REFUND' | 'FULFIL': `SALE`/`REFUND`/`FULFIL` Flag
          - `description` string, string: Product Name
          - `itemUnitCost` integer: Item Price per unit, denominated to a smaller currency unit
          - `redemptionPartnerIncomingIdentifier` string, string, nullable: Allows a product belonging to another redemption partner to be adjudicated alongside the calling. Must be provided if `outletIncomingIdentifier` is used.
          - `outletIncomingIdentifier` string, string: The outlet the product should be adjudicated against. Belongs directly to the product's `redemptionPartnerIncomingIdentifier`. (For Future Use)
          - `groupReference` string[]: The group reference passed in for the item, used to process the item as part of any groups with the given reference.
          - `itemUnitMetric` 'LITRES' | 'GRAMS' | 'MILLILITERS' | 'KILOGRAMS' | 'POUNDS' | 'OUNCES' | 'PIECE' | 'EACH': The metric in which the item is measure (nullable)
          - `itemUnitCount` integer: Item Quantity
          - `itemFulfilmentCount` integer, nullable: Number Of Items Fulfilled
          - `itemUnitDiscount` integer: Discount per Item
          - `totalUnitCost` integer: Total cost for this item
          - `totalUnitCostAfterDiscount` integer: Total cost for this item after discount (please note this does not take into account whole basket discounts)
          - `taxRate` number, float: The rate of tax being applied to this item (percentage)
          - `taxAmount` integer: Tax Amount for that item, denominated to a smallest currency unit
          - `qualifies` object, nullable
            - `discount` boolean, required: Determines if the item is eligible for discounting
            - `points` boolean, required: Determines if the item is eligible for points
          - `meta` MetaEntity: Key-Value object, please note key name length should be less then 255 characters and key values should be less then 255 characters
          - `adjustmentRules` AdjustmentRulesItemEntity
            - `externalAdjustment` boolean: Whether a discount has already been applied to this item by a POS before calling EE.<br> This is purely for information and no action is taken with the data.
            - `externalAdjustmentReason` string: An external reason why a discount has already been applied to this item by a POS before calling EE.<br> This is purely for information and no action is taken with the data.
            - `ignore` boolean: If set to true the item is not eligible for any additional product level discounts however it is still included in the qualification of any basket level discounts.
          - `adjustmentResults` object[]
            - `resourceType` 'CAMPAIGN': EES Resource Type
            - `resourceId` string, string: EES AIR Resource ID (Campaign ID, Programme ID, Scheme ID)
            - `resourceReference` string, string: The EES AIR Resource Reference (Campaign Reference) relating to this adjustment result. Only included for external adjustment results.
            - `playOrderPosition` integer, nullable: The exact position the offer was triggered during analysis
            - `success` boolean, nullable
            - `type` 'redeem' | 'createRedeem': Operation Type
            - `value` integer: Operation Amount
            - `isUnredeemable` boolean: Boolean Flag indicating if this offer should be Unredeemable
            - `relatedAccountIds` string[]
            - `targetedAccountId` string, string: EES AIR Account ID
            - `targetedWalletId` string, string, nullable: EES AIR Wallet ID. Nullable
            - `multiItem` string[]
            - `totalDiscountAmount` integer: The monetary effect of the discount in the lowest unit of currency
            - `totalMatchingUnits` integer: The number of products the adjustment was applied to
            - `instanceId` string, string: A mechanism to distinguish each individual reward that has been given for any account
            - `totalRewardUnits` integer, nullable: The number of units the reward applies to within this item.
          - `tenderResults` object[]
            - `resourceType` 'CAMPAIGN': EES Resource Type
            - `resourceId` string, string: EES AIR Resource ID (Campaign ID, Programme ID, Scheme ID)
            - `playOrderPosition` integer, nullable: The exact position the offer was triggered during analysis
            - `success` boolean, nullable
            - `type` 'redeem' | 'createRedeem': Operation Type
            - `value` integer: Operation Amount
            - `isUnredeemable` boolean: Boolean Flag indicating if this offer should be Unredeemable
            - `relatedAccountIds` string[]
            - `targetedAccountId` string, string: EES AIR Account ID
            - `targetedWalletId` string, string, nullable: EES AIR Wallet ID. Nullable
            - `multiItem` string[]
            - `totalTenderAmount` integer: The amount of tender value in the lowest unit of currency
          - `bounceBackResults` object[]
            - `resourceType` 'CAMPAIGN': EES Resource Type
            - `resourceId` string, string: EES AIR Campaign Id
            - `playOrderPosition` integer, nullable: The exact position the offer was triggered during analysis
            - `success` boolean, nullable
            - `type` 'redeem'
            - `value` integer: Value of transaction
            - `balances` AccountBalancesEntity: The object of balances. Some balances only apply to certain types of accounts. See notes below on balances.
              - …
            - `isRefundable` boolean: Boolean Flag indicating if this offer should be refundable
            - `isUnredeemable` boolean: Boolean Flag indicating if this offer should be Unredeemable
            - `relatedAccounts` string[]
            - `targetedAccountId` string, string: EES AIR Account ID
            - `targetedWalletId` string, string, nullable: EES AIR Wallet ID.
          - `qualifiesResults` object[]: If an offer was buy a pizza and get a free garlic bread, the pizza would have this entity against it.
            - `totalMatchingUnits` integer: The number of products forming part of the offer's qualification.
            - `totalMatchingSpend` integer: The monetary value this product contributes towards the offer's qualification.
            - `totalOverallMatchingSpend` integer: The monetary value this product contributes towards the offer's overall qualification across valid Redemption Partners.
            - `instanceId` string, string: The reference back to the offer reward which these qualifiers relate.
          - `contributionResults` object[], nullable: If an offer was spend £30 get £5 off, this entity would be against each of the products contributing to the £5 off, with their combined `value`s adding up to the £5.
            - `value` integer: The proportional contribution to the discount/points given
            - `instanceId` string, string: The reference back to the offer which these items contributed
          - `adjudicationResults` object[]
            - `resourceType` 'CAMPAIGN' | 'PROGRAMME' | 'SCHEME': EES Resource Type
            - `resourceId` string, string: EES AIR Resource ID (Campaign ID, Programme ID, Scheme ID)
            - `playOrderPosition` integer, nullable: The exact position the offer was triggered during analysis
            - `success` boolean, nullable
            - `type` 'redeem' | 'credit' | 'debit' | 'earn' | 'spend': Operation Type
            - `value` integer: Operation Amount (please note&#58; value and balances attributes are mutually exclusive)
            - `balances` AccountBalancesEntity: The object of balances. Some balances only apply to certain types of accounts. See notes below on balances.
              - …
            - `isRefundable` boolean: Boolean Flag indicating if this offer should be refundable
            - `isUnredeemable` boolean: Boolean Flag indicating if this offer should be Unredeemable
            - `relatedAccountIds` string[]
            - `relatedWalletId` string, string, nullable: EES AIR Wallet ID.
            - `targetedAccountId` string, string: EES AIR Account ID
            - `targetedWalletId` string, string, nullable: EES AIR Wallet ID.
            - `totalMatchingUnits` integer, nullable: The minimum number of products required to trigger offer
            - `totalRewardUnits` integer, nullable: The number of units the reward applies to within this item.
            - `rewardType` 'standard' | 'boltOn', nullable: Indicates whether a `credit` type was a standard reward or is a bolt on. All other operations will have be `null`, when present.
          - `relatedContents` object[]: Recursive list of contents related to the parent item with the same schema as this object.
            - `sku` string, string: Item SKU
            - `upc` string, string: Item SKU
            - `salesKey` 'SALE' | 'REFUND' | 'FULFIL': `SALE`/`REFUND`/`FULFIL` Flag
            - `description` string, string: Product Name
            - `itemUnitCost` integer: Item Price per unit, denominated to a smaller currency unit
            - `itemUnitMetric` 'LITRES' | 'GRAMS' | 'MILLILITERS' | 'KILOGRAMS' | 'POUNDS' | 'OUNCES' | 'PIECE': The metric in which the item is measure (nullable)
            - `itemUnitCount` integer: Item Quantity
            - `itemFulfilmentCount` integer, nullable: Number Of Items Fulfilled
            - `itemUnitDiscount` integer: Discount per Item
            - `totalUnitCost` integer: Total cost for this item
            - `totalUnitCostAfterDiscount` integer: Total cost for this item after discount (please note this does not take into account whole basket discounts)
            - `taxRate` number, float: The rate of tax being applied to this item (percentage)
            - `taxAmount` integer: Tax Amount for that item, denominated to a smallest currency unit
            - `qualifies` object, nullable
              - …
            - `meta` MetaEntity: Key-Value object, please note key name length should be less then 255 characters and key values should be less then 255 characters
            - `adjustmentRules` AdjustmentRulesItemEntity
              - …
            - `adjustmentResults` object[]
              - …
            - `tenderResults` object[]
              - …
            - `bounceBackResults` object[]
              - …
            - `qualifiesResults` object[]: If an offer was buy a pizza and get a free garlic bread, the pizza would have this entity against it.
              - …
            - `adjudicationResults` object[]
              - …
            - `relatedContents` unknown
        - `payment` object[], nullable: Similar to standardPaymentEntity, except that any _tender_ offers used during adjustment, have an entry injected here, stipulating the tender amount to take off basket
          - `tenderType` string, string, required: Tender type - predefined by Eagle Eye, including a further type of _tenderCoupon_
          - `amount` integer, required: Monetary amount of payment/tender in lowest unit of currency
          - `bin` string, string: The bin for the tender
          - `identifier` string, string: An identifying value of what was scanned, could be a token, barcode, gift-card
          - `accountId` string, string: The EE AIR Account ID (only populated when tender is owned by EE)
        - `analysedDateTime` string, ees-date-time: Basket Analysis Date-Time in ATOM format
  - `accountTransactions` AccountTransactionEntity[], nullable, required
    - `accountTransactionId` string, required: The account transaction ID.
    - `accountId` string, required: The account id related to this transaction.
    - `parentAccountTransactionId` string, nullable, required: The parent account transaction.
    - `event` 'CREATE' | 'REDEEM' | 'LOCK' | 'UNLOCK' | 'UNREDEEM' | 'VERIFY' | 'ACTIVATE' | 'INACTIVATE' | 'REACTIVATE' | 'LOAD' | 'CREDIT' | 'DEBIT' | 'BALANCE' | 'INVALIDATE' | 'BLOCK' | 'UNBLOCK' | 'RESEND' | 'STOLEN' | 'CANCEL' | 'VOID' | 'REISSUE' | 'REFUND' | 'TRANSFER' | 'TRANSFER_IN' | 'TOPUP' | 'AUTOTOPUP' | 'STAMP' | 'SPEND', required: The type of transaction.
    - `value` integer, required: The value related to this Account Transaction. Typically, if an account transaction like credit was executed with a value, then this value will be stored here. For Continuity, however, this value should always be 0, and the same for Coupon (since there is no value for a coupon).
    - `source` string, required: The source of this transaction e.g. from a client (1), or triggered automatically (2) from within EES AIR (e.g. auto-top-up or the incrementation of Quest balances).
    - `transactionDetails` object, nullable, required: An simple object of key value pairs representing the transaction details.
    - `balancesBefore` AccountTransactionBalancesHistoryEntity, required: The object of balances to show for either before or after the account transaction. Some balances only apply to certain types of accounts. See notes below on balances.
      - `available` integer: The available balance. This is applicable for all account types, except STAMP, POINTS and CONTINUITY, which uses its own balance keys, and ECOUPON, which has no concept of a balance.
      - `refundable` integer: The refundable balance. This is applicable for all account types, except STAMP, ECOUPON, POINTS and CONTINUITY.
      - `current` integer: The current balance. Applicable only to accounts of type Points and Stamp.
      - `lifetime` integer: The lifetime balance. Applicable only to accounts of type Points and Stamp.
      - `totalSpend` integer: The total spend balance. Applicable only to accounts of type Continuity.
      - `transactionCount` integer: The transaction counter. Applicable only to accounts of type Continuity.
    - `balancesAfter` AccountTransactionBalancesHistoryEntity, required: The object of balances to show for either before or after the account transaction. Some balances only apply to certain types of accounts. See notes below on balances.
      - `available` integer: The available balance. This is applicable for all account types, except STAMP, POINTS and CONTINUITY, which uses its own balance keys, and ECOUPON, which has no concept of a balance.
      - `refundable` integer: The refundable balance. This is applicable for all account types, except STAMP, ECOUPON, POINTS and CONTINUITY.
      - `current` integer: The current balance. Applicable only to accounts of type Points and Stamp.
      - `lifetime` integer: The lifetime balance. Applicable only to accounts of type Points and Stamp.
      - `totalSpend` integer: The total spend balance. Applicable only to accounts of type Continuity.
      - `transactionCount` integer: The transaction counter. Applicable only to accounts of type Continuity.
    - `properties` object, nullable, required: Properties related to the account transaction.
    - `dateCreated` string, date-time, required: Date-time (ATOM format) this account transaction was created
    - `lastUpdated` string, date-time, required: Date-time (ATOM format) this account transaction was last updated

## Other responses

- `207`: Partially successful response payload from calling the spend void endpoint
- `400`: EES AIR Refuse to process that particular Request as there is something wrong with the Request (e.g. missing Mandatory Request parameter or Mandatory Request Payload attribute is missing, Request payload is unprocessable, etc)
- `401`: EES AIR Refuse to process that particular Request due to Authentication error. This could be caused by missing mandatory AUTH header(s), invalid Hash calculation, invalid or inactive API Key used, etc.
- `403`: EES AIR Refuse to process that particular Request due to Request Authorization error(s). This indicates that used API Key has not got required permissions to perform this operation.
- `404`: EES AIR Refuse to process that particular Request as requested/referenced resource could not be found.
- `409`: EES AIR understands this request, but refuses to process it, due to present Conflict with the current state of the target resource or because performing this operation would lead to a Conflict within AIR.
- `415`: EES AIR is not able to understand that request due to not supported `Content-Type` value.
- `429`: EES AIR refuses to process that particular Request as Client's API Requests Limit was exceeded.
- `500`: EES AIR refuses to process that particular Request due to Unexpected Server Error.
- `503`: EES AIR refuses to process that particular Request due to Service(s) being Unavailable (i.e. Scheduled Maintenance)
- `504`: EES AIR refuses to process that particular Request due to Networking Issues

---

[API](https://skmtc.dev/eagleeye/apis/pos-connect-api.md) - [All operations](https://skmtc.dev/eagleeye/apis/pos-connect-api/llms.txt) - [OpenAPI document](https://skmtc.dev/eagleeye/apis/pos-connect-api/revisions/8b1db944024c?raw)
