> ## Documentation Index
> Fetch the complete documentation index at: https://api.basetools.cz/llms.txt
> Use this file to discover all available pages before exploring further.

# Basic principles

> What an order in Base is, where it comes from, and how its lifecycle works

This section covers working with orders between your system and Base.com via API. The vast majority of integrations work in the direction **out of Base** — you download orders that originated from an e-shop, a marketplace, or were entered manually in the panel, into your own ERP/warehouse/accounting system.

## Where an order comes from

Every order has an `order_source` field — typically `"shop"` (a connected e-shop), `"personal"` (added manually in the panel), `"order_return"`, or a specific marketplace code (`"allegro"`, `"amazon"`, `"ebay"`, `"ceneo"`, `"emag"`, etc.). The full list of sources and their IDs is returned by [`getOrderSources`](https://api.baselinker.com/index.php?method=getOrderSources).

## Confirmed and unconfirmed orders

This is the single most important concept in the entire order API. Base distinguishes between:

* **Unconfirmed orders** (`confirmed: false`) — on some marketplace channels (typically Alza, Allegro), an order first appears as an incomplete "draft" (Alza calls this stage *Order Insert*). You can see the line items, but not necessarily the full address, price, or shipping method — data may still change.
* **Confirmed orders** (`confirmed: true`, `date_confirmed` populated) — the marketplace sent confirmation (*Order Confirm* on Alza), and Base filled in the remaining details. From this point the order shouldn't change materially and is safe to persist into an external system.

This concept is central to correctly downloading orders — see [Downloading orders](/en/objednavky/stahovani-objednavek).

## Order statuses

Independently of confirmation, every order also has a user-defined **status** (`order_status_id`) — e.g. New Order, To Be Shipped, Shipped, Delivered, Cancelled. Every account configures its own statuses, and their behavior is driven by Automatic Actions. Details in [Statuses](/en/objednavky/statusy).

## Structure of this section

* [Downloading orders](/en/objednavky/stahovani-objednavek) — how to periodically pull orders with `getOrders`.
* [Statuses](/en/objednavky/statusy) — reading and writing statuses, typical setup, cancellations.
* [Shipping labels](/en/objednavky/prepravni-stitky) — tracking numbers and carrier labels.
* [Invoices](/en/objednavky/faktury) — issuing an invoice in Base or attaching one from your ERP.
* [Extra fields](/en/objednavky/extra-pole) — custom fields attached to an order.
* [Automation and webhooks](/en/objednavky/automatizace-a-webhooky) — catching events (cancellations, status changes) in real time.

<Tip>
  If you're not sure where a specific scenario fits in this structure, feel free to ask the implementation team before you start building — they're happy to advise early.
</Tip>
