iOS SDK - Receipt Objects

DOCS

Last updated: Aug 15th, 7:59am

Receipt Domain Objects

PDAcceptanceLocationSummary

Identifies the physical location that accepted the transaction represented by the receipt.

PropertyDescription
acceptancePartnerSummaryPDAcceptancePartnerSummary
Identifies the hierarchy of the merchant’s registration with WLW.
acceptanceLocationNameString
The name of the store location relevant to the receipt summary.
acceptanceLocationUriString
WLW’s unique identifier for the store location.
addressLine1String
The first line of the physical location of the store.
addressLine2String
The second line of the physical store location.
cityString
The city in which the store is located.
countryString
The country in which the store is located.
stateString
The U.S. state in which the store is located.
zipCodeString
The U.S. postal code for the store location.
storeCodeString
The unique identifier for the specific retail location.

PDAcceptancePartnerSummary

Identifies an entity registered to process mobile payment transactions with the WLW platform.

PropertyDescription
acceptancePartnerUriString
The unique identifier of a merchant registered to accept WLW-powered mobile payments.
acceptancePartnerNameString
The name of the merchant as it will appear on the receipt.
partnerUriString
The unique identifier of the WLW partner under which the merchant is registered.
acceptancePartnerLogoUrlString
The URL path through which the merchant’s logo image is served for use on digital receipts.

PDLineItem

Identifies an individual purchase included in a transaction.

PropertyDescription
createdDateNSDate
Time at which the line item was added to the receipt.
categoryCodeString
The unique identifier of the category to which the line item belongs.
categoryDisplayNameString
The plain language name of the category to which the line item belongs. For example, Women’s Gloves.
categoryNameString
The unique descriptive name of the category to which the line item belongs. For example, apparel_women_outerwear_gloves.
unitPriceString
The unit price of the line item. For example, a bunch of grapes may be $1.99 per pound.
totalAmountString
The total amount charged for the line item. For example, three pounds of grapes has a total cost of $5.97.
itemCountString
The number of units included in the line item. For example, if the unit for grapes is pounds and the total pounds purchased is 3, 3 is the value for this property.
descriptionString
The description of the item purchased. For example, red seedless grapes.
itemCodeString
The unique identifier for the item, such as its SKU or UPC.
itemDiscountAmountNSNumber
The dollar amount by which the item’s purchase price is reduced in this transaction.
itemTaxAmountNSNumber
The dollar amount of the applied tax for the item.
unitTypeString
The unit of measure used for the item, such as gallon, each, or package, as defined by the acceptance partner.

PDPaymentResultSummary

An abbreviated snapshot of the outcome of a particular payment authorization request for inclusion on the receipt summary. A single transaction can have multiple instances due to, for example, split tender or declines.

PropertyDescription
currencyCodeString
The code that identifies the monetary unit used for the transaction, as recognized by the ISO 4217 standard, for example, USD = United States Dollar.
paidOrRefundAmountNSNumber
The dollar amount paid or refunded in this instance, which may be a partial payment in a split tender transaction.
paymentStatusString
The result of this payment authorization instance, such as Approved or Declined.

PDReceipt

Defines all data relevant to a completed transaction.

