Sets reader display to show cart details.
Parameters
- typeenumRequired
Type
- cartobject
Cart
- cart.
currencyenumRequired Three-letter ISO currency code, in lowercase. Must be a supported currency.
- cart.
line_ itemsarray of objectsRequired Array of line items that were purchased.
- cart.
line_items. amountintegerRequired The price of the item in cents.
- cart.
line_items. descriptionstringRequired The description or name of the item.
- cart.
line_items. quantityintegerRequired The quantity of the line item being purchased.
- cart.
totalintegerRequired Total balance of cart due in cents.
- cart.
taxinteger The amount of tax in cents.
Returns
Returns an updated Reader
resource.
Response
{ "id": "tmr_FDOt2wlRZEdpd7", "object": "terminal.reader", "action": { "failure_code": null, "failure_message": null, "set_reader_display": { "cart": { "currency": "usd", "line_items": [ { "amount": 5100, "description": "Red t-shirt", "quantity": 1 } ], "tax": 100, "total": 5200 }, "type": "cart" }, "status": "in_progress", "type": "set_reader_display" }, "device_sw_version": "", "device_type": "simulated_wisepos_e", "ip_address": "0.0.0.0", "label": "Blue Rabbit", "last_seen_at": 1695166525506, "livemode": false, "location": "tml_FDOtHwxAAdIJOh", "metadata": {}, "serial_number": "259cd19c-b902-4730-96a1-09183be6e7f7", "status": "online"}