Why HTTP 200 is not enough to issue a refund

We sent 50 support events through Ofox. Two direct runs passed, then a repeat put one refund in the wrong queue. Download the inputs, replies and offline checker.

A sieve keeps an orange piece for inspection while smaller blue pieces pass through.

A customer writes “Please return the money to my card.” The intent is clear. The order number is missing. For a team automating returns, the right next step is to ask which purchase they mean. In an Ofox test, DeepSeek and Qwen both made that call on their first batch. A second DeepSeek response marked the same ticket for a refund. Here’s the exact message and the check that caught it.

Which tickets should reach a person?

On November 27, 2026, we shuffled 50 synthetic support events into one English-language prompt. Five events appeared twice. The answer key contains 45 distinct events: 14 refunds, 13 replacements and 18 manual reviews. A missing order ID, unclear intent or a question about options always requires review. The model saw the rules and messages. We kept the answer key out of its input.

Two messages show why a keyword match fails. E005 has an order number and explicitly rejects a replacement in favor of a refund. E010 asks for another item but has no order number and arrives twice. It should create exactly one review. Use the event ID to recognize a redelivery. Several different customers can have an empty order ID.

What did the API actually return?

RequestTime to full replyRaw JSON arrayExact decisions
Direct · deepseek/deepseek-v4-flash-073138.129 sYes45/45
Direct · qwen/qwen3.8-max69.849 sYes45/45
DeepSeek primary, Qwen configured as backup10.551 sNo44/45 (after inspecting the fenced reply)

The replay sends one user message with streaming off and leaves temperature and JSON mode unset. The two DeepSeek receipts report 1,695 input / 3,955 output tokens (2,860 reasoning) and 1,616 / 1,098 respectively. The second receipt has no reasoning breakdown. These calls cannot isolate the effect of routing on latency.

Why did an HTTP 200 fail the refund check?

The request in the third row returned HTTP 200 and identified DeepSeek as the answering model. The reply wrapped its JSON in a Markdown code fence, so a strict parser rejected the whole batch. Removing the fence for inspection revealed a second error. Of the 18 cases that required a person, E002 had been marked for a refund despite its null order ID. No refund was issued in this experiment.

event_idorder_idReturned actionExpected action
E002nullrefundmanual_review

Before connecting this to a refund system, require one decision per input event ID, reject unexpected IDs and prevent a refund or replacement whenever the trusted order lookup has no match. Store the event ID with the downstream write so a redelivery cannot issue a second refund. If the response fails a check, hold the batch for review.

Fallback request syntax

In the same test, putting provider at the top of the raw JSON body returned HTTP 400. With the setting nested under extra_body.provider, the versioned primary answered. Using the unversioned deepseek/deepseek-v4-flash in that nested request returned HTTP 404. We observed no switch to Qwen. These timings are individual batch observations; they do not establish a speed ranking or a cause for the differing output. How Ofox selects a fallback model · Troubleshoot an API model ID that returns 404

The catalog lists qwen/qwen3.8-max as the model ID and bailian/qwen3.8-max as an alias. The direct call requested and returned the former. Compare the two models’ pricing and routing trade-offs

Can I check the result before spending credits?

Download and unzip the replay kit

The first four commands below read saved replies locally. The third fails on JSON syntax and the fourth identifies E002. The last command makes two new billable requests using OFOX_API_KEY from your environment. It writes replies to a new directory. Settled charges for the recorded runs are unavailable.

python3 check.py deepseek-v4-flash-0731.json
python3 check.py qwen3.8-max.json
python3 check.py nested-fallback-valid-id.json
python3 check.py --inspect-fence nested-fallback-valid-id.json
python3 replay.py deepseek/deepseek-v4-flash-0731 qwen/qwen3.8-max

Both models are candidates for suggesting a queue. These runs give a returns team a concrete reason to keep the order lookup and refund authorization in application code. Test your own ambiguous cases before enabling automatic actions. Compare API routes on a single replacement ticket