Back to apps Sales, payments and tax

Cart & Checkout

An internal notebook of shopping carts and the orders made from them, with a payment status you mark.

Included in every plan
Turn it on from your Hub

Apps are turned on from the Apps page of your Hub. Create your free account to get one.

What it is for and who it is for

Cart & Checkout is an internal notebook of carts and orders: it keeps the carts of a customer or of an anonymous visit and turns them into orders with their number and their status. It is not the till and it charges nothing: a person marks "Paid" after charging some other way, and nothing it does is fiscal. To charge at the counter there is Sales.

What it keeps

It keeps carts — of a person (their email and their name) or of an anonymous visit, told apart by a session code — with their lines (product, quantity and price), and turns them into orders with a number, addresses, a shipping and a payment method and a status: Initiated, Paid or Failed, and Completed.

What it does not do

An order paid and completed here does not create a sale, an invoice, a VeriFactu record, a cash movement or a stock movement, and nothing charged here reaches the AEAT. "Paid" is a status that a person marks after charging some other way: the app charges nothing, talks to no payment gateway and asks for no amount or receipt.

It has no shop and no public page: only staff with a session in the Hub use it.

Who uses it

  • The employee: only looks at the carts and the orders.
  • The manager, the administrator and the owner: they also create, abandon and delete carts, and mark the orders as paid, completed or failed.
  • The assistant: does the same as the person talking to it and, besides, what the screen does not offer: adding and changing lines, emptying a cart, starting an order and expiring the overdue carts.

Reference adopted

The cart and order model of an online shop (Shopify Checkout, WooCommerce, Odoo eCommerce): a cart with a session code, an order with a consecutive number and the statuses initiated → paid or failed → completed. Only the status model is adopted: the public shop, the payment gateway, the taxes, shipping and stock of those references do not exist here.

Before you start

  1. Cart & Checkout does not come turned on with any type of business: it is turned on from the app store. It turns on no other app and needs none: it can be turned on and off on its own.
  2. It has no settings. The currency of a new cart is the business's, its country's (the one Settings › Business shows), unless whoever creates it through the assistant or the API says another one.
  3. A cart may carry an expiry date; without one it never expires.

Screens

Cart & Checkout opens from the menu and has two tabs, at the bottom: Carts and Orders. The top bar says "Cart & Checkout" and the tab you are on. What a person cannot do does not show, and the app refuses it even if they try it through the API or the assistant.

Carts

A table with the carts, the most recent on top: Session, Email, Status (Active, Abandoned, Converted, Expired), Items and Total, in each cart's currency. The search box searches the session, the email and the name, and the funnel of the bar opens "Filters", with a box per column. New cart creates one; each row offers Abandon (only an active cart) and Delete. The lines of a cart are not seen nor added on this screen: the assistant does that.

The table of carts

A search box "Search session or email…" (it searches the session code, the email and the name), filters per column behind the funnel of the bar, which opens "Filters" — session and email by a piece of the text, the status from a list, the items and the total "from / to" —, sorting per column, a list or card view and 50 rows per page. It is sorted by creation date, the most recent on top. The total shows in the cart's currency (one created in euros stays in euros even if the business changes country); the Total filter is typed in the business's currency ("12" is zł 12.00 in a business in Poland and ¥12 in one in Japan, where there are no cents) and compares the amount as it is, without converting currencies. It is read as in any amount field of the Hub and as in the other lists: it can be pasted with its thousands separators ("1,250.50", "1.250,50", "2 500") or with that currency's symbol or code ("zł 12.50", "PLN 12.50"); one that cannot be read does not filter and says so under its box in the words of the amount field: "1,250", which may be one thousand two hundred and fifty or one and a quarter, "This amount can be read in two ways…"; one with another currency's symbol or with letters, "This is not an amount. Type a figure, for example 12.50."; a negative one, "This amount cannot be negative.". While the business has not answered, an amount is read with two decimals and nothing is warned; when it answers, the filter is read again in its currency from the first page.

