Receipt Data Structure
This document explains how receipt data is structured in App2App responses.
Overview
Receipt lines in the response are formatted as List<List<String>> where each inner list contains formatting information for up to three text elements.
Single receipt line may contain up to three text elements each with unique Alignment. Sending an empty list will result in an empty line.
Receipt Line Format
Each inner list contains:
| Index | Description |
|---|---|
| [0] | Text content 1 |
| [1] | Text content 1 Font size (1-9, where 1=smallest, 9=largest) |
| [2] | Text content 1 Alignment (L=Left, C=Center, R=Right) |
| [3] | Text content 1 Style (N=Normal, B=Bold) |
| [4] | Text content 2 - OPTIONAL |
| [5] | Text content 2 Font size (1-9, where 1=smallest, 9=largest) - OPTIONAL |
| [6] | Text content 2 Alignment (L=Left, C=Center, R=Right) - OPTIONAL |
| [7] | Text content 2 Style (N=Normal, B=Bold) - OPTIONAL |
| [8] | Text content 3 - OPTIONAL |
| [9] | Text content 3 Font size (1-9, where 1=smallest, 9=largest) - OPTIONAL |
| [10] | Text content 3 Alignment (L=Left, C=Center, R=Right) - OPTIONAL |
| [11] | Text content 3 Style (N=Normal, B=Bold) - OPTIONAL |
Receipt Processing
Receipt data is returned as formatted lines that can be directly printed or displayed by the integrating application (integrator's app resides on the terminal as well thus it can use the printer):
- Text content with formatting instructions
- Size indicators for different font sizes
- Alignment specifications (Left/Center/Right)
- Style indicators (Normal/Bold)