Receipt Data Elements

In This Guide

Request Message

All the JSON elements referenced in the Receipts API reference are expected unless otherwise indicated below or a written waiver is obtained from flexEngage. DO NOT send non-required elements that you do not use.

MAKE SURE THAT EVERYTHING THAT APPEARS ON THE PAPER RECEIPT IS SENT.

Anatomy of a Digital Receipt

flexEngage will work with the merchant to create a suitable receipt template based on their requirements. Below is a sample email receipt that has been annotated followed by a table that identifies the JSON elements used for the annotated data. There are also expanded views of specific sections following this high level sample.

Figure 1: Sample Email Receipt Template

Sample Email Receipt Template

Sample Email Receipt Annotation Key

The table below identifies the Merchant (Web) Portal and OpenAPI elements used in the annotated email receipt sample (above) and the PDF receipt sample (below).

1Email Subject Line from Merchant Portal2Email Sender Name and Sender Email Address from Merchant Portal
3Email Header from Merchant Portal4Logo from Merchant Portal
5Survey from Merchant Portal6See "Loyalty Information" below
7See "Item Information" below8See "Return Information" below
9See "Order Information" below10See "Receipt Summary Information" below
11See "Tender Information" below12See "Store Information" below
13See "Transaction Details" below14See "Delivery Pick-up Information" below
15See "Sold To Information" below16Barcode Graphic generated based on: barcodeType barcodeNumber
17See "Deposit Information" below18See "Payment History" below
19See "Terms and Conditions" below20See "Transaction Signature" below
21additionalInfo1 additionalInfo2 additionalInfo3 additionalInfo4 additionalInfo522Marketing Campaign Content from Merchant Portal
23Corporate Social Media Links from Merchant Portal24Email Footer from Merchant Portal
25Static content provided by flexEngage

Store Information

Below is the Store Information on the email receipt.

Store Information on the email receipt

"store": {
  "id": "000",
  "name": "TEST STORE",
  "address": {
    "typeCode": "RetailStore",
    "addressLine1": "456 Retailer Avenue",
    "addressLine2": "Suite 200",
    "city": "Chicago",
    "territory": "IL",
    "postalCode": "60601",
    "country": {
      "value": "United States",
      "code": "US"
    },
    "postalCodeExtension": "4321"
  },
  "telephone": {
    "areaCode": "312",
    "localNumber": "5550198"
  }
}

Transaction Details

Below are the Transaction Details on the email receipt.

Transaction Details on the email receipt

13A
"transactionNumber": "202604-4271",
"receiptDateTime": "2026-04-17T14:32:00-05:00",
13B
"workstation": {
  "id": "POS-03",
  "operator": "M. Torres",
  "associate": "R. Patel",
  "store": {
    "id": "000",
    ….
  }
  ….
},
13C
"relatedTransactionReference": {
  "store": "000",
  "register": "POS-01",
  "transactionNumber": "202602-0847",
  "reasonCode": "EXCH-01",
  "reason": "Customer Exchange"
},
13D
"revision": {
  "number": "1",
  "dateTime": "2026-04-17T09:15:00-05:00"
},

Loyalty Information

Below is the Loyalty Information on the email receipt.

Loyalty Information on the email receipt

"loyalty": {
  "number": "LY-0001234567",
  "customerName": "Jane M. Smith",
  "expirationDateTime": "2027-06-30T23:59:59-05:00",
  "balance": 2450,
  "misc": "10% Gold Member Discount Applied"
},

Rows marked “(Custom)” on the sample come from merchant-specific custom properties, not from the loyalty object.

Item Information

Below the Item Information on the email receipt.

Item Information on the email receipt

"items": [
  {
    "name": "Merino Wool Crewneck Sweater",
    "description": "Lightweight merino blend, ribbed cuffs and hem. Machine washable.",
    "classCode": "TOPS-KNT",
    "sku": "MWS-4421-NVY-M",
    "upc": "012345678901",
    "price": 89.99,
    "total": 89.99,
    "priceNotation": "N",
    "quantity": {
      "value": 1,
      "units": 1,
      "unitOfMeasureCode": "Each"
    },
    "discounts": [
      { "amount": 9.0, "name": "Gold Member 10% Discount" }
    ],
    "miscInfo": "Gift wrap requested",
    "category": "Men's Sweaters",
    "customCategory1": "Tops",
    "customCategory2": "Knitwear",
    "supportingDocuments": {
      "warranty": {"name": "1-Year Manufacturer Warranty", "url": "https://northfieldgoods.com/warranty"}
    },
    "taxes": [
      { "description": "IL State Sales Tax", "percent": 0.0625, "taxableAmount": 80.99, "amount": 5.06, "taxTypeCode": "Sales" }
    ]
  }
]

See the Request Field Reference for more on item pricing, discounts, and price notations.

