## TL;DR

Make ticket creates idempotent on your side: before retrying after a network failure, fetch the ticket list filtered by your external reference to see if the create already landed.

## Fix

1. Make ticket creates idempotent on your side: before retrying after a network failure, fetch the ticket list filtered by your external reference to see if the create already landed.
   Expected: you can confirm this matches your situation.

## When to use

- You are setting up or using this Gorgias API 409 conflict feature.
- The symptom matches: safe retries for ticket writes.

## When NOT to use

- Unrelated Gorgias API 409 conflict issues (different feature, different failure).
- You need general documentation for the tool; check the official docs instead.

## Compatibility

Reported against Gorgias API 409 conflict.

## Variant phrasings

### safe retries for ticket writes

## Why it happens

A 409 from the Gorgias API means your write conflicts with the current state of the resource, commonly from retrying a create that already succeeded or racing another integration.

## Edge cases

- If your error message differs even slightly, this is probably a different issue; search the exact text.
- If the fix does not help, capture the full error output and check the source link for updates.