code: import stripe
  stripe.api_key = "sk_test_4eC39HqLyjWDarjtT1zdp7dc"
  
  stripe.treasury.InboundTransfer.TestHelpers.fail(
    "ibt_1LSe2F2eZvKYlo2CipojuKFw",
    failure_details={"code": "insufficient_funds"},
  )
  '''Response {
    "id": "ibt_1LSe2F2eZvKYlo2CipojuKFw",
    "object": "treasury.inbound_transfer",
    "amount": 10000,
    "cancelable": true,
    "created": 1659519519,
    "currency": "usd",
    "description": "InboundTransfer from my external bank account",
    "failure_details": {
      "code": "insufficient_funds"
    },
    "financial_account": "fa_1LSe2F2eZvKYlo2C7GbabeHc",
    "hosted_regulatory_receipt_url": "https://payments.stripe.com/regulatory-receipt/CBQaFwoVYWNjdF8xMDMyRDgyZVp2S1lsbzJDKJ-EqZcGMgbjs2dANsU6NpM-Z_Wbb535boyhCYzG4DhrinMWpdiubSmtMlSJzonQDPqAlVKgTwpcZ5o7sqEqJxr8AeQ25g",
    "linked_flows": {
      "received_debit": null
    },
    "livemode": false,
    "metadata": {},
    "origin_payment_method": "pm_1LSe2F2eZvKYlo2CEsB36N9Z",
    "origin_payment_method_details": {
      "billing_details": {
        "address": {
          "city": "San Francisco",
          "country": "US",
          "line1": "1234 Fake Street",
          "line2": null,
          "postal_code": "94102",
          "state": "CA"
        },
        "email": null,
        "name": "Jane Austen"
      },
      "type": "us_bank_account",
      "us_bank_account": {
        "account_holder_type": "company",
        "account_type": "checking",
        "bank_name": "STRIPE TEST BANK",
        "fingerprint": "1JWtPxqbdX5Gamtc",
        "last4": "6789",
        "network": "ach",
        "routing_number": "110000000"
      }
    },
    "returned": false,
    "statement_descriptor": "transfer",
    "status": "failed",
    "status_transitions": {
      "failed_at": 1659519519,
      "succeeded_at": null
    },
    "transaction": "trxn_1LSe2F2eZvKYlo2CJLeUtWAK"
  }'''
nl: Test mode: Fail an InboundTransferTransitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.Parameters failure_details optional dictionary Details about a failed InboundTransfer.Show child parametersReturnsReturns the InboundTransfer object in the returned state. Returns an error if the InboundTransfer has already failed or cannot be failed