Order Information

Below is the Order Information on the email receipt.

Order Information on the email receipt

9A
"orders": [
  {
    "number": "ORD-20260417-8812",
    "action": "Create",
    "barcodeNumber": "ORD20260417881200",
    "barcodeType": "Code128",
    "description": "Ship to Home - Standard Delivery (5 business days)",
    "grossAmount": 149.99,
    "netAmount": 149.99,
9B
    "soldTo": {
      "address": {
        "typeCode": "Home",
        "addressLine1": "1842 Lakeshore Drive",
        "addressLine2": "Apt 4C",
        "city": "Chicago",
        "territory": "IL",
        "postalCode": "60614",
        "country": { "value": "United States", "code": "US" },
        "postalCodeExtension": "2281"
      },
      "customerName": "Jane M. Smith",
      "customerNumber": "CUST-00398271",
      "telephone1": { "areaCode": "312", "localNumber": "5550142" }
    },
9C
    "deliveryPickup": {
      "address": {
        "typeCode": "Home",
        "addressLine1": "1842 Lakeshore Drive",
        "addressLine2": "Apt 4C",
        "city": "Chicago",
        "territory": "IL",
        "postalCode": "60614",
        "country": { "value": "United States", "code": "US" },
        "postalCodeExtension": "2281"
      },
      "instructions": "Leave with doorman. Ring unit 4C.",
      "dateTime": "2026-04-24"
    },
9D
    "items": [
      {
        "name": "Premium Leather Tote Bag",
        "description": "Full-grain leather, magnetic snap closure, interior zip pocket. Color: Tan.",
        "classCode": "BAGS-LTH",
        "sku": "LTB-8847-TAN-OS",
        "upc": "056789012345",
        "serialNumber": "SN-LTB-20260417-00492",
        "price": 149.99,
        "total": 149.99,
        "priceNotation": "N",
        "quantity": { "value": 1, "units": 1, "unitOfMeasureCode": "Each" },
        "discounts": [],
        "miscInfo": "Gift receipt requested",
        "category": "Handbags and Accessories",
        "customCategory1": "Bags",
        "customCategory2": "Leather Goods",
        "supportingDocuments": {
          "warranty": {"name": "2-Year Meridian Warranty", "url": "https://meridianleather.com/warranty"}
        }
      }
    ],
9E
    "miscText": "Order confirmed. Estimated delivery April 24, 2026.",
    "totalAmount": 171.85,
    "taxes": [
      { "description": "IL State Sales Tax", "percent": 0.0625, "taxableAmount": 149.99, "amount": 9.37, "taxTypeCode": "Sales" }
    ],
    "fees": [
      { "amount": 8.99, "description": "Standard Shipping" },
      { "amount": 3.5, "description": "Handling Fee" }
    ],
9F
    "deposits": [
      { "accountNumber": "DEP-ORD-20260417", "amount": 50.0, "balanceDue": 121.85 }
    ],
    "tenderHistory": [
      { "tenderTypeCode": "CreditCard", "dateTime": "2026-04-17T14:33:00-05:00", "amount": 50.0 }
    ],
9G
    "paymentSchedules": [
      { "description": "Deposit Paid", "amountDue": 50.0, "dueDate": "2026-04-17" },
      { "description": "Balance Due on Delivery", "amountDue": 121.85, "dueDate": "2026-04-24" }
    ]

action describes what kind of order event this is — valid values include Create, Modify, Cancel, Payment, Shipment, Pickup, Return, Notify, and Other.

Return Information

Below is the Return Information on the email receipt.

Return Information on the email receipt

8A
"returns": [
  {
    "originalStoreNumber": "000",
    "originalRegister": "POS-02",
    "originalTransactionNumber": "202603-1822",
    "miscText": "Customer satisfied with service. Exchanged for size 10.",
    ….
  }
],
8B
"items": [
  {
    "name": "Canvas Slip-On Sneakers",
    "description": "Vulcanized canvas upper, cushioned insole. Color: Slate Grey.",
    "sku": "SNK-1092-GRY-10",
    "upc": "034567890123",
    "price": -69.99,
    "total": -69.99,
    "priceNotation": "N",
    "quantity": { "value": 1, "units": 1, "unitOfMeasureCode": "Each" },
    "miscInfo": "Size exchange - original size 9",
    "category": "Women's Casual",
    "customCategory1": "Footwear",
    "customCategory2": "Casual Sneakers",
    "supportingDocuments": {},
    "discounts": [],
    "taxes": [
      { "description": "IL State Sales Tax", "percent": 0.0625, "taxableAmount": -69.99, "amount": -4.37, "taxTypeCode": "Sales" }
    ]
  }
]

Receipt Summary Information

Below is the Receipt Summary Information on the email receipt.

Receipt Summary Information on the email receipt

"grossAmount": 50.0,
"discounts": [
  { "amount": 9.0, "name": "Gold Member 10% Discount" },
  { "amount": 5.0, "name": "Spring Promotion" }
],
"netAmount": 41.0,
"taxes": [
  { "description": "IL State Sales Tax", "percent": 0.0625, "taxableAmount": 36.0, "amount": 2.25, "taxTypeCode": "Sales" }
],
"grandAmount": 43.25,
"tip": 0.0,
"serviceCharge": 0.0,
"fees": [
  { "amount": 5.0, "description": "Alteration Service" }
]

Tender Information

Below is the Tender Information on the email receipt.

Tender Information on the email receipt

11A
"tenders": [
  {
    "tenderTypeCode": "CreditCard",
    "dateTime": "2026-04-17T14:32:10-05:00",
    "amount": 13.25,
    "creditDebit": {
      "first6Digits": "411111",
      "last4Digits": "4242",
      "typeCode": "Visa",
      "name": { "firstName": "Jane", "lastName": "Smith" },
      "expirationDate": "0928"
    },
    "authorizationCode": "AUTH-284719",
    "miscInfo": "REF:NFG-0427",
    "emv": {
      "aid": "A0000000031010",
      "appLabel": "VISA CREDIT",
      "appPreferredName": "Visa",
      "additionalAttributes": {}
    },
    "currency": "USD"
  },
11B
  {
    "tenderTypeCode": "GiftCard",
    "dateTime": "2026-04-17T14:32:05-05:00",
    "amount": 30.0,
    "giftCard": {
      "accountNumber": "GC-7734-9920-4481-2200",
      "balance": 20.0,
      "authNumber": "GCAUTH-448812"
    },
    "miscInfo": null,
    "emv": null,
    "currency": "USD"
  }
],
11C
"tenderApplied": 43.25,
"changeDue": 0.0,

Deposit Information

Below is the Deposit Information on the email receipt.

Deposit Information on the email receipt

"deposit": {
  "accountNumber": "DEP-ORD-20260417",
  "amount": 50.0,
  "balanceDue": 121.85
}

Payment History

Below is the Payment History on the email receipt.

Payment History on the email receipt

"tenderHistory": [
  {
    "tenderTypeCode": "CreditCard",
    "dateTime": "2026-03-14T16:05:00-05:00",
    "amount": 100.91,
    "creditDebit": {
      "first6Digits": "411111",
      "last4Digits": "4242",
      "typeCode": "Visa"
    }
  }
]

Sold To Information

Below is the Sold To Information on the email receipt.

Sold To Information on the email receipt

"soldTo": {
  "address": {
    "typeCode": "Home",
    "addressLine1": "1842 Lakeshore Drive",
    "addressLine2": "Apt 4C",
    "city": "Chicago",
    "territory": "IL",
    "postalCode": "60614",
    "country": {
      "value": "United States",
      "code": "US"
    },
    "postalCodeExtension": "2281"
  },
  "customerName": "Jane M. Smith",
  "customerNumber": "CUST-00398271",
  "telephone1": {
    "areaCode": "312",
    "localNumber": "5550142"
  }
}

Delivery Pick-up Information

Below is the Delivery Pick-up Information on the email receipt.

Delivery Pick-up Information on the email receipt

"deliveryPickup": {
  "address": {
    "typeCode": "Home",
    "addressLine1": "1842 Lakeshore Drive",
    "addressLine2": "Apt 4C",
    "addressLine3": null,
    "city": "Chicago",
    "territory": "IL",
    "postalCode": "60614",
    "country": {
      "value": "United States",
      "code": "US"
    },
    "postalCodeExtension": "2281"
  },
  "instructions": "Leave with doorman. Ring unit 4C.",
  "dateTime": "2026-04-24"
}

Terms and Conditions

Below is the Terms and Conditions on the email receipt.

Terms and Conditions on the email receipt

"terms": [
  {
    "description": "All sales final on altered merchandise. Returns accepted within 30 days with original receipt.",
    "supportingDocuments": {
      "policy": {"name": "Return Policy", "url": "https://northfieldgoods.com/returns"}
    }
  },
  {
    "signature": {
      "base64Image": "iVBORw0KGgoAAA…..",
      "imageMimeType": "image/png",
      "dateTime": "2026-04-17T14:32:40-05:00",
      "text": "I agree to pay the above total amount according to the card issuer agreement."
    }
  }
]

Transaction Signature

Below is the Transaction Signature on the email receipt.

Transaction Signature on the email receipt

"signature": {
  "base64Image": "iVBORw0KGgoAAAANSU…..",
  "imageMimeType": "image/png",
  "dateTime": "2026-04-17T14:32:55-05:00",
  "text": "Signed at checkout for the total above."
}