You sell on the Nordic marketplace CDON and process the order in Softmaat through files on a server. Without a connection, someone converts every purchase by hand: order number, customer number, street, postcode, city, and the line with item, quantity and prices including and excluding VAT. A typo in the address or the quantity only shows up once the shipment is ready. That manual work stops when the file is created automatically.
The flow runs only from the marketplace to your till files. You limit the selection to one status: created, which is the default for a new order, or accepted, shipped, or not delivered for a cancellation and refund. Each order carries one item under its item number; the quantity may be more than one. Name, street, postcode, city, country and phone are included and are also used as the invoice address, because CDON only sends a shipping address and no email from the buyer.
You decide how many orders go along per run and whether an order that has already been passed on may be sent again. The file lands in the folder and under the name you set; the extension is added. While it is being written it has a temporary name, which is renamed afterwards. If creating or placing the file fails, that order stops. The line amount is the total for the whole quantity and is entered in the unit price field, so check it when the quantity is above one.