Admin API / Types
RefundOrderPayload
UnionThe result of refundOrder. RefundOrderError: a condition that can change stopped the refund; repeat with the same idempotencyKey. CurrencyMismatchError: requestedRefundAmount is not in the order's currency; a repeat with the same input gets the same answer. IdempotencyConflictError: the key was used before with another requestedRefundAmount, currency, reason, sellerNote or restockItems; no refund is issued and no stock changes. RefundCredentialUnavailableError: no connected credential can reach the order's payment. No refund is issued and no refund reservation is taken, so a repeat with the same idempotencyKey proceeds after a reconnect.
union RefundOrderPayload = CurrencyMismatchError | IdempotencyConflictError | InvalidRefundAmount | InvalidRefundAmountError | OrderNotFoundError | OrderNotRefundableError | RefundCredentialUnavailableError | RefundOrderError | RefundOrderSuccess | RestockItemError | UnauthorizedErrorMembers
CurrencyMismatchErrorIdempotencyConflictErrorInvalidRefundAmountInvalidRefundAmountErrorOrderNotFoundErrorOrderNotRefundableErrorRefundCredentialUnavailableErrorRefundOrderErrorRefundOrderSuccessRestockItemErrorUnauthorizedError