PropertyDescription
amountString
The total amount due for the transaction.
subTotalAmountNSNumber
The calculated total of the purchase, prior to any discounts, tax, or other modifications to the amount due.
paidAmountString
The amount that was authorized for payment by the mobile wallet payment account(s) for this receipt.
cashierIdString
The identifier of the employee who was logged into the POS when the transaction was processed.
terminalIdString
The unique identifier of the POS terminal on which the transaction was processed.
createdDateNSDate
Time at which the receipt was generated.
loyaltyReceiptsPDLoyaltyReceipt
Defines the loyalty activity relevant to this transaction.
totalAmountPointsNSNumber
The total number of loyalty reward points earned for the transaction.
merchantTransactionIdString
The unique identifier for the transaction, as provided by the POS.
paydiantReferenceIdString
The unique identifier for the transaction, as supplied by WLW’s managed service.
receiptIdString
The unique identifier of the receipt object.
originalReceiptIdString
If the transaction is a refund, the unique identifier of the originating purchase transaction.
savingsDiscountString
The dollar amount by which the total was reduced due to the application of a discount.
taxString
The total amount of sales tax collected for the purchase.
merchantUriString
The unique identifier of the retailer that conducted the transaction.
lineItemsPDLineItem
The array of objects that define each item included in the receipt.
tipAmountString
The dollar amount added to the total due based on the user’s input of a tip.
includedGratuityNSNumber
The dollar amount added to the total due as an automatically applied gratuity (such as with large dining parties).
surchargeNSNumber
The dollar amount added to a cash access transaction as an ATM fee.
storeLocationPDStoreLocation
Defines the location at which the transaction was conducted.
fuelReceiptPropertiesPDFuelReceiptProperties
Details data values that are specific to fuel related transactions, such as the amount of fuel dispensed.
receiptTypePDReceiptType
The type of transaction for which the receipt was generated.
transactionSubTypePDTransactionSubType Enum
Further distinguishes a transaction within its primary type.
transactionSubTypeDescriptionsString
Captures any optional plain text explanation that further describes the transaction, such as a Refund or Exchange may contain an additional note explaining that the exchange item cost less than the returned item, resulting in a credit.
paymentResultsArray
The set of one or more PDTransactionAccount objects that were used for this transaction. Payments may include partial payments from different payment accounts, for example, gift plus credit or a declined payment, followed by a successful payment.
offersArrayPDOffer
The array of objects defining the offers redeemed for this transaction.
accountsArrayPDTransactionAccount
The array of objects defining the payment accounts used to complete the transaction.
externalReceiptUrlString
A URL that can optionally be included on the e-receipt generated for the mobile app, giving wallet users the ability to view the receipt in a secure online portal.
receiptTextString
Any additional content that the merchant would like included on the e-receipt generated for the mobile app, such as the return policy or other legal disclaimer.

PDReceiptCollection

A set of receipt instances grouped by some shared characteristic.

PropertyDescription
totalRecordsCountInteger
The total number of receipts included in a collection.
receiptsArrayArray
The set of receipts, identified by receiptId, included in the collection.
startIndexInteger
The receipt record number of the first receipt in the collection.
endIndexInteger
The receipt record number of the last receipt in the collection.
receiptStartDateNSDate
The earliest receipt generation date of receipts included in the collection.
receiptEndDateNSDate
The latest receipt generation date of receipts included in the collection.

PDReceiptSummary

Briefly identifies a receipt instance with data that would appear in a list view in the wallet.

PropertyDescription
acceptanceLocationSummaryPDAcceptanceLocationSummary
Defines a brief identification of the physical store location through which the transaction was processed.
receiptTypePDReceiptSummaryType
The type of transaction for which the receipt was generated.
externalReceiptUrlString
A URL that can optionally be included on the e-receipt generated for the mobile app, giving wallet users the ability to view the receipt in a secure online portal.
merchantTransactionReferenceIdString
The unique identifier for the transaction, as provided by the POS.
paydiantTransactionReferenceIdString
The unique identifier for the transaction, as supplied by WLW’s managed service.
createdDateNSDate
The time at which the receipt was generated.
receiptIdString
The unique identifier of the receipt object.
subTotalAmountNSNumber
The amount of the purchase prior to the application of tax and tip adjustments.
taxAmountNSNumber
The total amount of sales tax collected for the purchase.
tipNSNumber
The dollar amount of the user-applied tip.
includedGratuityNSNumber
The dollar amount automatically applied as a gratuity, such as with large dining parties.
surchargeNSNumber
The dollar amount applied as a withdrawal ATM fee.
totalPointsNSNumber
The number of reward points earned for the transaction.
totalNSNumber
The amount that was authorized for payment by the mobile wallet payment account(s) for this receipt.
paymentResultSummaryArray
The set of PDPaymentResultSummary instances of summarized outcome of each payment authorization request for the transaction.
transactionSubTypePDTransactionSummarySubType Enum
Further distinguishes the transaction within the primary type.

PDRefund

Captures the details of a completed refund transaction.

PropertyDescription
receiptIdString
The unique identifier of the receipt object.
merchantIdString
The unique identifier of the merchant that processed the refund transaction.
checkoutTokenString
The checkout token that was generated for the refund transaction.
refundAmountString
The total dollar amount credited back to the payment account.
walletAccountIdString
The unique identifier of the WLW mobile wallet.
currencyCodeString
The code that identifies the monetary unit used for the transaction, as recognized by the ISO 4217 standard, for example, USD = United States Dollar.
refundedDateNSDate
The time and date that the refund transaction completed.
offersArrayArray
The set of PDOffer objects for offers that were applied to the original purchase and are applicable to the refund transaction.

PDTransactionAccount

Identifies a payment account relative to its use as tender in a mobile transaction. Some receipt instances (such as split tender) may reference multiple instances of this object in the accountsArray property.

