HTTP status 409. An API key request can get this code.
The cancel request failed or the pharmacy refused it. The order keeps its status.
Recovery
Read the order and detail. If Affinity could not reach the pharmacy, retry cancellation with a new Idempotency-Key. If the pharmacy refused, contact Affinity if the order must still stop.
Branch on code, not on the text of detail. Give Affinity the requestId when you report a problem.