New cart

The New cart button opens the "New cart" form: Session (required; "Save" is not enabled without it), Email and Name. Each row offers Abandon (only an active cart) and Delete (asks for confirmation). There is no screen for the lines of a cart nor for adding them: the assistant or the API does that.

Orders

A table with the orders, the most recent on top: Order (its number), Email, Status (Initiated, Paid, Failed, Completed), Payment (the payment method, as text) and Total, in the order's currency. A failed order shows its reason under the status. Each row offers the action that fits it: Mark paid (Initiated, after charging some other way), Complete (Paid) and Fail (Initiated or Paid). Orders are not created here: they are started from a cart with the assistant.

The table of orders

A table with Order (its number, always whole), Email, Status (Initiated, Paid, Failed, Completed), Payment (the payment method, as text) and Total, in the order's currency. A search box "Search order or email…", filters per column behind the funnel of the bar (Order, Email, Status, Payment and Total), sorting per column, a list or card view and 50 rows per page, the most recent on top. A failed order shows its whole reason under the status.

Each row offers the action that fits it: Mark paid (Initiated), Complete (Paid) and Fail (Initiated or Paid), which opens a form asking for the reason. While a row action is working, its button spins and a second tap does nothing. There is no button to create an order: they are born from the flow «Start the order from a cart», from a cart, with the assistant or the API.

States of each screen

State What the person sees
Loading "Loading…" while the first result arrives.
Empty "No carts." or "No orders."; with a search or a filter, "No results".
Error The table's notice with "Retry". A refusal of a form shows inside the form, each reason under its field, without losing what was typed, and each refused field loses its reason as soon as that field is corrected, even if another one says the same; that of a row action, above the table.
Reconnecting What is drawn stays; a strip warns "Reconnecting…".
App inactive "This app is not active in this business".
No permission What they cannot do does not show; if they get there another way, "You do not have permission".

Amounts in the format of the language of whoever looks and in the currency of each row, with that currency's decimals (the yen has no cents); quantities without decorative zeros ("2", "0.5").

Unsaved changes on Android

In this app's create and edit windows, the phone's Back button asks "Discard changes?" when something typed or chosen has not been saved: "Keep editing" keeps it and "Discard changes" closes the window without saving. With the window as it opened, Back closes it without asking.

Flows

Create a cart

Steps:

  1. In Carts tap New cart.
  2. Type the Session (the code that tells the visit apart, required) and, if you want, Email and Name.
  3. Tap Save: the form closes and the cart shows in the list as Active, with no lines and a zero total.

If it fails: inside the form, under its field: an empty session; a session another cart not deleted already uses ("There is already a cart with that session."); an email that is not an email; through the assistant or the API, a currency that does not exist or an expiry that has already passed. What was typed is kept. Without permission, it is refused.

Add a line to a cart

