---
title: "Offline basket | Docs | Self-Checkout by R&D Copilot"
description: "What to do when the connection of a lane is lost in the middle of a basket."
canonical: "https://checkout.rdcopilot.com/docs/concepts/offline-basket/"
language: en
updated: 2026-11-22
---

# Offline basket

What to do when the connection of a lane is lost in the middle of a basket.

Your lane software keeps the basket in its own memory while it cannot reach the API, and sends what it has not sent in the order it happened. Two rules of the API make that safe: a request with an `operationId` is applied once, and a request with an `expectedRevision` is applied only to the revision you read.

1.  Keep every request
    
    Store the request body, with its `operationId`, before the first attempt to send it.
    
2.  Send again with the same `operationId`
    
    A request that reached the system is not applied twice. The answer is the same operation result.
    
3.  Read the basket when the connection returns
    
    If a request was lost, the basket is behind. Read it and send the requests it does not have, with the revision you read.
    
4.  Stop on a conflict
    
    A `409` with `revision_conflict` means an attendant or a device changed the basket. Read the lane and the interventions before you send anything more.
    

Do not send a payment result twice with different `operationId` values. The second is a second payment result for the basket, and the system refuses it once the basket is paid.

The weight of the bagging scale is a reading, not an event: after a lost connection, report the weight the scale carries now. See [Weights and produce codes](https://checkout.rdcopilot.com/docs/guides/weights-and-produce-codes/).
