Retries and concurrency
Quote and Order commands accept an optional commandId (a UUID chosen by the caller). Repeating a command with the same commandId and the same input applies it once and returns the original result, so a timed-out request can be retried safely.
Quotes return an integer version. Quote commands accept expectedVersion, and return 409 cart_version_conflict when the Quote changed since that version. Read the current Quote before deciding whether to repeat the command.
Webhook consumption is independently idempotent: store the event id before applying downstream side effects. Delivery retries have a new delivery id but retain the event id.
Do not retry validation or domain failures unchanged. For an uncertain network failure, first read the affected resource where possible instead of assuming that the mutation failed.