Print Receipt
Last updated: 2026-03-25
POST
/in-store/api/v1/printDataTrigger receipt printing on the terminal
Request Body
terminalIdstringrequiredThe ID of the terminal to send the print request to.
htmlContentstringrequiredThe HTML content to render and print on the terminal's built-in printer.
HTTP Status Code Summary
| Code | Description |
|---|---|
| 201 | Print request created and sent to terminal. |
| 200 | Print request processed (already exists). |
| 400 | Bad request. Check that terminalId and htmlContent are provided. |
| 401 | Unauthorized. Ensure your bearer token and subscription key are valid. |
| 422 | Unprocessable entity. The terminal may not support printing or is unavailable. |
Print Status
| Code | Status |
|---|---|
| 0 | Success |
| 1 | Busy |
| 2 | Out of Paper |
| 3 | Low Battery |
| 4 | Error |
| 5 | Cancelled |
| 6 | Timeout |
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}