QuickReceipts helps you create digital receipts through a simple REST API — from point-of-sale integrations, in your own unique software project, and everything in between. Our goal is to make the process simple and understandable for developers at every experience level.
Below is an example of a request to the QuickReceipts API in its simplest form, using cURL
. In this snippet, you will notice a purchase was made using a specified payment
method
, a state taxRate
, and a total of two line_items
— or 2 products — were included in the transaction.
curl -X POST \
https://api.quickreceipts.co/api/receipt/create \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $QUICKRECEIPTS_API_KEY" \
-H 'cache-control: no-cache' \
-d '{
"payment": {
"method": "Visa ****3491"
},
"line_items": [
{
"category":"CLOTHING",
"description":"POLO TOP M",
"sku":"3793j8903ior",
"retail_price":39.99,
"taxable":false,
"subtotal":39.99
},
{
"category":"PHARMACY",
"description":"GENxMEDICINE",
"sku":"629hh8203dlp",
"retail_price":12.99,
"saving":2.99,
"taxable":true,
"subtotal":12.99
}
],
"taxRate": 0.08025
}'