From e0cacf361ef16d32edce0284b92214884f125251 Mon Sep 17 00:00:00 2001 From: Bolt Agent Date: Mon, 29 Jun 2026 16:30:15 +0000 Subject: [PATCH] Add missing OutgoingTransactionFailureReason enum values Add EXECUTION_FAILED_POST_DEBIT, SETTLEMENT_FAILED, TIMEOUT, and MANUAL_REFUND to the OutgoingTransactionFailureReason enum so the public Grid API can represent the full set of failure reasons the backend emits. Without them, sparkcore's mapping from the internal UmaaasSendOperationFailureReason to this public enum (by name) throws a KeyError and reports an empty failure reason for settlement/timeout/manual-refund/post-debit failures. --- mintlify/openapi.yaml | 4 ++++ openapi.yaml | 4 ++++ .../transactions/OutgoingTransactionFailureReason.yaml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index 08333ad96..9f5a987d5 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -17120,6 +17120,10 @@ components: - LIGHTNING_PAYMENT_FAILED - FUNDING_AMOUNT_MISMATCH - COUNTERPARTY_POST_TX_FAILED + - EXECUTION_FAILED_POST_DEBIT + - SETTLEMENT_FAILED + - TIMEOUT + - MANUAL_REFUND description: Reason for failure of an outgoing transaction. This is used to provide more context on why a transaction failed. If the transaction is not in a failed state, this field is omitted. OutgoingTransaction: title: Outgoing Transaction diff --git a/openapi.yaml b/openapi.yaml index 08333ad96..9f5a987d5 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -17120,6 +17120,10 @@ components: - LIGHTNING_PAYMENT_FAILED - FUNDING_AMOUNT_MISMATCH - COUNTERPARTY_POST_TX_FAILED + - EXECUTION_FAILED_POST_DEBIT + - SETTLEMENT_FAILED + - TIMEOUT + - MANUAL_REFUND description: Reason for failure of an outgoing transaction. This is used to provide more context on why a transaction failed. If the transaction is not in a failed state, this field is omitted. OutgoingTransaction: title: Outgoing Transaction diff --git a/openapi/components/schemas/transactions/OutgoingTransactionFailureReason.yaml b/openapi/components/schemas/transactions/OutgoingTransactionFailureReason.yaml index 8af526f7a..fd01c07fb 100644 --- a/openapi/components/schemas/transactions/OutgoingTransactionFailureReason.yaml +++ b/openapi/components/schemas/transactions/OutgoingTransactionFailureReason.yaml @@ -5,6 +5,10 @@ enum: - LIGHTNING_PAYMENT_FAILED - FUNDING_AMOUNT_MISMATCH - COUNTERPARTY_POST_TX_FAILED + - EXECUTION_FAILED_POST_DEBIT + - SETTLEMENT_FAILED + - TIMEOUT + - MANUAL_REFUND description: >- Reason for failure of an outgoing transaction. This is used to provide more context on why a transaction failed. If the transaction is not in a failed