Steps:

  1. Ask the assistant to add a product to a cart, saying the cart (its session, or the customer's email or name), the product's reference and name, the quantity and the unit price.
  2. Confirm the assistant's card, which says the cart by its session (for example, sess_a1b2c3) or by the customer said, never by its internal code; then the line (the product, the quantity as the person's language writes it and the unit price in the cart's currency) and the reference («Pedro · Bravas (portion) · 4 · €6.00 · BRAVAS»). If the cart is not found or what was said fits several, the card gives the price in no currency: the action refuses it on confirming.
  3. The line is saved and the cart's totals (items and amount) are recalculated.

If it fails: a cart that does not exist ("That cart does not exist in this business."); several carts for what was said (it names them and asks which one); a cart that is not active, also an overdue one ("This cart no longer takes changes: it is Abandoned."); an empty reference or name, a quantity of zero, negative or over 1 000 000, a negative price: each one in its field; a total of the line, or of the cart with it, above what fits in a cart (almost one hundred billion in a currency with cents), under the quantity. Nothing is saved.

Change the quantity of a line or remove it

Steps:

  1. Ask the assistant to change the quantity of a line, or to remove it.
  2. Confirm the card, which says the line by its product (for example, Champú), never by its internal code.
  3. With a quantity greater than zero the line changes and its total is recalculated with the price kept in the line; with a quantity of zero the line is removed. There is also the order "remove line", which only removes.
  4. The cart's totals are recalculated in the same operation.

If it fails: a line that does not exist; a cart that is no longer active; a negative quantity or one over 1 000 000; a total above what fits in a cart, under the quantity. Nothing changes.

Empty a cart

Steps:

  1. Ask the assistant to empty a cart.
  2. Confirm the card, which says the cart by its session (for example, sess_a1b2c3), never by its internal code.
  3. All its lines are removed and the totals go back to zero; the cart stays Active.

If it fails: a cart that does not exist or is not active. Nothing changes.

Abandon a cart

Steps:

  1. In Carts, on the row of an active cart, tap Abandon.
  2. The cart becomes Abandoned and keeps its lines. The assistant may give a reason, which stays in the cart.

If it fails: only an active cart is abandoned; in another status it is refused saying which one it is in, above the table, and nothing changes.

Delete a cart

Steps:

  1. In Carts, on the row, tap Delete.
  2. Confirm "Delete the cart sess_a1b2c3?" with Delete; Cancel leaves it as it was.
  3. The cart disappears from the list. The assistant asks for a stronger confirmation (a dangerous action) and says the cart by its session.

If it fails: a cart that does not exist (or is already deleted) is refused; nothing changes.

Expire the overdue carts

Steps:

  1. An active cart whose expiry date has already passed reads as Expired in the list, in the status filter and in what the assistant answers, and no longer takes changes or orders.
  2. Every fifteen minutes, the app's task stores it as Expired. The assistant or the API can also be asked to "expire the overdue carts".

If it fails: with no overdue carts it answers "0" and announces nothing. A cart with no expiry never expires. With the list already open, a cart that expires at that moment still shows "Active" until the list is read again: with the pass of the task that leaves it Expired, with the next change, when it is opened again or with the Hub's safety re-read (every 5 minutes). When the order is given by someone of the business, through the assistant or the API, the open list is brought up to date at that moment.

Start the order from a cart

Steps:

  1. Ask the assistant to start the order of a cart and, if you want, the customer's email, the shipping and billing addresses, the shipping method, the payment method and some notes.
  2. Confirm the card, which says the cart by its session (for example, sess_a1b2c3), never by its internal code.
  3. An Initiated order shows in Orders with the number OS-YYYYMMDD-NNNN (consecutive per day of the business, with no gaps) and the cart's total copied at that moment, in its currency.

If it fails: a cart that does not exist, is not active (also overdue) or has no lines; an email that is missing or is not an email. No order is created, no number is used up and nothing is announced.

Mark an order as paid

Steps:

  1. Charge the customer outside this app.
  2. In Orders, on the row of an Initiated order, tap Mark paid.
  3. The order becomes Paid with the time of the payment.

If it fails: only an Initiated order is marked; in another status it is refused saying which one it is in. The employee cannot.

Record that the payment failed

Steps:

  1. In Orders, on the row of an Initiated or Paid order, tap Fail.
  2. Type the reason (required; "Fail order" is not enabled without it) and tap Fail order; Keep it leaves it as it was.
  3. The order becomes Failed and shows its whole reason under the status.

If it fails: a Completed or already Failed order is refused; an empty reason, under its field, without losing what was written.

Complete an order

Steps:

  1. In Orders, on the row of a Paid order, tap Complete.
  2. The order becomes Completed and its cart, Converted, in the same operation.

If it fails: only a Paid order is completed; in another status it is refused saying which one it is in.

Look up carts, lines and orders

Steps:

  1. Open Carts or Orders.
  2. Search by session, email or name (carts) or by order number or email (orders) and sort. To filter per column, tap the funnel of the bar: it opens "Filters" with a box per column (the Total, as it is typed or pasted: "12", "12.50", "1,250.50", "2 500"); Apply filters and closes it, and the funnel counts the filters in use.
  3. The lines of a cart and the detail of an order (addresses, methods, dates, notes) are read with the assistant or the API: a cart by its session or by its customer's email or name, an order by its number.

If it fails: a loading error with "Retry"; without permission, "You do not have permission"; a Total amount that cannot be read, what the amount field would say ("This is not an amount. Type a figure, for example 12.50.", or the two readings of "1,250") under its box, without filtering.

Tell other apps what happens

Steps:

  1. Each change of the previous flows leaves a notice in the Hub's outbox in its same transaction.
  2. Both screens update by themselves with what changed.

If it fails: a refused change leaves neither the change nor the notice.

Erase a customer's personal data

Steps:

  1. A customer asks for their data to be erased (right to erasure, GDPR).
  2. Ask the assistant to erase the customer's data with their exact email, or the platform staff select their carts or orders in the admin and run the action.
  3. Confirm the card (a dangerous action: it cannot be undone).

If it fails: an empty email or one that is not an email, in its field. Without the "manage carts" permission, it is refused. In the admin, with no hub chosen it does nothing and says so.

Cart & Checkout: what goes in and what comes out

What it offers: queries (they read and change nothing)

Operation What it gives Flows
cart_checkout.cart.list Carts, with search, filters, sorting and pages of up to 100. «Look up carts, lines and orders»
cart_checkout.cart.get A cart with its lines, by id, session or customer (email or name). «Look up carts, lines and orders»
cart_checkout.item.list The lines of a cart, with search, filters and pages. «Look up carts, lines and orders»
cart_checkout.item.get A line by its id. «Look up carts, lines and orders»
cart_checkout.order.list Orders, with search, filters, sorting and pages of up to 100. «Look up carts, lines and orders»
cart_checkout.order.get An order with everything (addresses, methods, dates, notes), by id or number. «Look up carts, lines and orders»

What it offers: actions (they change data)

Operation What it does Permission Flows
cart_checkout.cart.create Creates a cart manage carts «Create a cart»
cart_checkout.cart.mark_abandoned Abandons an active cart manage carts «Abandon a cart»
cart_checkout.cart.delete Deletes a cart (dangerous) manage carts «Delete a cart»
cart_checkout.cart.clear Empties an active cart manage carts «Empty a cart»
cart_checkout.cart.cleanup_expired Expires the overdue carts (also the task) manage carts «Expire the overdue carts»
cart_checkout.item.add Adds a line manage carts «Add a line to a cart»
cart_checkout.item.update Changes the quantity (0 removes it) manage carts «Change the quantity of a line or remove it»
cart_checkout.item.remove Removes a line manage carts «Change the quantity of a line or remove it»
cart_checkout.checkout.initiate Starts an order from a cart check out «Start the order from a cart»
cart_checkout.order.mark_paid Marks an order paid (dangerous) check out «Mark an order as paid»
cart_checkout.order.fail Marks an order failed with its reason (dangerous) check out «Record that the payment failed»
cart_checkout.order.complete Completes a paid order and converts its cart check out «Complete an order»
cart_checkout.customer.erase Erases a customer's personal data by their email (dangerous) manage carts «Erase a customer's personal data»

What it announces

The thirteen notices of «Tell other apps what happens». They only go out when the change happened.

What it reacts to and what it needs from other apps

Nothing. It reads and writes nothing in other apps: product, reference, SKU and price are free text and numbers, with no link to Inventory, and the customer is an email and a name with no link to Customers.

Who can do what

Permission What it lets you do Who has it
cart_checkout.view_cart View carts, lines and orders everyone, also the employee
cart_checkout.manage_cart Create, abandon, delete, empty and expire carts; add, change and remove lines; erase a customer's personal data manager, administrator, owner
cart_checkout.checkout Start orders and mark them paid, failed or completed manager, administrator, owner