Print default order receipt from POS extension

Hi,

is it possible to use the Printing API to print the default POS sales receipt for an order using a POS extension? We don’t want to define a custom receipt. We just need to print whatever has been configured using the printed receipt editor for the POS. Is there any way to reference this template using the API?

Cheers,

Paul

Hi @P_Mac! The Printing API only prints documents your own app serves: the src you pass to shopify.printing.print() has to be a path relative to your app’s application_url or a full URL to your backend, and Shopify fetches that content with the extension’s session token.

I agree this would be a useful feature to have available to you so I logged this as feedback with the POS team internally.

The closest things available today are:

  • Native reprint from the order details screen still uses the merchant’s configured template, but it can’t be triggered from an extension.
  • The receipt header and footer targets let an extension add custom sections to the standard receipt, but they render content only, they can’t fire a print job.
  • If your extension needs to drive the print, you’d have to generate the receipt yourself as HTML from the order data and serve it from your backend, which means maintaining a parallel version of whatever the merchant has configured in the editor.

THanks for raising this here!