Example Smart Transaction with Receipt

After the payment was executed, the Smart Transaction may contain a receipt:

Smart Transaction
{
"object": "smart.transactions",
"id": "STX_2XYYHKXXV2NRCHVSHCS45WSE63PMA2",
// ...
"status": "ok",
// ...
"receipt": [
{
"type": "separator",
"value": {
"caption": "Kundenkarte Aufladung"
}
},
{
"type": "name-value",
"value": {
"name": "Terminal-ID:",
"value": "VT000124",
"decoration": []
}
},
{
"type": "name-value",
"value": {
"name": "Datum:",
"value": "24.09.2020 14:40:58",
"decoration": []
}
},
{
"type": "name-value",
"value": {
"name": "Kartennummer:",
"value": "9276004429942845",
"decoration": []
}
},
{
"type": "name-value",
"value": {
"name": "TA Code:",
"value": "29187305",
"decoration": []
}
},
{
"type": "space"
},
{
"type": "textline",
"value": {
"text": "Zahlung über:",
"decoration": []
}
},
{
"type": "textline",
"value": {
"text": "5,00 EUR",
"decoration": [
"important"
]
}
},
{
"type": "space"
},
{
"type": "textline",
"value": {
"text": "Folgender Betrag",
"decoration": []
}
},
{
"type": "textline",
"value": {
"text": "wurde aufgeladen:",
"decoration": []
}
},
{
"type": "textline",
"value": {
"text": "10,00 EUR",
"decoration": [
"important"
]
}
},
{
"type": "space"
},
{
"type": "textline",
"value": {
"text": "Aktuelles Guthaben",
"decoration": []
}
},
{
"type": "textline",
"value": {
"text": "10,00 EUR",
"decoration": [
"important"
]
}
}
],
// ...
}

Here the generated PDF for this receipt:

images/download/thumbnails/97386347/image2020-9-24_14-48-49-version-1-modificationdate-1607008500000-api-v2.png
PDF for similar receipt

There are four types of receipt lines. You can distinguish them by the type field:

  • separators with optional headline;

  • plain textlines;

  • name-value lines;

  • space lines.

Furthermore there are some decorations to emphasise lines, or to align the text at the line.