50 lines of code

Beautiful Receipts

A single REST API call turns your transaction data into printer-ready ESCPOS bytes or responsive HTML. No receipt formatting logic in your POS code.

render.ts
// render.ts
const url = 'https://edge:8080/api/v1/receipt/escpos';

const response = await fetch(url, {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-api-key': 'YOUR_API_KEY',
  },
  body: JSON.stringify({
    companyCode: 'MC-01',
    personalityCode: 'GNR-MERCH',
    storeCode: 'STR-01',
    xml: '<your POSLog V6 XML here>',
  }),
});

const result = await response.json(); // or response.text();
sendToPrinter(result);