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.
{
data: [
{
items: ["Line text"], // array of strings
alignment: "center", // "center", "left", "right", or "justify"
type: "text",
styles: { font_size: 13, font_weight: 400 }
}
]
}
{
type: "customer"
}
{
"data": [
{
"items": [
""
],
"alignment": "left",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
""
],
"alignment": "left",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
"Sandbox Merchant"
],
"alignment": "center",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
"200 Epcot Center Dr"
],
"alignment": "center",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
"Orlando, FL 32836"
],
"alignment": "center",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
"800-490-8514"
],
"alignment": "center",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
""
],
"alignment": "left",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
"CREDIT CARD"
],
"alignment": "center",
"type": "text",
"style": {
"font_size": 18,
"font_weight": 600
}
},
{
"items": [
""
],
"alignment": "left",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
""
],
"alignment": "left",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
"TOTAL:",
"USD $120.00"
],
"alignment": "justify",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 600
}
},
{
"items": [
""
],
"alignment": "left",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
"V ************4242"
],
"alignment": "left",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
"DATE & TIME:",
"03-31-25 03:25:00"
],
"alignment": "justify",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
"REC #: ",
"82762996"
],
"alignment": "justify",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
"INVOICE #: ",
"ejs6the8"
],
"alignment": "justify",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
"AUTH CODE: ",
"838937"
],
"alignment": "justify",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
"TYPE: ",
"SALE"
],
"alignment": "justify",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
"DESCRIPTION: ",
"Payment for the services"
],
"alignment": "justify",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
""
],
"alignment": "left",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
"TOTAL: ",
"USD $120.00"
],
"alignment": "justify",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
"APPROVED"
],
"alignment": "center",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400,
"line_height": 2
}
},
{
"items": [
"NO SIGNATURE REQUIRED"
],
"alignment": "center",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400,
"line_height": 2
}
},
{
"items": [
"THANK YOU"
],
"alignment": "center",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400,
"line_height": 2
}
},
{
"items": [
"Cardholder Copy"
],
"alignment": "center",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400,
"line_height": 2
}
},
{
"items": [
"Retain this copy for statement verification."
],
"alignment": "center",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400,
"line_height": 2
}
},
{
"items": [
""
],
"alignment": "left",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
""
],
"alignment": "left",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
""
],
"alignment": "left",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
""
],
"alignment": "left",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
""
],
"alignment": "left",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
""
],
"alignment": "left",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
},
{
"items": [
""
],
"alignment": "left",
"type": "text",
"style": {
"font_size": 15,
"font_weight": 400
}
}
],
"message": "Succeeded"
}
Last updated