Print receipt for transaction

This end-point will return the receipt in the format for printing

Get receipt content

POST https://<Platform-host>/api/transaction/:transactionId/print

Path Parameters

Name
Type
Description

transaction_id*

string

Transaction ID

Request Body

Name
Type
Description

type

string

Accepted values - customer, merchant. Default value is customer

Field Name
Types
Description

data

array

Array of lines.

data[i].items

array

Array of text for the line.

data[i].alignment

string

One of: "center", "left", "right", "justify".

data[i].type

string

Type of data (currently always "text").

data[i].style

object

Styles of the line.

data[i].style.font_size

int

Font size.

data[i].style.font_weight

int

Font weight.

{ 
    type: "customer"
}

Last updated