PropertyDescription
paydiantReferenceIdString
The unique identifier of the transaction.
paidOrRefundAmountString
The dollar amount that was debited or credited to the account for a particular transaction.
paymentAccountTypeUriString
The unique identifier of the type of payment account associated with the tender type.
paymentAccountNetworkTypeUriString
The unique identifier of the network type associated with this tender.
paymentAccountUriString
The unique identifier of the payment account.
paymentRefIdString
The unique identifier of a payment that was conducted using the account. This is not the transaction identifier, as a transaction can have more than one associated payment.
paidOrRefundedDateNSDate
The time and date that the payment or refund network authorization completed.
paymentStatusDescriptionString
The plain language message describing the current status of the payment or refund.
paymentStatusCodeString
WLW’s code identifier indicating the result of the payment authorization request. The code populated here depends on the attribute for which the TransactionAccount instance is relevant. For example, if the object is populating the currentPaymentResult attribute of PDTransactionDetail, the value here will be the appropriate HTTP code for success or failure.
However, in the event that this instance populating the previousPaymentResult attribute for an ultimately successful transaction that included previous payment attempts that failed, this value may be the status code representing the failure.
paymentInstrumentPDPaymentInstrument
Defines the payment account to which this object refers.
currencyCodeString
The code that identifies the monetary unit used for the transaction, as recognized by the ISO 4217 standard, for example, USD = United States Dollar.
externalStatusCodeString
Status of the payment or refund as communicated by the processor.
externalStatusDescriptionString
The plain language message that defines the externalStatusCode.

Receipt Message Objects

PDRetrieveReceiptSummaryRequest

Retrieves the receipt for the split tender transaction identified.

PropertyDescription
filterTypePDReceiptSummaryFilterType Enum
The criteria by which the set of split tender receipts will be limited
startIndexInteger
The returned set of receipt objects should begin with this object number.
noOfRecordsInteger
The returned set of receipts should display this number of receipts per page at a maximum.
startDateNSDate
The earliest receipt generation date of receipts to be returned.
endDateNSDate
The latest receipt generation date of receipts to be returned.
acceptancePartnerPartnerUriString
If relevant based on filterType, this value identifies the merchant parent partner.
acceptancePartnerUriString
If relevant based on filterType, this value identifies the merchant by which to filter the returned receipts.

PDRetrieveReceiptSummaryResponse

Returns the result of the request from the server.

PropertyDescription
receiptSummariesListArray
The set of PDReceiptSummary objects that is returned based on the filtering criteria specified in the request.
startIndexInteger
The returned set of receipt summary objects begins with this object number.
endIndexInteger
The returned set of receipt summaries ends with this object number.
maxNumberOfRowsInteger
The returned set of receipt summaries includes this many returned objects.
startDateNSDate
The earliest receipt generation date of receipt summaries returned.
endDateNSDate
The latest receipt generation date of receipt summaries returned.

PDRetrieveReceiptDetailRequest

Specifies the transaction for which receipt detail is requested.

PropertyDescription
paydiantReferenceIdString
Identifies the transaction for which the receipt detail is being requested.

PDRetrieveReceiptDetailResponse

Returns the object that defines the requested receipt.

PropertyDescription
receiptPDReceipt
The receipt object generated for the transaction identified in the request.

PDRetrieveReceiptWithSplitTenderPaymentsRequest

Retrieves the receipt for the split tender transaction identified.

PropertyDescription
paydiantReferenceIdString
Identifies the split tender transaction for which the receipt is being requested.

PDRetrieveReceiptWithSplitTenderPaymentResponse

Returns the result of the request from the server.

PropertyDescription
receiptPDReceipt
The receipt object defined by the referenceID provided in the request.

PDRetrieveReceiptsWithSplitTenderPaymentsRequest

Retrieves all split tender receipts meeting the specified criteria.

PropertyDescription
filterTypePDReceiptFilterType Enum
The criteria by used to limit the split tender receipts.
startIndexInteger
The returned set of receipt objects begins with this object number.
noOfRecordsInteger
The returned set of receipts displays this number of receipts per page at a maximum.
receiptStartDateNSDate
The earliest receipt generation date of receipts to be returned.
receiptEndDateNSDate
The latest receipt generation date of receipts to be returned.
acceptancePartnerPartnerUriString
The merchant parent partner for the acceptance partner specified by filterType.
acceptancePartnerUriString
Unique identifier for the merchant acceptance partner identified by filtertype used to filter the returned receipts.

PDRetrieveReceiptsWithSplitTenderPaymentsResponse

Returns the result of the request from the server.

