An ultra-realistic receipt generator.
Outputs PNG, JPEG, PDF, and raw HTML with inline styling. Easily embedded into any website or email.
It's as simple as...
const receiptData = {
template: 'default',
output: 'html',
content: {
...
}
};
fetch('https://receiptable.dev/api/v1/receipt', {
method: 'POST',
headers: {
'X-AUTH-TOKEN': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify(receiptData),
})
.then((response) => response.text())
.then((html) => {
console.log(html);
})
.catch((error) => console.error(error));
Visit receiptable.dev/sign-up to generate your API key.
Check out the docs for more information.
Contributions, issues and feature requests are welcome.
- Fork it (https://github.com/tom-draper/receiptable)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Built with Deno 🦖