Actions25
Order → Refund
AI-generatedSummary
Issue a full refund for a paid order by providing the order ID. Optionally include an idempotency key to safely retry the refund request without duplicating the effect.
Inputs
- Order ID (required) — The unique identifier of the order to refund (starts with ord_).
- Idempotency Key — A unique key to allow safe retries of the refund operation by returning the cached response if the same key and body are sent.
Output shape
a single record containing the refund response from the API.
The operation makes a POST request to refund the order and handles API errors. The response shape corresponds to the API's refund confirmation or error details.