PropertyDescription
receiptsArray
The set of PDReceipt objects returned based on the filtering criteria specified in the request.
startIndexInteger
The returned set of receipt objects begins with this object number.
endIndexInteger
The returned set of receipts ends with this object number.
noOfRecordsInteger
The returned set of receipts includes this many returned objects.
receiptStartDateNSDate
The earliest receipt generation date of receipts returned.
receiptEndDateNSDate
The latest receipt generation date of receipts returned.

PDRefundableReceiptsWithSplitTenderPaymentsRequest

Retrieves the set of PDReceipt objects that include split payments and are refundable.

PropertyDescription
startIndexInteger
The returned set of receipt objects begin with this object number.
noOfRecordsInteger
The returned set of receipts display this number of receipts per page at a maximum.
receiptStartDateNSDate
The earliest receipt generation date of receipts to be returned.
receiptEndDateNSDate
The latest receipt generation date of receipts to be returned.
acceptancePartnerPartnerUriString<brUnique identifier for the merchant partner identified by filtertype used to filter the returned receipts.
acceptancePartnerUriString
If the filterType specifies the acceptance partner, this value identifies the merchant to use when filtering the returned receipts.
storeLocationUriString
This value identifies the particular location of the merchant, which determines whether the receipt is refundable for the current location.

PDRefundableReceiptsWithSplitTenderPaymentsResponse

Returns the result of the split tender receipt request from the server.

PropertyDescription
receiptsArray
The set of PDReceipt objects returned based on the filtering criteria specified in the request.
startIndexInteger
The returned set of receipt objects begins with this object number.
endIndexInteger
The returned set of receipts ends with this object number.
noOfRecordsInteger
The returned set of receipts includes this many returned objects.
receiptStartDateNSDate
The earliest receipt generation date of returned receipts.
receiptEndDateNSDate
The latest receipt generation date of returned receipts.

Receipt Enums

PDReceiptFilterType

Enum
kReceiptFilterNotSet (default)
kReceiptsByUser
kReceiptsByUserAndDateRange
kReceiptsByAcceptancePartnerPartnerAndUser
kReceiptsByAcceptancePartnerPartnerAndUserAndDateRange

PDReceiptType

Enum
kPDReceiptTypeUnknown (default)
kPDReceiptTypePurchase
kPDReceiptTypeRefund
kPDReceiptTypeCashWithdrawal
kPDReceiptTypeCashDeposit
kPDreceiptTypeFuel

PDTransactionSubtype

Enum
kPDTransactionSubTypeUnknown (default)
kPDTransactionSubTypeCashBack
kPDTransactionSubTypeCredit
kPDTransactionSubTypeExchange
kPDTransactionSubTypeFuel
kPDTransactionSubTypeNonPairedRefund
kPDTransactionSubTypeNonReferencedRefund
kPDTransactionSubTypeOther
kPDTransactionSubTypePairedRefund
kPDTransactionSubTypePayment
kPDTransactionSubTypePaymentOnAccount
kPDTransactionSubTypeRefund
kPDTransactionSubTypeReturn
kPDTransactionSubTypeReward
kPDTransactionSubTypeSale

PDReceiptSummaryType

TypeEnum
1kPDReceiptSummaryTypePurchase
2kPDReceiptSummaryTypeRefund
3kPDReceiptSummaryTypeCashWithdrawal
4kPDReceiptSummaryTypeCashDeposit
5kPDReceiptSummaryTypeFuel
0kPDReceiptSummaryTypeUnknown (default)

PDReceiptSummaryFilterType

Enum
kReceiptSummaryFilterNotSet (default)
kReceiptSummaryByUser
kReceiptSummaryByUserAndDateRange
kReceiptSummaryByAcceptancePartnerPartnerAndUser
kReceiptSummaryByAcceptancePartnerPartnerAndUserAndDateRange

PDTransactionSummarySubType

NumberEnum
0kPDTransactionSummarySubTypeUnknown(default)
1kPDTransactionSummarySubTypeCashBack
2kPDTransactionSummarySubTypeCredit
3kPDTransactionSummarySubTypeExchange
4kPDTransactionSummarySubTypeFuel
5kPDTransactionSummarySubTypeNonPairedRefund
6kPDTransactionSummarySubTypeNonReferenceRefund
7kPDTransactionSummarySubTypeOther
8kPDTransactionSummarySubTypePairedRefund
9kPDTransactionSummarySubTypePayment
10kPDTransactionSummarySubTypePaymentOnAccount
11kPDTransactionSummarySubTypeRefund
12kPDTransactionSummarySubTypeReturn
13kPDTransactionSummarySubTypeReward
14kPDTransactionSummarySubTypeSale