Print Receipt

Last updated: 2026-03-25

POST
/in-store/api/v1/printData

Trigger receipt printing on the terminal

Request Body

terminalIdstringrequired

The ID of the terminal to send the print request to.

htmlContentstringrequired

The HTML content to render and print on the terminal's built-in printer.

HTTP Status Code Summary

CodeDescription
201Print request created and sent to terminal.
200Print request processed (already exists).
400Bad request. Check that terminalId and htmlContent are provided.
401Unauthorized. Ensure your bearer token and subscription key are valid.
422Unprocessable entity. The terminal may not support printing or is unavailable.

Print Status

CodeStatus
0Success
1Busy
2Out of Paper
3Low Battery
4Error
5Cancelled
6Timeout
Request
cURL
1curl -X 'POST' \
2  'https://demo-api.westpay.se/in-store/api/v1/printData' \
3  -H 'accept: application/json' \
4  -H 'Ocp-Apim-Subscription-Key: <merchant-subscription-key>' \
5  -H 'Authorization: Bearer <access-token>' \
6  -H 'Content-Type: application/json' \
7  -d '{
8  "terminalId": "<your-terminal-id>",
9  "htmlContent": "<html><body><p>Receipt content here</p></body></html>"
10}'
Response
Response
1{
2  "status": 0
3}