B2B Mobile Transaction API - UserReceipt Data Objects

DOCS

Last updated: Aug 15th, 6:18am

The UserReceipt data object is designed to carry similar information to the Receipt data object but with a reduced payload and some other slight differences. In some cases data objects have the same name as the Receipt data objects but with different requirements or fewer attributes when called by the UserReceipt object. Most data objects with the same name are identical regardless of what calls them.

For convenience, this section provides the set of data objects called by the UserReceipt object. See Data Objects for the data objects called by Receipt and other B2B Mobile Transaction API endpoints.

UserReceipt Enums

UserReceipt Data Objects

AcceptanceLocation

Uniquely identifies one physical retail location at which a merchant partner operates. A merchant partner might have one or many acceptance locations defined.

AttributeDescription
storeCodeRequired String
The Acceptance Partner’s unique identifier for the Acceptance Location. For example, this code could be a franchise number, store chain id, or ATM identifier. Maximum 50 char.
uriRequired String
WLW’s unique system identifier for the Acceptance Location.
nameRequired String
WLW’s text name identifier for the Acceptance Location.
address1Required String
The number and street of the physical address of the Acceptance Location.
address2Optional String
Available for any secondary information about the position of the business within the street address, such as a suite number.
cityRequired String
The name of the city in which the Acceptance Location exists. Maximum 100 char.
stateRequired String
The US state in the postal address of an entity. Maximum 100 char.
zipCodeRequired String
The postal zip code associated with the Acceptance Location. Maximum 100 char.
countryRequired String
The country of the Acceptance Location’s physical address. Maximum 100 char.

AcceptancePartner

Uniquely identifies the merchant that is registered to process mobile wallet transactions with WLW. AcceptancePartner is also referred to as the merchant.

AttributeDescription
acceptanceLocationOptional AcceptanceLocation
The set of Acceptance Location instances that identify where this transaction took place.
uriRequired String
WLW's unique identifier for the acceptance partner.
nameRequired NCName
WLW's plain text name of the Acceptance Partner.
partnerUriRequired String
WLW’s unique identifier for a business entity that has been configured to participate in mobile transactions on the WLW platform.
modifiedTimeOptional dateTime
A timestamp that represents the last time any attribute of this record was updated.
logoUrlOptional String
The server path location for the logo image of the Acceptance Partner. Can be used on receipts.
cardSurfaceDiscountLabelOptional String
Indicates the acceptance partner’s preferred payment tender, which can be referenced as an incentive for using that tender in transactions.

AdditionalData

Key/Value pairs used to supply metadata.

AttributeDescription
keyRequired String
The name of a custom property.
valueRequired String
A specific setting for a custom property.

AdvertisingNetwork

Defines the details of the sponsor of an offer sponsor, as registered and defined by WLW. An AdNetwork aggregates advertisement space supplied from publishers and matches it with advertiser demand. In the WLW platform, the advertisingNetwork groups similar offer objectives.

AttributeDescription
advertisingNetworkDisplayNameOptional String
The name to use to identify the AdNetwork associated with the offer.
advertisingNetworkLogoUriOptional String
A unique identifier for the logo image associated with this AdNetwork.
advertisingNetworkTypeOptional advertisingNetworkType Enum
Identifies the AdNetwork’s tenant relationship with WLW. Valid values are:
ACCEPTANCE_PARTER
ISSUING_PARTNER
THIRD_PARTY
partnerUriOptional String
Unique identifier for the parent partner under which the advertising network is registered. The parent partner is a tenant relationship and can be an issuing partner, acceptance partner, or third-party entity that has been configured to process mobile payments on the WLW platform.
partnerNetworkUriOptional String
Unique identifier for the tenant under which this network is registered.

CashAccessDepositProperties

The properties associated with an ATM deposit transaction of cash and/or checks.

AttributeDescription
availableBalanceRequired Double
The balance of the account into which the deposit was made. Includes the deposit amount.
availableNowRequired Double
The balance of the account into which the deposit was made that is available for withdrawal at this time.
cashDepositsOptional CashDeposit
Identifies the denomination of each set of bills included in the deposit.
checkDepositsOptional CheckDeposit
Identifies the value and URL for an image of each check included in the deposit.
noOfChecksDepositedOptional Integer
The number of checks included in the deposit. This number matches the set of instances in the checkDeposit property.
postDateRequired dateTime
The time at which the deposit posted to the account in the format yyyy-MM-dd’T’HH:mm:ss’Z’.
transactionSubTypeRequired TransactionSubType Enum
String that further distinguishes the transaction type.

CashDeposit

