# Guides

These guides explain how the Omono API works as a whole: the rules that
apply to every request, and the steps behind the most common jobs. If
you're new to the API, start with **Getting started**, then follow the
recipe that's closest to what you want to build. Come back to the other
guides when you need the detail. The [API reference](/docs) describes every
endpoint and field.

## Get started

| Guide                                    | Read it to                                                                                                                                 |
| ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| [Getting started](/docs/getting-started) | Get access to the API, create an API key, make your first request and set up a sandbox for testing.                                        |
| [Recipes](/docs/recipes)                 | Follow common jobs step by step, such as pushing orders in, mirroring data out, shipping and invoicing a dispatch, and exporting invoices. |
| [Build with AI assistants](/docs/ai)     | Give an AI assistant or coding tool these docs as Markdown, and the API as an OpenAPI document.                                            |
| [Client libraries](/docs/clients)        | Generate a client for the API in Python, TypeScript, Java or C#, and avoid the traps of each generator.                                    |

## Learn how the API works

| Guide                                      | Read it to                                                                                                                                          |
| ------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Reading data](/docs/reading)              | Page through lists, filter and sort them, include related records, look up IDs and download files.                                                  |
| [Keeping in sync](/docs/syncing)           | Build a copy of your Omono data, keep it up to date, and remove records that are deleted in Omono.                                                  |
| [Writing data](/docs/writing)              | Create and change records safely, with idempotency keys, ETags, line item changes, lifecycle actions and prefilled fields.                          |
| [Dispatches and invoicing](/docs/workflow) | Move a sales order's dispatches, which are its shipments, through your workflow, ship and invoice them, and find out why a dispatch can't ship yet. |
| [Rate limits](/docs/limits)                | Learn the limits, how heavy writes count, and how to plan your requests.                                                                            |
| [Errors](/docs/errors)                     | Understand the error format, handle the codes that matter, and recover after a server error.                                                        |
| [Conventions](/docs/conventions)           | Read IDs, timestamps, dates, text, money and statuses the same way across the whole API.                                                            |
| [Enums](/docs/enums)                       | Look up the values that each status and type can take, and what each one means.                                                                     |

## Stay up to date

| Page                                        | Read it to                                                           |
| ------------------------------------------- | -------------------------------------------------------------------- |
| [Compatibility policy](/docs/compatibility) | Find out what can change in the API, and when a change takes effect. |
| [Changelog](/docs/changelog)                | See every change to the API, newest first.                           |

## Find what you need

| If you want to                               | Read                                                                     |
| -------------------------------------------- | ------------------------------------------------------------------------ |
| Create your first API key                    | [Create an API key](/docs/getting-started#keys)                          |
| Generate a client in your language           | [Client libraries](/docs/clients)                                        |
| Test without touching your live data         | [Test on a sandbox organisation](/docs/getting-started#sandbox)          |
| Get the next page of a list                  | [Page through a list](/docs/reading#pagination)                          |
| Keep a copy of your data up to date          | [Poll for changes](/docs/syncing#incremental-sync)                       |
| Remove records that were deleted in Omono    | [Find deleted records](/docs/syncing#deletes)                            |
| Retry a request without doing the work twice | [Retry requests safely](/docs/writing#idempotency)                       |
| Avoid overwriting a change you haven't seen  | [Avoid overwriting changes with ETags](/docs/writing#etags)              |
| Add, change or remove line items             | [Change line items](/docs/writing#line-changes)                          |
| Ship and invoice a dispatch                  | [Ship a dispatch](/docs/workflow#shipping-the-final-status)              |
| Find out why a dispatch can't ship           | [When a dispatch can't ship](/docs/workflow#when-a-dispatch-cannot-ship) |
| Decide which errors to handle in your code   | [Codes your integration should handle](/docs/errors#the-codes-to-handle) |
| Stay inside your rate limits                 | [Plan your requests](/docs/limits#planning)                              |

## Use the docs with an AI assistant

Every guide page, every error page and every section of the API reference is
also available as Markdown, which AI assistants and coding tools read well.

- **Copy for LLM** copies the page, or the reference section, as Markdown, so
  you can paste it into a chat with your assistant.
- **View as Markdown** opens the same Markdown in your browser.
- [`/docs/llms.txt`](/docs/llms.txt) lists every Markdown page, in the
  [llms.txt](https://llmstxt.org) format that many AI tools look for.
- [`/docs/llms-full.txt`](/docs/llms-full.txt) holds all the guides, the
  whole reference and every error code in one file.

The Markdown is built from the same source as these pages, so it always
matches them. Learn more in
[Build with AI assistants](/docs/ai).
