Print Receipt API

If I want to use Square on my web application to print the receipt, is there any API can support this?