Identifies each set of bills included in the ATM deposit based on the denonmination. A single cash deposit transaction can include multiple instances of this object to represent each different bill denomination in the deposit.

AttributeDescription
billDenominationRequired Integer
The number of dollars or other currency unit for each distinct denonmination in this deposit.
noOfBillsRequired Integer
The number of bills of the specified denomination included in this deposit element.

CheckDeposit

Defines the relevant elements of a single check included in an ATM deposit. A single deposit transaction includea an instance of this object for each check in the deposit.

AttributeDescription
checkValueRequired Double
The dollar or other currency unit of the check. Maximum 100 char.
urlOptional String
The ATM’s unique identification or image reference of the check.

Customer

Identifies a mobile wallet user.

AttributeDescription
partnerUriRequired String
Unique identifier for the parent partner under which the advertising network is registered. The parent partner is a tenant relationship and can be an issuing partner, acceptance partner, or third-party entity that has been configured to process mobile payments on the WLW platform.
issuingPartnerUriRequired String
WLW’s unique identifier of a partner that is configured to issue a mobile wallet.
customerUriRequired String
WLW’s unique identifier for the user of the mobile wallet associated with the device.

FuelReceiptProperties

Extends a receipt with data applicable only to fuel transactions.

AttributeDescription
additionalDataOptional AdditionalData
A set of any number of key-value properties used to extend the receipt data.
fuelUnitsPumpedRequired Double
The amount of fuel that was dispensed for the transaction.
fuelUnitTypeRequired FuelUnitType
Specifies the unit of volume used to measure the fuel. Valid values are:
GALLON
LITRE

LoyaltyReceipt

Defines properties related to the conclusion of a transaction in which loyalty points were earned or spent.

AttributeDescription
accrualActivityUriRequired String
WLW’s unique identifier of the qualified activity.
loyaltyAccrualActivityTypeRequired LoyaltyAccrualActivityType Enum
Identifies the loyalty activity category. Valid values are:
EXTERNAL_ACTIVITY
ENROLLMENT
PURCHASE
REFUND
VOID_PURCHASE
VOID_REFUND
loyaltyProgramUriRequired String
WLW’s unique identifier of the loyalty program for which the activity is eligible.
pointsOptional Integer
The number of points awarded or redeemed for this transaction. Maximum 100 char.

Offer

Defines the properties that make up an individual instance of an offer campaign that has been delivered to a mobile wallet, where it can then be activated and redeemed in qualifying transactions.

AttributeDescription
offerCampaignOptional OfferCampaign
The parent campaign for this offer instance.
discountAmountOptional Double
The dollar or percentage amount by which the total purchase is to be reduced when this offer is redeemed. Maximum 100 char.
expiryDateOptional dateTime
The UNIX timestamp that indicates when the offer is no longer valid for redemption.
offerUriRequired String
WLW’s unique identifier of the offer instance.
offerStatusOptional OfferStatus Enum
Indicates the current state of the offer in the wallet.

OfferArtifact

Defines each visual part of an offer. The OfferArtifactViewType indicates which part this object defines. The artifact parts are:

  • Details
  • Confirmation
  • Thumbnail
  • Image
  • Terms and Conditions
  • Offer Title
  • Offer Description
  • Additional Information
  • Summary
AttributeDescription
contentRequired String
Depending on the offerArtifactContentType, the content can be actual text used or a URL for the content to use when this offer is displayed, or other kind of content.
offerArtifactChannelTypeRequired OfferArtifactChannelType Enum
Indicates the channel destination where this artifact is intended for display. Valid values are:
MOBILE
WEB
FACEBOOK
EMAIL
offerArtifactContentTypeRequired OfferArtifactContentType Enum
Indicates the type of file for the artifact's content. Valid values are:
TEXT
VIDEO
URL
XML
TAGS
offerArtifactViewTypeRequired OfferArtifactViewType Enum
Identifies the part of the offer represented by this artifact. Valid values are:
SUMMARY
DETAILS
CONFIRMATION
THUMBNAIL
IMAGE
TERMS_AND_CONDITIONS
OFFER_TITLE
OFFER_DESCRIPTION
ADDITIONAL_INFORMATION
REDEMPTION_SCHEDULE

OfferCampaign

The details of a mobile offer promotional campaign that is delivered to subscribed mobile wallets. Users can then be activated and redeemed as part of a qualifying transaction.

