Skip to content

receipt-minimal

The receipt-minimal template produces a compact, minimal receipt suitable for retail, food service, and point-of-sale transactions. It features a clean monochrome design with clear item listing and payment details.

<glyph-editor
api-key="gk_your_key"
template="receipt-minimal"
data='...'
></glyph-editor>
FieldTypeDescription
merchant.namestringMerchant or business name
receipt.numberstringReceipt number
receipt.datestringTransaction date
items[].namestringItem name
items[].quantitynumber/stringQuantity
items[].pricenumber/stringItem price
totals.subtotalnumber/stringSubtotal before tax
totals.totalnumber/stringFinal total
payment.methodstringPayment method used
FieldTypeDescription
merchant.addressstringMerchant address
receipt.timestringTransaction time
totals.taxnumber/stringTax amount
payment.transactionIdstringTransaction identifier
styles.accentColorstringAccent color (default: #18181b)
Terminal window
curl -X POST https://api.glyph.you/v1/create \
-H "Authorization: Bearer gk_your_key" \
-H "Content-Type: application/json" \
-d '{
"template": "receipt-minimal",
"data": {
"merchant": {
"name": "The Daily Grind",
"address": "742 Evergreen Ave\nPortland, OR 97205"
},
"receipt": {
"number": "R-8847",
"date": "Jan 20, 2024",
"time": "9:32 AM"
},
"items": [
{ "name": "Oat Milk Latte (L)", "quantity": 2, "price": "5.50" },
{ "name": "Almond Croissant", "quantity": 1, "price": "4.25" },
{ "name": "Drip Coffee (M)", "quantity": 1, "price": "3.00" }
],
"totals": {
"subtotal": "18.25",
"tax": "1.64",
"total": "19.89"
},
"payment": {
"method": "Visa ending in 4242",
"transactionId": "txn_3Np8kL2eZvKY"
},
"styles": {
"accentColor": "#18181b"
}
}
}'