AttributeDescription
offerArtifactsOptional OfferArtifact
The set of objects that define each visual component of this offer.
advertisingNetworkOptional AdvertisingNetwork
The advertising collection that is sponsoring the promotion of the campaign.
offerRewardOptional OfferReward
Defines the parameters of the specific compensation associated with an offer. For each [
checkoutTokenValueOptional String
A unique identifier code that generates a QR code that can be scanned by a user's phone to redeem this offer.
endDateOptional DateTime
UNIX timestamp for the date and time when the offer becomes invalid.
offerCampaignExternalIdOptional String
An identifier that associates the offer to a relevant merchant value, such as the offer code on the POS system. If this value is not defined, a random value is automatically generated.
offerCampaignUriOptional String
WLW’s unique identifier for the campaign.
offerTypeOptional OfferType Enum
Identifies the type of offer. Currently only one valid value: VALUE_BASED_OFFER.
To define a SKU-based reward or to set the percentage discount for the value-based reward, see OfferCampaign/OfferReward/RewardType.
offerProcessingPointRequired OfferProcessingPoint Enum
Indicates if the offer is calculated by the merchant's POS and only the total sent to WLW or if the entire discount is calculated by the WLW Cloud. Valid values are:
POS
Paydiant

OfferReward

Defines the details of the specific compensation associated with an offer. The compensation can be in the form of a percentage of the total to discount or as a total value to remove from the transaction total. The OfferReward can also be defined as a series of SKUs for products offered as the reward.

AttributeDescription
discountPercentageRequired Double
The percentage used calculate how much the offer will discount the total transaction amount. Maximum 100 char.
discountValueRequired Double
The dollar amount that the offer will remove from the transaction. Maximum 100 char.
rewardTypeRequired RewardType Enum
Defines the percentage to discount, the total value to discount, or whether this reward is SKU-based.

PaymentAccountType

Identifies the card type supported by the wallet for a particular PaymentTender.

AttributeDescription
paymentAccountTypeUriRequired String
Unique identifier of the type of payment for this tender.
paymentAccountTypeNameOptional String
Text description of the payment account type.

PaymentAccountNetworkType

Identifies the network processor supported by the wallet for a particular PaymentTender.

AttributeDescription
paymentAccountNetworkTypeUriRequired String
Unique identifier of the type of network that this tender runs on.
paymentAccountNetworkTypeNameOptional String
Text description of the type of network that this tender runs on.

PaymentInstrument

Uniquely identifies a payment account that is registered as a valid tender in the mobile wallet and can require extended data when used in a transaction, such as PayPal.

AttributeDescription
paymentInstrumentUriRequired String
Uniquely identifies the payment account in the WLW system.
maskedCardNumberOptional String
The encrypted rendition of the card PAN, as configured to display on the receipt.
cardNickNameOptional String
The wallet user’s way to identify this payment account in the wallet, for example, Paul’s Work Visa.
paymentTenderRequired PaymentTender
Identifies the tender available to a wallet by identifying the type (credit, debit, etc.) plus the network processor (Visa, NYCE, etc.).
additionalDataOptional
Key-value pairs that define custom properties for the payment instrument that are not otherwise captured, such as nickname. An instance of this object can include any number number of these data pairs.
extendedPaymentTenderDataOptional AdditionalData
Defines additional data required by a payment processor to obtain payment authorization, such as an auth token or other credentials.

PaymentResult

Defines the response data from all involved parties for the outcome of a payment request.

AttributeDescription
paymentInstrumentRequired PaymentInstrument
Defines the PAN data associated with the payment tender.
currencyCodeOptional String
The ISO 4217 recognized code for the type of currency associated with the amount, for example, USD = United States Dollar. Maximum 10 char.
paidOrRefundAmountOptional Double
The dollar amount of the payment instance. This amount may or may not be the full transaction amount.
paymentStatusOptional String
WLW’s text description for the current state of the payment authorization.
paymentStatusCodeOptional Integer
WLW’s numeric identifier for the current state of the payment authorization. Maximum 100 char.
externalPaymentStatusCodeOptional String
The third-party processor’s system identifier for the outcome of the payment authorization.
externalPaymentStatusDescOptional String
The third-party processor’s descriptor for the outcome of the payment authorization.
paymentTransactionUriOptional String
The third-party processor’s unique identifier for the specific payment authorization instance.
mobileReceivedPaymentProcessedMetadataOptional AdditionalData
Defines custome properties that are included in the payment authorization and should be available in the receipt, for example, externally applied loyalty activity.

PaymentTender

Identifies a specific payment instrument configured for use by an issuing or acceptance partner.

AttributeDescription
paymentAccountTypeRequired PaymentAccountType
Identifies the tender available to a wallet by identifying the type (credit, debit, etc.).
paymentAccountNetworkTypeOptional PaymentAccountNetworkType
Identifies a supported payment card network processor for the wallet, such as VISA, NYCE, etc.

UserReceipt

Defines the details of a completed transaction needed to generate a user receipt.

AttributeDescription
acceptancePartnerRequired AcceptancePartner
The WLW tenant that is registered to engage in mobile transaction processing for this Acceptance Location.
loyaltyReceiptsDeprecated LoyaltyReceipt
Optional set of loyalty activity instances applied to the transaction.
offersOptional OfferThe set of offers that were redeemed or refunded for the transaction.
paymentResultsOptional PaymentResult
The set of outcomes for each payment authorization attempt for the transaction.
receiptTypeRequired ReceiptType Enum
Identifies the type of transaction for this receipt.
cashierIdRequired String
The identifier of the employee logged into the POS who rang in the transaction.
merchantTranasctionReferenceIdRequired String
The merchant (AcceptancePartner)’s unique identifier of the transaction.
paydiantReferenceIdRequired String
WLW’s unique identifier of the transaction.
savingsOptional Double
The dollar amount by which the total is reduced by coupons or other promotions. Maximum 100 char.
subTotalOptional Double
The dollar amount due before applied tax, tip, and discounts. Maximum 100 char.
taxOptional Double
The dollar amount added to the ticket for tax. Maximum 100 char.
terminalIdRequired String
WLW’s identifier of the registered POS terminal that processed the transaction.
tipAmountOptional Double
The dollar amount appended to the total as tip.
totalAmountRequired Double
The total dollar amount paid for the transaction. Maximum 100 char.
otherTransactionTypeDescriptionOptional String
When the TransactionSubType value is other, this text value describes the nature of the transaction, such as donation.
transactionSubTypeOptional TransactionSubType Enum
Further categorizes a transaction beyond that of purchase or refund.
externalReceiptUrlOptional String
Used to store a merchant-provided URL through which the user can view the receipt in a secure portal.
receiptTextOptional String
A text message that can be added to the receipt by the merchant.
fuelReceiptPropertiesOptional FuelReceiptProperties
A set of properties that describe the fuel activity instances for this transaction.
surchargeOptional Double
The dollar amount added to a cash withdrawal as a transaction fee. Maximum 100 char.
includedGratuityOptional Double
The dollar amount added as an automatically applied tip, for example for large dining parties. Maxcimum 100 char.
totalAmountPointsDeprecated Double
Optional set of total points added or subtracted for the transaction based on all loyalty activity processed. Maximum 100 char.
cashAccessDepositPropertiesOptional CashAccessDepositProperties
Specifies the details for an ATM deposit transaction. Required when the TransactionSubType is ATM_CASH_ACCESS.
offerDiscountAmountOptional Double
The total amount due after an offer discount has been applied. Maximum 100 char.
receiptIdOptional String
WLW’s identifier of the generated receipt instance.
secondaryReceiptIdOptional String
A code generated to confirm a user’s consent to a pre-authorization charge against a payment account.
originalReceiptIdRequired String
A unique identifier of the receipt for the transaction that precipitated this transaction, such as a purchase for which this is a refund.
originalPaydiantReferenceId<Otional String
A unique identifier of the transaction that precipitated this transaction, such as a purchase for which this is a refund.
CustomerRequired Customer
Unique identifies the mobile wallet user.
TransactionTimeRequired dateTime
Timestamp for when the transaction took place.

UserReceipt Enums

AdvertisingNetworkType

Identifies the AdNetwork’s tenant relationship with WLW.

EnumDescription
ACCEPTANCE_PARTERThe merchant who sponsors the offer to be redeemed.
ISSUING_PARTNERThe partner who sponsors the mobile wallet where an offer is proffered.
THIRD_PARTYAn entity that is external to the WLW platform that can sponsor an offer or wallet, such as a bank or coupon club.

FuelUnitType

The unit of fuel volume specified for the fuel site.

EnumDescription
GALLONFuel is dispensed and priced per gallon.
LITREFuel is dispensed and priced per litre.

LoyaltyAccrualActivityType

A qualifying action that affects the loyalty reward balance.

EnumDescription
EXTERNAL_ACTIVITYAn action outside the mobile wallet, such as social media activity.
ENROLLMENTMembership registration in the loyalty program.
PURCHASEA standard sales transaction.
REFUNDA standard refund/credit transaction.
VOID_PURCHASEThe reversal of a sale for which points were awarded.
VOID_REFUNDThe reversal of a refund for which points were subtracted.

OfferArtifactChannelType

The medium through which the offer artifact is meant to be published.

EnumDescription
MOBILEViewable on a mobile device.
WEBViewable in an Internet browser page.
FACEBOOKViewable on a Facebook site account.
EMAILViewable as the body of an email message.

OfferArtifactContentType

The format of the artifact file.

EnumThe content is
TEXTA text file.
VIDEOA video file.
URLA link to a webpage.
XMLAn XML file.
TAGSA set of categorization or search optimization tags.

OfferArtifactViewType

The offer component represented by the artifact.

EnumDescription
DETAILSThe body of the offer that describes the details of its use.
CONFIRMATIONThe page displayed when the user opts to redeem the offer.
THUMBNAILThe image shown for the offer in the list of all offers.
IMAGEThe image that is shown on the offer details page.
TERMS_AND_CONDITIONSThe fine print of the offer. Specifics of the agreement and use of the offer.
OFFER_TITLEThe title text shown for the offer in the list of all offers.
OFFER_DESCRIPTIONThe text shown at the top of the details page describing the offer.
ADDITIONAL_INFORMATIONThe other relevant information text shown on the details page for the offer.
SUMMARYThe offer description shown in the list of all offers.
REDEMPTION_SCHEDULESpecifies the dates and times when the offer is valid for use.

OfferCampaignType

Type of campaign that generated the receipt.

EnumDescription
DYNAMIC_EXPIRYThe expiration of the offers can vary. For example a free birthday coffee might be valid only for the week of the recipient’s birthday.
INTEGRATED_OFFERSOffer campaigns of this type (the default if not specified) have a definitive expiration for all recipients and recipients must be a valid wallet user.
COUPONSOffers that can be sent to and used by anyone, including non-wallet owners. For example, they can be printed on flyers.

OfferProcessingPoint

The entity that calculated the offer to apply the transaction for redemption.

EnumDescription
POSThe POS terminal calculated the offer that was applied it to the transaction.
PAYDIANTThe WLW platform calculated the offer that was applied to the transaction.

OfferStatus

The state of an offer that indicates its usability.

EnumDescription
ACTIVEThe offer is live and can be redeemed.
REDEEMEDThe offer has been redeemed.
REDEEM_PENDINGThe offer is in the process of being redeemed.
EXPIREDThe offer has expired and is no longer valid.
CANCELLEDThe offer was rescinded.
REVERSAL_PENDINGThe offer was redeemed in a transaction that is being reversed.
REVERSAL_FAILEDReversal of the transaction in which the offer was redeemed failed.
VOID_PENDINGThe offer was redeemed in a transaction that is being voided.
REFUND_PENDINGThe offer was redeemed in a transaction that is being refunded.

OfferType

The type of compensation promoted by an offer.

EnumDescription
VALUE_BASED_OFFERThe offer is a dollar or percentage amount discount, such as $5 off or 10% off.

ReceiptType

The type of transaction for which a receipt is generated.

EnumTransaction Type
PURCHASEA standard payment or non-referenced refund.
REFUNDA standard or non-paired refund.
CASH_WITHDRAWALAn ATM withdrawal.
CASH_DEPOSITAn ATM deposit.
FUELA gas station transaction with a fuel pump.

RewardType

The type of compensation promoted by an offer.

EnumDescription
VALUE_BASEDThe offer is a dollar or percentage amount discount, such as $5 off or 10% off.
SKU_BASEDThe offer gives a product reward, such as a free cookie or car wash.

TransactionSubType

Further describes the ReceiptType.

EnumDescription
PAYMENTA standard payment for a purchase.
REFUNDA standard refund of a previous purchase.
CASH_BACKA payment over the amount due in which cash was returned.
RETURNA refund in which a previously purchased item was returned.
SALEA purchase of an item at a discounted price.
EXCHANGEA refund in which a previously purchased item was exchanged for a different item, possibly of different value, which might result in additional payment, credit, or cash back.
PAYMENT_ON_ACCOUNTA payment toward an existing credit balance.
REWARDDeprecated: The payment is a loyalty reward redemption.
OTHERThe transaction is of another type not represented in this enum.
NON_REFERENCE_REFUNDA refund that is processed as a sale for a negative amount (credit) because the original transaction receipt is not available.
CREDITA sale entered as a negative amount due.
FUELA purchase of fuel from a gas station pump.
NON_PAIRED_REFUNDA refund where the POS looks up the original transaction based on a paper receipt because the mobile wallet is not present.
PAIRED_REFUNDA refund where the mobile user selects the original receipt within the mobile wallet.
CASH_DEPOSITThe deposited funds were made up of cash only.
CHECK_DEPOSITThe deposited funds were made up of checks only.
CASH_AND_CHECK_DEPOSITThe deposited funds were a combination of cash and checks.

Next